@webority/theme 0.178.4 → 0.180.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 (85) hide show
  1. package/dist/published-theme.json +4 -0
  2. package/dist/purge-safelist.json +171 -18
  3. package/dist/webority-modes.css +1 -1
  4. package/dist/webority-theme.css +2 -2
  5. package/dist/webority-tokens.css +1 -1
  6. package/fonts/sans/WeboritySans-Black.woff2 +0 -0
  7. package/fonts/sans/WeboritySans-BlackItalic.woff2 +0 -0
  8. package/fonts/sans/WeboritySans-Bold.woff2 +0 -0
  9. package/fonts/sans/WeboritySans-BoldItalic.woff2 +0 -0
  10. package/fonts/sans/WeboritySans-ExtraBold.woff2 +0 -0
  11. package/fonts/sans/WeboritySans-ExtraBoldItalic.woff2 +0 -0
  12. package/fonts/sans/WeboritySans-ExtraLight.woff2 +0 -0
  13. package/fonts/sans/WeboritySans-ExtraLightItalic.woff2 +0 -0
  14. package/fonts/sans/WeboritySans-Light.woff2 +0 -0
  15. package/fonts/sans/WeboritySans-LightItalic.woff2 +0 -0
  16. package/fonts/sans/WeboritySans-Medium.woff2 +0 -0
  17. package/fonts/sans/WeboritySans-MediumItalic.woff2 +0 -0
  18. package/fonts/sans/WeboritySans-Regular.woff2 +0 -0
  19. package/fonts/sans/WeboritySans-RegularItalic.woff2 +0 -0
  20. package/fonts/sans/WeboritySans-SemiBold.woff2 +0 -0
  21. package/fonts/sans/WeboritySans-SemiBoldItalic.woff2 +0 -0
  22. package/fonts/sans/WeboritySans-Thin.woff2 +0 -0
  23. package/fonts/sans/WeboritySans-ThinItalic.woff2 +0 -0
  24. package/fonts/serif/WeboritySerif-Bold.woff2 +0 -0
  25. package/fonts/serif/WeboritySerif-BoldItalic.woff2 +0 -0
  26. package/fonts/serif/WeboritySerif-DemiBold.woff2 +0 -0
  27. package/fonts/serif/WeboritySerif-DemiBoldItalic.woff2 +0 -0
  28. package/fonts/serif/WeboritySerif-ExtraBold.woff2 +0 -0
  29. package/fonts/serif/WeboritySerif-ExtraBoldItalic.woff2 +0 -0
  30. package/fonts/serif/WeboritySerif-Light.woff2 +0 -0
  31. package/fonts/serif/WeboritySerif-LightItalic.woff2 +0 -0
  32. package/fonts/serif/WeboritySerif-Medium.woff2 +0 -0
  33. package/fonts/serif/WeboritySerif-MediumItalic.woff2 +0 -0
  34. package/fonts/serif/WeboritySerif-Regular.woff2 +0 -0
  35. package/fonts/serif/WeboritySerif-RegularItalic.woff2 +0 -0
  36. package/fonts/serif/WeboritySerif-Thin.woff2 +0 -0
  37. package/fonts/serif/WeboritySerif-ThinItalic.woff2 +0 -0
  38. package/package.json +3 -3
  39. package/scss/_bootstrap.generated.scss +1 -1
  40. package/scss/_components.scss +120 -15
  41. package/scss/_fonts.scss +137 -2
  42. package/scss/_tokens-modes.generated.scss +2 -1
  43. package/scss/_tokens.generated.scss +23 -17
  44. package/scss/_wui-components.scss +10 -0
  45. package/scss/_wui-core.scss +10 -0
  46. package/scss/wui/_app-agenda.scss +75 -0
  47. package/scss/wui/_calendar-views.scss +46 -0
  48. package/scss/wui/_calendar.scss +31 -0
  49. package/scss/wui/_card.scss +1 -0
  50. package/scss/wui/_cell.scss +1 -0
  51. package/scss/wui/_change-list.scss +37 -0
  52. package/scss/wui/_chart-card.scss +49 -0
  53. package/scss/wui/_choice.scss +2 -1
  54. package/scss/wui/_command-palette.scss +68 -0
  55. package/scss/wui/_controls.scss +211 -26
  56. package/scss/wui/_dashboard-header.scss +42 -0
  57. package/scss/wui/_data.scss +86 -6
  58. package/scss/wui/_disclosure.scss +102 -1
  59. package/scss/wui/_display.scss +52 -2
  60. package/scss/wui/_drawer.scss +1 -0
  61. package/scss/wui/_entry-grid.scss +9 -0
  62. package/scss/wui/_file-viewer.scss +4 -0
  63. package/scss/wui/_flow.scss +119 -3
  64. package/scss/wui/_gantt.scss +89 -0
  65. package/scss/wui/_interaction.scss +0 -3
  66. package/scss/wui/_kanban.scss +52 -0
  67. package/scss/wui/_list-card.scss +11 -0
  68. package/scss/wui/_media.scss +0 -1
  69. package/scss/wui/_mini-calendar.scss +120 -0
  70. package/scss/wui/_navigation-menu.scss +44 -3
  71. package/scss/wui/_navigation.scss +10 -0
  72. package/scss/wui/_notification-center.scss +51 -0
  73. package/scss/wui/_offline-banner.scss +52 -0
  74. package/scss/wui/_overlays.scss +1 -1
  75. package/scss/wui/_queue-bundle.scss +71 -0
  76. package/scss/wui/_result-block.scss +117 -0
  77. package/scss/wui/_setting-row.scss +106 -0
  78. package/scss/wui/_setting-section.scss +36 -0
  79. package/scss/wui/_shell-parts.scss +3 -164
  80. package/scss/wui/_shell.scss +12 -2
  81. package/scss/wui/_split-view.scss +6 -2
  82. package/scss/wui/_utilities.scss +43 -5
  83. package/scss/wui/forced-colors/_display.scss +7 -0
  84. package/scss/wui/forced-colors/_navigation.scss +1 -3
  85. package/token-meanings.json +1 -0
@@ -0,0 +1,75 @@
1
+ // Agenda: events grouped under day headings.
2
+ .wui-agenda {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--wui-space-md);
6
+ }
7
+
8
+ .wui-agenda-day {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: var(--wui-space-xs);
12
+ }
13
+
14
+ .wui-agenda-day-head {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: var(--wui-space-sm);
18
+ }
19
+
20
+ .wui-agenda-day-title {
21
+ margin: 0;
22
+ font-size: var(--wui-fs-base);
23
+ font-weight: var(--wui-fw-semibold);
24
+ }
25
+
26
+ .wui-agenda-day-count {
27
+ color: var(--color-muted);
28
+ font-size: var(--wui-fs-sm);
29
+ }
30
+
31
+ .wui-agenda-items {
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0;
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+
39
+ .wui-agenda-item {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: var(--wui-space-sm);
43
+ padding-block: var(--wui-space-xs);
44
+ }
45
+
46
+ .wui-agenda-body {
47
+ flex: 1 1 auto;
48
+ min-width: 0;
49
+ }
50
+
51
+ .wui-agenda-title {
52
+ font-weight: var(--wui-fw-medium);
53
+ }
54
+
55
+ .wui-agenda-sub {
56
+ color: var(--color-muted);
57
+ font-size: var(--wui-fs-sm);
58
+ }
59
+
60
+ .wui-agenda-badge {
61
+ flex: 0 0 auto;
62
+ font-size: var(--wui-fs-sm);
63
+ }
64
+
65
+ .wui-agenda-day-flag {
66
+ margin: 0;
67
+ }
68
+
69
+ .wui-agenda-more > summary {
70
+ cursor: pointer;
71
+ }
72
+
73
+ .wui-agenda-more[open] > summary {
74
+ margin-block-end: var(--wui-space-xs);
75
+ }
@@ -0,0 +1,46 @@
1
+ @use "../config" as *;
2
+
3
+ // The header every calendar shares: <AppCalendarViews> and <app-calendar-views>. The body beneath
4
+ // it is the page's own content, so this partial styles only the header and the layout around it.
5
+ // wui-cal-views, not wui-calendar-views: AppCalendar's on-demand partial owns every wui-calendar-* class (check-theme-split).
6
+ .wui-cal-views {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: var(--wui-space-md);
10
+ }
11
+
12
+ .wui-cal-views-header {
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ align-items: center;
16
+ gap: var(--wui-space-md);
17
+ }
18
+
19
+ .wui-cal-views-nav {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: var(--wui-space-sm);
23
+ }
24
+
25
+ .wui-cal-views-period {
26
+ margin: 0;
27
+ font-weight: var(--wui-fw-semibold);
28
+ }
29
+
30
+ .wui-cal-views-switch {
31
+ display: inline-flex;
32
+ flex-wrap: wrap;
33
+ gap: var(--wui-space-xs);
34
+ }
35
+
36
+ .wui-cal-views-option {
37
+ display: inline-flex;
38
+ }
39
+
40
+ .wui-cal-views-legend,
41
+ .wui-cal-views-actions {
42
+ display: flex;
43
+ align-items: center;
44
+ gap: var(--wui-space-sm);
45
+ margin-inline-start: auto;
46
+ }
@@ -316,3 +316,34 @@ wui-calendar[data-view="month"] .wui-calendar-chip-title {
316
316
  :is(.wui-calendar-nav-btn, .wui-calendar-today-btn, .wui-calendar-view-btn):active:not(:disabled, [aria-disabled="true"]) {
317
317
  background-image: linear-gradient(var(--wui-pressed-overlay), var(--wui-pressed-overlay)) !important;
318
318
  }
319
+
320
+ // The "+n more" link is a button-sized target; the day cell's marker and the selected day are drawn
321
+ // on the cell itself, only where a page sets them.
322
+ wui-calendar .wui-calendar-day {
323
+ position: relative;
324
+ }
325
+
326
+ wui-calendar .wui-calendar-more {
327
+ min-block-size: 1.5rem;
328
+ display: inline-flex;
329
+ align-items: center;
330
+ }
331
+
332
+ wui-calendar .wui-calendar-day.is-selected {
333
+ box-shadow: inset 0 0 0 2px var(--color-primary);
334
+ }
335
+
336
+ wui-calendar .wui-calendar-marker {
337
+ position: absolute;
338
+ inset-block-end: 2px;
339
+ inset-inline-start: 50%;
340
+ translate: -50% 0;
341
+ inline-size: 6px;
342
+ block-size: 6px;
343
+ border-radius: var(--wui-radius-pill);
344
+ background: var(--color-text-body);
345
+ }
346
+
347
+ wui-calendar .wui-calendar-marker-warning {
348
+ background: var(--color-warning);
349
+ }
@@ -16,6 +16,7 @@
16
16
  // they set `padding` directly on the header/body/footer.
17
17
  .card {
18
18
  --wui-card-pad: 20px;
19
+ --wui-card-title-fs: 16px;
19
20
  --bs-card-spacer-y: var(--wui-card-pad);
20
21
  --bs-card-spacer-x: var(--wui-card-pad);
21
22
  --bs-card-cap-padding-y: var(--wui-card-pad);
@@ -48,6 +48,7 @@ a.wui-cell-primary {
48
48
  color: var(--color-text-muted);
49
49
  }
50
50
 
51
+
51
52
  .wui-cell-numeric {
52
53
  text-align: end;
53
54
  font-variant-numeric: tabular-nums;
@@ -0,0 +1,37 @@
1
+ // The changes a person is about to save, each with the value it was and the value it becomes.
2
+ .wui-change-list {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--wui-space-sm);
6
+ margin: 0;
7
+ padding: 0;
8
+ list-style: none;
9
+ }
10
+ .wui-change-item {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: var(--wui-space-xxs);
14
+ min-width: 0;
15
+ }
16
+ .wui-change-label {
17
+ font-size: var(--wui-fs-sm);
18
+ font-weight: var(--wui-fw-semibold);
19
+ color: var(--color-text);
20
+ }
21
+ .wui-change-was,
22
+ .wui-change-now {
23
+ font-size: var(--wui-fs-sm);
24
+ color: var(--color-text-subtle);
25
+ word-break: break-word;
26
+ }
27
+ .wui-change-now {
28
+ color: var(--color-text);
29
+ }
30
+ .wui-change-tag {
31
+ font-weight: var(--wui-fw-semibold);
32
+ margin-inline-end: var(--wui-space-xxs);
33
+ }
34
+ .wui-change-note {
35
+ font-size: var(--wui-fs-xs);
36
+ color: var(--color-text-subtle);
37
+ }
@@ -125,3 +125,52 @@ wui-chart:not(:defined) .wui-chart-table-wrap {
125
125
  grid-column: span 12;
126
126
  }
127
127
  }
128
+
129
+ // ── Dashboard grid edit mode ────────────────────────────────────────────────
130
+ // <wui-dashboard-grid editable>: the toolbar and the live line are its first two children. The toolbar
131
+ // takes the whole row; the live line is taken out of the flow and read by screen readers only.
132
+ .wui-dashboard-grid-bar {
133
+ grid-column: 1 / -1;
134
+ display: flex;
135
+ flex-wrap: wrap;
136
+ align-items: center;
137
+ justify-content: flex-end;
138
+ gap: var(--wui-space-xs);
139
+ }
140
+ .wui-dashboard-grid-menu {
141
+ display: flex;
142
+ flex-wrap: wrap;
143
+ gap: var(--wui-space-xs);
144
+ }
145
+ .wui-dashboard-grid-menu[hidden] {
146
+ display: none;
147
+ }
148
+ .wui-dashboard-grid-live {
149
+ position: absolute;
150
+ width: 1px;
151
+ height: 1px;
152
+ overflow: hidden;
153
+ clip: rect(0 0 0 0);
154
+ white-space: nowrap;
155
+ }
156
+ .wui-dashboard-cell[data-widget-id] {
157
+ position: relative;
158
+ display: flex;
159
+ flex-direction: column;
160
+ }
161
+ // The tools bar sits above the card, so the card fills what the bar leaves rather than the whole cell.
162
+ .wui-dashboard-cell[data-widget-id] > .card,
163
+ .wui-dashboard-cell[data-widget-id] > .kpi {
164
+ flex: 1 1 auto;
165
+ height: auto;
166
+ }
167
+ .wui-dashboard-cell[data-widget-id]:focus-visible {
168
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
169
+ outline-offset: var(--wui-focus-ring-offset);
170
+ }
171
+ .wui-dashboard-cell-tools {
172
+ display: flex;
173
+ justify-content: flex-end;
174
+ gap: var(--wui-space-xs);
175
+ margin-bottom: var(--wui-space-xs);
176
+ }
@@ -865,7 +865,8 @@ button.datepicker-month:hover {
865
865
  .app-phone-number-input
866
866
  wui-phone:not([aria-invalid="true"])
867
867
  .phone-input-wrap:hover:not(:focus-within):not(:has(> .input.error)):not(:has(> .input.is-invalid)):not(:has(> .input[aria-invalid="true"])) {
868
- background: var(--color-field-bg);
868
+ // Colour only, so a valid tick drawn on the shell stays through hover.
869
+ background-color: var(--color-field-bg);
869
870
  border-color: var(--color-field-border-hover);
870
871
  }
871
872
  // Match AppInput's focus: clean surface fill + a soft primary border.
@@ -85,6 +85,13 @@ wui-command-palette {
85
85
  .wui-cmd-tabs[hidden] {
86
86
  display: none;
87
87
  }
88
+ // On a phone the pills keep their width and the row scrolls sideways, rather than squeezing a label.
89
+ @include media-breakpoint-down(sm) {
90
+ .wui-cmd-tabs > * {
91
+ flex: 0 0 auto;
92
+ white-space: nowrap;
93
+ }
94
+ }
88
95
 
89
96
  // Nested pages: the Back button and the path to the open page. The element fills the trail and
90
97
  // shows the bar only while a page is open.
@@ -168,6 +175,15 @@ button.wui-cmd-crumb:focus-visible {
168
175
  overscroll-behavior: contain;
169
176
  scrollbar-width: thin;
170
177
  scrollbar-color: var(--color-border-strong) transparent;
178
+ // Scroll cue: a fading hairline at each edge while results lie beyond it. The local covers
179
+ // move with the list and hide the hairline at its ends, so it shows only where a scroll
180
+ // would reveal more.
181
+ background:
182
+ linear-gradient(var(--color-surface), var(--color-surface)) top / 100% 8px no-repeat local,
183
+ linear-gradient(var(--color-surface), var(--color-surface)) bottom / 100% 8px no-repeat local,
184
+ linear-gradient(var(--color-border), transparent) top / 100% 8px no-repeat scroll,
185
+ linear-gradient(transparent, var(--color-border)) bottom / 100% 8px no-repeat scroll,
186
+ var(--color-surface);
171
187
  }
172
188
  .wui-cmd-list[hidden],
173
189
  .wui-cmd-group[hidden],
@@ -253,6 +269,16 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
253
269
  .wui-cmd-item-label {
254
270
  font-size: 14px;
255
271
  }
272
+ // On a phone a result title wraps to two lines before it ends in an ellipsis.
273
+ @include media-breakpoint-down(sm) {
274
+ .wui-cmd-item-label {
275
+ display: -webkit-box;
276
+ overflow: hidden;
277
+ white-space: normal;
278
+ -webkit-box-orient: vertical;
279
+ -webkit-line-clamp: 2;
280
+ }
281
+ }
256
282
  .wui-cmd-item-desc {
257
283
  color: var(--color-text-muted);
258
284
  font-size: 12px;
@@ -301,6 +327,48 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
301
327
  display: none;
302
328
  }
303
329
 
330
+ .wui-cmd-notice {
331
+ padding: var(--wui-space-sm);
332
+ border-bottom: 1px solid var(--color-border);
333
+ color: var(--color-text-muted);
334
+ font-size: var(--wui-fs-sm);
335
+ }
336
+
337
+ // The error block the wrappers draw above the results. The list and the empty text under it are
338
+ // hidden by the same markup on both surfaces, so the failed search never shows stale results.
339
+ .wui-cmd-error {
340
+ display: grid;
341
+ gap: var(--wui-space-xs);
342
+ padding: var(--wui-space-sm);
343
+ border-bottom: 1px solid var(--color-border);
344
+ font-size: var(--wui-fs-sm);
345
+ }
346
+ .wui-cmd-error-title {
347
+ color: var(--color-text);
348
+ font-weight: var(--wui-fw-semibold);
349
+ }
350
+ .wui-cmd-error-text {
351
+ color: var(--color-text-muted);
352
+ }
353
+ .wui-cmd-error-retry {
354
+ justify-self: start;
355
+ padding: 0;
356
+ border: 0;
357
+ background: transparent;
358
+ color: var(--color-primary-text);
359
+ font: inherit;
360
+ font-weight: var(--wui-fw-semibold);
361
+ text-decoration: underline;
362
+ cursor: pointer;
363
+ }
364
+ .wui-cmd-error-retry:focus-visible {
365
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
366
+ outline-offset: var(--wui-focus-ring-offset);
367
+ }
368
+ .wui-cmd-error ~ .wui-cmd-empty {
369
+ display: none;
370
+ }
371
+
304
372
  .wui-cmd-footer {
305
373
  display: flex;
306
374
  flex: 0 0 auto;