@webority/theme 0.163.0 → 0.165.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 (70) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +21 -21
  3. package/dist/purge-safelist.json +47 -24
  4. package/dist/webority-theme.css +1 -1
  5. package/package.json +6 -5
  6. package/scss/_bootstrap.generated.scss +1 -1
  7. package/scss/_components.scss +38 -34
  8. package/scss/_flags.scss +3 -3
  9. package/scss/_marketing.scss +6 -6
  10. package/scss/_tokens.generated.scss +1 -1
  11. package/scss/_variables.scss +19 -19
  12. package/scss/_wui-components.scss +4 -2
  13. package/scss/_wui-core.scss +4 -2
  14. package/scss/wui/_card.scss +8 -8
  15. package/scss/wui/_choice.scss +4 -4
  16. package/scss/wui/_command-palette.scss +7 -2
  17. package/scss/wui/_comment-thread.scss +3 -3
  18. package/scss/wui/_context-menu.scss +14 -10
  19. package/scss/wui/_controls.scss +80 -116
  20. package/scss/wui/_data.scss +71 -35
  21. package/scss/wui/_dialog-motion.scss +14 -19
  22. package/scss/wui/_disclosure.scss +3 -3
  23. package/scss/wui/_display.scss +56 -56
  24. package/scss/wui/_dock.scss +4 -4
  25. package/scss/wui/_drawer.scss +18 -15
  26. package/scss/wui/_empty-state.scss +4 -4
  27. package/scss/wui/_entry-grid.scss +118 -0
  28. package/scss/wui/_field-sizes.scss +1 -2
  29. package/scss/wui/_file-viewer.scss +14 -2
  30. package/scss/wui/_filter-popover.scss +1 -1
  31. package/scss/wui/_floating.scss +1 -1
  32. package/scss/wui/_flow.scss +33 -33
  33. package/scss/wui/_formula-steps.scss +73 -0
  34. package/scss/wui/_hover-card.scss +6 -5
  35. package/scss/wui/_inline-edit.scss +1 -1
  36. package/scss/wui/_interaction.scss +4 -0
  37. package/scss/wui/_kanban.scss +1 -1
  38. package/scss/wui/_lightbox.scss +20 -9
  39. package/scss/wui/_media.scss +1 -1
  40. package/scss/wui/_mention-input.scss +3 -3
  41. package/scss/wui/_menu-motion.scss +23 -23
  42. package/scss/wui/_metric-strip.scss +14 -0
  43. package/scss/wui/_modal-remote.scss +3 -3
  44. package/scss/wui/_native-overlay.scss +76 -0
  45. package/scss/wui/_navigation-menu.scss +13 -17
  46. package/scss/wui/_navigation.scss +25 -1
  47. package/scss/wui/_notification-center.scss +6 -9
  48. package/scss/wui/_overlay-reset.scss +15 -0
  49. package/scss/wui/_overlays.scss +147 -99
  50. package/scss/wui/_page-header-bar.scss +24 -0
  51. package/scss/wui/_scrollbar.scss +1 -1
  52. package/scss/wui/_sections.scss +31 -3
  53. package/scss/wui/_select.scss +16 -10
  54. package/scss/wui/_shell-parts.scss +6 -2
  55. package/scss/wui/_shell.scss +131 -28
  56. package/scss/wui/_shortcuts.scss +3 -15
  57. package/scss/wui/_sortable.scss +1 -1
  58. package/scss/wui/_tone-pill.scss +2 -2
  59. package/scss/wui/_toolbar.scss +3 -3
  60. package/scss/wui/_truncate.scss +2 -2
  61. package/scss/wui/_typography.scss +9 -8
  62. package/scss/wui/_utilities.scss +4 -12
  63. package/scss/wui/_whats-new.scss +6 -7
  64. package/scss/wui/_workspace.scss +34 -9
  65. package/scss/wui/tour/_base.scss +11 -1
  66. package/scss/wui/tour/_end.scss +6 -0
  67. package/scss/wui/tour/_media.scss +1 -1
  68. package/scss/wui/tour/_placement.scss +6 -0
  69. package/scss/wui/_resizable.scss +0 -100
  70. package/scss/wui/_rolling-number.scss +0 -68
@@ -714,12 +714,12 @@ button.datepicker-month:hover {
714
714
  font-size: 12px;
715
715
  color: var(--color-text-subtle);
716
716
  }
717
- // Quick ranges: a list beside the calendars. [hidden] must stay display:none, so the flex row
718
- // applies only while the popover is open.
717
+ // Quick ranges: a list beside the calendars. A closed popover stays display:none, so the flex row
718
+ // applies only while it is open.
719
719
  .daterange-pop.wui-daterange-pop--presets {
720
720
  width: 800px;
721
721
  }
722
- .daterange-pop.wui-daterange-pop--presets:not([hidden]) {
722
+ .daterange-pop.wui-daterange-pop--presets:popover-open {
723
723
  display: flex;
724
724
  gap: 18px;
725
725
  }
@@ -774,7 +774,7 @@ button.datepicker-month:hover {
774
774
  .daterange-pop.wui-daterange-pop--presets {
775
775
  width: 320px;
776
776
  }
777
- .daterange-pop.wui-daterange-pop--presets:not([hidden]) {
777
+ .daterange-pop.wui-daterange-pop--presets:popover-open {
778
778
  flex-direction: column;
779
779
  gap: 12px;
780
780
  }
@@ -11,10 +11,14 @@
11
11
 
12
12
  // Anchored near the top rather than centred, so the input stays put while results grow and
13
13
  // shrink underneath it.
14
- .modal.wui-modal-shell:has(.wui-cmd-card) {
14
+ dialog.wui-modal-shell[open]:has(.wui-cmd-card) {
15
15
  align-items: flex-start;
16
16
  padding-top: max(20px, min(12vh, 120px));
17
17
  }
18
+ // As a flex item the wrapper's min-height would be its content height; zero keeps the block-box value it always had.
19
+ dialog.wui-modal-shell[open]:has(.wui-cmd-card) .modal-dialog.wui-rb-dialog {
20
+ min-height: 0;
21
+ }
18
22
  .wui-modal.wui-cmd-card {
19
23
  max-height: min(560px, calc(100vh - 2 * max(20px, min(12vh, 120px))));
20
24
  }
@@ -198,8 +202,9 @@ button.wui-cmd-crumb:focus-visible {
198
202
  scroll-margin: 6px;
199
203
  }
200
204
  // The active row takes the tint, which is all a pointer or a freshly opened list needs.
205
+ // --wui-command-item-active-bg sets that tint.
201
206
  .wui-cmd-item[aria-selected="true"] {
202
- background: var(--color-primary-soft);
207
+ background: var(--wui-command-item-active-bg, var(--color-primary-soft));
203
208
  color: var(--color-primary-text);
204
209
  }
205
210
  // Focus stays in the input, and the tint alone marks the keyboard's row at about 1.2:1, so once an
@@ -148,7 +148,6 @@ button.wui-reaction:hover,
148
148
  .wui-reaction-picker {
149
149
  position: fixed;
150
150
  z-index: var(--wui-z-menu);
151
- display: flex;
152
151
  gap: 2px;
153
152
  padding: 4px;
154
153
  background: var(--color-surface);
@@ -157,8 +156,9 @@ button.wui-reaction:hover,
157
156
  corner-shape: squircle;
158
157
  box-shadow: var(--wui-shadow-popover);
159
158
  }
160
- .wui-reaction-picker[hidden] {
161
- display: none;
159
+ // An author display would override the closed popover's display: none, so it applies only when open.
160
+ .wui-reaction-picker:popover-open {
161
+ display: flex;
162
162
  }
163
163
  .wui-reaction-choice {
164
164
  display: inline-flex;
@@ -4,9 +4,8 @@
4
4
  // AppContextMenu / <app-context-menu> / <wui-context-menu>: a right-click menu over a region.
5
5
  // The panel is a Bootstrap .dropdown-menu with .dropdown-item rows, so the look, the danger tone
6
6
  // and the icon treatment come from the shared dropdown styles; this partial only adds what a
7
- // menu opened at the pointer needs. The element shows the panel with [data-open] (never `.show`,
8
- // which a React re-render would reset) and places it with position: fixed, so it escapes any
9
- // clipping ancestor. Every colour is a theme token.
7
+ // menu opened at the pointer needs. The panel is a popover, shown in the top layer while
8
+ // :popover-open (never `.show`, which a React re-render would reset). Every colour is a theme token.
10
9
  //
11
10
  // Part of the wui-components layer, see _wui-components.scss for load order.
12
11
 
@@ -17,15 +16,18 @@ wui-context-menu {
17
16
 
18
17
  .dropdown-menu.wui-context-menu-panel {
19
18
  position: fixed;
19
+ // The popover UA rules centre a popover with inset and margin; the anchor places this one.
20
+ inset: auto;
21
+ margin: 0;
20
22
  // Above a modal, like every other portalled menu (see --wui-z-* in _tokens.scss).
21
23
  z-index: var(--wui-z-menu);
22
- // Never taller than the screen; anchorOverlay clamps it further when the pointer is low.
24
+ // Never taller than the screen; openAnchoredPopover clamps it further when the pointer is low.
23
25
  max-height: calc(100vh - var(--wui-space-sm));
24
26
  // Focus lands on the panel itself after a pointer open; the rows carry the visible focus.
25
27
  outline: none;
26
28
  transform-origin: top left;
27
29
 
28
- &[data-open] {
30
+ &:popover-open {
29
31
  display: block;
30
32
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
31
33
  }
@@ -52,16 +54,18 @@ wui-context-menu {
52
54
  }
53
55
  }
54
56
 
55
- // A submenu's panel is a descendant of the root panel, so it takes the rows and disabled rules
56
- // above; it is placed beside its row by anchorOverlay and opens toward the side it chose.
57
+ // A submenu's panel is a popover nested in the root panel, so it takes the rows and disabled rules
58
+ // above; it is placed beside its row and opens toward the side it chose.
57
59
  .dropdown-menu.wui-context-menu-subpanel {
58
60
  position: fixed;
61
+ inset: auto;
62
+ margin: 0;
59
63
  z-index: var(--wui-z-menu);
60
64
  max-height: calc(100vh - var(--wui-space-sm));
61
65
  outline: none;
62
66
  transform-origin: top left;
63
67
 
64
- &[data-open] {
68
+ &:popover-open {
65
69
  display: block;
66
70
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
67
71
  }
@@ -124,8 +128,8 @@ wui-context-menu {
124
128
  }
125
129
 
126
130
  @media (prefers-reduced-motion: reduce) {
127
- .dropdown-menu.wui-context-menu-panel[data-open],
128
- .dropdown-menu.wui-context-menu-subpanel[data-open] {
131
+ .dropdown-menu.wui-context-menu-panel:popover-open,
132
+ .dropdown-menu.wui-context-menu-subpanel:popover-open {
129
133
  animation: none;
130
134
  }
131
135
  }