@webority/theme 0.168.0 → 0.169.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 (73) hide show
  1. package/README.md +12 -1
  2. package/dist/postcss/rtl-mirror.d.mts +10 -0
  3. package/dist/postcss/rtl-mirror.mjs +1 -0
  4. package/dist/purge-safelist.json +49 -1
  5. package/dist/webority-modes.css +1 -1
  6. package/dist/webority-theme.css +1 -1
  7. package/dist/webority-tokens.css +1 -1
  8. package/package.json +8 -4
  9. package/scss/_bootstrap-css.scss +1 -0
  10. package/scss/_bootstrap.generated.scss +1 -1
  11. package/scss/_components.scss +28 -7
  12. package/scss/_config.scss +22 -0
  13. package/scss/_marketing.scss +7 -0
  14. package/scss/_modes.scss +1 -0
  15. package/scss/_tokens-modes.generated.scss +1 -1
  16. package/scss/_tokens.generated.scss +2 -2
  17. package/scss/_wui-components.scss +4 -0
  18. package/scss/_wui-core.scss +2 -0
  19. package/scss/wui/_avatar-picker.scss +1 -1
  20. package/scss/wui/_calendar.scss +2 -2
  21. package/scss/wui/_card.scss +3 -3
  22. package/scss/wui/_cell.scss +1 -1
  23. package/scss/wui/_chart.scss +6 -5
  24. package/scss/wui/_choice.scss +56 -24
  25. package/scss/wui/_code-block.scss +2 -1
  26. package/scss/wui/_compare-table.scss +8 -5
  27. package/scss/wui/_consent-banner.scss +4 -1
  28. package/scss/wui/_controls.scss +66 -39
  29. package/scss/wui/_data.scss +58 -45
  30. package/scss/wui/_disclosure.scss +11 -5
  31. package/scss/wui/_display.scss +67 -39
  32. package/scss/wui/_drawer.scss +9 -3
  33. package/scss/wui/_due-date.scss +1 -1
  34. package/scss/wui/_empty-state.scss +1 -1
  35. package/scss/wui/_entry-grid.scss +23 -0
  36. package/scss/wui/_field-busy.scss +6 -0
  37. package/scss/wui/_file-viewer.scss +4 -4
  38. package/scss/wui/_flow.scss +26 -22
  39. package/scss/wui/_gantt.scss +498 -0
  40. package/scss/wui/_kanban.scss +1 -1
  41. package/scss/wui/_lightbox.scss +2 -2
  42. package/scss/wui/_markdown.scss +3 -3
  43. package/scss/wui/_media.scss +13 -13
  44. package/scss/wui/_menu-motion.scss +3 -0
  45. package/scss/wui/_metric-strip.scss +1 -1
  46. package/scss/wui/_modal-remote.scss +8 -1
  47. package/scss/wui/_native-overlay.scss +12 -0
  48. package/scss/wui/_navigation-menu.scss +4 -3
  49. package/scss/wui/_navigation.scss +28 -24
  50. package/scss/wui/_notification-center.scss +2 -2
  51. package/scss/wui/_onboarding-checklist.scss +3 -0
  52. package/scss/wui/_org-tree.scss +9 -6
  53. package/scss/wui/_overlays.scss +11 -7
  54. package/scss/wui/_pagination.scss +5 -1
  55. package/scss/wui/_query-builder.scss +91 -0
  56. package/scss/wui/_rating.scss +1 -1
  57. package/scss/wui/_record-pager.scss +1 -1
  58. package/scss/wui/_rich-text.scss +6 -6
  59. package/scss/wui/_select.scss +5 -5
  60. package/scss/wui/_shell-parts.scss +9 -8
  61. package/scss/wui/_shell.scss +34 -10
  62. package/scss/wui/_shortcuts.scss +5 -4
  63. package/scss/wui/_sortable.scss +2 -1
  64. package/scss/wui/_split-view.scss +11 -9
  65. package/scss/wui/_toolbar.scss +2 -2
  66. package/scss/wui/_transfer-list.scss +24 -0
  67. package/scss/wui/_tree-picker.scss +219 -0
  68. package/scss/wui/_typography.scss +5 -4
  69. package/scss/wui/_utilities.scss +38 -18
  70. package/scss/wui/_whats-new.scss +7 -1
  71. package/scss/wui/_workspace.scss +3 -3
  72. package/scss/wui/modes/_gantt.scss +44 -0
  73. package/scss/wui/tour/_advance.scss +12 -0
@@ -18,6 +18,8 @@
18
18
  flex-shrink: 0;
19
19
  vertical-align: -.125em;
20
20
  }
21
+ // scale, not transform: some glyphs carry a transform of their own (a rotation or a mirror).
22
+ .wui-icon:dir(rtl):is([data-icon="chevron-left"], [data-icon="chevron-right"], [data-icon="chevrons-left"], [data-icon="chevrons-right"], [data-icon="arrow-left"], [data-icon="arrow-right"], [data-icon="arrow-up-right"], [data-icon="back"], [data-icon="undo"], [data-icon="redo"]) { scale: -1 1; }
21
23
  // Zero specificity: a rule that colours an icon itself, such as .wui-select-caret, keeps winning.
22
24
  :where(.wui-icon) {
23
25
  color: var(--wui-icon-color, currentColor);
@@ -76,7 +78,7 @@
76
78
  position: relative;
77
79
  display: inline-flex;
78
80
  vertical-align: middle;
79
- margin-left: 5px;
81
+ margin-inline-start: 5px;
80
82
  }
81
83
  .infotip-btn {
82
84
  display: inline-flex;
@@ -118,7 +120,7 @@
118
120
  border: none;
119
121
  border-radius: var(--wui-radius-lg);
120
122
  box-shadow: var(--wui-shadow-popover);
121
- text-align: left;
123
+ text-align: start;
122
124
  white-space: normal;
123
125
  cursor: default;
124
126
  }
@@ -347,13 +349,14 @@
347
349
  padding-bottom: 16px;
348
350
  }
349
351
 
350
- // ── Sticky ── (`sticky`): pins the masthead to the top of its scroll container.
352
+ // ── Sticky ── (`sticky`): pins the masthead below the shell's top bar inside `.app-shell`,
353
+ // and at the top of its scroll container outside one.
351
354
  .page-header-sticky {
352
355
  position: sticky;
353
- top: 0;
356
+ top: var(--wui-shell-topbar-height, 0px);
354
357
  z-index: 20;
355
358
  background: var(--color-surface);
356
- padding-top: 12px;
359
+ padding-top: var(--wui-space-md);
357
360
  }
358
361
 
359
362
  // Tablet and below: the masthead stops being a single row — the title block and
@@ -387,7 +390,7 @@
387
390
  // ── Row-action / icon buttons ──
388
391
  .btn-icon {
389
392
  min-height: 0;
390
- padding: 8px;
393
+ padding: var(--wui-space-sm);
391
394
  border-radius: 999px;
392
395
  corner-shape: round;
393
396
  // The base .btn flex/centring rule excludes .btn-icon, so without this an icon
@@ -444,7 +447,7 @@
444
447
  content: "";
445
448
  position: absolute;
446
449
  top: 9px;
447
- right: 9px;
450
+ inset-inline-end: 9px;
448
451
  width: 8px;
449
452
  height: 8px;
450
453
  border-radius: 999px;
@@ -656,7 +659,7 @@
656
659
  display: inline-flex;
657
660
  align-items: center;
658
661
  justify-content: center;
659
- padding: 4px;
662
+ padding: var(--wui-space-xs);
660
663
  border: none;
661
664
  background: transparent;
662
665
  color: inherit;
@@ -768,16 +771,16 @@
768
771
  }
769
772
  @keyframes wui-progress-indeterminate {
770
773
  0% {
771
- margin-left: -40%;
774
+ margin-inline-start: -40%;
772
775
  }
773
776
  100% {
774
- margin-left: 100%;
777
+ margin-inline-start: 100%;
775
778
  }
776
779
  }
777
780
  @media (prefers-reduced-motion: reduce) {
778
781
  // No sweep for reduced-motion users — settle to a static full bar.
779
782
  .wui-progress-indeterminate {
780
- margin-left: 0;
783
+ margin-inline-start: 0;
781
784
  width: 100%;
782
785
  animation: none;
783
786
  }
@@ -838,11 +841,20 @@
838
841
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
839
842
  animation: skeleton-shimmer calc(var(--wui-duration-slow) * 4) var(--wui-ease-in-out) infinite;
840
843
  }
844
+ .skeleton:dir(rtl)::after {
845
+ transform: translateX(100%);
846
+ animation-name: skeleton-shimmer-rtl;
847
+ }
841
848
  @keyframes skeleton-shimmer {
842
849
  100% {
843
850
  transform: translateX(100%);
844
851
  }
845
852
  }
853
+ @keyframes skeleton-shimmer-rtl {
854
+ 100% {
855
+ transform: translateX(-100%);
856
+ }
857
+ }
846
858
  :root[data-bs-theme="dark"] .skeleton::after {
847
859
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
848
860
  }
@@ -850,6 +862,9 @@
850
862
  .skeleton::after {
851
863
  animation: none;
852
864
  }
865
+ .skeleton:dir(rtl)::after {
866
+ animation-name: none;
867
+ }
853
868
  }
854
869
  .wui-skeleton-lines {
855
870
  display: flex;
@@ -941,6 +956,7 @@
941
956
  }
942
957
  .wui-error-summary-list {
943
958
  margin: 0;
959
+ // Stays physical: Bootstrap's reboot sets `ul` padding-left, and a logical side here would leave that 2rem on the end side under RTL.
944
960
  padding-left: 20px;
945
961
  }
946
962
  .wui-error-summary-list li + li {
@@ -974,7 +990,8 @@
974
990
  box-shadow:
975
991
  inset 4px 0 0 var(--alert-accent),
976
992
  inset 0 0 0 1px var(--alert-ring);
977
- padding: 17px 19px 17px 22px;
993
+ padding-block: 17px 17px;
994
+ padding-inline: 22px 19px;
978
995
  }
979
996
  // `bordered={false}`: only the ring goes; the edge stays.
980
997
  .alert-accent.alert-borderless {
@@ -1049,7 +1066,7 @@
1049
1066
  }
1050
1067
  .alert-action {
1051
1068
  flex: none;
1052
- margin-left: auto;
1069
+ margin-inline-start: auto;
1053
1070
  }
1054
1071
  }
1055
1072
 
@@ -1170,10 +1187,12 @@
1170
1187
  // The accent's padding per size: the size's own padding + the 1px the border no longer takes,
1171
1188
  // + the 4px edge on the left. Two-class selectors, so they beat the size blocks above.
1172
1189
  .alert-accent.alert-sm {
1173
- padding: 10px 15px 10px 18px;
1190
+ padding-block: 10px 10px;
1191
+ padding-inline: 18px 15px;
1174
1192
  }
1175
1193
  .alert-accent.alert-lg {
1176
- padding: 21px 23px 21px 26px;
1194
+ padding-block: 21px 21px;
1195
+ padding-inline: 26px 23px;
1177
1196
  }
1178
1197
 
1179
1198
  // The body's trailing paragraph shouldn't add space below the alert.
@@ -1185,11 +1204,11 @@
1185
1204
  // base `.alert` padding overrides Bootstrap's own `.alert-dismissible` padding-right, so
1186
1205
  // without this the body text runs under the × (the button is ~48px wide at right:0).
1187
1206
  .alert-dismissible {
1188
- padding-right: 52px;
1207
+ padding-inline-end: 52px;
1189
1208
  }
1190
1209
  // An accent alert has no 1px border, so it takes the missing pixel back on the right.
1191
1210
  .alert-accent.alert-dismissible {
1192
- padding-right: 53px;
1211
+ padding-inline-end: 53px;
1193
1212
  }
1194
1213
  // The dismiss × is a 32px rounded square like the modal close, centred vertically rather
1195
1214
  // than pinned to the top corner. Its 8px glyph takes the variant's text colour: Bootstrap's
@@ -1198,6 +1217,7 @@
1198
1217
  // transparent wash of the variant. Both colours come from tokens the dark theme remaps, so
1199
1218
  // the close filter is not needed here. A variant without its own tokens falls back to ink.
1200
1219
  .alert-dismissible .btn-close {
1220
+ // Stays physical: Bootstrap's .alert-dismissible .btn-close sets right: 0, and a logical offset would lose to it under RTL.
1201
1221
  top: 50%;
1202
1222
  right: 10px;
1203
1223
  display: grid;
@@ -1245,7 +1265,7 @@
1245
1265
 
1246
1266
  .tip-icon {
1247
1267
  display: inline-flex;
1248
- margin-left: 4px;
1268
+ margin-inline-start: 4px;
1249
1269
  vertical-align: middle;
1250
1270
  color: var(--color-text-subtle);
1251
1271
  // `help` rather than `pointer`: the glyph explains, it does not navigate.
@@ -37,7 +37,7 @@
37
37
  .wui-whats-new-dot {
38
38
  position: absolute;
39
39
  top: 6px;
40
- right: 6px;
40
+ inset-inline-end: 6px;
41
41
  box-sizing: content-box;
42
42
  width: 8px;
43
43
  height: 8px;
@@ -83,6 +83,9 @@
83
83
  outline: none;
84
84
  transform-origin: top right;
85
85
  }
86
+ .wui-whats-new-panel:dir(rtl) {
87
+ transform-origin: top left;
88
+ }
86
89
  .wui-whats-new-panel:popover-open {
87
90
  animation: var(--wui-menu-anim) var(--wui-menu-anim-duration) var(--wui-menu-anim-ease);
88
91
  }
@@ -91,6 +94,9 @@
91
94
 
92
95
  transform-origin: bottom right;
93
96
  }
97
+ .wui-whats-new-panel.drop-up:dir(rtl) {
98
+ transform-origin: bottom left;
99
+ }
94
100
  .wui-whats-new-title {
95
101
  margin: 0;
96
102
  padding: 14px 16px 10px;
@@ -34,7 +34,7 @@
34
34
  border: 1px solid var(--color-border);
35
35
  border-radius: 999px;
36
36
  color: var(--color-text);
37
- text-align: left;
37
+ text-align: start;
38
38
  cursor: pointer;
39
39
  transition:
40
40
  border-color var(--wui-duration-fast) var(--wui-ease-ui),
@@ -235,7 +235,7 @@
235
235
  color: var(--color-text);
236
236
  font-size: 13px;
237
237
  font-weight: 500;
238
- text-align: left;
238
+ text-align: start;
239
239
  text-decoration: none;
240
240
  cursor: pointer;
241
241
  }
@@ -341,7 +341,7 @@
341
341
  color: var(--color-primary-text);
342
342
  font-size: 13px;
343
343
  font-weight: 600;
344
- text-align: left;
344
+ text-align: start;
345
345
  text-decoration: none;
346
346
  cursor: pointer;
347
347
  }
@@ -0,0 +1,44 @@
1
+ // Print and forced-colours rules for this on-demand widget: two blocks, @media (forced-colors: active) then @media print.
2
+
3
+ @media (forced-colors: active) {
4
+ .wui-gantt-bar,
5
+ .wui-gantt-milestone {
6
+ outline: 1px solid CanvasText;
7
+ outline-offset: -1px;
8
+ }
9
+ .wui-gantt-today {
10
+ background: CanvasText;
11
+ }
12
+ .wui-gantt-milestone {
13
+ forced-color-adjust: none;
14
+ background: CanvasText;
15
+ }
16
+ .wui-gantt[data-layout="table"] .wui-gantt-bar-progress {
17
+ background: CanvasText;
18
+ }
19
+ .wui-gantt-bar:focus-visible,
20
+ .wui-gantt-milestone:focus-visible,
21
+ .wui-gantt-group-toggle:focus-visible {
22
+ outline: var(--wui-focus-ring-width) solid Highlight;
23
+ outline-offset: calc(-1 * var(--wui-focus-ring-width));
24
+ }
25
+ }
26
+
27
+ @media print {
28
+ .wui-gantt-bar,
29
+ .wui-gantt-milestone {
30
+ print-color-adjust: exact;
31
+ }
32
+ .wui-gantt-toolbar {
33
+ display: none;
34
+ }
35
+ .wui-gantt-scroller {
36
+ overflow: visible;
37
+ }
38
+ .wui-gantt-head {
39
+ position: static;
40
+ }
41
+ .wui-gantt-table {
42
+ position: static;
43
+ }
44
+ }
@@ -103,6 +103,15 @@
103
103
  85% { opacity: 1; transform: translate(0, 0) scale(1); }
104
104
  100% { opacity: 0; transform: translate(0, 0) scale(1); }
105
105
  }
106
+ @keyframes wui-tour-tap-rtl {
107
+ 0% { opacity: 0; transform: translate(-56px, 44px) scale(1); }
108
+ 10% { opacity: 1; transform: translate(-56px, 44px) scale(1); }
109
+ 45% { transform: translate(0, 0) scale(1); }
110
+ 52% { transform: translate(0, 0) scale(0.86); }
111
+ 60% { transform: translate(0, 0) scale(1); }
112
+ 85% { opacity: 1; transform: translate(0, 0) scale(1); }
113
+ 100% { opacity: 0; transform: translate(0, 0) scale(1); }
114
+ }
106
115
  @keyframes wui-tour-ripple {
107
116
  0%, 50% { opacity: 0; transform: scale(0.2); }
108
117
  52% { opacity: 0.35; transform: scale(0.2); }
@@ -114,6 +123,9 @@
114
123
  .wui-tour-pointer {
115
124
  opacity: 0;
116
125
  animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite;
126
+ &:dir(rtl) {
127
+ animation-name: wui-tour-tap-rtl;
128
+ }
117
129
  &::after {
118
130
  display: block;
119
131
  animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration)