@webority/theme 0.179.0 → 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 (50) hide show
  1. package/dist/published-theme.json +4 -0
  2. package/dist/purge-safelist.json +162 -18
  3. package/dist/webority-modes.css +1 -1
  4. package/dist/webority-theme.css +1 -1
  5. package/dist/webority-tokens.css +1 -1
  6. package/package.json +3 -3
  7. package/scss/_bootstrap.generated.scss +1 -1
  8. package/scss/_components.scss +26 -13
  9. package/scss/_tokens-modes.generated.scss +2 -1
  10. package/scss/_tokens.generated.scss +23 -17
  11. package/scss/_wui-components.scss +10 -0
  12. package/scss/_wui-core.scss +10 -0
  13. package/scss/wui/_app-agenda.scss +75 -0
  14. package/scss/wui/_calendar-views.scss +46 -0
  15. package/scss/wui/_calendar.scss +31 -0
  16. package/scss/wui/_card.scss +1 -0
  17. package/scss/wui/_cell.scss +1 -0
  18. package/scss/wui/_change-list.scss +37 -0
  19. package/scss/wui/_chart-card.scss +49 -0
  20. package/scss/wui/_choice.scss +2 -1
  21. package/scss/wui/_command-palette.scss +68 -0
  22. package/scss/wui/_controls.scss +157 -13
  23. package/scss/wui/_dashboard-header.scss +42 -0
  24. package/scss/wui/_data.scss +86 -6
  25. package/scss/wui/_display.scss +52 -2
  26. package/scss/wui/_drawer.scss +1 -0
  27. package/scss/wui/_entry-grid.scss +9 -0
  28. package/scss/wui/_file-viewer.scss +4 -0
  29. package/scss/wui/_flow.scss +119 -3
  30. package/scss/wui/_gantt.scss +89 -0
  31. package/scss/wui/_interaction.scss +0 -3
  32. package/scss/wui/_kanban.scss +52 -0
  33. package/scss/wui/_list-card.scss +11 -0
  34. package/scss/wui/_media.scss +0 -1
  35. package/scss/wui/_mini-calendar.scss +120 -0
  36. package/scss/wui/_navigation-menu.scss +1 -0
  37. package/scss/wui/_navigation.scss +10 -0
  38. package/scss/wui/_notification-center.scss +51 -0
  39. package/scss/wui/_offline-banner.scss +52 -0
  40. package/scss/wui/_overlays.scss +1 -1
  41. package/scss/wui/_queue-bundle.scss +71 -0
  42. package/scss/wui/_result-block.scss +117 -0
  43. package/scss/wui/_setting-row.scss +106 -0
  44. package/scss/wui/_setting-section.scss +36 -0
  45. package/scss/wui/_shell-parts.scss +3 -164
  46. package/scss/wui/_shell.scss +12 -2
  47. package/scss/wui/_split-view.scss +6 -2
  48. package/scss/wui/_utilities.scss +43 -5
  49. package/scss/wui/forced-colors/_navigation.scss +1 -3
  50. package/token-meanings.json +1 -0
@@ -1,6 +1,6 @@
1
1
  @use "../config" as *;
2
2
 
3
- // Shell parts: notification bell, topbar search, phone tab bar, user menu.
3
+ // Shell parts: topbar search, phone tab bar, user menu.
4
4
  //
5
5
  // Part of the wui-components layer; imported after its base partial (see _wui-components.scss).
6
6
  // The same markup comes from React AppShell (userMenu / notifications / search / tab items) and
@@ -177,10 +177,9 @@
177
177
  }
178
178
 
179
179
  // ── Topbar menus: shared card ───────────────────────────────────────────────────────────────
180
- // Both menus are placed by their dropdown element, so the placement here is plain CSS: under the
180
+ // The menu is placed by its dropdown element, so the placement here is plain CSS: under the
181
181
  // trigger, end-aligned.
182
- .wui-usermenu-menu,
183
- .wui-bell-menu {
182
+ .wui-usermenu-menu {
184
183
  top: calc(100% + 8px);
185
184
  inset-inline-end: 0;
186
185
  inset-inline-start: auto;
@@ -330,166 +329,6 @@
330
329
  text-align: start;
331
330
  }
332
331
 
333
- // ── Notification bell ───────────────────────────────────────────────────────────────────────
334
- .wui-bell-trigger {
335
- position: relative;
336
- }
337
- // White on the strong danger fill, the avatar badge's pairing. Ringed in the surface colour so it
338
- // reads as sitting on the bell rather than touching it.
339
- .wui-bell-count {
340
- position: absolute;
341
- top: -2px;
342
- inset-inline-end: -2px;
343
- box-sizing: border-box;
344
- min-width: 18px;
345
- height: 18px;
346
- padding: 0 3px;
347
- border: 2px solid var(--color-surface);
348
- border-radius: 999px;
349
- background: var(--color-danger-strong);
350
- color: var(--color-progress-label);
351
- font-size: 12px;
352
- font-weight: 700;
353
- line-height: 14px;
354
- text-align: center;
355
- }
356
- .wui-bell-count[hidden] {
357
- display: none;
358
- }
359
- .wui-bell-menu {
360
- width: 360px;
361
- padding: 0;
362
- overflow: hidden;
363
- }
364
- .wui-bell-head {
365
- display: flex;
366
- align-items: center;
367
- justify-content: space-between;
368
- gap: 12px;
369
- padding: 10px 16px;
370
- border-bottom: 1px solid var(--color-border);
371
- }
372
- .wui-bell-title {
373
- font-weight: 600;
374
- color: var(--color-text);
375
- }
376
- .wui-bell-markall {
377
- display: inline-flex;
378
- align-items: center;
379
- min-height: 44px;
380
- padding: 0 4px;
381
- border: 0;
382
- background: none;
383
- color: var(--color-primary-text);
384
- font: inherit;
385
- font-size: 14px;
386
- font-weight: 500;
387
- cursor: pointer;
388
- }
389
- .wui-bell-markall:hover {
390
- text-decoration: underline;
391
- }
392
- .wui-bell-markall:disabled {
393
- opacity: var(--wui-disabled-opacity);
394
- cursor: default;
395
- }
396
- .wui-bell-list {
397
- max-height: min(420px, 60vh);
398
- overflow-y: auto;
399
- }
400
- .wui-bell-list[aria-busy="true"] {
401
- opacity: 0.7;
402
- }
403
- .wui-bell-item {
404
- display: flex;
405
- gap: 12px;
406
- min-height: 44px;
407
- padding: 12px 16px;
408
- border-bottom: 1px solid var(--color-border-subtle);
409
- color: var(--color-text-body);
410
- text-decoration: none;
411
- }
412
- a.wui-bell-item:hover {
413
- background: var(--color-bg-muted);
414
- text-decoration: none;
415
- }
416
- // Inset: the list scrolls and its rows run edge to edge, so an outer ring would be clipped.
417
- a.wui-bell-item:focus-visible {
418
- outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
419
- outline-offset: var(--wui-focus-ring-inset);
420
- }
421
- .wui-bell-item:last-child {
422
- border-bottom: 0;
423
- }
424
- .wui-bell-dot {
425
- flex: none;
426
- width: 8px;
427
- height: 8px;
428
- margin-top: 6px;
429
- border-radius: 50%;
430
- background: var(--color-primary);
431
- }
432
- .wui-bell-item-read .wui-bell-dot {
433
- visibility: hidden;
434
- }
435
- .wui-bell-icon {
436
- flex: none;
437
- color: var(--color-text-subtle);
438
- }
439
- .wui-bell-body {
440
- display: flex;
441
- flex-direction: column;
442
- min-width: 0;
443
- }
444
- .wui-bell-item-title {
445
- font-size: 14px;
446
- font-weight: 500;
447
- color: var(--color-text);
448
- overflow-wrap: anywhere;
449
- }
450
- .wui-bell-item-read .wui-bell-item-title {
451
- font-weight: 400;
452
- }
453
- .wui-bell-when {
454
- font-size: 12px;
455
- color: var(--color-text-muted);
456
- }
457
- .wui-bell-state {
458
- padding: 20px 16px;
459
- font-size: 14px;
460
- color: var(--color-text-muted);
461
- text-align: center;
462
- }
463
- .wui-bell-foot {
464
- display: flex;
465
- align-items: center;
466
- justify-content: center;
467
- min-height: 44px;
468
- border-top: 1px solid var(--color-border);
469
- color: var(--color-primary-text);
470
- font-size: 14px;
471
- font-weight: 500;
472
- text-decoration: none;
473
- }
474
- .wui-bell-foot:hover {
475
- background: var(--color-bg-muted);
476
- }
477
- // A 360px card would overflow a 375px phone: below md the panel is a sheet inset 12px, under the
478
- // 72px topbar.
479
- @include media-breakpoint-down(md) {
480
- .wui-bell-menu {
481
- position: fixed;
482
- top: 72px;
483
- right: 12px;
484
- left: 12px;
485
- width: auto;
486
- max-width: none;
487
- }
488
- .wui-bell-list {
489
- max-height: calc(100dvh - 72px - 12px - 120px);
490
- }
491
- }
492
-
493
332
  // ── Topbar search ───────────────────────────────────────────────────────────────────────────
494
333
  // A field after the topbar-start content above md; an icon button that opens the field as a
495
334
  // full-width panel under the topbar below it.
@@ -1021,9 +1021,10 @@
1021
1021
 
1022
1022
  .app-content {
1023
1023
  --app-content-padding-top: 24px;
1024
+ --app-content-padding-bottom: 24px;
1024
1025
  flex: 1 1 auto;
1025
1026
  min-width: 0;
1026
- padding: var(--app-content-padding-top) 28px 24px;
1027
+ padding: var(--app-content-padding-top) 28px var(--app-content-padding-bottom);
1027
1028
  }
1028
1029
  [data-density="compact"] .app-content {
1029
1030
  --app-content-padding-top: 12px;
@@ -1146,11 +1147,20 @@
1146
1147
  }
1147
1148
  .app-shell.app-shell .app-content {
1148
1149
  --app-content-padding-top: 16px;
1149
- padding-block: var(--app-content-padding-top) 32px;
1150
+ --app-content-padding-bottom: 32px;
1151
+ padding-block: var(--app-content-padding-top) var(--app-content-padding-bottom);
1150
1152
  }
1151
1153
  .app-shell.app-shell[data-density="compact"] .app-content {
1152
1154
  --app-content-padding-top: 12px;
1153
1155
  }
1156
+ // compact keeps the bottom inset level with the top; wider screens keep the default.
1157
+ .app-shell.app-shell[data-content-padding-bottom="compact"] .app-content {
1158
+ --app-content-padding-bottom: var(--wui-space-lg);
1159
+ }
1160
+ }
1161
+ // The option drops the bottom padding so an in-flow footer sits flush under the content.
1162
+ .app-shell.app-shell[data-content-padding-bottom="none"] .app-content {
1163
+ --app-content-padding-bottom: 0px;
1154
1164
  }
1155
1165
  // Phones: the topbar's icon controls meet the 44px touch floor (36px is a pointer size).
1156
1166
  @include media-breakpoint-down(md) {
@@ -152,9 +152,13 @@
152
152
  background: var(--bs-primary-bg-subtle);
153
153
  }
154
154
 
155
+ // 24px target size. The top margin keeps the box centred where the old 20px box sat.
155
156
  .wui-split-check {
156
157
  flex: none;
157
- margin-block: 15px 0;
158
+ width: 24px;
159
+ height: 24px;
160
+ background-size: 18px 18px;
161
+ margin-block: 13px 0;
158
162
  margin-inline: var(--wui-space-lg) 0;
159
163
  }
160
164
 
@@ -174,7 +178,7 @@
174
178
  cursor: pointer;
175
179
  }
176
180
  .wui-split-check + .wui-split-link {
177
- padding-inline-start: 10px;
181
+ padding-inline-start: 6px;
178
182
  }
179
183
  .wui-split-link:hover {
180
184
  color: inherit;
@@ -351,15 +351,24 @@
351
351
  padding-bottom: 16px;
352
352
  }
353
353
 
354
- // ── Sticky ── (`sticky`): pins the masthead below the shell's top bar inside `.app-shell`,
355
- // and at the top of its scroll container outside one.
354
+ // ── Sticky ── (`sticky`): pins the masthead 8px below the shell's top bar inside `.app-shell`,
355
+ // and 8px from the top of its scroll container outside one. The cover paints that 8px band in the
356
+ // page colour, so rows scrolling under the masthead never show between it and the top bar.
356
357
  .page-header-sticky {
357
358
  position: sticky;
358
- top: var(--wui-shell-topbar-height, 0px);
359
+ top: calc(var(--wui-shell-topbar-height, 0px) + var(--wui-space-sm));
359
360
  z-index: 20;
360
361
  background: var(--color-surface);
361
362
  padding-top: var(--wui-space-md);
362
363
  }
364
+ .page-header-sticky::before {
365
+ content: "";
366
+ position: absolute;
367
+ inset-inline: 0;
368
+ bottom: 100%;
369
+ height: var(--wui-space-sm);
370
+ background: var(--color-bg);
371
+ }
363
372
 
364
373
  // Tablet and below: the masthead stops being a single row — the title block and
365
374
  // its actions stack, and the actions stretch to the full width rather than
@@ -491,6 +500,25 @@
491
500
  background: var(--color-bg-muted);
492
501
  }
493
502
 
503
+ // AppDropdown toggleVariant="outline": a custom trigger drawn as a form field, with an input's height, border and radius.
504
+ .wui-dropdown-trigger-outline {
505
+ gap: var(--wui-space-xs);
506
+ height: var(--wui-control-md);
507
+ padding-inline: var(--wui-space-md);
508
+ border: 1px solid var(--color-border);
509
+ border-radius: var(--wui-field-md-radius);
510
+ corner-shape: squircle;
511
+ background: var(--color-surface);
512
+ transition: border-color var(--wui-duration-fast) var(--wui-ease-ui);
513
+ }
514
+ .wui-dropdown-trigger-outline:hover,
515
+ .wui-dropdown-trigger-outline[aria-expanded="true"] {
516
+ border-color: var(--color-border-strong);
517
+ }
518
+ .wui-dropdown-trigger-outline[aria-expanded="true"] {
519
+ border-color: var(--color-primary);
520
+ }
521
+
494
522
  // A line of short facts ("1 Oct to 14 Oct . 3 days left . 4/9 Done"): muted small text, a 3px dot (the dot's own size) drawn between items.
495
523
  // The dot is a pseudo-element, so screen readers never read it and no separator markup is written.
496
524
  .wui-meta-list {
@@ -1020,13 +1048,17 @@
1020
1048
  // badge stays the single-line 20px base.
1021
1049
  .alert-sm {
1022
1050
  --alert-title-size: 13px;
1023
- padding: 9px 14px;
1051
+ --alert-sm-line: 18px;
1052
+ padding-block: 9px;
1053
+ padding-inline: var(--wui-space-md) 14px;
1024
1054
  }
1025
1055
  .alert-sm.alert-has-icon {
1026
- gap: 10px;
1056
+ align-items: flex-start;
1057
+ gap: var(--wui-space-sm);
1027
1058
  }
1028
1059
  .alert-sm .alert-content {
1029
1060
  font-size: 12px;
1061
+ line-height: var(--alert-sm-line);
1030
1062
  }
1031
1063
 
1032
1064
  // Trailing action (`action`): a button or any node. Mobile-first, it takes its own full
@@ -1102,6 +1134,12 @@
1102
1134
  height: var(--alert-badge-size);
1103
1135
  margin-top: calc((var(--alert-title-size) * var(--alert-title-leading) - var(--alert-badge-size)) / 2);
1104
1136
  }
1137
+ // The compact badge hangs from the first line, so the text lines up with the row text.
1138
+ .alert-sm.alert-has-icon .alert-icon {
1139
+ width: 20px;
1140
+ height: 20px;
1141
+ margin-top: calc((var(--alert-sm-line) - 20px) / 2);
1142
+ }
1105
1143
 
1106
1144
  // The leading glyph is a solid circular badge: variant fill, white glyph centred, with
1107
1145
  // a soft 3px same-colour halo ring around it. Base size is the SINGLE-line badge (20px,
@@ -28,13 +28,11 @@
28
28
  }
29
29
 
30
30
  .app-nav-badge,
31
- .wui-tabbar-badge,
32
- .wui-bell-count {
31
+ .wui-tabbar-badge {
33
32
  outline: 1px solid CanvasText;
34
33
  outline-offset: -1px;
35
34
  }
36
35
 
37
- .wui-bell-dot,
38
36
  .wui-nav-list-dot {
39
37
  background-color: CanvasText;
40
38
  }
@@ -51,6 +51,7 @@
51
51
  "--color-on-scrim": "Ink on a scrim, such as the text of an overlay.",
52
52
  "--color-primary": "Primary fill for buttons, selected states and borders.",
53
53
  "--color-primary-hover": "Primary fill while a control is hovered or pressed.",
54
+ "--color-primary-pressed": "Primary fill while a control is pressed.",
54
55
  "--color-primary-soft": "Soft primary tint behind selected and highlighted rows.",
55
56
  "--color-primary-text": "Primary as text and small glyphs on a page, passing AA contrast.",
56
57
  "--color-progress-label": "Label text inside a progress bar fill.",