@webority/theme 0.138.0 → 0.139.1
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/README.md +2 -2
- package/dist/purge-safelist.json +21 -35
- package/dist/webority-theme.css +1 -1
- package/package.json +2 -2
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/_wui-components.scss +2 -1
- package/scss/_wui-core.scss +2 -1
- package/scss/wui/_choice.scss +4 -327
- package/scss/wui/_controls.scss +3 -67
- package/scss/wui/_data.scss +0 -4
- package/scss/wui/_field-floor.scss +1 -1
- package/scss/wui/_interaction.scss +6 -6
- package/scss/wui/_menu-motion.scss +3 -3
- package/scss/wui/_overlays.scss +1 -1
- package/scss/wui/_pending.scss +3 -3
- package/scss/wui/_select.scss +551 -0
- package/scss/wui/_typography.scss +0 -189
- package/scss/wui/_utilities.scss +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.139.1",
|
|
4
4
|
"description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"postcss": "^8.5.31"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@webority/tokens": "0.
|
|
50
|
+
"@webority/tokens": "0.139.1",
|
|
51
51
|
"bootstrap": "5.3.3",
|
|
52
52
|
"country-flag-icons": "^1.6.20",
|
|
53
53
|
"sass-embedded": "^1.97.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.139.1 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
$body-color: #252f4a !default;
|
|
3
3
|
$body-secondary-color: #4b5675 !default;
|
|
4
4
|
$body-tertiary-color: #626a82 !default;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@import "wui/controls";
|
|
30
30
|
@import "wui/pending";
|
|
31
31
|
@import "wui/choice";
|
|
32
|
+
@import "wui/select";
|
|
32
33
|
@import "wui/media";
|
|
33
34
|
@import "wui/file-tiles";
|
|
34
35
|
@import "wui/image-crop";
|
|
@@ -95,7 +96,7 @@
|
|
|
95
96
|
// Country flags are NOT part of this aggregate. The 245 `.wui-flag-*` rules are about 187KB raw
|
|
96
97
|
// (38KB Brotli) of inlined SVG, and most sites never render a phone field or country picker.
|
|
97
98
|
// A site that does imports `@webority/theme/scss/flags` once, after this file; without it
|
|
98
|
-
// <wui-phone> and <wui-country
|
|
99
|
+
// <wui-phone> and <wui-select mode="country"> show an empty grey box where the flag should be.
|
|
99
100
|
@import "wui/shell";
|
|
100
101
|
@import "wui/shell-parts";
|
|
101
102
|
@import "wui/account-switcher";
|
package/scss/_wui-core.scss
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
@import "wui/controls";
|
|
23
23
|
@import "wui/pending";
|
|
24
24
|
@import "wui/choice";
|
|
25
|
+
@import "wui/select";
|
|
25
26
|
@import "wui/media";
|
|
26
27
|
@import "wui/file-tiles";
|
|
27
28
|
@import "wui/avatar-picker";
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
// Country flags are NOT part of this layer. The 245 `.wui-flag-*` rules are about 187KB raw
|
|
82
83
|
// (38KB Brotli) of inlined SVG, and most sites never render a phone field or country picker.
|
|
83
84
|
// A site that does imports `@webority/theme/scss/flags` once, after this file; without it
|
|
84
|
-
// <wui-phone> and <wui-country
|
|
85
|
+
// <wui-phone> and <wui-select mode="country"> show an empty grey box where the flag should be.
|
|
85
86
|
@import "wui/shell";
|
|
86
87
|
@import "wui/shell-parts";
|
|
87
88
|
@import "wui/account-switcher";
|
package/scss/wui/_choice.scss
CHANGED
|
@@ -251,329 +251,6 @@
|
|
|
251
251
|
display: none;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// ── Search select ──
|
|
255
|
-
.search-select {
|
|
256
|
-
position: relative;
|
|
257
|
-
min-width: 0;
|
|
258
|
-
}
|
|
259
|
-
.search-select-control {
|
|
260
|
-
display: flex;
|
|
261
|
-
align-items: center;
|
|
262
|
-
justify-content: space-between;
|
|
263
|
-
gap: 8px;
|
|
264
|
-
text-align: left;
|
|
265
|
-
cursor: pointer;
|
|
266
|
-
width: 100%;
|
|
267
|
-
min-width: 0;
|
|
268
|
-
}
|
|
269
|
-
.search-select-control > span {
|
|
270
|
-
min-width: 0;
|
|
271
|
-
overflow: hidden;
|
|
272
|
-
text-overflow: ellipsis;
|
|
273
|
-
white-space: nowrap;
|
|
274
|
-
}
|
|
275
|
-
.search-select-control:disabled {
|
|
276
|
-
cursor: not-allowed;
|
|
277
|
-
opacity: var(--wui-disabled-opacity);
|
|
278
|
-
}
|
|
279
|
-
.search-select-control:hover:not(:disabled):not(.open):not([aria-invalid="true"]):not(:has(.search-select-ac-input:disabled)):not([aria-disabled="true"]) {
|
|
280
|
-
// Not while open — an open control keeps its active (primary) border, not the grey hover one.
|
|
281
|
-
// Not while invalid — an errored control (aria-invalid mirrored from the host) holds its red
|
|
282
|
-
// border on hover rather than reverting to the grey hover one.
|
|
283
|
-
border-color: var(--color-field-border-hover);
|
|
284
|
-
}
|
|
285
|
-
.search-select-control.open {
|
|
286
|
-
// White fill + the active/focus border, matching a focused text input (which lifts off the
|
|
287
|
-
// muted resting fill onto white with a --color-field-border-focus border). Keeps the control seamless
|
|
288
|
-
// with the open menu and the floated label's white mask.
|
|
289
|
-
background: var(--color-surface);
|
|
290
|
-
border-color: var(--color-field-border-focus);
|
|
291
|
-
}
|
|
292
|
-
// Closed again (a value picked, Escape), focus stays on the trigger: it returns to the resting
|
|
293
|
-
// fill and border, as the date picker does. Only the open list shows the focus border; keyboard
|
|
294
|
-
// focus still draws the ring below.
|
|
295
|
-
.search-select-control:focus:not(.open):not([aria-invalid="true"]):not(.error):not(.is-invalid) {
|
|
296
|
-
background: var(--color-field-bg);
|
|
297
|
-
border-color: var(--color-field-border);
|
|
298
|
-
}
|
|
299
|
-
// Keyboard focus draws a ring, not just the 1px border change: a control that only recolours its
|
|
300
|
-
// border fails WCAG 2.4.7 / 2.4.11. A single-select button and a multi-select div hold focus
|
|
301
|
-
// themselves; the typing variants (autocomplete, tag input, allow-custom multi-select) keep it on
|
|
302
|
-
// an inner input, so the ring follows `:has(:focus-visible)`. It uses the shared keyboard ring
|
|
303
|
-
// colour, not the soft field focus border, so it clears 3:1 in both themes.
|
|
304
|
-
.search-select-control:focus-visible,
|
|
305
|
-
.search-select-control:has(> .search-select-input:focus-visible),
|
|
306
|
-
.search-select-control:has(.ms-input:focus-visible) {
|
|
307
|
-
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
308
|
-
outline-offset: var(--wui-focus-ring-offset);
|
|
309
|
-
}
|
|
310
|
-
.search-select-caret {
|
|
311
|
-
flex-shrink: 0;
|
|
312
|
-
color: var(--color-text-muted);
|
|
313
|
-
transition: transform 0.15s ease;
|
|
314
|
-
}
|
|
315
|
-
.search-select-caret path {
|
|
316
|
-
stroke-width: 2px;
|
|
317
|
-
}
|
|
318
|
-
.search-select-control.open .search-select-caret {
|
|
319
|
-
transform: rotate(180deg);
|
|
320
|
-
}
|
|
321
|
-
.search-select-placeholder {
|
|
322
|
-
color: var(--color-text-subtle);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// Sizes — mirror AppInput's .input-sm / .input-lg so a select lines up with the
|
|
326
|
-
// text fields beside it. md is the base .search-select-control height.
|
|
327
|
-
.search-select-sm .search-select-control {
|
|
328
|
-
height: var(--wui-control-sm);
|
|
329
|
-
min-height: var(--wui-control-sm);
|
|
330
|
-
font-size: 13px;
|
|
331
|
-
border-radius: var(--wui-field-sm-radius);
|
|
332
|
-
}
|
|
333
|
-
.search-select-lg .search-select-control {
|
|
334
|
-
height: var(--wui-control-lg);
|
|
335
|
-
min-height: var(--wui-control-lg);
|
|
336
|
-
font-size: 16px;
|
|
337
|
-
border-radius: var(--wui-field-lg-radius);
|
|
338
|
-
}
|
|
339
|
-
// Multi-select grows with its chips, so a size sets the FLOOR (min-height from the rule
|
|
340
|
-
// above) but never a fixed height — reset height:auto so a second row of chips can appear.
|
|
341
|
-
.search-select-sm .search-select-multi,
|
|
342
|
-
.search-select-lg .search-select-multi {
|
|
343
|
-
height: auto;
|
|
344
|
-
}
|
|
345
|
-
// AppSelect compact is <wui-select compact>: sm sits on the 32px sm rung, lg one rung below the lg
|
|
346
|
-
// field, never under 32px. The compound selector outranks both the plain size rule and the compact rule.
|
|
347
|
-
.search-select-compact.search-select-sm .search-select-control {
|
|
348
|
-
height: var(--wui-control-sm);
|
|
349
|
-
min-height: var(--wui-control-sm);
|
|
350
|
-
font-size: 12px;
|
|
351
|
-
}
|
|
352
|
-
.search-select-compact.search-select-lg .search-select-control {
|
|
353
|
-
height: var(--wui-control-md);
|
|
354
|
-
min-height: var(--wui-control-md);
|
|
355
|
-
font-size: 14px;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// Clear (✕) — sits between the value and the caret, shown only once a value is
|
|
359
|
-
// chosen. It is a <span role="button"> inside the trigger <button> (a nested
|
|
360
|
-
// <button> is invalid); the JS stops its click from toggling the menu.
|
|
361
|
-
.search-select-control > span[data-label] {
|
|
362
|
-
flex: 1;
|
|
363
|
-
}
|
|
364
|
-
.search-select-reset {
|
|
365
|
-
flex-shrink: 0;
|
|
366
|
-
display: grid;
|
|
367
|
-
place-items: center;
|
|
368
|
-
width: 20px;
|
|
369
|
-
height: 20px;
|
|
370
|
-
border-radius: 50%;
|
|
371
|
-
font-size: 12px;
|
|
372
|
-
color: var(--color-text-subtle);
|
|
373
|
-
cursor: pointer;
|
|
374
|
-
transition:
|
|
375
|
-
background 0.12s ease,
|
|
376
|
-
color 0.12s ease;
|
|
377
|
-
}
|
|
378
|
-
.search-select-reset:hover {
|
|
379
|
-
background: var(--color-bg-muted);
|
|
380
|
-
color: var(--color-text);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
// Leading icon + static prefix (e.g. a funnel glyph, or "Sort:") — cluster at the
|
|
384
|
-
// start of the control, before the value. Mainly for the mini toolbar picker.
|
|
385
|
-
.search-select-icon {
|
|
386
|
-
flex-shrink: 0;
|
|
387
|
-
display: inline-flex;
|
|
388
|
-
color: var(--color-text-muted);
|
|
389
|
-
font-size: 15px;
|
|
390
|
-
}
|
|
391
|
-
.search-select-prefix {
|
|
392
|
-
flex-shrink: 0;
|
|
393
|
-
color: var(--color-text-subtle);
|
|
394
|
-
font-weight: 400;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
// Per-option leading glyph — wraps icon + label as one node (menu row, the selected
|
|
398
|
-
// value in the control, and chips all render through optionLabelHtml). The icon inherits
|
|
399
|
-
// the row's colour so it recolours with the label on hover / when selected.
|
|
400
|
-
.wui-opt-label {
|
|
401
|
-
display: inline-flex;
|
|
402
|
-
align-items: center;
|
|
403
|
-
gap: 8px;
|
|
404
|
-
min-width: 0;
|
|
405
|
-
vertical-align: middle;
|
|
406
|
-
}
|
|
407
|
-
.wui-opt-label > .wui-icon {
|
|
408
|
-
flex-shrink: 0;
|
|
409
|
-
width: 15px;
|
|
410
|
-
height: 15px;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
// AppSelect compact (page size, a range switch, a toolbar picker). It shares every behaviour
|
|
414
|
-
// with the full select and differs only in metrics.
|
|
415
|
-
//
|
|
416
|
-
// <wui-select compact> emitted this class and NOTHING styled it, so a compact picker rendered
|
|
417
|
-
// byte-identical to a full-size select on both surfaces. It was invisible
|
|
418
|
-
// to every gate because the class check only ever scanned the Razor tag helpers, never the
|
|
419
|
-
// elements package that actually emits it.
|
|
420
|
-
//
|
|
421
|
-
// The metrics deliberately match `.select.tpg-select` (the native page-size select in table
|
|
422
|
-
// pagination) so a compact wui select and a compact native select read as one control
|
|
423
|
-
// rather than two sizes of the same idea.
|
|
424
|
-
.search-select-compact .search-select-control {
|
|
425
|
-
height: var(--wui-control-sm);
|
|
426
|
-
min-height: var(--wui-control-sm);
|
|
427
|
-
min-width: 64px;
|
|
428
|
-
padding: 0 10px;
|
|
429
|
-
font-size: 13px;
|
|
430
|
-
font-weight: 600;
|
|
431
|
-
}
|
|
432
|
-
.search-select-compact .search-select-caret {
|
|
433
|
-
font-size: 12px;
|
|
434
|
-
}
|
|
435
|
-
// Menu matches the themed-select dropdown: 16px squircle, 4px padding, soft
|
|
436
|
-
// shadow.
|
|
437
|
-
.search-select-menu {
|
|
438
|
-
position: absolute;
|
|
439
|
-
z-index: 40;
|
|
440
|
-
top: calc(100% + 6px);
|
|
441
|
-
left: 0;
|
|
442
|
-
right: 0;
|
|
443
|
-
background: var(--color-surface);
|
|
444
|
-
border: 1px solid var(--color-border);
|
|
445
|
-
border-radius: var(--wui-radius-lg);
|
|
446
|
-
corner-shape: squircle;
|
|
447
|
-
box-shadow: var(--wui-shadow-popover);
|
|
448
|
-
padding: 4px;
|
|
449
|
-
overflow: hidden;
|
|
450
|
-
}
|
|
451
|
-
// Portalled to <body>: fixed-positioned (top/left set inline from the
|
|
452
|
-
// trigger rect) so the menu overlays instead of being clipped by a
|
|
453
|
-
// scrollable modal / table card. Sits above the modal layer.
|
|
454
|
-
.search-select-menu-fixed {
|
|
455
|
-
position: fixed;
|
|
456
|
-
z-index: var(--wui-z-menu);
|
|
457
|
-
right: auto;
|
|
458
|
-
top: auto;
|
|
459
|
-
left: auto;
|
|
460
|
-
}
|
|
461
|
-
// Search box matches the search bar: rounded field, leading icon turns
|
|
462
|
-
// primary.
|
|
463
|
-
.search-select-search {
|
|
464
|
-
position: relative;
|
|
465
|
-
display: flex;
|
|
466
|
-
align-items: center;
|
|
467
|
-
gap: 8px;
|
|
468
|
-
margin: 4px;
|
|
469
|
-
padding: 0 12px;
|
|
470
|
-
height: 40px;
|
|
471
|
-
border: 1px solid var(--color-field-border);
|
|
472
|
-
border-radius: var(--wui-radius-md);
|
|
473
|
-
// AppInput's field model: muted resting fill that lifts to a clean surface on focus.
|
|
474
|
-
background: var(--color-field-bg);
|
|
475
|
-
color: var(--color-text-subtle);
|
|
476
|
-
}
|
|
477
|
-
// Hover and focus follow AppInput, as the phone country search does: a stronger border on hover,
|
|
478
|
-
// then a clean surface fill + soft primary border on focus.
|
|
479
|
-
.search-select-search:hover:not(:focus-within) {
|
|
480
|
-
border-color: var(--color-field-border-hover);
|
|
481
|
-
}
|
|
482
|
-
.search-select-search:focus-within {
|
|
483
|
-
background: var(--color-surface);
|
|
484
|
-
border-color: var(--color-field-border-focus);
|
|
485
|
-
}
|
|
486
|
-
.search-select-search:focus-within svg {
|
|
487
|
-
color: var(--color-primary-text);
|
|
488
|
-
}
|
|
489
|
-
.search-select-clear {
|
|
490
|
-
display: grid;
|
|
491
|
-
place-items: center;
|
|
492
|
-
width: 26px;
|
|
493
|
-
height: 26px;
|
|
494
|
-
border: none;
|
|
495
|
-
background: transparent;
|
|
496
|
-
padding: 0;
|
|
497
|
-
// Sits at the box's 12px right padding; a small negative margin nudges it
|
|
498
|
-
// closer to the edge so it lines up with the field's own trailing controls.
|
|
499
|
-
margin-right: -4px;
|
|
500
|
-
font-size: 20px;
|
|
501
|
-
// Tight line box: at normal line-height the icon's box is taller than the
|
|
502
|
-
// button, so bootstrap-icons' baseline offset drifts the glyph low.
|
|
503
|
-
line-height: 1;
|
|
504
|
-
cursor: pointer;
|
|
505
|
-
color: var(--color-text-subtle);
|
|
506
|
-
}
|
|
507
|
-
.search-select-clear:hover {
|
|
508
|
-
color: var(--color-text);
|
|
509
|
-
}
|
|
510
|
-
.search-select-input {
|
|
511
|
-
flex: 1;
|
|
512
|
-
border: none;
|
|
513
|
-
outline: none;
|
|
514
|
-
font-size: 14px;
|
|
515
|
-
font-family: inherit;
|
|
516
|
-
color: var(--color-text);
|
|
517
|
-
background: transparent;
|
|
518
|
-
}
|
|
519
|
-
// AppInput's placeholder colour, not the browser default grey.
|
|
520
|
-
.search-select-input::placeholder {
|
|
521
|
-
color: var(--color-text-subtle);
|
|
522
|
-
}
|
|
523
|
-
.search-select-options {
|
|
524
|
-
max-height: 300px;
|
|
525
|
-
overflow-y: auto;
|
|
526
|
-
padding: 4px;
|
|
527
|
-
display: flex;
|
|
528
|
-
flex-direction: column;
|
|
529
|
-
gap: 4px;
|
|
530
|
-
}
|
|
531
|
-
.search-select-option {
|
|
532
|
-
display: flex;
|
|
533
|
-
align-items: center;
|
|
534
|
-
justify-content: space-between;
|
|
535
|
-
gap: 8px;
|
|
536
|
-
width: 100%;
|
|
537
|
-
text-align: left;
|
|
538
|
-
padding: 9px 14px;
|
|
539
|
-
line-height: 1.4;
|
|
540
|
-
border: none;
|
|
541
|
-
border-radius: var(--wui-radius-md);
|
|
542
|
-
corner-shape: squircle;
|
|
543
|
-
background: transparent;
|
|
544
|
-
font-size: 14px;
|
|
545
|
-
color: var(--color-text);
|
|
546
|
-
cursor: pointer;
|
|
547
|
-
transition:
|
|
548
|
-
background 0.12s ease,
|
|
549
|
-
color 0.12s ease;
|
|
550
|
-
}
|
|
551
|
-
// The row under the pointer or the keyboard: a light tint and a light 1px edge, softer than the
|
|
552
|
-
// selected row's fill so the two stay apart.
|
|
553
|
-
.search-select-option:hover,
|
|
554
|
-
.search-select-option.is-active {
|
|
555
|
-
background: color-mix(in srgb, var(--color-primary-soft) 55%, transparent);
|
|
556
|
-
color: var(--color-primary-text);
|
|
557
|
-
outline: 1px solid var(--color-field-border-focus);
|
|
558
|
-
outline-offset: -1px;
|
|
559
|
-
}
|
|
560
|
-
.search-select-option.selected {
|
|
561
|
-
background: var(--color-primary-soft);
|
|
562
|
-
color: var(--color-primary-text);
|
|
563
|
-
font-weight: 500;
|
|
564
|
-
}
|
|
565
|
-
// allow-custom's freeform row — reads as an action ("Add "…"") rather than a listed value.
|
|
566
|
-
.search-select-option-custom {
|
|
567
|
-
font-style: italic;
|
|
568
|
-
color: var(--color-primary-text);
|
|
569
|
-
}
|
|
570
|
-
.search-select-empty {
|
|
571
|
-
padding: 12px 10px;
|
|
572
|
-
font-size: 13px;
|
|
573
|
-
color: var(--color-text-subtle);
|
|
574
|
-
text-align: center;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
254
|
// ── Date picker ──
|
|
578
255
|
// Custom DatePicker — themed popover calendar (the native popup can't be
|
|
579
256
|
// styled).
|
|
@@ -623,7 +300,7 @@
|
|
|
623
300
|
.datepicker.open .datepicker-trigger {
|
|
624
301
|
// While the calendar is open the trigger reads as a focused field — clean white surface, not
|
|
625
302
|
// the muted resting fill. Opening moves focus INTO the popup, so :focus drops off the trigger;
|
|
626
|
-
// this .open rule keeps it white
|
|
303
|
+
// this .open rule keeps it white instead of snapping
|
|
627
304
|
// back to grey the moment the dropdown appears.
|
|
628
305
|
background-color: var(--color-surface);
|
|
629
306
|
border-color: var(--color-field-border-focus);
|
|
@@ -1330,11 +1007,11 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
|
|
|
1330
1007
|
padding-left: 14px;
|
|
1331
1008
|
}
|
|
1332
1009
|
|
|
1333
|
-
// Menu, search field and rows all share the .
|
|
1010
|
+
// Menu, search field and rows all share the .wui-select language so the
|
|
1334
1011
|
// country picker reads as the same component family as every other picker.
|
|
1335
1012
|
// Fixed, with top/left set from the trigger rect by <wui-phone>, so an
|
|
1336
1013
|
// overflow-hidden card/modal/table wrapper can't clip the list. Sits above the
|
|
1337
|
-
// modal layer, matching .
|
|
1014
|
+
// modal layer, matching .wui-select-menu-fixed and .datepicker-pop.
|
|
1338
1015
|
.country-dropdown-menu {
|
|
1339
1016
|
position: fixed;
|
|
1340
1017
|
z-index: var(--wui-z-menu);
|
|
@@ -1410,7 +1087,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
|
|
|
1410
1087
|
border-radius: 999px;
|
|
1411
1088
|
}
|
|
1412
1089
|
// Rounded, inset rows with a primary-tinted hover — identical to
|
|
1413
|
-
// .
|
|
1090
|
+
// .wui-select-option. (!important is required: react-bootstrap's
|
|
1414
1091
|
// .dropdown-item ships its own colour/padding at equal specificity.)
|
|
1415
1092
|
.country-dropdown-item {
|
|
1416
1093
|
display: flex !important;
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -505,7 +505,7 @@ textarea.form-control.autosize {
|
|
|
505
505
|
.form-select:hover:not(:focus):not(:disabled):not([aria-invalid="true"]):not(.is-invalid):not(.error),
|
|
506
506
|
.input:hover:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.error):not(.open):not([aria-expanded="true"]):not(
|
|
507
507
|
.phone-input-wrap > .input
|
|
508
|
-
):not(
|
|
508
|
+
):not([aria-disabled="true"]),
|
|
509
509
|
.select:hover:not(:focus):not(:disabled):not([aria-invalid="true"]):not(.is-invalid):not(.error),
|
|
510
510
|
.textarea:hover:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.error) {
|
|
511
511
|
background-color: var(--color-field-bg);
|
|
@@ -1208,38 +1208,6 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
|
|
|
1208
1208
|
.field-float.wui-float-above .input[aria-invalid="true"] ~ .float-label {
|
|
1209
1209
|
background: transparent;
|
|
1210
1210
|
}
|
|
1211
|
-
// Floating label for AppSelect — the trigger is a <button>, so there is no
|
|
1212
|
-
// :placeholder-shown to key off. :has() raises the label when the control is
|
|
1213
|
-
// focused/open, or once a value is chosen (the label span drops
|
|
1214
|
-
// .search-select-placeholder the moment something is selected).
|
|
1215
|
-
.field-float:has(.search-select-control:focus) .float-label,
|
|
1216
|
-
.field-float:has(.search-select-control.open) .float-label,
|
|
1217
|
-
.field-float:has([data-label]:not(.search-select-placeholder)) .float-label {
|
|
1218
|
-
top: 0;
|
|
1219
|
-
transform: translateY(-50%) scale(0.86);
|
|
1220
|
-
}
|
|
1221
|
-
.field-float:has(.search-select-control.open) .float-label {
|
|
1222
|
-
color: var(--color-primary-text);
|
|
1223
|
-
// The control turns white while open, so the label mask follows (a closed select keeps the
|
|
1224
|
-
// default muted mask, matching its muted resting fill, even while it holds focus).
|
|
1225
|
-
background: var(--color-surface);
|
|
1226
|
-
}
|
|
1227
|
-
// Above placement for AppSelect: the same triggers, resting above the box as the input's does.
|
|
1228
|
-
.field-float.wui-float-above:has(.search-select-control:focus) .float-label,
|
|
1229
|
-
.field-float.wui-float-above:has(.search-select-control.open) .float-label,
|
|
1230
|
-
.field-float.wui-float-above:has([data-label]:not(.search-select-placeholder)) .float-label {
|
|
1231
|
-
top: 0;
|
|
1232
|
-
left: 0;
|
|
1233
|
-
padding: 0;
|
|
1234
|
-
transform: scale(0.86);
|
|
1235
|
-
font-weight: var(--wui-fw-medium);
|
|
1236
|
-
}
|
|
1237
|
-
.field-float.wui-float-above:has([data-label]:not(.search-select-placeholder)):not(:has(.search-select-control.open)) .float-label {
|
|
1238
|
-
color: var(--color-text);
|
|
1239
|
-
}
|
|
1240
|
-
.field-float.wui-float-above:has(.search-select-control.open) .float-label {
|
|
1241
|
-
background: transparent;
|
|
1242
|
-
}
|
|
1243
1211
|
|
|
1244
1212
|
.hint,
|
|
1245
1213
|
.field-hint {
|
|
@@ -1329,7 +1297,7 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
|
|
|
1329
1297
|
// Controls fill their field even though .field aligns children flex-start.
|
|
1330
1298
|
//
|
|
1331
1299
|
// The `<wui-*>` entries are load-bearing, not defensive. Every hard interactive control
|
|
1332
|
-
// is now `.field > wui-select > .
|
|
1300
|
+
// is now `.field > wui-select > .wui-select`, so the child combinator below stopped
|
|
1333
1301
|
// reaching the inner div AND the real flex item — the custom element — was named by no
|
|
1334
1302
|
// rule at all. With `align-items: flex-start` above, that means it shrinks to its
|
|
1335
1303
|
// content: a select rendered 164px wide in a 377px column. Neither render parity nor the
|
|
@@ -1341,33 +1309,17 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
|
|
|
1341
1309
|
// into a plain div, a grid cell, a table cell — it would still collapse. Being a flex
|
|
1342
1310
|
// item blockifies it; nothing else does.
|
|
1343
1311
|
wui-select,
|
|
1344
|
-
wui-country-select,
|
|
1345
|
-
wui-autocomplete,
|
|
1346
|
-
wui-multiselect,
|
|
1347
|
-
wui-taginput,
|
|
1348
1312
|
wui-phone,
|
|
1349
1313
|
wui-datepicker,
|
|
1350
1314
|
wui-date-range {
|
|
1351
1315
|
display: block;
|
|
1352
1316
|
width: 100%;
|
|
1353
1317
|
}
|
|
1354
|
-
// AppSelect compact renders <wui-select compact> — a page-size / range picker that is
|
|
1355
|
-
// deliberately narrow and does NOT belong to a .field. It has to opt out of the width
|
|
1356
|
-
// above, or every toolbar picker stretches across its toolbar.
|
|
1357
|
-
wui-select[compact] {
|
|
1358
|
-
display: inline-block;
|
|
1359
|
-
width: auto;
|
|
1360
|
-
max-width: 100%;
|
|
1361
|
-
}
|
|
1362
1318
|
.field > wui-select,
|
|
1363
|
-
.field > wui-country-select,
|
|
1364
|
-
.field > wui-autocomplete,
|
|
1365
|
-
.field > wui-multiselect,
|
|
1366
|
-
.field > wui-taginput,
|
|
1367
1319
|
.field > wui-phone,
|
|
1368
1320
|
.field > wui-datepicker,
|
|
1369
1321
|
.field > wui-date-range,
|
|
1370
|
-
.field > .
|
|
1322
|
+
.field > .wui-select,
|
|
1371
1323
|
.field > .input-with-unit,
|
|
1372
1324
|
.field > .input-action-row,
|
|
1373
1325
|
.field > .num-wrap,
|
|
@@ -1380,22 +1332,6 @@ wui-select[compact] {
|
|
|
1380
1332
|
.field > .wui-score-scale {
|
|
1381
1333
|
align-self: stretch;
|
|
1382
1334
|
}
|
|
1383
|
-
// A chosen value's photo or initials sits at the control's start edge, and the start padding makes
|
|
1384
|
-
// room for it: the avatar's own width plus the control's gap. The width is .avatar-xs's fixed size,
|
|
1385
|
-
// a layout constant with no token. Logical properties, so the start edge follows the reading direction.
|
|
1386
|
-
.search-select-control.wui-has-value-avatar {
|
|
1387
|
-
--wui-search-select-value-avatar-size: 20px;
|
|
1388
|
-
position: relative;
|
|
1389
|
-
padding-inline-start: calc(var(--wui-space-md) + var(--wui-search-select-value-avatar-size) + var(--wui-space-sm));
|
|
1390
|
-
}
|
|
1391
|
-
.search-select-control.wui-has-value-avatar > .wui-search-select-value-avatar {
|
|
1392
|
-
position: absolute;
|
|
1393
|
-
inset-inline-start: var(--wui-space-md);
|
|
1394
|
-
top: 50%;
|
|
1395
|
-
transform: translateY(-50%);
|
|
1396
|
-
display: inline-flex;
|
|
1397
|
-
pointer-events: none;
|
|
1398
|
-
}
|
|
1399
1335
|
// A file picker fills its column by default (align-self:stretch fills the field on the cross
|
|
1400
1336
|
// axis, but the field itself collapses to its content when it is a flex item — the showcase
|
|
1401
1337
|
// lays fields out in a flex row — so stretch the field to its container first). Override per
|
package/scss/wui/_data.scss
CHANGED
|
@@ -430,7 +430,6 @@
|
|
|
430
430
|
// label, are the bare custom element, not a .field, and on its own it fills its line.
|
|
431
431
|
.wui-filter-bar > .field,
|
|
432
432
|
.wui-filter-bar > wui-select,
|
|
433
|
-
.wui-filter-bar > wui-multiselect,
|
|
434
433
|
.wui-filter-bar > wui-date-range {
|
|
435
434
|
flex: 1 1 180px;
|
|
436
435
|
min-width: 0;
|
|
@@ -466,7 +465,6 @@
|
|
|
466
465
|
@media (max-width: 575.98px) {
|
|
467
466
|
.wui-filter-bar > .field,
|
|
468
467
|
.wui-filter-bar > wui-select,
|
|
469
|
-
.wui-filter-bar > wui-multiselect,
|
|
470
468
|
.wui-filter-bar > wui-date-range,
|
|
471
469
|
.wui-filter-bar > .search-wrap {
|
|
472
470
|
flex-basis: 100%;
|
|
@@ -492,8 +490,6 @@
|
|
|
492
490
|
.wui-filter-more-panel > .wui-filter-popover-field > .field,
|
|
493
491
|
.wui-filter-more-panel > wui-select,
|
|
494
492
|
.wui-filter-more-panel > .wui-filter-popover-field > wui-select,
|
|
495
|
-
.wui-filter-more-panel > wui-multiselect,
|
|
496
|
-
.wui-filter-more-panel > .wui-filter-popover-field > wui-multiselect,
|
|
497
493
|
.wui-filter-more-panel > wui-date-range,
|
|
498
494
|
.wui-filter-more-panel > .wui-filter-popover-field > wui-date-range,
|
|
499
495
|
.wui-filter-more-panel > .search-wrap,
|
|
@@ -128,8 +128,8 @@ html:has(.form-actions-sticky) {
|
|
|
128
128
|
.num-btn,
|
|
129
129
|
.num-stepper-btns button,
|
|
130
130
|
.search-clear,
|
|
131
|
-
.
|
|
132
|
-
.
|
|
131
|
+
.wui-select-clear,
|
|
132
|
+
.wui-select-reset,
|
|
133
133
|
button.wui-input-leading,
|
|
134
134
|
button.wui-input-trailing,
|
|
135
135
|
.country-toggle,
|
|
@@ -183,7 +183,7 @@ html:has(.form-actions-sticky) {
|
|
|
183
183
|
.page-link,
|
|
184
184
|
.dropdown-item,
|
|
185
185
|
.country-dropdown-item,
|
|
186
|
-
.
|
|
186
|
+
.wui-select-option,
|
|
187
187
|
.wui-split-link,
|
|
188
188
|
.wui-topsearch-hit,
|
|
189
189
|
a.wui-bell-item,
|
|
@@ -268,7 +268,7 @@ html:has(.form-actions-sticky) {
|
|
|
268
268
|
.app-tabs-scroll-btn {
|
|
269
269
|
min-width: 44px;
|
|
270
270
|
}
|
|
271
|
-
wui-select .
|
|
271
|
+
wui-select .wui-select-control {
|
|
272
272
|
min-height: 44px;
|
|
273
273
|
}
|
|
274
274
|
.app-tabs-sm .app-tab {
|
|
@@ -293,11 +293,11 @@ html:has(.form-actions-sticky) {
|
|
|
293
293
|
}
|
|
294
294
|
// The hit area grows, the ink does not: both controls sit inside a 44px field.
|
|
295
295
|
.country-toggle,
|
|
296
|
-
.
|
|
296
|
+
.wui-select-clear {
|
|
297
297
|
position: relative;
|
|
298
298
|
}
|
|
299
299
|
.country-toggle::before,
|
|
300
|
-
.
|
|
300
|
+
.wui-select-clear::before {
|
|
301
301
|
content: "";
|
|
302
302
|
position: absolute;
|
|
303
303
|
top: 50%;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
.dropdown-menu.show,
|
|
95
95
|
.popover.show,
|
|
96
|
-
.
|
|
96
|
+
.wui-select-menu:not([hidden]),
|
|
97
97
|
.country-dropdown-menu:not([hidden]),
|
|
98
98
|
.datepicker-pop:not([hidden]),
|
|
99
99
|
.daterange-pop:not([hidden]),
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// Opening upward: origin flips to the bottom edge and the drop comes from below.
|
|
111
|
-
.
|
|
111
|
+
.wui-select-menu.drop-up,
|
|
112
112
|
.country-dropdown-menu.drop-up,
|
|
113
113
|
.datepicker-pop.drop-up,
|
|
114
114
|
.daterange-pop.drop-up,
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
@media (prefers-reduced-motion: reduce) {
|
|
144
144
|
.dropdown-menu.show,
|
|
145
145
|
.popover.show,
|
|
146
|
-
.
|
|
146
|
+
.wui-select-menu:not([hidden]),
|
|
147
147
|
.country-dropdown-menu:not([hidden]),
|
|
148
148
|
.datepicker-pop:not([hidden]),
|
|
149
149
|
.daterange-pop:not([hidden]),
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -236,7 +236,7 @@ body[data-rr-ui-modal-open] {
|
|
|
236
236
|
// Stretch controls to fill the column even though .field aligns to
|
|
237
237
|
// flex-start.
|
|
238
238
|
.wui-modal-body .field > .input,
|
|
239
|
-
.wui-modal-body .field > .
|
|
239
|
+
.wui-modal-body .field > .wui-select,
|
|
240
240
|
.wui-modal-body .field > .input-date-wrap,
|
|
241
241
|
.wui-modal-body .field > .datepicker,
|
|
242
242
|
.wui-modal-body .field > .phone-input-wrap,
|
package/scss/wui/_pending.scss
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// the body, an on-demand element (packages/elements src/global/chunks.js) one request after that. Until
|
|
3
3
|
// then it keeps its field height and hides its option children, so the field does not jump or flash
|
|
4
4
|
// option text and the content below it does not shift.
|
|
5
|
-
:is(wui-select, wui-
|
|
5
|
+
:is(wui-select, wui-timepicker, wui-date-range, wui-phone, wui-slider, wui-mention-input):not(:defined) {
|
|
6
6
|
display: block;
|
|
7
7
|
min-height: var(--wui-control-md);
|
|
8
8
|
}
|
|
9
|
-
wui-select[compact]:not(:defined) {
|
|
9
|
+
wui-select[density="compact"]:not(:defined) {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
min-height: var(--wui-control-sm);
|
|
12
12
|
}
|
|
13
|
-
:is(wui-select, wui-
|
|
13
|
+
:is(wui-select, wui-timepicker, wui-date-range, wui-phone, wui-slider, wui-mention-input):not(:defined) > wui-option {
|
|
14
14
|
display: none;
|
|
15
15
|
}
|