@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
@@ -20,7 +20,7 @@
20
20
  // `transform` — Popper and anchorOverlay position these panels via transform/fixed
21
21
  // coordinates, and the standalone properties compose with that instead of clobbering.
22
22
  // - Panels shown by removing `hidden` (the wui-* set) replay the animation on every
23
- // reveal for free; Bootstrap surfaces key off `.show`. Close stays instant: the wui
23
+ // reveal for free; the popover surfaces key off `:popover-open`. Close stays instant: the wui
24
24
  // elements hide with `hidden` in the same tick, and delaying that for an exit
25
25
  // animation would change observable close timing everywhere.
26
26
  //
@@ -93,19 +93,19 @@
93
93
  }
94
94
  }
95
95
 
96
- .dropdown-menu.show,
97
- .popover.show,
98
- .wui-select-menu:not([hidden]),
99
- .country-dropdown-menu:not([hidden]),
100
- .datepicker-pop:not([hidden]),
101
- .daterange-pop:not([hidden]),
102
- .timepicker-pop:not([hidden]) {
96
+ .dropdown-menu:popover-open,
97
+ .popover:popover-open,
98
+ .wui-select-menu:popover-open,
99
+ .country-dropdown-menu:popover-open,
100
+ .datepicker-pop:popover-open,
101
+ .daterange-pop:popover-open,
102
+ .timepicker-pop:popover-open {
103
103
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
104
104
  transform-origin: top;
105
105
  }
106
106
 
107
107
  // End-aligned dropdowns zoom from the corner they attach to.
108
- .dropdown-menu-end.show {
108
+ .dropdown-menu-end:popover-open {
109
109
  transform-origin: top right;
110
110
  }
111
111
 
@@ -115,41 +115,41 @@
115
115
  .datepicker-pop.drop-up,
116
116
  .daterange-pop.drop-up,
117
117
  .timepicker-pop.drop-up,
118
- .dropdown-menu.show[data-popper-placement^="top"],
119
- .dropup .dropdown-menu.show {
118
+ .dropdown-menu:popover-open[data-side="top"],
119
+ .dropup .dropdown-menu:popover-open {
120
120
  --wui-menu-drop: 6px;
121
121
 
122
122
  transform-origin: bottom;
123
123
  }
124
124
 
125
- // Popover follows its Popper side; the drop always comes from the trigger's direction.
126
- .popover.show[data-popper-placement^="top"] {
125
+ // Popover follows its side; the drop always comes from the trigger's direction.
126
+ .popover:popover-open[data-side="top"] {
127
127
  --wui-menu-drop: 6px;
128
128
 
129
129
  transform-origin: bottom center;
130
130
  }
131
- .popover.show[data-popper-placement^="right"] {
131
+ .popover:popover-open[data-side="end"] {
132
132
  --wui-menu-drop: 0px;
133
133
 
134
134
  transform-origin: left center;
135
135
  }
136
- .popover.show[data-popper-placement^="left"] {
136
+ .popover:popover-open[data-side="start"] {
137
137
  --wui-menu-drop: 0px;
138
138
 
139
139
  transform-origin: right center;
140
140
  }
141
- .popover.show[data-popper-placement^="bottom"] {
141
+ .popover:popover-open[data-side="bottom"] {
142
142
  transform-origin: top center;
143
143
  }
144
144
 
145
145
  @media (prefers-reduced-motion: reduce) {
146
- .dropdown-menu.show,
147
- .popover.show,
148
- .wui-select-menu:not([hidden]),
149
- .country-dropdown-menu:not([hidden]),
150
- .datepicker-pop:not([hidden]),
151
- .daterange-pop:not([hidden]),
152
- .timepicker-pop:not([hidden]) {
146
+ .dropdown-menu:popover-open,
147
+ .popover:popover-open,
148
+ .wui-select-menu:popover-open,
149
+ .country-dropdown-menu:popover-open,
150
+ .datepicker-pop:popover-open,
151
+ .daterange-pop:popover-open,
152
+ .timepicker-pop:popover-open {
153
153
  animation: none;
154
154
  }
155
155
  }
@@ -85,3 +85,17 @@ a.wui-metric:hover .wui-metric-value {
85
85
  .wui-metric-tone-info .wui-metric-value {
86
86
  color: var(--color-info-text);
87
87
  }
88
+
89
+ // Opt-in: one flush row. No gap, items stretched to the row height, a rule between items from md up.
90
+ .wui-metric-strip-divided {
91
+ gap: 0;
92
+ align-items: stretch;
93
+ }
94
+ .wui-metric-strip-divided .wui-metric {
95
+ padding: var(--wui-space-md) var(--wui-space-lg);
96
+ }
97
+ @media (min-width: 768px) {
98
+ .wui-metric-strip-divided .wui-metric + .wui-metric {
99
+ border-left: 1px solid var(--color-border);
100
+ }
101
+ }
@@ -73,7 +73,7 @@
73
73
  transform: translateX(100%);
74
74
  transition: transform var(--wui-duration-default) var(--wui-ease-ui);
75
75
  }
76
- .modal.wui-remote-drawer.show .modal-dialog.wui-remote-drawer-dialog {
76
+ dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
77
77
  transform: none;
78
78
  }
79
79
  .modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
@@ -101,7 +101,7 @@
101
101
  margin: 0;
102
102
  transform: translateY(100%);
103
103
  }
104
- .modal.wui-remote-drawer.show .modal-dialog.wui-remote-drawer-dialog {
104
+ dialog.wui-modal-shell.wui-remote-drawer[open] .modal-dialog.wui-remote-drawer-dialog {
105
105
  transform: none;
106
106
  }
107
107
  .modal.wui-remote-drawer .wui-remote-drawer-dialog .wui-modal {
@@ -121,7 +121,7 @@
121
121
  }
122
122
 
123
123
  // A side panel dims the page behind it without blurring it, so the list stays readable.
124
- body:has(> .modal.wui-remote-drawer.show) > .modal-backdrop {
124
+ dialog.wui-modal-shell.wui-remote-drawer[open]::backdrop {
125
125
  backdrop-filter: none;
126
126
  -webkit-backdrop-filter: none;
127
127
  }
@@ -0,0 +1,76 @@
1
+ // ============================================================================
2
+ // wui/_native-overlay.scss
3
+ // ----------------------------------------------------------------------------
4
+ // Looks of the native overlay surfaces: a <dialog> opened with showModal() and
5
+ // a panel carrying the popover attribute. Loaded after dialog-motion in both
6
+ // _wui-core.scss and _wui-components.scss.
7
+ // ============================================================================
8
+ @use "overlay-reset" as *;
9
+
10
+ // The hosts are transparent: the dialog or popover inside is the box.
11
+ wui-modal,
12
+ wui-drawer,
13
+ wui-popover {
14
+ display: contents;
15
+ }
16
+
17
+ // <wui-dropdown> replaces a block wrapper div; zero specificity so a host class such as btn-group keeps its own display.
18
+ :where(wui-dropdown) {
19
+ display: block;
20
+ }
21
+
22
+ // The browser draws a dialog or a popover as a boxed surface of its own. Every library panel is listed
23
+ // by its marker, so a product's own popover keeps the browser's default look; a new library panel adds
24
+ // its marker here; an on-demand widget's panel is listed in that widget's own partial. Zero specificity, so any
25
+ // class rule still wins and only the browser's defaults are cleared.
26
+ :where(
27
+ dialog.wui-modal-shell,
28
+ dialog.wui-drawer-panel,
29
+ dialog.wui-lightbox-overlay,
30
+ [popover]:is(
31
+ .wui-shortcut-sheet,
32
+ .wui-tooltip,
33
+ [data-wui-dropdown-menu],
34
+ [data-wui-popover-panel],
35
+ [data-wui-picker],
36
+ [data-wui-menu],
37
+ .wui-select-menu,
38
+ .country-dropdown-menu,
39
+ .datepicker-pop,
40
+ .timepicker-pop,
41
+ .daterange-pop,
42
+ .wui-whats-new-panel,
43
+ .wui-notification-center-panel,
44
+ .wui-hover-card-panel,
45
+ .wui-filter-popover-panel,
46
+ .wui-nav-menu-panel,
47
+ .wui-context-menu-panel,
48
+ .wui-context-menu-subpanel,
49
+ .wui-toast-container,
50
+ wui-tour-host,
51
+ .app-sidebar
52
+ )
53
+ ) {
54
+ @include wui-native-overlay-reset;
55
+ }
56
+
57
+ // A closed panel is display none. Bootstrap's .popover and .tooltip set display: block, which
58
+ // would otherwise show it.
59
+ :is(.wui-tooltip, [data-wui-dropdown-menu], [data-wui-popover-panel])[popover]:not(:popover-open) {
60
+ display: none;
61
+ }
62
+
63
+ // The page behind an open modal does not scroll.
64
+ html:has(dialog:modal) {
65
+ overflow: hidden;
66
+ }
67
+
68
+ // Closing fades the dialog out. It stays open until the fade ends, so the fade is never cut short.
69
+ dialog.wui-modal-shell[data-wui-closing] {
70
+ opacity: 0;
71
+ }
72
+ @media (prefers-reduced-motion: no-preference) {
73
+ dialog.wui-modal-shell[data-wui-closing] {
74
+ transition: opacity var(--wui-duration-fast) var(--wui-ease-linear);
75
+ }
76
+ }
@@ -2,11 +2,9 @@
2
2
 
3
3
  // ── Navigation menu ──
4
4
  // AppNavigationMenu / <app-navigation-menu> (a <wui-navigation-menu> element): a site's top
5
- // navigation. An entry is a link or a button that discloses a panel of links; the panel opens on
6
- // click and keyboard (never on hover) and the element marks it with [data-open] and, when it would
7
- // leave the viewport on the right, [data-align="end"]. From the md tier up the entries sit in a
8
- // row and a panel floats under its entry; below it the entries stack and a panel is part of the
9
- // page flow, so nothing is placed by script on a phone. Every colour is a theme token.
5
+ // navigation. An entry is a link or a button that discloses a panel of links; the panel is a
6
+ // popover="auto" and shows while :popover-open, placed under its entry by anchorOverlay. From the md
7
+ // tier up the entries sit in a row. Every colour is a theme token.
10
8
  //
11
9
  // Part of the wui-components layer, see _wui-components.scss for load order.
12
10
 
@@ -72,9 +70,16 @@ wui-navigation-menu {
72
70
 
73
71
  .wui-nav-menu-panel {
74
72
  display: none;
73
+ inset: auto;
74
+ margin: 0;
75
75
  padding: 4px 0 4px 12px;
76
76
 
77
- &[data-open] {
77
+ &:popover-open {
78
+ display: block;
79
+ }
80
+ }
81
+ @include media-breakpoint-down(md) {
82
+ .wui-nav-menu-panel[data-open] {
78
83
  display: block;
79
84
  }
80
85
  }
@@ -140,10 +145,6 @@ wui-navigation-menu {
140
145
  margin-left: 0;
141
146
  }
142
147
  .wui-nav-menu-panel {
143
- position: absolute;
144
- top: calc(100% + 6px);
145
- left: 0;
146
- z-index: var(--wui-z-dropdown);
147
148
  width: max-content;
148
149
  min-width: 16rem;
149
150
  max-width: min(36rem, calc(100vw - 16px));
@@ -155,19 +156,14 @@ wui-navigation-menu {
155
156
  box-shadow: var(--wui-shadow-popover);
156
157
  transform-origin: top left;
157
158
 
158
- &[data-open] {
159
+ &:popover-open {
159
160
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
160
161
  }
161
- &[data-align="end"] {
162
- right: 0;
163
- left: auto;
164
- transform-origin: top right;
165
- }
166
162
  }
167
163
  }
168
164
 
169
165
  @media (prefers-reduced-motion: reduce) {
170
- .wui-nav-menu-panel[data-open] {
166
+ .wui-nav-menu-panel:popover-open {
171
167
  animation: none;
172
168
  }
173
169
  .wui-nav-menu-trigger > .wui-nav-menu-chevron {
@@ -494,9 +494,20 @@
494
494
  flex: 1 1 auto;
495
495
  min-width: 0;
496
496
  }
497
- [data-wui-overflow-hidden] {
497
+ [data-wui-overflow-hidden]:not([data-wui-overflow-menu]) {
498
498
  display: none !important;
499
499
  }
500
+ // A folded menu trigger stays rendered (collapsed) so its panel can open beside More.
501
+ [data-wui-overflow-hidden][data-wui-overflow-menu] {
502
+ position: absolute;
503
+ width: 0;
504
+ height: 0;
505
+ overflow: hidden;
506
+ visibility: hidden;
507
+ }
508
+ [data-wui-overflow-menu] [data-wui-dropdown-menu] {
509
+ visibility: visible;
510
+ }
500
511
  .wui-overflow-more {
501
512
  flex: none;
502
513
  display: inline-flex;
@@ -837,3 +848,16 @@
837
848
  display: none;
838
849
  }
839
850
  }
851
+ // AppBreadcrumbs wrap={false}: the trail stays on one line.
852
+ // Placed after the collapse rules so it wins on equal specificity; the :not() keeps the collapse show/hide display values.
853
+ .breadcrumb.wui-breadcrumb-nowrap {
854
+ flex-wrap: nowrap;
855
+ }
856
+ .wui-breadcrumb-nowrap > .breadcrumb-item:not(.wui-breadcrumb-collapsible, .wui-breadcrumb-more) {
857
+ display: inline-flex;
858
+ white-space: nowrap;
859
+ }
860
+ .wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-collapsible,
861
+ .wui-breadcrumb-nowrap > .breadcrumb-item.wui-breadcrumb-more {
862
+ white-space: nowrap;
863
+ }
@@ -2,8 +2,9 @@
2
2
 
3
3
  // ── Notification centre ──
4
4
  // AppNotificationCenter / <app-notification-center> (a <wui-notification-center> element): a bell
5
- // with an unread count that opens a panel of notifications grouped by day. The element shows the
6
- // panel from the host's [open] attribute, so a React re-render never resets it. Every colour,
5
+ // with an unread count that opens a panel of notifications grouped by day. The panel is a popover
6
+ // that the element shows while the host's [open] attribute is set; the browser hides it otherwise,
7
+ // and the open animation keys on :popover-open, so a React re-render never resets it. Every colour,
7
8
  // radius and shadow is a theme token.
8
9
  //
9
10
  // Part of the wui-components layer, see _wui-components.scss for load order.
@@ -54,11 +55,8 @@
54
55
  }
55
56
 
56
57
  .wui-notification-center-panel {
57
- position: absolute;
58
- top: calc(100% + 6px);
59
- right: 0;
58
+ position: fixed;
60
59
  z-index: var(--wui-z-dropdown);
61
- display: none;
62
60
  width: 380px;
63
61
  max-width: calc(100vw - 24px);
64
62
  overflow: hidden;
@@ -70,12 +68,11 @@
70
68
  outline: none;
71
69
  transform-origin: top right;
72
70
  }
73
- .wui-notification-center[open] > .wui-notification-center-panel {
74
- display: block;
71
+ .wui-notification-center-panel:popover-open {
75
72
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
76
73
  }
77
74
  @media (prefers-reduced-motion: reduce) {
78
- .wui-notification-center[open] > .wui-notification-center-panel {
75
+ .wui-notification-center-panel:popover-open {
79
76
  animation: none;
80
77
  }
81
78
  }
@@ -0,0 +1,15 @@
1
+ // Clears the box the browser draws around a <dialog> or a popover, so the library panel inside is the box.
2
+ // Use it inside a :where() rule: zero specificity, so any class rule still wins.
3
+ @mixin wui-native-overlay-reset {
4
+ border: 0;
5
+ padding: 0;
6
+ background: none;
7
+ color: inherit;
8
+ width: auto;
9
+ height: auto;
10
+ max-width: none;
11
+ max-height: none;
12
+ margin: 0;
13
+ inset: auto;
14
+ overflow: visible;
15
+ }