@webority/theme 0.163.0 → 0.164.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.
Files changed (62) hide show
  1. package/README.md +21 -21
  2. package/dist/purge-safelist.json +10 -11
  3. package/dist/webority-theme.css +1 -1
  4. package/package.json +6 -5
  5. package/scss/_bootstrap.generated.scss +1 -1
  6. package/scss/_components.scss +38 -34
  7. package/scss/_flags.scss +3 -3
  8. package/scss/_marketing.scss +6 -6
  9. package/scss/_tokens.generated.scss +1 -1
  10. package/scss/_variables.scss +19 -19
  11. package/scss/_wui-components.scss +2 -0
  12. package/scss/_wui-core.scss +2 -0
  13. package/scss/wui/_card.scss +8 -8
  14. package/scss/wui/_choice.scss +4 -4
  15. package/scss/wui/_command-palette.scss +7 -2
  16. package/scss/wui/_comment-thread.scss +3 -3
  17. package/scss/wui/_context-menu.scss +14 -10
  18. package/scss/wui/_controls.scss +74 -73
  19. package/scss/wui/_data.scss +19 -33
  20. package/scss/wui/_dialog-motion.scss +14 -19
  21. package/scss/wui/_disclosure.scss +3 -3
  22. package/scss/wui/_display.scss +56 -56
  23. package/scss/wui/_dock.scss +4 -4
  24. package/scss/wui/_drawer.scss +18 -15
  25. package/scss/wui/_empty-state.scss +4 -4
  26. package/scss/wui/_file-viewer.scss +14 -2
  27. package/scss/wui/_filter-popover.scss +1 -1
  28. package/scss/wui/_floating.scss +1 -1
  29. package/scss/wui/_flow.scss +33 -33
  30. package/scss/wui/_hover-card.scss +6 -5
  31. package/scss/wui/_inline-edit.scss +1 -1
  32. package/scss/wui/_kanban.scss +1 -1
  33. package/scss/wui/_lightbox.scss +20 -9
  34. package/scss/wui/_media.scss +1 -1
  35. package/scss/wui/_mention-input.scss +3 -3
  36. package/scss/wui/_menu-motion.scss +23 -23
  37. package/scss/wui/_modal-remote.scss +3 -3
  38. package/scss/wui/_native-overlay.scss +76 -0
  39. package/scss/wui/_navigation-menu.scss +13 -17
  40. package/scss/wui/_navigation.scss +25 -1
  41. package/scss/wui/_notification-center.scss +6 -9
  42. package/scss/wui/_overlay-reset.scss +15 -0
  43. package/scss/wui/_overlays.scss +139 -99
  44. package/scss/wui/_page-header-bar.scss +24 -0
  45. package/scss/wui/_scrollbar.scss +1 -1
  46. package/scss/wui/_sections.scss +3 -3
  47. package/scss/wui/_select.scss +16 -10
  48. package/scss/wui/_shell-parts.scss +2 -2
  49. package/scss/wui/_shell.scss +131 -28
  50. package/scss/wui/_shortcuts.scss +3 -15
  51. package/scss/wui/_sortable.scss +1 -1
  52. package/scss/wui/_tone-pill.scss +2 -2
  53. package/scss/wui/_toolbar.scss +3 -3
  54. package/scss/wui/_truncate.scss +2 -2
  55. package/scss/wui/_typography.scss +8 -8
  56. package/scss/wui/_utilities.scss +4 -5
  57. package/scss/wui/_whats-new.scss +6 -7
  58. package/scss/wui/_workspace.scss +34 -9
  59. package/scss/wui/tour/_base.scss +11 -1
  60. package/scss/wui/tour/_end.scss +6 -0
  61. package/scss/wui/tour/_media.scss +1 -1
  62. package/scss/wui/tour/_placement.scss +6 -0
@@ -205,6 +205,7 @@
205
205
  .table-ledger tbody th.wui-row-header {
206
206
  height: var(--wui-table-row-height);
207
207
  padding: var(--wui-table-row-pad-y) 12px;
208
+ vertical-align: top;
208
209
  border-bottom: var(--wui-table-row-divider-width) solid var(--color-border);
209
210
  font-family: var(--wui-font-ui);
210
211
  font-size: var(--wui-fs-xs);
@@ -264,27 +265,13 @@
264
265
  margin-bottom: 2px;
265
266
  }
266
267
  }
267
- // Clamp a ledger name to one line. OPT-IN — see below for why it is not the default.
268
- //
269
- // In a ledger a long name is the normal case: a 112-char project name wrapped to three lines
270
- // and took its row to 99px against 61px for every other row, breaking the row rhythm down the
271
- // whole table.
272
- //
273
- // `white-space: nowrap` + ellipsis is the WRONG fix and was measured to be: under the
274
- // ledger's auto table layout a nowrap cell demands its full unwrapped width, which widened a
275
- // 360px column to 854px and pushed the table into horizontal scroll. It trades row height for
276
- // column geometry. A line clamp leaves the text wrappable, so min-content stays one word.
277
- //
278
- // DEFAULT inside a ledger, opt-in class elsewhere.
279
- //
280
- // It shipped opt-in because `-webkit-box` stacks element children, and the library styles
281
- // `.u-name` without ever emitting it — so a product composing a name with an inline badge
282
- // would have got the badge under the name. A consumer then audited all 13 of their usages:
283
- // every one has a bare text expression as its only child, and the badges and sublines are
284
- // SIBLINGS inside `.u-meta`, outside `.u-name` entirely. The caution was right to have and
285
- // does not apply, so the ledger case — where a wrapped name breaks row rhythm down the whole
286
- // table — gets it without anyone opting in.
287
- .table-ledger .u-name,
268
+ // A line clamp keeps a ledger name wrappable. nowrap would widen its column under auto layout.
269
+ .table-ledger .u-name {
270
+ display: -webkit-box;
271
+ -webkit-line-clamp: var(--wui-name-lines, 2);
272
+ -webkit-box-orient: vertical;
273
+ overflow: hidden;
274
+ }
288
275
  .u-name-clamp {
289
276
  display: -webkit-box;
290
277
  -webkit-line-clamp: 1;
@@ -328,6 +315,7 @@
328
315
  // Compact is one line per row: the identity subline is hidden and text steps down to 13px.
329
316
  .table-ledger.wui-table-compact {
330
317
  --avatar-size: 24px;
318
+ --wui-name-lines: 1;
331
319
  }
332
320
  .table-ledger.wui-table-compact thead th {
333
321
  height: 36px;
@@ -643,7 +631,7 @@
643
631
  .table-wrap[data-wui-overflow-end]:has(> .wui-table-sticky-actions) {
644
632
  --wui-overflow-fade-end: 0px;
645
633
  }
646
- :is(.table-wrap, .table-responsive, [class*="table-responsive-"]):is([data-wui-overflow-start], [data-wui-overflow-end]):not(:has([aria-haspopup][aria-expanded="true"], .dropdown-menu.show)) {
634
+ :is(.table-wrap, .table-responsive, [class*="table-responsive-"]):is([data-wui-overflow-start], [data-wui-overflow-end]):not(:has([aria-haspopup][aria-expanded="true"], .dropdown-menu:popover-open)) {
647
635
  mask-image: linear-gradient(
648
636
  90deg,
649
637
  transparent,
@@ -652,7 +640,7 @@
652
640
  transparent
653
641
  );
654
642
  }
655
- :is(.table-wrap, .table-responsive, [class*="table-responsive-"]):dir(rtl):is([data-wui-overflow-start], [data-wui-overflow-end]):not(:has([aria-haspopup][aria-expanded="true"], .dropdown-menu.show)) {
643
+ :is(.table-wrap, .table-responsive, [class*="table-responsive-"]):dir(rtl):is([data-wui-overflow-start], [data-wui-overflow-end]):not(:has([aria-haspopup][aria-expanded="true"], .dropdown-menu:popover-open)) {
656
644
  mask-image: linear-gradient(
657
645
  270deg,
658
646
  transparent,
@@ -1004,8 +992,9 @@
1004
992
  // A scrolling table that opens its card needs its spacing outside the scroll box: padding here
1005
993
  // would show scrolled rows above the sticky header. The card is a flex column, so the margin
1006
994
  // does not collapse out of it.
995
+ // A product sets the inset of a table in a card with --wui-card-table-inset.
1007
996
  .card > .table-wrap.wui-table-scroll:has(> .table-ledger):first-child {
1008
- margin-top: var(--wui-card-pad);
997
+ margin-top: var(--wui-card-table-inset, var(--wui-card-pad));
1009
998
  }
1010
999
 
1011
1000
  // A pinned cell paints a solid colour so scrolled cells pass under it; that colour must match what shows
@@ -1068,9 +1057,9 @@
1068
1057
  }
1069
1058
  // Each pinned cell is its own stacking context, so the next row's pinned cell would paint over an
1070
1059
  // open menu inside this one. The cell that holds an open menu lifts above its pinned siblings.
1071
- .table-ledger.wui-table-sticky-actions > :is(tbody, tfoot) > tr:not(.wui-row-expanded) > :last-child:has([aria-expanded="true"], .dropdown-menu.show),
1072
- .table-ledger.wui-table-sticky-first > :is(tbody, tfoot) > tr:not(.wui-row-expanded) > :first-child:has([aria-expanded="true"], .dropdown-menu.show),
1073
- .table-ledger > :is(tbody, tfoot) > tr:not(.wui-row-expanded, .wui-group-row) > :is(.wui-pin-start, .wui-pin-end):has([aria-expanded="true"], .dropdown-menu.show) {
1060
+ .table-ledger.wui-table-sticky-actions > :is(tbody, tfoot) > tr:not(.wui-row-expanded) > :last-child:has([aria-expanded="true"], .dropdown-menu:popover-open),
1061
+ .table-ledger.wui-table-sticky-first > :is(tbody, tfoot) > tr:not(.wui-row-expanded) > :first-child:has([aria-expanded="true"], .dropdown-menu:popover-open),
1062
+ .table-ledger > :is(tbody, tfoot) > tr:not(.wui-row-expanded, .wui-group-row) > :is(.wui-pin-start, .wui-pin-end):has([aria-expanded="true"], .dropdown-menu:popover-open) {
1074
1063
  z-index: 4;
1075
1064
  }
1076
1065
  // A group header holds its own open collapse toggle, so the rule above would lift it over the menu of the row above it. It stays below an open menu.
@@ -1134,10 +1123,7 @@
1134
1123
  position: relative;
1135
1124
  }
1136
1125
  // Touch pointers need a 44px minimum target. Grow the hit area, not the
1137
- // ink, so row density and alignment are untouched. This lives on ::before, NOT
1138
- // ::after: an AppActionIcon carries `data-wui-tip` for its tooltip, whose bubble
1139
- // owns `[data-wui-tip]::after` (imported later, same specificity) — sharing ::after
1140
- // would let the tooltip overwrite the hit-area box and silently drop the 44px target.
1126
+ // ink, so row density and alignment are untouched. This lives on ::before, not ::after.
1141
1127
  @media (pointer: coarse) {
1142
1128
  .u-action::before {
1143
1129
  content: "";
@@ -1380,8 +1366,8 @@ wui-data-table {
1380
1366
  text-overflow: ellipsis;
1381
1367
  }
1382
1368
  // A menu or picker inside a cell still has to float out of it.
1383
- .table-ledger[data-wui-fixed] > tbody > tr > td:has([aria-expanded="true"], .dropdown-menu.show),
1384
- .table-ledger[data-wui-fixed] > tbody > tr > th.wui-row-header:has([aria-expanded="true"], .dropdown-menu.show) {
1369
+ .table-ledger[data-wui-fixed] > tbody > tr > td:has([aria-expanded="true"], .dropdown-menu:popover-open),
1370
+ .table-ledger[data-wui-fixed] > tbody > tr > th.wui-row-header:has([aria-expanded="true"], .dropdown-menu:popover-open) {
1385
1371
  overflow: visible;
1386
1372
  }
1387
1373
 
@@ -1,15 +1,15 @@
1
1
  @use "../config" as *;
2
2
 
3
3
  // ── Dialog open motion ──
4
- // Every Bootstrap modal (AppModal, the Ctrl+K palette and search, Razor <app-modal>, confirm
4
+ // Every modal dialog (AppModal, the Ctrl+K palette and search, Razor <app-modal>, confirm
5
5
  // dialogs) opens with the same soft zoom the menus use: a fade in from 95% size, no bounce.
6
6
  // Like the menu motion it is a PRODUCT-LEVEL choice, set once on the root element:
7
7
  //
8
8
  // <html> soft zoom (default)
9
9
  // <html data-wui-dialog-motion="slide"> Bootstrap's fade and slide down from the top
10
10
  //
11
- // The zoom animates the standalone `scale` property and drops Bootstrap's transform transition,
12
- // so the slide never runs underneath it. Close stays Bootstrap's own quick fade of the modal.
11
+ // The zoom animates the standalone `scale` property, so the slide never runs underneath it.
12
+ // Close is the exit fade under [data-wui-closing] (wui/_native-overlay.scss).
13
13
  // Side panels (offcanvas, drawers) keep their slide: they come from an edge by nature.
14
14
  //
15
15
  // The status icon in a dialog header springs in with the dialog (rules below).
@@ -21,42 +21,37 @@
21
21
  --wui-dialog-anim-ease: var(--wui-ease-out);
22
22
  }
23
23
 
24
- :root:not([data-wui-dialog-motion="slide"]) .modal.fade .modal-dialog {
25
- transform: none;
26
- transition: none;
27
- }
28
-
29
- :root:not([data-wui-dialog-motion="slide"]) .modal.show .modal-dialog {
24
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] .modal-dialog {
30
25
  animation: var(--wui-dialog-anim) var(--wui-dialog-anim-duration) var(--wui-dialog-anim-ease);
31
26
  }
32
27
 
33
28
  // The three beats of an SVG tone (error) run 600ms end to end and overlap, so the icon reads as
34
29
  // one movement. The rules key on position, so a new SVG tone inherits the same beats.
35
30
  // The origin is the icon's centre, not the viewBox corner, so every scale grows in place.
36
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon {
31
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon {
37
32
  display: inline-flex;
38
33
  }
39
34
 
40
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > rect,
41
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > g {
35
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > rect,
36
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > g {
42
37
  transform-box: view-box;
43
38
  transform-origin: 87px 87px;
44
39
  }
45
40
 
46
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > rect:first-child {
41
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > rect:first-child {
47
42
  animation: wui-dialog-icon-halo var(--wui-duration-default) var(--wui-ease-out) 0ms both;
48
43
  }
49
44
 
50
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > rect:nth-child(2) {
45
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > rect:nth-child(2) {
51
46
  animation: wui-dialog-icon-ring var(--wui-duration-default) var(--wui-ease-out) var(--wui-duration-fast) both;
52
47
  }
53
48
 
54
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > g {
49
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > g {
55
50
  animation: wui-dialog-icon-core var(--wui-duration-slow) var(--wui-ease-elastic) calc(var(--wui-duration-fast) * 1.75) both;
56
51
  }
57
52
 
58
53
  // Raster tones get one beat because they have no parts to stage.
59
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > img {
54
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > img {
60
55
  animation: wui-dialog-icon-raster var(--wui-duration-slow) var(--wui-ease-elastic) 0ms both;
61
56
  }
62
57
 
@@ -108,17 +103,17 @@
108
103
  }
109
104
 
110
105
  @media (prefers-reduced-motion: reduce) {
111
- :root:not([data-wui-dialog-motion="slide"]) .modal.show .modal-dialog {
106
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] .modal-dialog {
112
107
  animation: none;
113
108
  }
114
109
 
115
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > svg > :is(rect, g) {
110
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > svg > :is(rect, g) {
116
111
  animation: none;
117
112
  opacity: 1;
118
113
  transform: none;
119
114
  }
120
115
 
121
- :root:not([data-wui-dialog-motion="slide"]) .modal.show wui-status-icon > img {
116
+ :root:not([data-wui-dialog-motion="slide"]) dialog.wui-modal-shell[open] wui-status-icon > img {
122
117
  animation: none;
123
118
  opacity: 1;
124
119
  transform: none;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Accordion / FAQ list.
4
4
  //
5
- // Part of the wui-components layer — see _wui-components.scss for the whole
5
+ // Part of the wui-components layer: see _wui-components.scss for the whole
6
6
  // picture and the load order. Order within the layer is LOAD-BEARING: these
7
7
  // partials are a split of one stylesheet, not independent modules, so a rule
8
8
  // here may be overridden by a later partial. Never reorder the imports.
@@ -79,7 +79,7 @@
79
79
  color: var(--color-primary-text);
80
80
  }
81
81
 
82
- // The animating track. `min-height: 0` on the inner element is required — a grid
82
+ // The animating track. `min-height: 0` on the inner element is required: a grid
83
83
  // item's default `min-height: auto` refuses to shrink below its content, which
84
84
  // would defeat the 0fr row entirely.
85
85
  .wui-accordion-panel {
@@ -95,7 +95,7 @@
95
95
  overflow: hidden;
96
96
  // Horizontal padding is CONSTANT in both states. Toggling it with `.open` made the content
97
97
  // jump 18px sideways the instant a pane collapsed (padding isn't transitioned, unlike the
98
- // grid-row height) — the "slide left" bug. Side padding adds no height, so keeping it on the
98
+ // grid-row height), the "slide left" bug. Side padding adds no height, so keeping it on the
99
99
  // closed pane is safe; only the BOTTOM padding stays conditional (below), because a constant
100
100
  // one leaks height on the collapsed 0fr row.
101
101
  padding: 0 18px;