@webority/theme 0.177.0 → 0.178.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/dist/purge-safelist.json +1 -1
- package/dist/webority-theme.css +1 -1
- package/package.json +3 -3
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_tokens-modes.generated.scss +1 -1
- package/scss/_tokens.generated.scss +1 -1
- package/scss/wui/_controls.scss +1 -4
- package/scss/wui/_data.scss +3 -1
- package/scss/wui/_field-floor.scss +0 -2
- package/scss/wui/_file-viewer.scss +2 -2
- package/scss/wui/_navigation.scss +5 -0
- package/scss/wui/_overlays.scss +54 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.178.0",
|
|
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": {
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@popperjs/core": "2.11.8",
|
|
82
82
|
"@types/node": "25.6.0",
|
|
83
|
-
"@webority/biome-config": "0.
|
|
84
|
-
"@webority/tokens": "0.
|
|
83
|
+
"@webority/biome-config": "0.178.0",
|
|
84
|
+
"@webority/tokens": "0.178.0",
|
|
85
85
|
"bootstrap": "5.3.9",
|
|
86
86
|
"country-flag-icons": "^1.6.20",
|
|
87
87
|
"sass-embedded": "^1.108.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.178.0 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;
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -401,9 +401,7 @@
|
|
|
401
401
|
font-family: inherit;
|
|
402
402
|
}
|
|
403
403
|
// Size steps: sm, lg and xl step to the --wui-control-* heights (35, 45 and 50px; md is 40px). App* emits
|
|
404
|
-
// .wui-input-sm/.wui-input-lg/.wui-input-xl
|
|
405
|
-
// BS field can match without the .input alias.
|
|
406
|
-
.form-control-sm,
|
|
404
|
+
// .wui-input-sm/.wui-input-lg/.wui-input-xl, and a raw Bootstrap field takes the same classes.
|
|
407
405
|
.wui-input-sm {
|
|
408
406
|
height: var(--wui-control-sm);
|
|
409
407
|
padding: 5px 10px;
|
|
@@ -411,7 +409,6 @@
|
|
|
411
409
|
border-radius: var(--wui-field-sm-radius);
|
|
412
410
|
corner-shape: squircle;
|
|
413
411
|
}
|
|
414
|
-
.form-control-lg,
|
|
415
412
|
.wui-input-lg {
|
|
416
413
|
height: var(--wui-control-lg);
|
|
417
414
|
padding: 9px 16px;
|
package/scss/wui/_data.scss
CHANGED
|
@@ -1197,13 +1197,15 @@
|
|
|
1197
1197
|
|
|
1198
1198
|
// Row actions show on row hover and keyboard focus by default (AppDataTable `rowActionsMode`, Razor
|
|
1199
1199
|
// `row-actions-mode`). "column" keeps the icons always visible; "hover-menu" keeps the menu visible and fades the icons.
|
|
1200
|
+
// An open menu keeps its row's actions live: pointer-events is inherited, so the menu would otherwise go dead once the pointer leaves the row.
|
|
1200
1201
|
.table-ledger:not(.wui-table-actions-column) tbody .u-row-actions {
|
|
1201
1202
|
opacity: 0;
|
|
1202
1203
|
pointer-events: none;
|
|
1203
1204
|
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1204
1205
|
}
|
|
1205
1206
|
.table-ledger:not(.wui-table-actions-column) tbody tr:hover .u-row-actions,
|
|
1206
|
-
.table-ledger:not(.wui-table-actions-column) tbody tr:focus-within .u-row-actions
|
|
1207
|
+
.table-ledger:not(.wui-table-actions-column) tbody tr:focus-within .u-row-actions,
|
|
1208
|
+
.table-ledger:not(.wui-table-actions-column) tbody .u-row-actions:has([aria-expanded="true"], .dropdown-menu:popover-open) {
|
|
1207
1209
|
opacity: 1;
|
|
1208
1210
|
pointer-events: auto;
|
|
1209
1211
|
}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
font-size: max(16px, #{$input-font-size});
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.form-control-sm,
|
|
24
23
|
.wui-input-sm {
|
|
25
24
|
font-size: max(16px, #{$input-font-size-sm});
|
|
26
25
|
}
|
|
@@ -30,7 +29,6 @@
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
// The library's large field is 16px (_controls.scss), not Bootstrap's $input-font-size-lg.
|
|
33
|
-
.form-control-lg,
|
|
34
32
|
.wui-input-lg {
|
|
35
33
|
font-size: max(16px, 16px);
|
|
36
34
|
}
|
|
@@ -16,8 +16,8 @@ wui-file-viewer {
|
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
|
-
height
|
|
20
|
-
|
|
19
|
+
// The default never drops below 420 px; a height the page sets replaces it whole.
|
|
20
|
+
height: max(420px, 70vh);
|
|
21
21
|
border: 1px solid var(--color-border);
|
|
22
22
|
border-radius: calc(var(--wui-radius-lg) * var(--wui-squircle-scale));
|
|
23
23
|
corner-shape: squircle;
|
|
@@ -335,6 +335,11 @@
|
|
|
335
335
|
background: color-mix(in srgb, var(--color-info) 16%, transparent);
|
|
336
336
|
color: var(--color-info-text);
|
|
337
337
|
}
|
|
338
|
+
// A count the page fills in later: a still skeleton pill two digits wide until then.
|
|
339
|
+
.app-tab .app-tab-count:empty {
|
|
340
|
+
width: calc(2ch + 12px);
|
|
341
|
+
background: var(--color-border-strong);
|
|
342
|
+
}
|
|
338
343
|
|
|
339
344
|
// ── Sizes ──
|
|
340
345
|
.app-tabs-sm .app-tab {
|
package/scss/wui/_overlays.scss
CHANGED
|
@@ -430,41 +430,66 @@ dialog.wui-modal-shell[open] {
|
|
|
430
430
|
// they pad past a notch or home indicator. `100dvh` follows the phone's collapsing toolbar.
|
|
431
431
|
// 100vw, not the shell's 100%: the document reserves a stable scrollbar gutter, which a fixed box's
|
|
432
432
|
// 100% leaves uncovered, so a fullscreen card would stop short of the right edge.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
433
|
+
@mixin wui-modal-fullscreen-sheet($shell) {
|
|
434
|
+
.modal.wui-modal-shell.#{$shell} {
|
|
435
|
+
width: 100vw;
|
|
436
|
+
padding: 0;
|
|
437
|
+
}
|
|
438
|
+
.modal.wui-modal-shell.#{$shell} .modal-dialog.wui-rb-dialog {
|
|
439
|
+
width: 100%;
|
|
440
|
+
height: 100%;
|
|
441
|
+
align-items: stretch;
|
|
442
|
+
}
|
|
443
|
+
.#{$shell} .wui-modal {
|
|
444
|
+
width: 100vw;
|
|
445
|
+
max-width: none;
|
|
446
|
+
height: 100dvh;
|
|
447
|
+
max-height: none;
|
|
448
|
+
border-radius: 0;
|
|
449
|
+
}
|
|
450
|
+
.#{$shell} .wui-modal-header {
|
|
451
|
+
padding-top: max(16px, env(safe-area-inset-top));
|
|
452
|
+
padding-left: max(20px, env(safe-area-inset-left));
|
|
453
|
+
padding-right: max(20px, env(safe-area-inset-right));
|
|
454
|
+
}
|
|
455
|
+
.#{$shell} .wui-modal-body {
|
|
456
|
+
padding-left: max(22px, env(safe-area-inset-left));
|
|
457
|
+
padding-right: max(22px, env(safe-area-inset-right));
|
|
458
|
+
}
|
|
459
|
+
.#{$shell} .wui-modal-footer {
|
|
460
|
+
padding-bottom: max(16px, env(safe-area-inset-bottom));
|
|
461
|
+
padding-left: max(22px, env(safe-area-inset-left));
|
|
462
|
+
padding-right: max(22px, env(safe-area-inset-right));
|
|
463
|
+
}
|
|
462
464
|
}
|
|
465
|
+
@include wui-modal-fullscreen-sheet(wui-modal-fullscreen);
|
|
463
466
|
|
|
464
467
|
// Wide size: a 1080px card capped at 90vw whose fields sit in two columns from md up. Both surfaces put wui-modal-wide on the shell.
|
|
465
468
|
.modal.wui-modal-shell.wui-modal-wide .wui-modal {
|
|
466
469
|
max-width: min(var(--wui-modal-max-width), 90vw);
|
|
467
470
|
}
|
|
471
|
+
|
|
472
|
+
// Phone size: below 576px the shell takes wui-modal-phone-<value> in place of its size class. A preset
|
|
473
|
+
// sets the card's own --wui-modal-max-width, because the inline value on the shell would win over a rule on the shell.
|
|
474
|
+
@media (max-width: 575.98px) {
|
|
475
|
+
.modal.wui-modal-shell.wui-modal-phone-sm .wui-modal {
|
|
476
|
+
--wui-modal-max-width: 380px;
|
|
477
|
+
}
|
|
478
|
+
.modal.wui-modal-shell.wui-modal-phone-md .wui-modal {
|
|
479
|
+
--wui-modal-max-width: 440px;
|
|
480
|
+
}
|
|
481
|
+
.modal.wui-modal-shell.wui-modal-phone-lg .wui-modal {
|
|
482
|
+
--wui-modal-max-width: 640px;
|
|
483
|
+
}
|
|
484
|
+
.modal.wui-modal-shell.wui-modal-phone-xl .wui-modal {
|
|
485
|
+
--wui-modal-max-width: 880px;
|
|
486
|
+
}
|
|
487
|
+
.modal.wui-modal-shell.wui-modal-phone-wide .wui-modal {
|
|
488
|
+
--wui-modal-max-width: 1080px;
|
|
489
|
+
max-width: min(var(--wui-modal-max-width), 90vw);
|
|
490
|
+
}
|
|
491
|
+
@include wui-modal-fullscreen-sheet(wui-modal-phone-fullscreen);
|
|
492
|
+
}
|
|
468
493
|
// The form inside a wide body is the field grid; the body stays in block flow, so the scroll hint fades take no room.
|
|
469
494
|
@include media-breakpoint-up(md) {
|
|
470
495
|
.wui-modal-wide .wui-modal-body > form,
|