@cloudscape-design/components-themeable 3.0.769 → 3.0.770
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/breadcrumb-group/item/styles.scss +10 -15
- package/lib/internal/scss/breadcrumb-group/styles.scss +15 -35
- package/lib/internal/scss/side-navigation/analytics-metadata/styles.scss +9 -0
- package/lib/internal/template/breadcrumb-group/implementation.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/implementation.js +61 -12
- package/lib/internal/template/breadcrumb-group/implementation.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/interfaces.d.ts +3 -2
- 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/item/funnel.d.ts +1 -0
- package/lib/internal/template/breadcrumb-group/item/funnel.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/funnel.js +3 -3
- package/lib/internal/template/breadcrumb-group/item/funnel.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 +19 -38
- package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +8 -9
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +33 -32
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +8 -9
- package/lib/internal/template/breadcrumb-group/styles.css.js +8 -7
- package/lib/internal/template/breadcrumb-group/styles.scoped.css +17 -57
- package/lib/internal/template/breadcrumb-group/styles.selectors.js +8 -7
- package/lib/internal/template/breadcrumb-group/utils.d.ts +5 -0
- package/lib/internal/template/breadcrumb-group/utils.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/utils.js +56 -0
- package/lib/internal/template/breadcrumb-group/utils.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/side-navigation/analytics-metadata/interfaces.d.ts +19 -0
- package/lib/internal/template/side-navigation/analytics-metadata/interfaces.d.ts.map +1 -0
- package/lib/internal/template/side-navigation/analytics-metadata/interfaces.js +4 -0
- package/lib/internal/template/side-navigation/analytics-metadata/interfaces.js.map +1 -0
- package/lib/internal/template/side-navigation/analytics-metadata/styles.css.js +7 -0
- package/lib/internal/template/side-navigation/analytics-metadata/styles.scoped.css +8 -0
- package/lib/internal/template/side-navigation/analytics-metadata/styles.selectors.js +8 -0
- package/lib/internal/template/side-navigation/index.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/index.js +10 -1
- package/lib/internal/template/side-navigation/index.js.map +1 -1
- package/lib/internal/template/side-navigation/parts.d.ts +2 -1
- package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
- package/lib/internal/template/side-navigation/parts.js +42 -21
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"link": "
|
|
5
|
-
"breadcrumb": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"text-hidden": "awsui_text-hidden_1kosq_3tu5n_227"
|
|
4
|
+
"link": "awsui_link_1kosq_16h20_141",
|
|
5
|
+
"breadcrumb": "awsui_breadcrumb_1kosq_16h20_145",
|
|
6
|
+
"ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_16h20_146",
|
|
7
|
+
"icon": "awsui_icon_1kosq_16h20_149",
|
|
8
|
+
"anchor": "awsui_anchor_1kosq_16h20_155",
|
|
9
|
+
"text": "awsui_text_1kosq_16h20_202",
|
|
10
|
+
"last": "awsui_last_1kosq_16h20_221",
|
|
11
|
+
"text-hidden": "awsui_text-hidden_1kosq_16h20_233"
|
|
13
12
|
};
|
|
14
13
|
|
|
@@ -138,19 +138,22 @@
|
|
|
138
138
|
*/
|
|
139
139
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
140
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.
|
|
141
|
+
.awsui_link_1kosq_16h20_141:not(#\9):after {
|
|
142
142
|
display: none;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.
|
|
145
|
+
.awsui_breadcrumb_1kosq_16h20_145:not(#\9),
|
|
146
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146:not(#\9) {
|
|
146
147
|
display: flex;
|
|
147
148
|
}
|
|
148
|
-
.
|
|
149
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_icon_1kosq_16h20_149:not(#\9),
|
|
150
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_icon_1kosq_16h20_149:not(#\9) {
|
|
149
151
|
margin-block: 0;
|
|
150
152
|
margin-inline: var(--space-xs-xf5ch3, 8px);
|
|
151
153
|
color: var(--color-text-breadcrumb-icon-egad48, #687078);
|
|
152
154
|
}
|
|
153
|
-
.
|
|
155
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9),
|
|
156
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9) {
|
|
154
157
|
color: var(--color-text-link-default-hop3gv, #0073bb);
|
|
155
158
|
font-weight: inherit;
|
|
156
159
|
letter-spacing: normal;
|
|
@@ -162,32 +165,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
162
165
|
transition-duration: var(--motion-duration-refresh-only-medium-i6gkfs, 0ms);
|
|
163
166
|
text-underline-offset: 0.25em;
|
|
164
167
|
text-decoration-thickness: 1px;
|
|
168
|
+
min-inline-size: 0;
|
|
169
|
+
overflow: hidden;
|
|
165
170
|
}
|
|
166
171
|
@media (prefers-reduced-motion: reduce) {
|
|
167
|
-
.
|
|
172
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9),
|
|
173
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9) {
|
|
168
174
|
animation: none;
|
|
169
175
|
transition: none;
|
|
170
176
|
}
|
|
171
177
|
}
|
|
172
|
-
.awsui-motion-disabled .
|
|
178
|
+
.awsui-motion-disabled .awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9), .awsui-mode-entering .awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9), .awsui-motion-disabled .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9), .awsui-mode-entering .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9) {
|
|
173
179
|
animation: none;
|
|
174
180
|
transition: none;
|
|
175
181
|
}
|
|
176
|
-
.
|
|
182
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):hover,
|
|
183
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):hover {
|
|
177
184
|
cursor: pointer;
|
|
178
185
|
color: var(--color-text-link-hover-8s5z9d, #0a4a74);
|
|
179
186
|
}
|
|
180
|
-
.
|
|
187
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus,
|
|
188
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus {
|
|
181
189
|
outline: none;
|
|
182
190
|
}
|
|
183
|
-
.
|
|
191
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):active,
|
|
192
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):active {
|
|
184
193
|
color: var(--color-text-link-hover-8s5z9d, #0a4a74);
|
|
185
194
|
}
|
|
186
|
-
.
|
|
195
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):active, .awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus, .awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):hover, .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):active, .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus, .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):hover {
|
|
187
196
|
text-decoration-line: underline;
|
|
188
197
|
text-decoration-color: currentColor;
|
|
189
198
|
}
|
|
190
|
-
|
|
199
|
+
.awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155 > .awsui_text_1kosq_16h20_202:not(#\9),
|
|
200
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155 > .awsui_text_1kosq_16h20_202:not(#\9) {
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
text-overflow: ellipsis;
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
display: block;
|
|
205
|
+
}
|
|
206
|
+
body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_16h20_145 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus,
|
|
207
|
+
body[data-awsui-focus-visible=true] .awsui_ghost-breadcrumb_1kosq_16h20_146 > .awsui_anchor_1kosq_16h20_155:not(#\9):focus {
|
|
191
208
|
outline: thin dotted;
|
|
192
209
|
outline: var(--border-link-focus-ring-outline-gygm43, 5px auto Highlight);
|
|
193
210
|
outline-offset: 2px;
|
|
@@ -198,34 +215,18 @@ body[data-awsui-focus-visible=true] .awsui_breadcrumb_1kosq_3tu5n_145 > .awsui_a
|
|
|
198
215
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-a78bgq, 2px);
|
|
199
216
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-efbp5h, 0px) var(--color-border-item-focused-v8nq2m, #0073bb);
|
|
200
217
|
}
|
|
201
|
-
.
|
|
218
|
+
.awsui_breadcrumb_1kosq_16h20_145.awsui_last_1kosq_16h20_221 > .awsui_icon_1kosq_16h20_149:not(#\9),
|
|
219
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146.awsui_last_1kosq_16h20_221 > .awsui_icon_1kosq_16h20_149:not(#\9) {
|
|
202
220
|
display: none;
|
|
203
221
|
}
|
|
204
|
-
.
|
|
222
|
+
.awsui_breadcrumb_1kosq_16h20_145.awsui_last_1kosq_16h20_221 > .awsui_anchor_1kosq_16h20_155:not(#\9),
|
|
223
|
+
.awsui_ghost-breadcrumb_1kosq_16h20_146.awsui_last_1kosq_16h20_221 > .awsui_anchor_1kosq_16h20_155:not(#\9) {
|
|
205
224
|
color: var(--color-text-breadcrumb-current-pm5uhh, #687078);
|
|
206
225
|
font-weight: 700;
|
|
207
226
|
text-decoration: none;
|
|
208
227
|
cursor: default;
|
|
209
228
|
}
|
|
210
229
|
|
|
211
|
-
.
|
|
212
|
-
min-inline-size: 0;
|
|
213
|
-
overflow: hidden;
|
|
214
|
-
}
|
|
215
|
-
.awsui_compressed_1kosq_3tu5n_209 > .awsui_text_1kosq_3tu5n_213:not(#\9) {
|
|
216
|
-
overflow: hidden;
|
|
217
|
-
text-overflow: ellipsis;
|
|
218
|
-
white-space: nowrap;
|
|
219
|
-
display: block;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.awsui_virtual-item_1kosq_3tu5n_220:not(#\9) {
|
|
223
|
-
position: absolute !important;
|
|
224
|
-
inset-block-start: -9999px !important;
|
|
225
|
-
inset-inline-start: -9999px !important;
|
|
226
|
-
visibility: hidden;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.awsui_text-hidden_1kosq_3tu5n_227:not(#\9) {
|
|
230
|
+
.awsui_text-hidden_1kosq_16h20_233:not(#\9) {
|
|
230
231
|
display: none;
|
|
231
232
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"link": "
|
|
6
|
-
"breadcrumb": "
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"text-hidden": "awsui_text-hidden_1kosq_3tu5n_227"
|
|
5
|
+
"link": "awsui_link_1kosq_16h20_141",
|
|
6
|
+
"breadcrumb": "awsui_breadcrumb_1kosq_16h20_145",
|
|
7
|
+
"ghost-breadcrumb": "awsui_ghost-breadcrumb_1kosq_16h20_146",
|
|
8
|
+
"icon": "awsui_icon_1kosq_16h20_149",
|
|
9
|
+
"anchor": "awsui_anchor_1kosq_16h20_155",
|
|
10
|
+
"text": "awsui_text_1kosq_16h20_202",
|
|
11
|
+
"last": "awsui_last_1kosq_16h20_221",
|
|
12
|
+
"text-hidden": "awsui_text-hidden_1kosq_16h20_233"
|
|
14
13
|
};
|
|
15
14
|
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"breadcrumb-group": "awsui_breadcrumb-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
4
|
+
"breadcrumb-group": "awsui_breadcrumb-group_d19fg_ydqny_141",
|
|
5
|
+
"breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_ydqny_179",
|
|
6
|
+
"ghost": "awsui_ghost_d19fg_ydqny_190",
|
|
7
|
+
"item": "awsui_item_d19fg_ydqny_195",
|
|
8
|
+
"ellipsis": "awsui_ellipsis_d19fg_ydqny_196",
|
|
9
|
+
"hide": "awsui_hide_d19fg_ydqny_203",
|
|
10
|
+
"visible": "awsui_visible_d19fg_ydqny_209",
|
|
11
|
+
"icon": "awsui_icon_d19fg_ydqny_213"
|
|
11
12
|
};
|
|
12
13
|
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
*/
|
|
139
139
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
140
140
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
141
|
-
.awsui_breadcrumb-
|
|
141
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141:not(#\9) {
|
|
142
142
|
border-collapse: separate;
|
|
143
143
|
border-spacing: 0;
|
|
144
144
|
box-sizing: border-box;
|
|
@@ -177,43 +177,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
177
177
|
padding-block: var(--space-xxs-9rrxti, 4px);
|
|
178
178
|
padding-inline: 0;
|
|
179
179
|
}
|
|
180
|
-
.awsui_breadcrumb-
|
|
181
|
-
border-collapse: separate;
|
|
182
|
-
border-spacing: 0;
|
|
183
|
-
box-sizing: border-box;
|
|
184
|
-
caption-side: top;
|
|
185
|
-
cursor: auto;
|
|
186
|
-
direction: inherit;
|
|
187
|
-
empty-cells: show;
|
|
188
|
-
font-family: serif;
|
|
189
|
-
font-size: medium;
|
|
190
|
-
font-style: normal;
|
|
191
|
-
font-variant: normal;
|
|
192
|
-
font-weight: 400;
|
|
193
|
-
font-stretch: normal;
|
|
194
|
-
line-height: normal;
|
|
195
|
-
-webkit-hyphens: none;
|
|
196
|
-
hyphens: none;
|
|
197
|
-
letter-spacing: normal;
|
|
198
|
-
list-style: disc outside none;
|
|
199
|
-
tab-size: 8;
|
|
200
|
-
text-align: start;
|
|
201
|
-
text-indent: 0;
|
|
202
|
-
text-shadow: none;
|
|
203
|
-
text-transform: none;
|
|
204
|
-
visibility: visible;
|
|
205
|
-
white-space: normal;
|
|
206
|
-
word-spacing: normal;
|
|
207
|
-
font-size: var(--font-size-body-m-pa3mqb, 14px);
|
|
208
|
-
line-height: var(--line-height-body-m-2zx78l, 22px);
|
|
209
|
-
color: var(--color-text-body-default-ffdwgg, #16191f);
|
|
210
|
-
font-weight: 400;
|
|
211
|
-
font-family: var(--font-family-base-0nmw8v, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
212
|
-
-webkit-font-smoothing: auto;
|
|
213
|
-
-moz-osx-font-smoothing: auto;
|
|
214
|
-
display: inline;
|
|
215
|
-
}
|
|
216
|
-
.awsui_breadcrumb-group_d19fg_11fhg_141 > .awsui_breadcrumb-group-list_d19fg_11fhg_214:not(#\9) {
|
|
180
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179:not(#\9) {
|
|
217
181
|
display: flex;
|
|
218
182
|
align-items: center;
|
|
219
183
|
padding-block: 0;
|
|
@@ -222,37 +186,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
222
186
|
margin-inline: 0;
|
|
223
187
|
list-style: none;
|
|
224
188
|
inline-size: 100%;
|
|
189
|
+
flex-wrap: nowrap;
|
|
190
|
+
}
|
|
191
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179.awsui_ghost_d19fg_ydqny_190:not(#\9) {
|
|
225
192
|
flex-wrap: wrap;
|
|
193
|
+
position: absolute;
|
|
194
|
+
inset-inline-start: -9000px;
|
|
226
195
|
}
|
|
227
|
-
.awsui_breadcrumb-
|
|
228
|
-
.awsui_breadcrumb-
|
|
196
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_item_d19fg_ydqny_195:not(#\9),
|
|
197
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_ellipsis_d19fg_ydqny_196:not(#\9) {
|
|
229
198
|
display: inline-block;
|
|
230
199
|
padding-block: 0;
|
|
231
200
|
padding-inline: 0;
|
|
232
201
|
margin-block: 0;
|
|
233
202
|
margin-inline: 0;
|
|
234
203
|
}
|
|
235
|
-
.awsui_breadcrumb-
|
|
204
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_item_d19fg_ydqny_195.awsui_hide_d19fg_ydqny_203:not(#\9) {
|
|
236
205
|
display: none;
|
|
237
206
|
}
|
|
238
|
-
.awsui_breadcrumb-
|
|
239
|
-
|
|
240
|
-
margin-inline: 10px;
|
|
241
|
-
color: var(--color-text-breadcrumb-icon-egad48, #687078);
|
|
242
|
-
}
|
|
243
|
-
.awsui_breadcrumb-group_d19fg_11fhg_141.awsui_mobile_d19fg_11fhg_241 > .awsui_breadcrumb-group-list_d19fg_11fhg_214:not(#\9) {
|
|
244
|
-
flex-wrap: nowrap;
|
|
207
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_ellipsis_d19fg_ydqny_196:not(#\9) {
|
|
208
|
+
display: none;
|
|
245
209
|
}
|
|
246
|
-
.awsui_breadcrumb-
|
|
210
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_ellipsis_d19fg_ydqny_196.awsui_visible_d19fg_ydqny_209:not(#\9) {
|
|
247
211
|
display: flex;
|
|
248
212
|
flex-shrink: 0;
|
|
249
213
|
}
|
|
250
|
-
.awsui_breadcrumb-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
display: none;
|
|
255
|
-
}
|
|
256
|
-
.awsui_breadcrumb-group_d19fg_11fhg_141.awsui_mobile-short_d19fg_11fhg_254 > .awsui_breadcrumb-group-list_d19fg_11fhg_214 > .awsui_ellipsis_d19fg_11fhg_226:not(#\9) {
|
|
257
|
-
display: none;
|
|
214
|
+
.awsui_breadcrumb-group_d19fg_ydqny_141 > .awsui_breadcrumb-group-list_d19fg_ydqny_179 > .awsui_ellipsis_d19fg_ydqny_196 > .awsui_icon_d19fg_ydqny_213:not(#\9) {
|
|
215
|
+
margin-block: 0;
|
|
216
|
+
margin-inline: 10px;
|
|
217
|
+
color: var(--color-text-breadcrumb-icon-egad48, #687078);
|
|
258
218
|
}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"breadcrumb-group": "awsui_breadcrumb-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
5
|
+
"breadcrumb-group": "awsui_breadcrumb-group_d19fg_ydqny_141",
|
|
6
|
+
"breadcrumb-group-list": "awsui_breadcrumb-group-list_d19fg_ydqny_179",
|
|
7
|
+
"ghost": "awsui_ghost_d19fg_ydqny_190",
|
|
8
|
+
"item": "awsui_item_d19fg_ydqny_195",
|
|
9
|
+
"ellipsis": "awsui_ellipsis_d19fg_ydqny_196",
|
|
10
|
+
"hide": "awsui_hide_d19fg_ydqny_203",
|
|
11
|
+
"visible": "awsui_visible_d19fg_ydqny_209",
|
|
12
|
+
"icon": "awsui_icon_d19fg_ydqny_213"
|
|
12
13
|
};
|
|
13
14
|
|
|
@@ -4,4 +4,9 @@ export declare const getEventDetail: <T extends BreadcrumbGroupProps.Item>(item:
|
|
|
4
4
|
text: string;
|
|
5
5
|
href: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const getItemsDisplayProperties: (itemsWidths: Array<number>, navWidth: number | null) => {
|
|
8
|
+
shrinkFactors: number[];
|
|
9
|
+
minWidths: number[];
|
|
10
|
+
collapsed: number;
|
|
11
|
+
};
|
|
7
12
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;CAIzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;CAIzB,CAAC;AAKH,eAAO,MAAM,yBAAyB,gBAAiB,MAAM,MAAM,CAAC,YAAY,MAAM,GAAG,IAAI;;;;CAW5F,CAAC"}
|
|
@@ -3,4 +3,60 @@ export const getEventDetail = (item) => ({
|
|
|
3
3
|
text: item.text,
|
|
4
4
|
href: item.href,
|
|
5
5
|
});
|
|
6
|
+
const defaultMinBreadcrumbWidth = 150;
|
|
7
|
+
const ellipsisWidth = 50;
|
|
8
|
+
export const getItemsDisplayProperties = (itemsWidths, navWidth) => {
|
|
9
|
+
const minBreadcrumbWidth = optimizeMinWidth(itemsWidths, navWidth);
|
|
10
|
+
const shrinkFactors = itemsWidths.map(width => (width <= minBreadcrumbWidth ? 0 : Math.round(width)));
|
|
11
|
+
const minWidths = itemsWidths.map(width => (width <= minBreadcrumbWidth ? 0 : minBreadcrumbWidth));
|
|
12
|
+
const collapsedWidths = itemsWidths.map(width => Math.min(width, minBreadcrumbWidth));
|
|
13
|
+
return {
|
|
14
|
+
shrinkFactors,
|
|
15
|
+
minWidths,
|
|
16
|
+
collapsed: computeNumberOfCollapsedItems(collapsedWidths, navWidth),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
const computeNumberOfCollapsedItems = (collapsedWidths, navWidth) => {
|
|
20
|
+
if (!navWidth) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
let collapsed = 0;
|
|
24
|
+
const itemsCount = collapsedWidths.length;
|
|
25
|
+
if (itemsCount > 2) {
|
|
26
|
+
collapsed = itemsCount - 2;
|
|
27
|
+
let remainingWidth = navWidth - collapsedWidths[0] - collapsedWidths[itemsCount - 1] - ellipsisWidth;
|
|
28
|
+
let j = 1;
|
|
29
|
+
while (remainingWidth > 0 && j < itemsCount - 1) {
|
|
30
|
+
remainingWidth -= collapsedWidths[itemsCount - 1 - j];
|
|
31
|
+
j++;
|
|
32
|
+
if (remainingWidth >= 0) {
|
|
33
|
+
collapsed--;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return collapsed;
|
|
38
|
+
};
|
|
39
|
+
const optimizeMinWidth = (itemsWidths, navWidth) => {
|
|
40
|
+
const collapsedWidths = itemsWidths.map(width => Math.min(width, defaultMinBreadcrumbWidth));
|
|
41
|
+
if (!navWidth) {
|
|
42
|
+
return defaultMinBreadcrumbWidth;
|
|
43
|
+
}
|
|
44
|
+
const itemsCount = collapsedWidths.length;
|
|
45
|
+
if (itemsCount > 2) {
|
|
46
|
+
const minCollapsedWidth = collapsedWidths[0] + ellipsisWidth + collapsedWidths[collapsedWidths.length - 1];
|
|
47
|
+
if (minCollapsedWidth > navWidth) {
|
|
48
|
+
return (navWidth - ellipsisWidth) / 2;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (itemsCount === 2) {
|
|
52
|
+
const minCollapsedWidth = collapsedWidths[0] + collapsedWidths[1];
|
|
53
|
+
if (minCollapsedWidth > navWidth) {
|
|
54
|
+
return navWidth / 2;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (itemsCount === 1) {
|
|
58
|
+
return Math.min(navWidth, collapsedWidths[0]);
|
|
59
|
+
}
|
|
60
|
+
return defaultMinBreadcrumbWidth;
|
|
61
|
+
};
|
|
6
62
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAsC,IAAO,EAAE,EAAE,CAAC,CAAC;IAC/E,IAAI;IACJ,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,IAAI,EAAE,IAAI,CAAC,IAAI;CAChB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BreadcrumbGroupProps } from './interfaces';\n\nexport const getEventDetail = <T extends BreadcrumbGroupProps.Item>(item: T) => ({\n item,\n text: item.text,\n href: item.href,\n});\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/breadcrumb-group/utils.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BreadcrumbGroupProps } from './interfaces';\n\nexport const getEventDetail = <T extends BreadcrumbGroupProps.Item>(item: T) => ({\n item,\n text: item.text,\n href: item.href,\n});\n\nconst defaultMinBreadcrumbWidth = 150;\nconst ellipsisWidth = 50;\n\nexport const getItemsDisplayProperties = (itemsWidths: Array<number>, navWidth: number | null) => {\n const minBreadcrumbWidth = optimizeMinWidth(itemsWidths, navWidth);\n const shrinkFactors = itemsWidths.map(width => (width <= minBreadcrumbWidth ? 0 : Math.round(width)));\n const minWidths = itemsWidths.map(width => (width <= minBreadcrumbWidth ? 0 : minBreadcrumbWidth));\n const collapsedWidths = itemsWidths.map(width => Math.min(width, minBreadcrumbWidth));\n\n return {\n shrinkFactors,\n minWidths,\n collapsed: computeNumberOfCollapsedItems(collapsedWidths, navWidth),\n };\n};\n\nconst computeNumberOfCollapsedItems = (collapsedWidths: Array<number>, navWidth: number | null): number => {\n if (!navWidth) {\n return 0;\n }\n let collapsed = 0;\n const itemsCount = collapsedWidths.length;\n if (itemsCount > 2) {\n collapsed = itemsCount - 2;\n let remainingWidth = navWidth - collapsedWidths[0] - collapsedWidths[itemsCount - 1] - ellipsisWidth;\n let j = 1;\n while (remainingWidth > 0 && j < itemsCount - 1) {\n remainingWidth -= collapsedWidths[itemsCount - 1 - j];\n j++;\n if (remainingWidth >= 0) {\n collapsed--;\n }\n }\n }\n return collapsed;\n};\n\nconst optimizeMinWidth = (itemsWidths: Array<number>, navWidth: number | null): number => {\n const collapsedWidths = itemsWidths.map(width => Math.min(width, defaultMinBreadcrumbWidth));\n if (!navWidth) {\n return defaultMinBreadcrumbWidth;\n }\n const itemsCount = collapsedWidths.length;\n if (itemsCount > 2) {\n const minCollapsedWidth = collapsedWidths[0] + ellipsisWidth + collapsedWidths[collapsedWidths.length - 1];\n if (minCollapsedWidth > navWidth) {\n return (navWidth - ellipsisWidth) / 2;\n }\n }\n if (itemsCount === 2) {\n const minCollapsedWidth = collapsedWidths[0] + collapsedWidths[1];\n if (minCollapsedWidth > navWidth) {\n return navWidth / 2;\n }\n }\n if (itemsCount === 1) {\n return Math.min(navWidth, collapsedWidths[0]);\n }\n return defaultMinBreadcrumbWidth;\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GeneratedAnalyticsMetadataExpandableSectionExpand } from '../../expandable-section/analytics-metadata/interfaces';
|
|
2
|
+
export interface GeneratedAnalyticsMetadataSideNavigationClick {
|
|
3
|
+
action: 'click';
|
|
4
|
+
detail: {
|
|
5
|
+
label: string;
|
|
6
|
+
position?: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
external: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type GeneratedAnalyticsMetadataSideNavigationExpand = GeneratedAnalyticsMetadataExpandableSectionExpand;
|
|
12
|
+
export interface GeneratedAnalyticsMetadataSideNavigationComponent {
|
|
13
|
+
name: 'awsui.SideNavigation';
|
|
14
|
+
label: string;
|
|
15
|
+
properties: {
|
|
16
|
+
activeHref: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/side-navigation/analytics-metadata/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iDAAiD,EAAE,MAAM,wDAAwD,CAAC;AAE3H,MAAM,WAAW,6CAA6C;IAC5D,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,MAAM,8CAA8C,GAAG,iDAAiD,CAAC;AAE/G,MAAM,WAAW,iDAAiD;IAChE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/side-navigation/analytics-metadata/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { GeneratedAnalyticsMetadataExpandableSectionExpand } from '../../expandable-section/analytics-metadata/interfaces';\n\nexport interface GeneratedAnalyticsMetadataSideNavigationClick {\n action: 'click';\n detail: {\n label: string;\n position?: string;\n href?: string;\n external: string;\n };\n}\n\nexport type GeneratedAnalyticsMetadataSideNavigationExpand = GeneratedAnalyticsMetadataExpandableSectionExpand;\n\nexport interface GeneratedAnalyticsMetadataSideNavigationComponent {\n name: 'awsui.SideNavigation';\n label: string;\n properties: {\n activeHref: string;\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,KAAU,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,eAkBnF"}
|
|
@@ -2,13 +2,22 @@ import { __rest } from "tslib";
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';
|
|
5
6
|
import useBaseComponent from '../internal/hooks/use-base-component';
|
|
6
7
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
7
8
|
import { InternalSideNavigation } from './internal';
|
|
9
|
+
import analyticsSelectors from './analytics-metadata/styles.css.js';
|
|
8
10
|
export default function SideNavigation(_a) {
|
|
9
11
|
var { items = [] } = _a, props = __rest(_a, ["items"]);
|
|
10
12
|
const internalProps = useBaseComponent('SideNavigation');
|
|
11
|
-
|
|
13
|
+
const componentAnalyticMetadata = {
|
|
14
|
+
name: 'awsui.SideNavigation',
|
|
15
|
+
label: `.${analyticsSelectors['header-link-text']}`,
|
|
16
|
+
properties: {
|
|
17
|
+
activeHref: props.activeHref || '',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
return (React.createElement(InternalSideNavigation, Object.assign({}, props, internalProps, { items: items }, getAnalyticsMetadataAttribute({ component: componentAnalyticMetadata }))));
|
|
12
21
|
}
|
|
13
22
|
applyDisplayName(SideNavigation, 'SideNavigation');
|
|
14
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/side-navigation/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/side-navigation/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAIpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAA6C;QAA7C,EAAE,KAAK,GAAG,EAAE,OAAiC,EAA5B,KAAK,cAAtB,SAAwB,CAAF;IAC3D,MAAM,aAAa,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAEzD,MAAM,yBAAyB,GAAsD;QACnF,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,IAAI,kBAAkB,CAAC,kBAAkB,CAAC,EAAE;QACnD,UAAU,EAAE;YACV,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,EAAE;SACnC;KACF,CAAC;IACF,OAAO,CACL,oBAAC,sBAAsB,oBACjB,KAAK,EACL,aAAa,IACjB,KAAK,EAAE,KAAK,IACR,6BAA6B,CAAC,EAAE,SAAS,EAAE,yBAAyB,EAAE,CAAC,EAC3E,CACH,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataSideNavigationComponent } from './analytics-metadata/interfaces';\nimport { SideNavigationProps } from './interfaces';\nimport { InternalSideNavigation } from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { SideNavigationProps };\n\nexport default function SideNavigation({ items = [], ...props }: SideNavigationProps) {\n const internalProps = useBaseComponent('SideNavigation');\n\n const componentAnalyticMetadata: GeneratedAnalyticsMetadataSideNavigationComponent = {\n name: 'awsui.SideNavigation',\n label: `.${analyticsSelectors['header-link-text']}`,\n properties: {\n activeHref: props.activeHref || '',\n },\n };\n return (\n <InternalSideNavigation\n {...props}\n {...internalProps}\n items={items}\n {...getAnalyticsMetadataAttribute({ component: componentAnalyticMetadata })}\n />\n );\n}\n\napplyDisplayName(SideNavigation, 'SideNavigation');\n"]}
|
|
@@ -4,6 +4,7 @@ interface BaseItemComponentProps {
|
|
|
4
4
|
activeHref?: string;
|
|
5
5
|
fireChange: (item: SideNavigationProps.Section | SideNavigationProps.ExpandableLinkGroup, expanded: boolean) => void;
|
|
6
6
|
fireFollow: (item: SideNavigationProps.Link | SideNavigationProps.Header | SideNavigationProps.LinkGroup | SideNavigationProps.ExpandableLinkGroup, event: React.SyntheticEvent | Event) => void;
|
|
7
|
+
position?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface HeaderProps extends BaseItemComponentProps {
|
|
9
10
|
definition: SideNavigationProps.Header;
|
|
@@ -13,6 +14,6 @@ export interface NavigationItemsListProps extends BaseItemComponentProps {
|
|
|
13
14
|
items: ReadonlyArray<SideNavigationProps.Item>;
|
|
14
15
|
variant: 'section' | 'section-group' | 'link-group' | 'expandable-link-group' | 'root';
|
|
15
16
|
}
|
|
16
|
-
export declare function NavigationItemsList({ items, variant, activeHref, fireChange, fireFollow }: NavigationItemsListProps): JSX.Element;
|
|
17
|
+
export declare function NavigationItemsList({ items, variant, activeHref, fireChange, fireFollow, position, }: NavigationItemsListProps): JSX.Element;
|
|
17
18
|
export {};
|
|
18
19
|
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/parts.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../src/side-navigation/parts.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAapF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAMnD,UAAU,sBAAsB;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,CAAC,IAAI,EAAE,mBAAmB,CAAC,OAAO,GAAG,mBAAmB,CAAC,mBAAmB,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACrH,UAAU,EAAE,CACV,IAAI,EACA,mBAAmB,CAAC,IAAI,GACxB,mBAAmB,CAAC,MAAM,GAC1B,mBAAmB,CAAC,SAAS,GAC7B,mBAAmB,CAAC,mBAAmB,EAC3C,KAAK,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,KAChC,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAY,SAAQ,sBAAsB;IACzD,UAAU,EAAE,mBAAmB,CAAC,MAAM,CAAC;CACxC;AAED,wBAAgB,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,WAAW,eA+CzE;AAED,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,KAAK,EAAE,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,uBAAuB,GAAG,MAAM,CAAC;CACxF;AAQD,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAa,GACd,EAAE,wBAAwB,eAgJ1B"}
|