@cloudscape-design/components 3.0.60 → 3.0.62

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.
Files changed (33) hide show
  1. package/calendar/grid/day/index.d.ts +2 -2
  2. package/calendar/grid/day/index.d.ts.map +1 -1
  3. package/calendar/grid/day/index.js +5 -4
  4. package/calendar/grid/day/index.js.map +1 -1
  5. package/calendar/grid/index.d.ts.map +1 -1
  6. package/calendar/grid/index.js.map +1 -1
  7. package/calendar/styles.css.js +20 -20
  8. package/calendar/styles.scoped.css +69 -41
  9. package/calendar/styles.selectors.js +20 -20
  10. package/date-input/internal.js +1 -1
  11. package/date-input/internal.js.map +1 -1
  12. package/date-range-picker/calendar/grids/day/styles.css.js +21 -21
  13. package/date-range-picker/calendar/grids/day/styles.scoped.css +41 -41
  14. package/date-range-picker/calendar/grids/day/styles.selectors.js +21 -21
  15. package/date-range-picker/calendar/index.js +23 -27
  16. package/date-range-picker/calendar/index.js.map +1 -1
  17. package/date-range-picker/styles.css.js +40 -41
  18. package/date-range-picker/styles.scoped.css +52 -53
  19. package/date-range-picker/styles.selectors.js +40 -41
  20. package/internal/base-component/styles.scoped.css +0 -8
  21. package/internal/environment.js +1 -1
  22. package/link/internal.d.ts.map +1 -1
  23. package/link/internal.js +1 -1
  24. package/link/internal.js.map +1 -1
  25. package/package.json +1 -1
  26. package/property-filter/interfaces.d.ts +1 -5
  27. package/property-filter/interfaces.d.ts.map +1 -1
  28. package/property-filter/interfaces.js.map +1 -1
  29. package/property-filter/styles.css.js +25 -25
  30. package/property-filter/styles.scoped.css +25 -26
  31. package/property-filter/styles.selectors.js +25 -25
  32. package/property-filter/token.d.ts.map +1 -1
  33. package/property-filter/token.js.map +1 -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
- .awsui_calendar_mgja0_z4fdg_93:not(#\9) {
94
- animation: awsui_awsui-motion-fade-in-0_mgja0_z4fdg_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
93
+ .awsui_calendar_mgja0_x71bz_93:not(#\9) {
94
+ animation: awsui_awsui-motion-fade-in-0_mgja0_x71bz_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
95
95
  animation-fill-mode: both;
96
96
  }
97
- @keyframes awsui_awsui-motion-fade-in-0_mgja0_z4fdg_1 {
97
+ @keyframes awsui_awsui-motion-fade-in-0_mgja0_x71bz_1 {
98
98
  from {
99
99
  opacity: 0;
100
100
  }
@@ -103,12 +103,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
103
103
  }
104
104
  }
105
105
  @media (prefers-reduced-motion: reduce) {
106
- .awsui_calendar_mgja0_z4fdg_93:not(#\9) {
106
+ .awsui_calendar_mgja0_x71bz_93:not(#\9) {
107
107
  animation: none;
108
108
  transition: none;
109
109
  }
110
110
  }
111
- .awsui-motion-disabled .awsui_calendar_mgja0_z4fdg_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_z4fdg_93:not(#\9) {
111
+ .awsui-motion-disabled .awsui_calendar_mgja0_x71bz_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_x71bz_93:not(#\9) {
112
112
  animation: none;
113
113
  transition: none;
114
114
  }
@@ -117,7 +117,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
117
117
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
118
118
  SPDX-License-Identifier: Apache-2.0
119
119
  */
120
- .awsui_root_mgja0_z4fdg_120:not(#\9) {
120
+ .awsui_root_mgja0_x71bz_120:not(#\9) {
121
121
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
122
122
  border-collapse: separate;
123
123
  border-spacing: 0;
@@ -155,28 +155,28 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
155
155
  max-width: 32em;
156
156
  }
157
157
 
158
- .awsui_trigger-wrapper_mgja0_z4fdg_132:not(#\9) {
158
+ .awsui_trigger-wrapper_mgja0_x71bz_132:not(#\9) {
159
159
  min-width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
160
160
  }
161
161
 
162
- .awsui_trigger-flexbox_mgja0_z4fdg_136:not(#\9) {
162
+ .awsui_trigger-flexbox_mgja0_x71bz_136:not(#\9) {
163
163
  display: flex;
164
164
  }
165
165
 
166
- .awsui_calendar_mgja0_z4fdg_93:not(#\9) {
166
+ .awsui_calendar_mgja0_x71bz_93:not(#\9) {
167
167
  display: block;
168
168
  width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px));
169
169
  }
170
- .awsui_calendar_mgja0_z4fdg_93.awsui_one-grid_mgja0_z4fdg_144:not(#\9) {
170
+ .awsui_calendar_mgja0_x71bz_93.awsui_one-grid_mgja0_x71bz_144:not(#\9) {
171
171
  width: var(--size-calendar-grid-width-lxsx0p, 238px);
172
172
  }
173
- .awsui_calendar-header_mgja0_z4fdg_147:not(#\9) {
173
+ .awsui_calendar-header_mgja0_x71bz_147:not(#\9) {
174
174
  display: flex;
175
175
  justify-content: space-between;
176
176
  align-items: center;
177
177
  position: relative;
178
178
  }
179
- .awsui_calendar-header-months-wrapper_mgja0_z4fdg_153:not(#\9) {
179
+ .awsui_calendar-header-months-wrapper_mgja0_x71bz_153:not(#\9) {
180
180
  position: absolute;
181
181
  right: 0;
182
182
  left: 0;
@@ -188,7 +188,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
188
188
  flex: 1;
189
189
  pointer-events: none;
190
190
  }
191
- .awsui_calendar-header-month_mgja0_z4fdg_153:not(#\9) {
191
+ .awsui_calendar-header-month_mgja0_x71bz_153:not(#\9) {
192
192
  font-size: var(--font-body-m-size-sregvd, 14px);
193
193
  line-height: var(--font-body-m-line-height-i7xxvv, 22px);
194
194
  font-weight: 700;
@@ -196,17 +196,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
196
196
  display: flex;
197
197
  pointer-events: auto;
198
198
  }
199
- .awsui_calendar-next-month-btn_mgja0_z4fdg_173:not(#\9) {
199
+ .awsui_calendar-next-month-btn_mgja0_x71bz_173:not(#\9) {
200
200
  /* used for identifying element */
201
201
  }
202
- .awsui_calendar-prev-month-btn_mgja0_z4fdg_176:not(#\9) {
202
+ .awsui_calendar-prev-month-btn_mgja0_x71bz_176:not(#\9) {
203
203
  /* used for identifying element */
204
204
  }
205
- .awsui_calendar-day-names_mgja0_z4fdg_179:not(#\9) {
205
+ .awsui_calendar-day-names_mgja0_x71bz_179:not(#\9) {
206
206
  display: flex;
207
207
  justify-content: stretch;
208
208
  }
209
- .awsui_calendar-day-name_mgja0_z4fdg_179:not(#\9) {
209
+ .awsui_calendar-day-name_mgja0_x71bz_179:not(#\9) {
210
210
  flex: 1 1 0%;
211
211
  width: 0;
212
212
  word-break: break-word;
@@ -217,133 +217,132 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
217
217
  line-height: var(--font-body-s-line-height-kdsbrl, 16px);
218
218
  letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
219
219
  }
220
- .awsui_calendar-week_mgja0_z4fdg_194:not(#\9) {
220
+ .awsui_calendar-week_mgja0_x71bz_194:not(#\9) {
221
221
  display: flex;
222
222
  justify-content: stretch;
223
223
  }
224
224
 
225
- .awsui_first-grid_mgja0_z4fdg_199:not(#\9),
226
- .awsui_second-grid_mgja0_z4fdg_200:not(#\9) {
225
+ .awsui_first-grid_mgja0_x71bz_199:not(#\9),
226
+ .awsui_second-grid_mgja0_x71bz_200:not(#\9) {
227
227
  /* used in test-utils */
228
228
  }
229
229
 
230
- .awsui_grid_mgja0_z4fdg_204:not(#\9) {
230
+ .awsui_grid_mgja0_x71bz_204:not(#\9) {
231
231
  width: var(--size-calendar-grid-width-lxsx0p, 238px);
232
232
  }
233
233
 
234
- .awsui_date-and-time-wrapper_mgja0_z4fdg_208:not(#\9) {
235
- display: flex;
234
+ .awsui_date-and-time-wrapper_mgja0_x71bz_208:not(#\9) {
236
235
  width: var(--size-calendar-grid-width-lxsx0p, 238px);
237
236
  }
238
- .awsui_date-and-time-wrapper__date_mgja0_z4fdg_212:not(#\9) {
239
- margin-right: var(--space-xs-rsr2qu, 8px);
240
- }
241
- .awsui_date-and-time-wrapper_mgja0_z4fdg_208 > .awsui_date-and-time-wrapper__time_mgja0_z4fdg_215:not(#\9), .awsui_date-and-time-wrapper_mgja0_z4fdg_208 > .awsui_date-and-time-wrapper__date_mgja0_z4fdg_212:not(#\9) {
242
- flex-grow: 1;
237
+
238
+ .awsui_date-and-time-wrapper_mgja0_x71bz_208:not(#\9):not(.awsui_date-only_mgja0_x71bz_212) {
239
+ display: grid;
240
+ column-gap: var(--space-xs-rsr2qu, 8px);
241
+ grid-template-columns: 1fr 1fr;
243
242
  }
244
243
 
245
- .awsui_date-and-time-constrainttext_mgja0_z4fdg_219:not(#\9) {
244
+ .awsui_date-and-time-constrainttext_mgja0_x71bz_218:not(#\9) {
246
245
  color: var(--color-text-form-secondary-ih9x7l, #5f6b7a);
247
246
  font-size: var(--font-body-s-size-ukw2p9, 12px);
248
247
  line-height: var(--font-body-s-line-height-kdsbrl, 16px);
249
248
  letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
250
249
  }
251
250
 
252
- .awsui_footer_mgja0_z4fdg_226:not(#\9) {
251
+ .awsui_footer_mgja0_x71bz_225:not(#\9) {
253
252
  display: flex;
254
253
  flex-wrap: wrap;
255
254
  justify-content: flex-end;
256
255
  border-top: 1px solid var(--color-border-dropdown-item-default-faosd8, #e9ebed);
257
256
  padding: 0 var(--space-l-4vl6xu, 20px) var(--space-s-hv8c1d, 12px);
258
257
  }
259
- .awsui_footer_mgja0_z4fdg_226.awsui_has-clear-button_mgja0_z4fdg_233:not(#\9) {
258
+ .awsui_footer_mgja0_x71bz_225.awsui_has-clear-button_mgja0_x71bz_232:not(#\9) {
260
259
  justify-content: space-between;
261
260
  }
262
- .awsui_footer_mgja0_z4fdg_226.awsui_one-grid_mgja0_z4fdg_144:not(#\9) {
261
+ .awsui_footer_mgja0_x71bz_225.awsui_one-grid_mgja0_x71bz_144:not(#\9) {
263
262
  padding: 0 var(--space-xs-rsr2qu, 8px) var(--space-s-hv8c1d, 12px);
264
263
  }
265
264
 
266
- .awsui_footer-button-wrapper_mgja0_z4fdg_240:not(#\9) {
265
+ .awsui_footer-button-wrapper_mgja0_x71bz_239:not(#\9) {
267
266
  padding-top: var(--space-s-hv8c1d, 12px);
268
267
  }
269
268
 
270
- .awsui_icon-wrapper_mgja0_z4fdg_244:not(#\9) {
269
+ .awsui_icon-wrapper_mgja0_x71bz_243:not(#\9) {
271
270
  color: var(--color-text-interactive-default-eg5fsa, #414d5c);
272
271
  margin-right: var(--space-xs-rsr2qu, 8px);
273
272
  }
274
273
 
275
- .awsui_label_mgja0_z4fdg_249:not(#\9) {
274
+ .awsui_label_mgja0_x71bz_248:not(#\9) {
276
275
  -webkit-user-select: text;
277
276
  user-select: text;
278
277
  cursor: default;
279
278
  }
280
279
 
281
- .awsui_label_mgja0_z4fdg_249.awsui_label-enabled_mgja0_z4fdg_254:not(#\9):hover > .awsui_trigger-flexbox_mgja0_z4fdg_136 > .awsui_icon-wrapper_mgja0_z4fdg_244 {
280
+ .awsui_label_mgja0_x71bz_248.awsui_label-enabled_mgja0_x71bz_253:not(#\9):hover > .awsui_trigger-flexbox_mgja0_x71bz_136 > .awsui_icon-wrapper_mgja0_x71bz_243 {
282
281
  color: var(--color-text-interactive-hover-v3lasm, #000716);
283
282
  }
284
283
 
285
- .awsui_label-text_mgja0_z4fdg_258:not(#\9) {
284
+ .awsui_label-text_mgja0_x71bz_257:not(#\9) {
286
285
  color: var(--color-text-input-placeholder-j53j3c, #5f6b7a);
287
286
  font-style: italic;
288
287
  }
289
288
 
290
- .awsui_mode-switch_mgja0_z4fdg_263:not(#\9) {
289
+ .awsui_mode-switch_mgja0_x71bz_262:not(#\9) {
291
290
  /* used in test-utils */
292
291
  }
293
292
 
294
- .awsui_dropdown_mgja0_z4fdg_267:not(#\9) {
293
+ .awsui_dropdown_mgja0_x71bz_266:not(#\9) {
295
294
  overflow: auto;
296
295
  border-top: 1px solid var(--color-border-container-top-srcvx4, transparent);
297
296
  border-bottom: 1px solid var(--color-border-container-top-srcvx4, transparent);
298
297
  border-radius: var(--border-radius-dropdown-ujknaf, 8px);
299
298
  }
300
- .awsui_dropdown_mgja0_z4fdg_267:not(#\9):focus {
299
+ .awsui_dropdown_mgja0_x71bz_266:not(#\9):focus {
301
300
  outline: none;
302
301
  }
303
- .awsui_dropdown_mgja0_z4fdg_267[data-awsui-focus-visible=true]:not(#\9):focus {
302
+ .awsui_dropdown_mgja0_x71bz_266[data-awsui-focus-visible=true]:not(#\9):focus {
304
303
  outline: 2px dotted transparent;
305
304
  outline-offset: 2px;
306
305
  border-radius: var(--border-radius-dropdown-ujknaf, 8px);
307
306
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
308
307
  }
309
308
 
310
- .awsui_dropdown-content_mgja0_z4fdg_283:not(#\9) {
309
+ .awsui_dropdown-content_mgja0_x71bz_282:not(#\9) {
311
310
  -webkit-user-select: text;
312
311
  user-select: text;
313
312
  background-color: var(--color-background-container-content-i8i4a0, #ffffff);
314
313
  width: calc(2 * var(--size-calendar-grid-width-lxsx0p, 238px) + var(--space-xs-rsr2qu, 8px) + 2 * var(--space-l-4vl6xu, 20px));
315
314
  }
316
- .awsui_dropdown-content_mgja0_z4fdg_283.awsui_one-grid_mgja0_z4fdg_144:not(#\9) {
315
+ .awsui_dropdown-content_mgja0_x71bz_282.awsui_one-grid_mgja0_x71bz_144:not(#\9) {
317
316
  width: calc(var(--size-calendar-grid-width-lxsx0p, 238px) + 2 * var(--space-l-4vl6xu, 20px));
318
317
  }
319
318
 
320
- .awsui_start-date-input_mgja0_z4fdg_292:not(#\9),
321
- .awsui_start-time-input_mgja0_z4fdg_293:not(#\9),
322
- .awsui_end-date-input_mgja0_z4fdg_294:not(#\9),
323
- .awsui_end-time-input_mgja0_z4fdg_295:not(#\9) {
319
+ .awsui_start-date-input_mgja0_x71bz_291:not(#\9),
320
+ .awsui_start-time-input_mgja0_x71bz_292:not(#\9),
321
+ .awsui_end-date-input_mgja0_x71bz_293:not(#\9),
322
+ .awsui_end-time-input_mgja0_x71bz_294:not(#\9) {
324
323
  /* used in test-utils */
325
324
  }
326
325
 
327
- .awsui_validation-section_mgja0_z4fdg_299:not(#\9) {
326
+ .awsui_validation-section_mgja0_x71bz_298:not(#\9) {
328
327
  /* used in test-utils */
329
328
  }
330
329
 
331
- .awsui_validation-error_mgja0_z4fdg_303:not(#\9) {
330
+ .awsui_validation-error_mgja0_x71bz_302:not(#\9) {
332
331
  /* used in test-utils */
333
332
  }
334
333
 
335
- .awsui_clear-button_mgja0_z4fdg_307:not(#\9) {
334
+ .awsui_clear-button_mgja0_x71bz_306:not(#\9) {
336
335
  /* used in test-utils */
337
336
  }
338
337
 
339
- .awsui_apply-button_mgja0_z4fdg_311:not(#\9) {
338
+ .awsui_apply-button_mgja0_x71bz_310:not(#\9) {
340
339
  /* used in test-utils */
341
340
  }
342
341
 
343
- .awsui_cancel-button_mgja0_z4fdg_315:not(#\9) {
342
+ .awsui_cancel-button_mgja0_x71bz_314:not(#\9) {
344
343
  /* used in test-utils */
345
344
  }
346
345
 
347
- .awsui_calendar-aria-live_mgja0_z4fdg_319:not(#\9) {
346
+ .awsui_calendar-aria-live_mgja0_x71bz_318:not(#\9) {
348
347
  /* used in test-utils */
349
348
  }
@@ -2,46 +2,45 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "calendar": "awsui_calendar_mgja0_z4fdg_93",
6
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_z4fdg_1",
7
- "root": "awsui_root_mgja0_z4fdg_120",
8
- "trigger-wrapper": "awsui_trigger-wrapper_mgja0_z4fdg_132",
9
- "trigger-flexbox": "awsui_trigger-flexbox_mgja0_z4fdg_136",
10
- "one-grid": "awsui_one-grid_mgja0_z4fdg_144",
11
- "calendar-header": "awsui_calendar-header_mgja0_z4fdg_147",
12
- "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_z4fdg_153",
13
- "calendar-header-month": "awsui_calendar-header-month_mgja0_z4fdg_153",
14
- "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_z4fdg_173",
15
- "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_z4fdg_176",
16
- "calendar-day-names": "awsui_calendar-day-names_mgja0_z4fdg_179",
17
- "calendar-day-name": "awsui_calendar-day-name_mgja0_z4fdg_179",
18
- "calendar-week": "awsui_calendar-week_mgja0_z4fdg_194",
19
- "first-grid": "awsui_first-grid_mgja0_z4fdg_199",
20
- "second-grid": "awsui_second-grid_mgja0_z4fdg_200",
21
- "grid": "awsui_grid_mgja0_z4fdg_204",
22
- "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_z4fdg_208",
23
- "date-and-time-wrapper__date": "awsui_date-and-time-wrapper__date_mgja0_z4fdg_212",
24
- "date-and-time-wrapper__time": "awsui_date-and-time-wrapper__time_mgja0_z4fdg_215",
25
- "date-and-time-constrainttext": "awsui_date-and-time-constrainttext_mgja0_z4fdg_219",
26
- "footer": "awsui_footer_mgja0_z4fdg_226",
27
- "has-clear-button": "awsui_has-clear-button_mgja0_z4fdg_233",
28
- "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_z4fdg_240",
29
- "icon-wrapper": "awsui_icon-wrapper_mgja0_z4fdg_244",
30
- "label": "awsui_label_mgja0_z4fdg_249",
31
- "label-enabled": "awsui_label-enabled_mgja0_z4fdg_254",
32
- "label-text": "awsui_label-text_mgja0_z4fdg_258",
33
- "mode-switch": "awsui_mode-switch_mgja0_z4fdg_263",
34
- "dropdown": "awsui_dropdown_mgja0_z4fdg_267",
35
- "dropdown-content": "awsui_dropdown-content_mgja0_z4fdg_283",
36
- "start-date-input": "awsui_start-date-input_mgja0_z4fdg_292",
37
- "start-time-input": "awsui_start-time-input_mgja0_z4fdg_293",
38
- "end-date-input": "awsui_end-date-input_mgja0_z4fdg_294",
39
- "end-time-input": "awsui_end-time-input_mgja0_z4fdg_295",
40
- "validation-section": "awsui_validation-section_mgja0_z4fdg_299",
41
- "validation-error": "awsui_validation-error_mgja0_z4fdg_303",
42
- "clear-button": "awsui_clear-button_mgja0_z4fdg_307",
43
- "apply-button": "awsui_apply-button_mgja0_z4fdg_311",
44
- "cancel-button": "awsui_cancel-button_mgja0_z4fdg_315",
45
- "calendar-aria-live": "awsui_calendar-aria-live_mgja0_z4fdg_319"
5
+ "calendar": "awsui_calendar_mgja0_x71bz_93",
6
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_x71bz_1",
7
+ "root": "awsui_root_mgja0_x71bz_120",
8
+ "trigger-wrapper": "awsui_trigger-wrapper_mgja0_x71bz_132",
9
+ "trigger-flexbox": "awsui_trigger-flexbox_mgja0_x71bz_136",
10
+ "one-grid": "awsui_one-grid_mgja0_x71bz_144",
11
+ "calendar-header": "awsui_calendar-header_mgja0_x71bz_147",
12
+ "calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_x71bz_153",
13
+ "calendar-header-month": "awsui_calendar-header-month_mgja0_x71bz_153",
14
+ "calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_x71bz_173",
15
+ "calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_x71bz_176",
16
+ "calendar-day-names": "awsui_calendar-day-names_mgja0_x71bz_179",
17
+ "calendar-day-name": "awsui_calendar-day-name_mgja0_x71bz_179",
18
+ "calendar-week": "awsui_calendar-week_mgja0_x71bz_194",
19
+ "first-grid": "awsui_first-grid_mgja0_x71bz_199",
20
+ "second-grid": "awsui_second-grid_mgja0_x71bz_200",
21
+ "grid": "awsui_grid_mgja0_x71bz_204",
22
+ "date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_x71bz_208",
23
+ "date-only": "awsui_date-only_mgja0_x71bz_212",
24
+ "date-and-time-constrainttext": "awsui_date-and-time-constrainttext_mgja0_x71bz_218",
25
+ "footer": "awsui_footer_mgja0_x71bz_225",
26
+ "has-clear-button": "awsui_has-clear-button_mgja0_x71bz_232",
27
+ "footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_x71bz_239",
28
+ "icon-wrapper": "awsui_icon-wrapper_mgja0_x71bz_243",
29
+ "label": "awsui_label_mgja0_x71bz_248",
30
+ "label-enabled": "awsui_label-enabled_mgja0_x71bz_253",
31
+ "label-text": "awsui_label-text_mgja0_x71bz_257",
32
+ "mode-switch": "awsui_mode-switch_mgja0_x71bz_262",
33
+ "dropdown": "awsui_dropdown_mgja0_x71bz_266",
34
+ "dropdown-content": "awsui_dropdown-content_mgja0_x71bz_282",
35
+ "start-date-input": "awsui_start-date-input_mgja0_x71bz_291",
36
+ "start-time-input": "awsui_start-time-input_mgja0_x71bz_292",
37
+ "end-date-input": "awsui_end-date-input_mgja0_x71bz_293",
38
+ "end-time-input": "awsui_end-time-input_mgja0_x71bz_294",
39
+ "validation-section": "awsui_validation-section_mgja0_x71bz_298",
40
+ "validation-error": "awsui_validation-error_mgja0_x71bz_302",
41
+ "clear-button": "awsui_clear-button_mgja0_x71bz_306",
42
+ "apply-button": "awsui_apply-button_mgja0_x71bz_310",
43
+ "cancel-button": "awsui_cancel-button_mgja0_x71bz_314",
44
+ "calendar-aria-live": "awsui_calendar-aria-live_mgja0_x71bz_318"
46
45
  };
47
46
 
@@ -242,7 +242,6 @@
242
242
  --color-border-dropdown-item-default-faosd8:#e9ebed;
243
243
  --color-border-dropdown-item-hover-tyzq9m:#7d8998;
244
244
  --color-border-dropdown-item-dimmed-hover-6dhy15:#7d8998;
245
- --color-border-dropdown-item-selected-eahq2j:#0972d3;
246
245
  --color-border-dropdown-item-top-xnzq48:transparent;
247
246
  --color-border-input-default-dtyu8d:#9ba7b6;
248
247
  --color-border-input-disabled-x2lopj:#e9ebed;
@@ -285,7 +284,6 @@
285
284
  --color-text-button-primary-default-340wh6:#ffffff;
286
285
  --color-text-button-primary-hover-vzqjpi:#ffffff;
287
286
  --color-text-calendar-day-hover-graajh:#000716;
288
- --color-text-calendar-day-selected-64o9sq:#0972d3;
289
287
  --color-text-calendar-month-elf7e9:#5f6b7a;
290
288
  --color-text-code-editor-gutter-active-line-3r48bk:#ffffff;
291
289
  --color-text-code-editor-gutter-default-q46j79:#000716;
@@ -797,7 +795,6 @@
797
795
  --color-border-dropdown-group-0utpsr:#414d5c;
798
796
  --color-border-dropdown-item-default-faosd8:#414d5c;
799
797
  --color-border-dropdown-item-hover-tyzq9m:#5f6b7a;
800
- --color-border-dropdown-item-selected-eahq2j:#539fe5;
801
798
  --color-border-input-default-dtyu8d:#5f6b7a;
802
799
  --color-border-input-disabled-x2lopj:#192534;
803
800
  --color-border-item-focused-ap3b6s:#539fe5;
@@ -839,7 +836,6 @@
839
836
  --color-text-button-primary-default-340wh6:#000716;
840
837
  --color-text-button-primary-hover-vzqjpi:#000716;
841
838
  --color-text-calendar-day-hover-graajh:#d1d5db;
842
- --color-text-calendar-day-selected-64o9sq:#539fe5;
843
839
  --color-text-calendar-month-elf7e9:#8d99a8;
844
840
  --color-text-code-editor-gutter-active-line-3r48bk:#000716;
845
841
  --color-text-code-editor-gutter-default-q46j79:#d1d5db;
@@ -1033,7 +1029,6 @@
1033
1029
  --color-border-dropdown-group-0utpsr:#414d5c;
1034
1030
  --color-border-dropdown-item-default-faosd8:#414d5c;
1035
1031
  --color-border-dropdown-item-hover-tyzq9m:#5f6b7a;
1036
- --color-border-dropdown-item-selected-eahq2j:#539fe5;
1037
1032
  --color-border-input-default-dtyu8d:#5f6b7a;
1038
1033
  --color-border-input-disabled-x2lopj:#192534;
1039
1034
  --color-border-item-focused-ap3b6s:#539fe5;
@@ -1075,7 +1070,6 @@
1075
1070
  --color-text-button-primary-default-340wh6:#000716;
1076
1071
  --color-text-button-primary-hover-vzqjpi:#000716;
1077
1072
  --color-text-calendar-day-hover-graajh:#d1d5db;
1078
- --color-text-calendar-day-selected-64o9sq:#539fe5;
1079
1073
  --color-text-calendar-month-elf7e9:#8d99a8;
1080
1074
  --color-text-code-editor-gutter-active-line-3r48bk:#000716;
1081
1075
  --color-text-code-editor-gutter-default-q46j79:#d1d5db;
@@ -1203,7 +1197,6 @@
1203
1197
  --color-border-dropdown-group-0utpsr:#414d5c;
1204
1198
  --color-border-dropdown-item-default-faosd8:#414d5c;
1205
1199
  --color-border-dropdown-item-hover-tyzq9m:#5f6b7a;
1206
- --color-border-dropdown-item-selected-eahq2j:#539fe5;
1207
1200
  --color-border-input-default-dtyu8d:#5f6b7a;
1208
1201
  --color-border-input-disabled-x2lopj:#192534;
1209
1202
  --color-border-item-focused-ap3b6s:#539fe5;
@@ -1245,7 +1238,6 @@
1245
1238
  --color-text-button-primary-default-340wh6:#000716;
1246
1239
  --color-text-button-primary-hover-vzqjpi:#000716;
1247
1240
  --color-text-calendar-day-hover-graajh:#d1d5db;
1248
- --color-text-calendar-day-selected-64o9sq:#539fe5;
1249
1241
  --color-text-calendar-month-elf7e9:#8d99a8;
1250
1242
  --color-text-code-editor-gutter-active-line-3r48bk:#000716;
1251
1243
  --color-text-code-editor-gutter-default-q46j79:#d1d5db;
@@ -1,5 +1,5 @@
1
1
 
2
- export var PACKAGE_VERSION = '3.0.0 (8d6b4ae)';
2
+ export var PACKAGE_VERSION = '3.0.0 (d738076)';
3
3
  export var THEME = 'open-source-visual-refresh';
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAUlF,QAAA,MAAM,YAAY;cAHJ,SAAS,CAAC,SAAS,CAAC,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU;uCA+G1E,CAAC;AAqBF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAStC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAUlF,QAAA,MAAM,YAAY;cAHJ,SAAS,CAAC,SAAS,CAAC,GAAG,gBAAgB,GAAG,MAAM,GAAG,UAAU;uCAgH1E,CAAC;AAqBF,eAAe,YAAY,CAAC"}
package/link/internal.js CHANGED
@@ -48,7 +48,7 @@ var InternalLink = React.forwardRef(function (_a, ref) {
48
48
  var sharedProps = __assign(__assign(__assign({}, focusVisible), baseProps), {
49
49
  // https://github.com/microsoft/TypeScript/issues/36659
50
50
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
- ref: useMergeRefs(linkRef, __internalRootRef), className: clsx(styles.link, baseProps.className, applyButtonStyles ? styles.button : null, styles[getVariantStyle(variant)], styles[getFontSizeStyle(variant, fontSize)], styles[getColorStyle(variant, color)]), 'aria-label': ariaLabel });
51
+ ref: useMergeRefs(linkRef, __internalRootRef), className: clsx(styles.link, baseProps.className, applyButtonStyles ? styles.button : null, styles[getVariantStyle(variant)], styles[getFontSizeStyle(variant, fontSize)], styles[getColorStyle(variant, color)]), 'aria-label': ariaLabel && external && externalIconAriaLabel ? ariaLabel + ', ' + externalIconAriaLabel : ariaLabel });
52
52
  var content = (React.createElement(React.Fragment, null,
53
53
  children,
54
54
  external && (React.createElement("span", { className: styles['icon-wrapper'] },
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAOhE,IAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CACnC,UACE,EAcoB,EACpB,GAA6B;IAd3B,IAAA,eAAqB,EAArB,OAAO,mBAAG,WAAW,KAAA,EACrB,gBAAmB,EAAnB,QAAQ,mBAAG,QAAQ,KAAA,EACnB,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAChB,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,GAAG,SAAA,EACH,SAAS,eAAA,EACT,qBAAqB,2BAAA,EACrB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,yBAAwB,EAAxB,iBAAiB,mBAAG,IA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IAAE,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,KACtG,OAAO,CACN,CACL,CAAC;KACH;IAED,OAAO;IACL,kDAAkD;IAClD,qDAAqD;IACrD,sCAAO,WAAW,IAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,KAC3F,OAAO,CACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,OAAyD;IAChF,OAAO,kBAAW,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAE,CAAC;AACrD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqC,EAAE,QAAuC;IACtG,QAAQ,OAAO,EAAE;QACf,KAAK,MAAM;YACT,OAAO,kBAAkB,CAAC;QAC5B,KAAK,mBAAmB;YACtB,OAAO,qBAAqB,CAAC;QAC/B;YACE,OAAO,oBAAa,QAAQ,CAAE,CAAC;KAClC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC,EAAE,KAAiC;IAC7F,OAAO,gBAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport InternalIcon from '../icon/internal';\nimport styles from './styles.css.js';\nimport useFocusVisible from '../internal/hooks/focus-visible';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { KeyCode } from '../internal/keycode';\nimport { LinkProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\n\ntype InternalLinkProps = InternalBaseComponentProps &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant = 'secondary',\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n children,\n __internalRootRef = null,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const specialStyles = ['top-navigation', 'link', 'recovery'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const focusVisible = useFocusVisible();\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n ...focusVisible,\n ...baseProps,\n // https://github.com/microsoft/TypeScript/issues/36659\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref: useMergeRefs(linkRef as any, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)]\n ),\n 'aria-label': ariaLabel,\n };\n\n const content = (\n <>\n {children}\n {external && (\n <span className={styles['icon-wrapper']}>\n &nbsp;\n <span\n className={styles.icon}\n aria-label={externalIconAriaLabel}\n role={externalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n </>\n );\n\n if (isButton) {\n return (\n <a {...sharedProps} role=\"button\" tabIndex={0} onKeyDown={handleButtonKeyDown} onClick={handleButtonClick}>\n {content}\n </a>\n );\n }\n\n return (\n // we dynamically set proper rel in the code above\n // eslint-disable-next-line react/jsx-no-target-blank\n <a {...sharedProps} target={anchorTarget} rel={anchorRel} href={href} onClick={handleLinkClick}>\n {content}\n </a>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/link/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,YAAY,MAAM,kBAAkB,CAA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,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,KAC3F,OAAO,CACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,eAAe,CAAC,OAAyD;IAChF,OAAO,kBAAW,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAE,CAAC;AACrD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAqC,EAAE,QAAuC;IACtG,QAAQ,OAAO,EAAE;QACf,KAAK,MAAM;YACT,OAAO,kBAAkB,CAAC;QAC5B,KAAK,mBAAmB;YACtB,OAAO,qBAAqB,CAAC;QAC/B;YACE,OAAO,oBAAa,QAAQ,CAAE,CAAC;KAClC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqC,EAAE,KAAiC;IAC7F,OAAO,gBAAS,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAE,CAAC;AAC1D,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport InternalIcon from '../icon/internal';\nimport styles from './styles.css.js';\nimport useFocusVisible from '../internal/hooks/focus-visible';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireCancelableEvent, isPlainLeftClick } from '../internal/events';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { KeyCode } from '../internal/keycode';\nimport { LinkProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { checkSafeUrl } from '../internal/utils/check-safe-url';\n\ntype InternalLinkProps = InternalBaseComponentProps &\n Omit<LinkProps, 'variant'> & {\n variant?: LinkProps['variant'] | 'top-navigation' | 'link' | 'recovery';\n };\n\nconst InternalLink = React.forwardRef(\n (\n {\n variant = 'secondary',\n fontSize = 'body-m',\n color = 'normal',\n external = false,\n target,\n href,\n rel,\n ariaLabel,\n externalIconAriaLabel,\n onFollow,\n children,\n __internalRootRef = null,\n ...props\n }: InternalLinkProps,\n ref: React.Ref<LinkProps.Ref>\n ) => {\n checkSafeUrl('Link', href);\n const isButton = !href;\n const specialStyles = ['top-navigation', 'link', 'recovery'];\n const hasSpecialStyle = specialStyles.indexOf(variant) > -1;\n\n const focusVisible = useFocusVisible();\n const baseProps = getBaseProps(props);\n const anchorTarget = target ?? (external ? '_blank' : undefined);\n const anchorRel = rel ?? (anchorTarget === '_blank' ? 'noopener noreferrer' : undefined);\n\n const fireFollowEvent = (event: React.SyntheticEvent) => {\n fireCancelableEvent(onFollow, { href, external, target: anchorTarget }, event);\n };\n\n const handleLinkClick = (event: React.MouseEvent) => {\n if (isPlainLeftClick(event)) {\n fireFollowEvent(event);\n }\n };\n\n const handleButtonClick = (event: React.MouseEvent) => {\n fireFollowEvent(event);\n };\n\n const handleButtonKeyDown = (event: React.KeyboardEvent) => {\n if (event.keyCode === KeyCode.space || event.keyCode === KeyCode.enter) {\n event.preventDefault();\n fireFollowEvent(event);\n }\n };\n\n const linkRef = useRef<HTMLElement>(null);\n const isVisualRefresh = useVisualRefresh();\n useForwardFocus(ref, linkRef);\n\n // Visual refresh should only add styles to buttons that don't already have unique styles (e.g. primary/secondary variants)\n const applyButtonStyles = isButton && isVisualRefresh && !hasSpecialStyle;\n\n const sharedProps = {\n ...focusVisible,\n ...baseProps,\n // https://github.com/microsoft/TypeScript/issues/36659\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ref: useMergeRefs(linkRef as any, __internalRootRef),\n className: clsx(\n styles.link,\n baseProps.className,\n applyButtonStyles ? styles.button : null,\n styles[getVariantStyle(variant)],\n styles[getFontSizeStyle(variant, fontSize)],\n styles[getColorStyle(variant, color)]\n ),\n 'aria-label':\n ariaLabel && external && externalIconAriaLabel ? ariaLabel + ', ' + externalIconAriaLabel : ariaLabel,\n };\n\n const content = (\n <>\n {children}\n {external && (\n <span className={styles['icon-wrapper']}>\n &nbsp;\n <span\n className={styles.icon}\n aria-label={externalIconAriaLabel}\n role={externalIconAriaLabel ? 'img' : undefined}\n >\n <InternalIcon name=\"external\" size=\"inherit\" />\n </span>\n </span>\n )}\n </>\n );\n\n if (isButton) {\n return (\n <a {...sharedProps} role=\"button\" tabIndex={0} onKeyDown={handleButtonKeyDown} onClick={handleButtonClick}>\n {content}\n </a>\n );\n }\n\n return (\n // we dynamically set proper rel in the code above\n // eslint-disable-next-line react/jsx-no-target-blank\n <a {...sharedProps} target={anchorTarget} rel={anchorRel} href={href} onClick={handleLinkClick}>\n {content}\n </a>\n );\n }\n);\n\nfunction getVariantStyle(variant: Exclude<InternalLinkProps['variant'], undefined>) {\n return `variant-${variant.replace(/^awsui-/, '')}`;\n}\n\nfunction getFontSizeStyle(variant: InternalLinkProps['variant'], fontSize: InternalLinkProps['fontSize']) {\n switch (variant) {\n case 'info':\n return 'font-size-body-s';\n case 'awsui-value-large':\n return 'font-size-display-l';\n default:\n return `font-size-${fontSize}`;\n }\n}\n\nfunction getColorStyle(variant: InternalLinkProps['variant'], color: InternalLinkProps['color']) {\n return `color-${variant === 'info' ? 'normal' : color}`;\n}\n\nexport default InternalLink;\n"]}
package/package.json CHANGED
@@ -111,6 +111,6 @@
111
111
  "./internal/base-component/index.js",
112
112
  "./internal/base-component/styles.css.js"
113
113
  ],
114
- "version": "3.0.60",
114
+ "version": "3.0.62",
115
115
  "license": "Apache-2.0"
116
116
  }
@@ -145,11 +145,7 @@ export declare namespace PropertyFilterProps {
145
145
  type ComparisonOperator = PropertyFilterOperator;
146
146
  type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;
147
147
  type FilteringOption = PropertyFilterOption;
148
- interface FilteringProperty extends PropertyFilterProperty {
149
- groupValuesLabel: string;
150
- propertyLabel: string;
151
- group?: string;
152
- }
148
+ type FilteringProperty = PropertyFilterProperty;
153
149
  interface Query {
154
150
  tokens: ReadonlyArray<PropertyFilterProps.Token>;
155
151
  operation: PropertyFilterProps.JoinOperation;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,gBAAgB;IAC/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,mBAAmB,CAAC,WAAW,CAAC;IAC7C;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;OAUG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;IACjC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC/D;;;;;;;;;OASG;IACH,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAC1E;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACtE;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,SAAS,E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,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n\n export interface FilteringProperty extends PropertyFilterProperty {\n groupValuesLabel: string;\n propertyLabel: string;\n group?: string;\n }\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterProps.ExtendedOperator<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/property-filter/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport { ExpandToViewport } from '../internal/components/dropdown/interfaces';\nimport {\n PropertyFilterOperation,\n PropertyFilterOperator,\n PropertyFilterOperatorExtended,\n PropertyFilterOption,\n PropertyFilterProperty,\n PropertyFilterToken,\n} from '@cloudscape-design/collection-hooks';\n\nexport interface PropertyFilterProps extends BaseComponentProps, ExpandToViewport {\n /**\n * If set to `true`, the filtering input will be disabled.\n * Use it, for example, if you are fetching new items upon filtering change\n * in order to prevent the user from changing the filtering query.\n */\n disabled?: boolean;\n /**\n * An object containing all the necessary localized strings required by the component.\n */\n i18nStrings: PropertyFilterProps.I18nStrings;\n /**\n * Accepts a human-readable, localized string that indicates the number of results. For example, \"1 match\" or \"165 matches.\"\n * If the total number of results is unknown, also include an indication that there may be more results than\n * the number listed. For example, \"25+ matches.\"\n *\n * The count text is only displayed when `query.tokens` isn't empty.\n */\n countText?: string;\n /**\n * An object representing the current query displayed in the property filter. Has two properties: `tokens` and `operation`.\n * `tokens` is an array of objects that will be displayed to the user beneath the filtering input.\n * Each token has the following properties:\n *\n * * value [string]: The string value of the token to be used as a filter.\n * * propertyKey [string]: The key of the corresponding property in filteringProperties.\n * * operator ['<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=']: The operator which indicates how to filter the dataset using this token.\n *\n * `operation` has two valid values [and, or] and controls the join operation to be applied between tokens when filtering the items.\n */\n query: PropertyFilterProps.Query;\n /**\n * If hideOperations it set, the indicator of the operation (that is, `and` or `or`) and the selection of operations\n * (applied to the property and value token) are hidden from the user. Only use when you have a custom\n * filtering logic which combines tokens in different way than the default one. When used, ensure that\n * operations are communicated to the user in another way.\n */\n hideOperations?: boolean;\n /**\n * Fired when the `query` gets changed. Filter the dataset in response to this event using the values in the `detail` object.\n */\n onChange: NonCancelableEventHandler<PropertyFilterProps.Query>;\n /**\n * An array of properties by which the data set can be filtered. Each element has the following properties:\n *\n * * groupValuesLabel [string]: Localized string to display for the 'Values' group label for a specific property.\n * * key [string]: The identifier of this property.\n * * propertyLabel [string]: A human-readable string for the property.\n * * operators [Array]: A list of all operators supported by this property. If you omit the equals operator because your API does not support it, make sure to set `defaultOperator` to a supported operator from this list.\n * * group [string]: Optional identifier of a custom group that this filtering option is assigned to. Use to create additional groups below the default one. Make sure to also define labels for the group in the customGroupsText property. Notice that only one level of options nesting is supported.\n * * defaultOperator [ComparisonOperator]: Optional parameter that changes the default operator used with this filtering property. Use it only if your API does not support \"equals\" filtering terms with this property.\n */\n filteringProperties: ReadonlyArray<PropertyFilterProps.FilteringProperty>;\n /**\n * An array of possible values of the individual `filteringProperties`. Each element has the following properties:\n *\n * * `propertyKey` [string]: The key of the corresponding filtering property in the `filteringProperties` array.\n * * `value` [string]: The value that will be used as a suggestion when creating or modifying a filtering token.\n */\n filteringOptions?: ReadonlyArray<PropertyFilterProps.FilteringOption>;\n /**\n * An array of objects that contain localized, human-readable strings for the labels of custom groups within the filtering dropdown. Use group property to associate the strings with your custom group of options. Define the following values for each group:\n *\n * * properties [string]: The group label in the filtering dropdown that contains the list of properties from this group. For example: Tags.\n * * values [string]: The group label in the filtering dropdown that contains the list of values from this group. For example: Tags values.\n * * group [string]: The identifier of a custom group.\n */\n customGroupsText?: PropertyFilterProps.GroupText[];\n /**\n * Set `disableFreeTextFiltering` only if you can’t filter the dataset using a filter that is applied to every column,\n * instead of a specific property. This would stop the user from creating such tokens.\n */\n disableFreeTextFiltering?: boolean;\n /**\n * Use this event to asynchronously load filteringOptions, component currently needs. The detail object contains following properties:\n *\n * * `filteringProperty` - The property for which you need to fetch the options.\n * * `filteringOperator` - The operator for which you need to fetch the options.\n * * `filteringText` - The value that you need to use to fetch options.\n * * `firstPage` - Indicates that you should fetch the first page of options for a `filteringProperty` that match the `filteringText`.\n * * `samePage` - Indicates that you should fetch the same page that you have previously fetched (for example, when the user clicks on the recovery button).\n */\n onLoadItems?: NonCancelableEventHandler<PropertyFilterProps.LoadItemsDetail>;\n /**\n * If you have more than 500 `filteringOptions`, enable this flag to apply a performance optimization that makes\n * the filtering experience smoother. We don't recommend enabling the feature if you have less than 500 options,\n * because the improvements to performance are offset by a visible scrolling lag. When you set this flag to true,\n * it removes options that are not currently in view from the DOM.\n */\n virtualScroll?: boolean;\n /**\n * A slot located before the filtering input. Use it if for a Select component if your dataset supports property\n * filter queries only after an initial filter is applied.\n */\n customControl?: React.ReactNode;\n /**\n * Set `asyncProperties` if you need to load `filteringProperties` asynchronousely. This would cause extra `onLoadMore`\n * events to fire calling for more properties.\n */\n asyncProperties?: boolean;\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n tokenLimit?: number;\n /**\n * Displayed when there are no options to display.\n * This is only shown when `statusType` is set to `finished` or not set at all.\n */\n filteringEmpty?: React.ReactNode;\n /**\n * Specifies the text to display when in the loading state.\n **/\n filteringLoadingText?: string;\n /**\n * Specifies the text to display at the bottom of the dropdown menu after pagination has reached the end.\n **/\n filteringFinishedText?: string;\n /**\n * Specifies the text to display when a data fetching error occurs. Make sure that you provide `recoveryText`.\n **/\n filteringErrorText?: string;\n /**\n * Specifies the text for the recovery button. The text is displayed next to the error text.\n * Use the `onLoadItems` event to perform a recovery action (for example, retrying the request).\n **/\n filteringRecoveryText?: string;\n /**\n * Specifies the current status of loading more options.\n * * `pending` - Indicates that no request in progress, but more options may be loaded.\n * * `loading` - Indicates that data fetching is in progress.\n * * `finished` - Indicates that pagination has finished and no more requests are expected.\n * * `error` - Indicates that an error occurred during fetch. You should use `recoveryText` to enable the user to recover.\n **/\n filteringStatusType?: DropdownStatusProps.StatusType;\n}\n\nexport namespace PropertyFilterProps {\n export type Token = PropertyFilterToken;\n export type JoinOperation = PropertyFilterOperation;\n export type ComparisonOperator = PropertyFilterOperator;\n export type ExtendedOperator<TokenValue> = PropertyFilterOperatorExtended<TokenValue>;\n export type FilteringOption = PropertyFilterOption;\n export type FilteringProperty = PropertyFilterProperty;\n\n export interface Query {\n tokens: ReadonlyArray<PropertyFilterProps.Token>;\n operation: PropertyFilterProps.JoinOperation;\n }\n\n export interface LoadItemsDetail {\n filteringProperty?: FilteringProperty;\n filteringOperator?: ComparisonOperator;\n filteringText: string;\n firstPage: boolean;\n samePage: boolean;\n }\n\n export interface I18nStrings {\n /**\n * Label that will be passed down to the Autosuggest `ariaLabel` property.\n * See the [Autosuggest API](/system/components/autosuggest/?tabId=api) page for more details.\n */\n filteringAriaLabel: string;\n dismissAriaLabel: string;\n\n filteringPlaceholder?: string;\n groupValuesText: string;\n groupPropertiesText: string;\n operatorsText: string;\n\n operationAndText: string;\n operationOrText: string;\n\n operatorLessText: string;\n operatorLessOrEqualText: string;\n operatorGreaterText: string;\n operatorGreaterOrEqualText: string;\n operatorContainsText: string;\n operatorDoesNotContainText: string;\n operatorEqualsText: string;\n operatorDoesNotEqualText: string;\n\n editTokenHeader: string;\n propertyText: string;\n operatorText: string;\n valueText: string;\n cancelActionText: string;\n applyActionText: string;\n allPropertiesLabel: string;\n\n tokenLimitShowMore?: string;\n tokenLimitShowFewer?: string;\n clearFiltersText: string;\n removeTokenButtonAriaLabel: (token: PropertyFilterProps.Token) => string;\n enteredTextLabel: AutosuggestProps.EnteredTextLabel;\n }\n\n export interface GroupText {\n properties: string;\n values: string;\n group: string;\n }\n\n export interface FilteringChangeDetail {\n filteringText: string;\n filteringProperty?: FilteringProperty;\n }\n\n export interface Ref {\n /**\n * Sets focus on the underlying input control.\n */\n focus(): void;\n }\n}\n\n// Re-exported namespace interfaces to use module-style imports internally\n\nexport type Token = PropertyFilterProps.Token;\nexport type JoinOperation = PropertyFilterProps.JoinOperation;\nexport type ComparisonOperator = PropertyFilterProps.ComparisonOperator;\nexport type ExtendedOperator<TokenValue> = PropertyFilterProps.ExtendedOperator<TokenValue>;\nexport type FilteringOption = PropertyFilterProps.FilteringOption;\nexport type FilteringProperty = PropertyFilterProps.FilteringProperty;\nexport type Query = PropertyFilterProps.Query;\nexport type LoadItemsDetail = PropertyFilterProps.LoadItemsDetail;\nexport type I18nStrings = PropertyFilterProps.I18nStrings;\nexport type GroupText = PropertyFilterProps.GroupText;\nexport type FilteringChangeDetail = PropertyFilterProps.FilteringChangeDetail;\nexport type Ref = PropertyFilterProps.Ref;\n\n// Utility types\n\nexport type ParsedText =\n | { step: 'property'; property: FilteringProperty; operator: ComparisonOperator; value: string }\n | { step: 'operator'; property: FilteringProperty; operatorPrefix: string }\n | { step: 'free-text'; operator?: ComparisonOperator; value: string };\n"]}