@webority/theme 0.138.0 → 0.139.0
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
|
@@ -314,195 +314,6 @@
|
|
|
314
314
|
color: var(--color-text-subtle);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
/* ── Autocomplete (input-first combobox; extends .search-select) ── */
|
|
318
|
-
.search-select-ac {
|
|
319
|
-
justify-content: flex-start;
|
|
320
|
-
cursor: text;
|
|
321
|
-
padding-right: 8px;
|
|
322
|
-
}
|
|
323
|
-
.search-select-ac:has(.search-select-ac-input:disabled) {
|
|
324
|
-
background: var(--color-border);
|
|
325
|
-
border-color: transparent;
|
|
326
|
-
color: var(--color-text-subtle);
|
|
327
|
-
cursor: not-allowed;
|
|
328
|
-
}
|
|
329
|
-
.search-select-multi[aria-disabled="true"] {
|
|
330
|
-
background: var(--color-border);
|
|
331
|
-
border-color: transparent;
|
|
332
|
-
color: var(--color-text-subtle);
|
|
333
|
-
cursor: not-allowed;
|
|
334
|
-
}
|
|
335
|
-
.search-select-ac-input {
|
|
336
|
-
flex: 1 1 auto;
|
|
337
|
-
min-width: 0;
|
|
338
|
-
padding: 0;
|
|
339
|
-
border: 0;
|
|
340
|
-
background: none;
|
|
341
|
-
color: inherit;
|
|
342
|
-
font: inherit;
|
|
343
|
-
outline: none;
|
|
344
|
-
}
|
|
345
|
-
.search-select-ac-input::placeholder {
|
|
346
|
-
color: var(--color-text-subtle);
|
|
347
|
-
}
|
|
348
|
-
.search-select-spinner {
|
|
349
|
-
flex: none;
|
|
350
|
-
width: 1rem;
|
|
351
|
-
height: 1rem;
|
|
352
|
-
color: var(--color-text-subtle);
|
|
353
|
-
border-width: 2px;
|
|
354
|
-
}
|
|
355
|
-
.search-select-hint {
|
|
356
|
-
padding: 10px 12px;
|
|
357
|
-
color: var(--color-text-subtle);
|
|
358
|
-
font-size: 0.8125rem;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/* ── Multi-select (chips in the control; check-list dropdown; extends .search-select) ── */
|
|
362
|
-
.search-select-multi {
|
|
363
|
-
align-items: center;
|
|
364
|
-
gap: 6px;
|
|
365
|
-
// The md field height is the floor, so a one-row multi-select lines up with the inputs and buttons beside it.
|
|
366
|
-
min-height: var(--wui-control-md);
|
|
367
|
-
height: auto;
|
|
368
|
-
padding-top: 5px;
|
|
369
|
-
padding-bottom: 5px;
|
|
370
|
-
flex-wrap: nowrap;
|
|
371
|
-
}
|
|
372
|
-
.ms-chips {
|
|
373
|
-
display: flex;
|
|
374
|
-
flex-wrap: wrap;
|
|
375
|
-
gap: 6px;
|
|
376
|
-
flex: 1 1 auto;
|
|
377
|
-
min-width: 0;
|
|
378
|
-
align-items: center;
|
|
379
|
-
}
|
|
380
|
-
// Chips scale with the control size — the taller the field, the larger its tokens
|
|
381
|
-
// (the element always emits `.chip.chip-sm`; these override it per size tier). The
|
|
382
|
-
// two-class `.ms-chips .chip` outranks the single `.chip-sm`, so md is the base and
|
|
383
|
-
// the sm/lg tiers layer over it.
|
|
384
|
-
.ms-chips .chip {
|
|
385
|
-
gap: 5px;
|
|
386
|
-
padding: 3px 9px;
|
|
387
|
-
font-size: 0.8125rem;
|
|
388
|
-
}
|
|
389
|
-
.search-select-sm .ms-chips .chip {
|
|
390
|
-
gap: 4px;
|
|
391
|
-
padding: 2px 8px;
|
|
392
|
-
font-size: 0.75rem;
|
|
393
|
-
}
|
|
394
|
-
.search-select-lg .ms-chips .chip {
|
|
395
|
-
gap: 6px;
|
|
396
|
-
padding: 5px 12px;
|
|
397
|
-
font-size: 0.875rem;
|
|
398
|
-
}
|
|
399
|
-
// Collapse mode (collapse-chips): chips stay on one row; the JS folds the overflow into
|
|
400
|
-
// a "+N" counter (see WuiMultiSelect._collapseChips).
|
|
401
|
-
wui-multiselect[collapse-chips] .ms-chips {
|
|
402
|
-
flex-wrap: nowrap;
|
|
403
|
-
overflow: hidden;
|
|
404
|
-
}
|
|
405
|
-
.chip-more {
|
|
406
|
-
flex-shrink: 0;
|
|
407
|
-
background: var(--color-primary-soft);
|
|
408
|
-
border-color: transparent;
|
|
409
|
-
color: var(--color-primary-text);
|
|
410
|
-
font-weight: 600;
|
|
411
|
-
}
|
|
412
|
-
.search-select-multi .search-select-caret,
|
|
413
|
-
.search-select-multi .search-select-icon {
|
|
414
|
-
align-self: center;
|
|
415
|
-
}
|
|
416
|
-
.ms-check {
|
|
417
|
-
display: inline-flex;
|
|
418
|
-
align-items: center;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
width: 16px;
|
|
421
|
-
flex: none;
|
|
422
|
-
color: var(--color-primary-text);
|
|
423
|
-
opacity: 0;
|
|
424
|
-
}
|
|
425
|
-
.search-select-option[aria-selected='true'] .ms-check {
|
|
426
|
-
opacity: 1;
|
|
427
|
-
}
|
|
428
|
-
.ms-opt-label {
|
|
429
|
-
flex: 1;
|
|
430
|
-
min-width: 0;
|
|
431
|
-
overflow: hidden;
|
|
432
|
-
text-overflow: ellipsis;
|
|
433
|
-
text-align: left;
|
|
434
|
-
}
|
|
435
|
-
.search-select-multi .search-select-option {
|
|
436
|
-
display: flex;
|
|
437
|
-
align-items: center;
|
|
438
|
-
gap: 8px;
|
|
439
|
-
}
|
|
440
|
-
// Rich rows (option `description` / `avatar` / `initials` / `disabled`). The label block comes
|
|
441
|
-
// first in the markup so keyboard typeahead matches the name; the avatar is ordered before it.
|
|
442
|
-
.wui-opt-rich {
|
|
443
|
-
padding-top: 7px;
|
|
444
|
-
padding-bottom: 7px;
|
|
445
|
-
}
|
|
446
|
-
.wui-opt-rich .wui-opt-avatar {
|
|
447
|
-
order: -1;
|
|
448
|
-
}
|
|
449
|
-
.wui-opt-name,
|
|
450
|
-
.wui-opt-desc {
|
|
451
|
-
display: block;
|
|
452
|
-
overflow: hidden;
|
|
453
|
-
text-overflow: ellipsis;
|
|
454
|
-
white-space: nowrap;
|
|
455
|
-
}
|
|
456
|
-
.wui-opt-desc {
|
|
457
|
-
font-size: 0.8125rem;
|
|
458
|
-
font-weight: 400;
|
|
459
|
-
color: var(--color-text-subtle);
|
|
460
|
-
}
|
|
461
|
-
.wui-opt-hint {
|
|
462
|
-
flex: none;
|
|
463
|
-
font-size: 0.75rem;
|
|
464
|
-
color: var(--color-text-muted);
|
|
465
|
-
}
|
|
466
|
-
// A disabled row stays readable and reachable by the keyboard, but never looks choosable:
|
|
467
|
-
// no primary tint on hover or when the arrow keys land on it.
|
|
468
|
-
.search-select-option[aria-disabled='true'] {
|
|
469
|
-
cursor: not-allowed;
|
|
470
|
-
color: var(--color-text-muted);
|
|
471
|
-
}
|
|
472
|
-
.search-select-option[aria-disabled='true']:hover,
|
|
473
|
-
.search-select-option[aria-disabled='true'].is-active {
|
|
474
|
-
background: var(--color-bg-subtle);
|
|
475
|
-
color: var(--color-text-muted);
|
|
476
|
-
}
|
|
477
|
-
.search-select-option[aria-disabled='true'] .wui-opt-avatar {
|
|
478
|
-
opacity: var(--wui-disabled-opacity);
|
|
479
|
-
}
|
|
480
|
-
// allow-custom: the inline text input wraps with the chips and keeps enough room to type.
|
|
481
|
-
.ms-chips > .ms-input {
|
|
482
|
-
flex: 1 0 8ch;
|
|
483
|
-
}
|
|
484
|
-
.wui-ms-custom-error:empty {
|
|
485
|
-
display: none;
|
|
486
|
-
}
|
|
487
|
-
.ms-input {
|
|
488
|
-
flex: 1;
|
|
489
|
-
min-width: 60px;
|
|
490
|
-
border: none;
|
|
491
|
-
background: transparent;
|
|
492
|
-
font: inherit;
|
|
493
|
-
color: inherit;
|
|
494
|
-
padding: 0;
|
|
495
|
-
margin: 0;
|
|
496
|
-
}
|
|
497
|
-
.ms-input::placeholder {
|
|
498
|
-
color: var(--color-text-subtle);
|
|
499
|
-
}
|
|
500
|
-
.ms-input:focus {
|
|
501
|
-
outline: none;
|
|
502
|
-
}
|
|
503
|
-
// AppTagInput renders its input inside the chip row, after the chips, so the shared
|
|
504
|
-
// `.ms-chips > .ms-input` rule above lets it wrap with them and fill the rest of the line.
|
|
505
|
-
|
|
506
317
|
/* ── Choice card: image / custom-template variant ── */
|
|
507
318
|
.struct-card-img-card {
|
|
508
319
|
flex-direction: column;
|
package/scss/wui/_utilities.scss
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
vertical-align: -.125em;
|
|
18
18
|
}
|
|
19
|
-
// Zero specificity: a rule that colours an icon itself, such as .
|
|
19
|
+
// Zero specificity: a rule that colours an icon itself, such as .wui-select-caret, keeps winning.
|
|
20
20
|
:where(.wui-icon) {
|
|
21
21
|
color: var(--wui-icon-color, currentColor);
|
|
22
22
|
}
|