@webority/theme 0.150.0 → 0.153.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 (115) hide show
  1. package/README.md +52 -17
  2. package/dist/purge-safelist.json +20 -0
  3. package/dist/webority-theme.css +1 -1
  4. package/dist/webority-tokens.css +1 -1
  5. package/index.scss +11 -13
  6. package/package.json +3 -2
  7. package/scss/_bootstrap-css.scss +40 -0
  8. package/scss/_bootstrap.generated.scss +1 -2
  9. package/scss/_components.scss +157 -55
  10. package/scss/_config.scss +16 -0
  11. package/scss/_marketing.scss +15 -15
  12. package/scss/_tokens.generated.scss +26 -1
  13. package/scss/_tokens.scss +3 -3
  14. package/scss/_variables.scss +13 -35
  15. package/scss/_wui-components.scss +91 -95
  16. package/scss/_wui-core.scss +80 -84
  17. package/scss/wui/_account-switcher.scss +2 -0
  18. package/scss/wui/_auth-layout.scss +2 -0
  19. package/scss/wui/_avatar-picker.scss +2 -0
  20. package/scss/wui/_calendar.scss +8 -6
  21. package/scss/wui/_card-options.scss +2 -0
  22. package/scss/wui/_card.scss +6 -4
  23. package/scss/wui/_carousel.scss +5 -3
  24. package/scss/wui/_cell.scss +2 -0
  25. package/scss/wui/_chart-card.scss +2 -0
  26. package/scss/wui/_chart.scss +6 -4
  27. package/scss/wui/_choice.scss +50 -43
  28. package/scss/wui/_code-block.scss +2 -0
  29. package/scss/wui/_command-palette.scss +4 -2
  30. package/scss/wui/_comment-thread.scss +4 -2
  31. package/scss/wui/_compare-table.scss +29 -0
  32. package/scss/wui/_consent-banner.scss +2 -0
  33. package/scss/wui/_context-menu.scss +2 -0
  34. package/scss/wui/_controls.scss +53 -51
  35. package/scss/wui/_data.scss +28 -16
  36. package/scss/wui/_detail-pane.scss +2 -0
  37. package/scss/wui/_dialog-motion.scss +6 -4
  38. package/scss/wui/_disclosure.scss +6 -4
  39. package/scss/wui/_display.scss +39 -23
  40. package/scss/wui/_dock.scss +8 -6
  41. package/scss/wui/_drawer.scss +4 -2
  42. package/scss/wui/_due-date.scss +2 -0
  43. package/scss/wui/_empty-state.scss +2 -0
  44. package/scss/wui/_field-busy.scss +3 -1
  45. package/scss/wui/_field-floor.scss +4 -1
  46. package/scss/wui/_field-sizes.scss +2 -0
  47. package/scss/wui/_file-tiles.scss +2 -0
  48. package/scss/wui/_file-viewer.scss +9 -5
  49. package/scss/wui/_filter-popover.scss +2 -0
  50. package/scss/wui/_floating.scss +2 -0
  51. package/scss/wui/_flow.scss +17 -13
  52. package/scss/wui/_groups.scss +2 -0
  53. package/scss/wui/_hover-card.scss +2 -0
  54. package/scss/wui/_illustration.scss +2 -0
  55. package/scss/wui/_image-crop.scss +2 -0
  56. package/scss/wui/_inline-edit.scss +4 -2
  57. package/scss/wui/_interaction.scss +3 -2
  58. package/scss/wui/_kanban.scss +18 -6
  59. package/scss/wui/_lightbox.scss +4 -2
  60. package/scss/wui/_list-card.scss +2 -0
  61. package/scss/wui/_markdown.scss +4 -1
  62. package/scss/wui/_media.scss +50 -48
  63. package/scss/wui/_mention-input.scss +2 -0
  64. package/scss/wui/_menu-motion.scss +2 -0
  65. package/scss/wui/_metric-strip.scss +2 -0
  66. package/scss/wui/_modal-remote.scss +3 -1
  67. package/scss/wui/_money.scss +2 -0
  68. package/scss/wui/_nav-list.scss +2 -0
  69. package/scss/wui/_navigation-menu.scss +3 -1
  70. package/scss/wui/_navigation.scss +70 -18
  71. package/scss/wui/_notification-center.scss +5 -3
  72. package/scss/wui/_onboarding-checklist.scss +3 -1
  73. package/scss/wui/_org-tree.scss +2 -0
  74. package/scss/wui/_overlays.scss +30 -40
  75. package/scss/wui/_page-header-bar.scss +2 -0
  76. package/scss/wui/_pagination.scss +6 -4
  77. package/scss/wui/_pending.scss +2 -0
  78. package/scss/wui/_period-picker.scss +2 -0
  79. package/scss/wui/_rating.scss +3 -1
  80. package/scss/wui/_record-pager.scss +2 -0
  81. package/scss/wui/_relative-time.scss +2 -0
  82. package/scss/wui/_resizable.scss +3 -1
  83. package/scss/wui/_rich-text.scss +13 -7
  84. package/scss/wui/_rolling-number.scss +2 -0
  85. package/scss/wui/_score-scale.scss +5 -3
  86. package/scss/wui/_scrollbar.scss +2 -0
  87. package/scss/wui/_section-lead-capture.scss +2 -0
  88. package/scss/wui/_sections.scss +5 -2
  89. package/scss/wui/_select.scss +2 -0
  90. package/scss/wui/_shell-parts.scss +55 -5
  91. package/scss/wui/_shell.scss +58 -57
  92. package/scss/wui/_shortcuts.scss +2 -0
  93. package/scss/wui/_show-more.scss +2 -0
  94. package/scss/wui/_sortable.scss +4 -2
  95. package/scss/wui/_split-view.scss +4 -2
  96. package/scss/wui/_support.scss +2 -0
  97. package/scss/wui/_table-server.scss +3 -1
  98. package/scss/wui/_theme-toggle.scss +3 -1
  99. package/scss/wui/_tone-pill.scss +2 -0
  100. package/scss/wui/_toolbar.scss +9 -7
  101. package/scss/wui/_tour.scss +9 -9
  102. package/scss/wui/_tree.scss +5 -3
  103. package/scss/wui/_truncate.scss +2 -0
  104. package/scss/wui/_typography.scss +3 -0
  105. package/scss/wui/_utilities.scss +31 -11
  106. package/scss/wui/_whats-new.scss +2 -0
  107. package/scss/wui/_workspace.scss +4 -2
  108. package/scss/wui/tour/_advance.scss +2 -0
  109. package/scss/wui/tour/_base.scss +2 -0
  110. package/scss/wui/tour/_end.scss +3 -1
  111. package/scss/wui/tour/_media.scss +2 -0
  112. package/scss/wui/tour/_motion.scss +6 -4
  113. package/scss/wui/tour/_placement.scss +2 -0
  114. package/scss/wui/tour/_progress.scss +2 -0
  115. package/token-meanings.json +2 -0
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
4
  // Grid utils, info tip, page header, row actions, spinner.
3
5
  //
@@ -88,7 +90,7 @@
88
90
  background: transparent;
89
91
  color: var(--color-text-subtle);
90
92
  cursor: help;
91
- transition: color 0.15s;
93
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
92
94
  }
93
95
  .infotip-btn:hover {
94
96
  color: var(--color-primary-text);
@@ -399,6 +401,24 @@
399
401
  aspect-ratio: 1;
400
402
  }
401
403
 
404
+ // Touch screens: grow the hit area, not the disc, so row density is unchanged. On ::before, never ::after,
405
+ // which a [data-wui-tip] tooltip owns (same as .u-action in _data.scss).
406
+ @media (pointer: coarse) {
407
+ .btn-icon {
408
+ position: relative;
409
+ }
410
+
411
+ .btn-icon::before {
412
+ content: "";
413
+ position: absolute;
414
+ top: 50%;
415
+ left: 50%;
416
+ transform: translate(-50%, -50%);
417
+ width: var(--wui-touch-target);
418
+ height: var(--wui-touch-target);
419
+ }
420
+ }
421
+
402
422
  // Circular icon buttons in the top bar (minimal dashboard chrome).
403
423
  .topbar-icon-btn {
404
424
  position: relative;
@@ -414,8 +434,8 @@
414
434
  color: var(--color-text-muted);
415
435
  cursor: pointer;
416
436
  transition:
417
- background 0.15s ease,
418
- color 0.15s ease;
437
+ background var(--wui-duration-fast) var(--wui-ease-ui),
438
+ color var(--wui-duration-fast) var(--wui-ease-ui);
419
439
  }
420
440
  .topbar-icon-btn:hover {
421
441
  background: var(--color-primary-soft);
@@ -458,7 +478,7 @@
458
478
  margin-inline-start: calc(-1 * var(--wui-space-xs));
459
479
  padding: var(--wui-space-xxs) var(--wui-space-xs);
460
480
  border-radius: var(--wui-radius-sm);
461
- transition: background 0.12s ease;
481
+ transition: background var(--wui-duration-fast) var(--wui-ease-ui);
462
482
  }
463
483
  .wui-dropdown-trigger-neutral:hover,
464
484
  .wui-dropdown-trigger-neutral[aria-expanded="true"] {
@@ -563,7 +583,7 @@
563
583
  font-size: 13px;
564
584
  line-height: 1.35;
565
585
  font-weight: 500;
566
- transition: color 0.15s ease;
586
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
567
587
  }
568
588
  // The state mark is a single mask tinted by the rule's own text colour (`currentColor`), so it
569
589
  // tracks the met/unmet colour automatically and stays theme-aware — no baked hex, no light/dark
@@ -579,7 +599,7 @@
579
599
  mask: center / contain no-repeat;
580
600
  -webkit-mask-image: var(--pw-mark);
581
601
  mask-image: var(--pw-mark);
582
- transition: background-color 0.15s ease;
602
+ transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
583
603
  }
584
604
  .pw-criteria .pw-rule-text {
585
605
  min-width: 0;
@@ -752,7 +772,7 @@
752
772
  // no width style in this mode, so the width + motion come from here).
753
773
  .wui-progress-indeterminate {
754
774
  width: 40%;
755
- animation: wui-progress-indeterminate 1.1s ease-in-out infinite;
775
+ animation: wui-progress-indeterminate calc(var(--wui-duration-slow) * 3) var(--wui-ease-in-out) infinite;
756
776
  }
757
777
  @keyframes wui-progress-indeterminate {
758
778
  0% {
@@ -789,7 +809,7 @@
789
809
  border: 2.5px solid var(--color-border);
790
810
  border-top-color: var(--color-primary);
791
811
  border-radius: 999px;
792
- animation: wui-spin 0.7s linear infinite;
812
+ animation: wui-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
793
813
  display: inline-block;
794
814
  flex-shrink: 0;
795
815
  }
@@ -806,7 +826,7 @@
806
826
  }
807
827
  // Spinner for the Button loading state.
808
828
  .wui-spin {
809
- animation: wui-spin 0.8s linear infinite;
829
+ animation: wui-spin calc(var(--wui-duration-slow) * 2) var(--wui-ease-linear) infinite;
810
830
  }
811
831
 
812
832
  // Skeleton shimmer — used ONLY while loading the first data (loading &&
@@ -824,7 +844,7 @@
824
844
  inset: 0;
825
845
  transform: translateX(-100%);
826
846
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
827
- animation: skeleton-shimmer 1.4s ease-in-out infinite;
847
+ animation: skeleton-shimmer calc(var(--wui-duration-slow) * 4) var(--wui-ease-in-out) infinite;
828
848
  }
829
849
  @keyframes skeleton-shimmer {
830
850
  100% {
@@ -1199,7 +1219,7 @@
1199
1219
  opacity: 1;
1200
1220
  filter: none;
1201
1221
  transform: translateY(-50%);
1202
- transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
1222
+ transition: background-color var(--wui-duration-default) var(--wui-ease-in-out);
1203
1223
  }
1204
1224
  .alert-dismissible .btn-close::before {
1205
1225
  content: "";
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── What's new ──
2
4
  // AppWhatsNew / <app-whats-new> (a <wui-whats-new> element): a gift icon with an unread dot and a
3
5
  // panel of dated release notes under it. The element shows the dot through [data-wui-unread] on the
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Every class here is namespaced `.workspace-switcher*`, and the rules that have to beat
2
4
  // Bootstrap's own .dropdown-item/.dropdown-menu specificity are additionally scoped under
3
5
  // the .workspace-switcher root — so this file cannot reach anything a product owns unless
@@ -35,8 +37,8 @@
35
37
  text-align: left;
36
38
  cursor: pointer;
37
39
  transition:
38
- border-color 0.12s,
39
- box-shadow 0.12s;
40
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
41
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
40
42
  }
41
43
  .workspace-switcher-trigger:hover:not(:focus):not([aria-expanded="true"]) {
42
44
  border-color: var(--color-border-strong);
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: click-to-advance steps ──
2
4
  // A step with `advance-on="click"` lets clicks through the spotlight to its target, and the
3
5
  // tour moves on when the target is used (tourAdvance.js). The cue is the looping tapping pointer
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: layer, spotlight and card ──
2
4
  // AppTour / <app-tour> / <wui-tour>: a dimmed page with one highlighted element and a card
3
5
  // holding the step text and Back / Next / Skip. The element appends .wui-tour-layer to <body>;
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: closing dialog ──
2
4
  // The "You're all set" dialog after the last step (.wui-tour-end), shown by tourEnd.js. It is a
3
5
  // .wui-tour-card too, so it takes the card's look and its entrance from _motion.scss (a fade under
@@ -89,6 +91,6 @@
89
91
  // (set inline by tourMotion.js and inherited). Under reduced motion it shows at once.
90
92
  @media (prefers-reduced-motion: no-preference) {
91
93
  .wui-tour-end-mark path {
92
- animation: wui-tour-check 300ms var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + 120ms) both;
94
+ animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both;
93
95
  }
94
96
  }
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: step media ──
2
4
  // A step's optional image or short loop, full-bleed at the card top (.wui-tour-media), rendered
3
5
  // by tourMedia.js. The frame is 16:9 before the file loads, so the card keeps its size. Its
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: motion ──
2
4
  // The dim fading in and out, the spotlight's glide between targets, and the card's entrance and
3
5
  // exit (its `data-state`: entering | shown | leaving, and the layer's `data-state="leaving"`, both
@@ -119,15 +121,15 @@
119
121
  }
120
122
 
121
123
  // Nothing moves or scales and the spot jumps: the card hides at once and fades in, and the dim
122
- // fades, each within 120ms.
124
+ // fades, each within the fast motion duration.
123
125
  @media (prefers-reduced-motion: reduce) {
124
126
  .wui-tour-layer {
125
- animation: wui-tour-fade-in 120ms linear;
127
+ animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear);
126
128
  }
127
129
  .wui-tour-layer[data-state="leaving"] {
128
- transition: opacity 120ms linear;
130
+ transition: opacity var(--wui-duration-fast) var(--wui-ease-linear);
129
131
  }
130
132
  .wui-tour-card[data-state="entering"] {
131
- animation: wui-tour-fade-in 120ms linear both;
133
+ animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both;
132
134
  }
133
135
  }
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: placement ──
2
4
  // Where the card sits against its target: the card's `data-placement` (top | bottom | left |
3
5
  // right | center | overlap) and the .wui-tour-arrow pointing at the target, set by tourPlacement.js.
@@ -1,3 +1,5 @@
1
+ @use "../../config" as *;
2
+
1
3
  // ── Product tour: progress ──
2
4
  // The step count above the title: a thin segmented bar (.wui-tour-progress holds
3
5
  // .wui-tour-progress-bar, which holds one .wui-tour-progress-segment per counted step) and the
@@ -171,6 +171,7 @@
171
171
  "--wui-disabled-opacity": "Opacity of a control that dims as a whole when disabled.",
172
172
  "--wui-drawer-max": "Height of a bottom sheet drawer as a count of viewport height percent.",
173
173
  "--wui-ease-elastic": "Overshooting easing for the tab ink bar's spring into place.",
174
+ "--wui-ease-linear": "Constant-speed easing for spinners, marquees and scroll-linked motion.",
174
175
  "--wui-ease-out": "Easing curve matching the locked design's motion exports.",
175
176
  "--wui-ease-ui": "Easing curve for interface transitions.",
176
177
  "--wui-fg-2": "Marketing alias of the primary body text ink.",
@@ -291,6 +292,7 @@
291
292
  "--wui-text-heading": "Heading ink for page and section titles.",
292
293
  "--wui-thumb-shadow": "Shadow under a slider thumb and other small interactive elements.",
293
294
  "--wui-thumb-shadow-hover": "Shadow under a slider thumb while it is hovered.",
295
+ "--wui-touch-target": "Smallest tap area of a button on a touch screen; small, text and icon-only buttons grow to it.",
294
296
  "--wui-warning": "Vivid warning fill for badges and dots.",
295
297
  "--wui-warning-10": "Warning tint 10, the soft background of warning alerts and badges.",
296
298
  "--wui-warning-20": "Warning tint 20 for soft fills behind warning alerts and badges.",