@webority/theme 0.164.0 → 0.167.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 (67) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +86 -1
  3. package/dist/published-theme.json +2 -0
  4. package/dist/purge-safelist.json +58 -24
  5. package/dist/webority-modes.css +1 -0
  6. package/dist/webority-theme.css +1 -1
  7. package/dist/webority-tokens.css +1 -1
  8. package/package.json +13 -6
  9. package/scss/_bootstrap.generated.scss +1 -1
  10. package/scss/_components.scss +33 -25
  11. package/scss/_modes.scss +17 -0
  12. package/scss/_tokens-modes.generated.scss +170 -0
  13. package/scss/_tokens.generated.scss +11 -6
  14. package/scss/_wui-components.scss +2 -2
  15. package/scss/_wui-core.scss +2 -2
  16. package/scss/wui/_cell.scss +1 -1
  17. package/scss/wui/_choice.scss +18 -8
  18. package/scss/wui/_controls.scss +144 -61
  19. package/scss/wui/_data.scss +54 -4
  20. package/scss/wui/_display.scss +8 -4
  21. package/scss/wui/_entry-grid.scss +178 -0
  22. package/scss/wui/_field-floor.scss +6 -6
  23. package/scss/wui/_field-sizes.scss +9 -5
  24. package/scss/wui/_flow.scss +1 -0
  25. package/scss/wui/_forced-colors.scss +15 -0
  26. package/scss/wui/_formula-steps.scss +73 -0
  27. package/scss/wui/_groups.scss +8 -0
  28. package/scss/wui/_interaction.scss +4 -0
  29. package/scss/wui/_metric-strip.scss +14 -0
  30. package/scss/wui/_navigation.scss +26 -10
  31. package/scss/wui/_overlays.scss +8 -0
  32. package/scss/wui/_print.scss +15 -0
  33. package/scss/wui/_sections.scss +28 -0
  34. package/scss/wui/_select.scss +9 -2
  35. package/scss/wui/_shell-parts.scss +4 -0
  36. package/scss/wui/_typography.scss +1 -0
  37. package/scss/wui/_utilities.scss +0 -7
  38. package/scss/wui/forced-colors/_base.scss +95 -0
  39. package/scss/wui/forced-colors/_choice.scss +59 -0
  40. package/scss/wui/forced-colors/_controls.scss +90 -0
  41. package/scss/wui/forced-colors/_data.scss +57 -0
  42. package/scss/wui/forced-colors/_display.scss +77 -0
  43. package/scss/wui/forced-colors/_media.scss +63 -0
  44. package/scss/wui/forced-colors/_navigation.scss +40 -0
  45. package/scss/wui/forced-colors/_overlays.scss +41 -0
  46. package/scss/wui/modes/_calendar.scss +24 -0
  47. package/scss/wui/modes/_command-palette.scss +23 -0
  48. package/scss/wui/modes/_dock.scss +21 -0
  49. package/scss/wui/modes/_file-viewer.scss +19 -0
  50. package/scss/wui/modes/_image-crop.scss +21 -0
  51. package/scss/wui/modes/_kanban.scss +36 -0
  52. package/scss/wui/modes/_org-tree.scss +18 -0
  53. package/scss/wui/modes/_rich-text.scss +25 -0
  54. package/scss/wui/modes/_tour.scss +30 -0
  55. package/scss/wui/modes/_tree.scss +17 -0
  56. package/scss/wui/modes/_workspace.scss +19 -0
  57. package/scss/wui/print/_chrome.scss +43 -0
  58. package/scss/wui/print/_content.scss +73 -0
  59. package/scss/wui/print/_dark.scss +105 -0
  60. package/scss/wui/print/_data.scss +80 -0
  61. package/scss/wui/print/_overlays.scss +46 -0
  62. package/scss/wui/print/_page.scss +11 -0
  63. package/scss/wui/print/_status.scss +42 -0
  64. package/scss/wui/print/_surfaces.scss +56 -0
  65. package/token-meanings.json +3 -2
  66. package/scss/wui/_resizable.scss +0 -100
  67. package/scss/wui/_rolling-number.scss +0 -68
@@ -121,9 +121,10 @@
121
121
  "--wui-close-filter": "Filter applied to a dark-ink close glyph such as the alert close button.",
122
122
  "--wui-container-max": "Maximum width of the page container on every surface.",
123
123
  "--wui-container-pad": "Side padding of the page container, growing on wider viewports.",
124
- "--wui-control-lg": "Height of the large control size, for prominent buttons and fields.",
125
- "--wui-control-md": "Default height of a button, field, select or tab; larger on phones.",
124
+ "--wui-control-lg": "Height of the large control size, for prominent fields.",
125
+ "--wui-control-md": "Default height of a field, select or tab; larger on phones.",
126
126
  "--wui-control-sm": "Height of the small control size, for dense toolbars and chips.",
127
+ "--wui-control-xl": "Height of the extra-large control size, for a field on a sign-up or marketing form.",
127
128
  "--wui-cta-gradient": "Background gradient of the call-to-action band on marketing pages.",
128
129
  "--wui-danger": "Vivid danger fill for badges, dots and danger buttons.",
129
130
  "--wui-danger-10": "Danger tint 10, the soft background of danger alerts and badges.",
@@ -1,100 +0,0 @@
1
- @use "../config" as *;
2
-
3
- // ── Resizable panels ──
4
- // AppResizable / <app-resizable> (a <wui-resizable> element): panels side by side or stacked with a
5
- // handle between each pair. The element writes each panel's `flex` (a share of the room the panels
6
- // split) and the handle's aria-value*; the handle is a thin line with a wider invisible hit area so a
7
- // finger can find it. `direction="vertical"` stacks the panels and needs a height: set
8
- // `--wui-resizable-height` on the group, or give its parent one.
9
- //
10
- // Part of the wui-components layer, see _wui-components.scss for load order.
11
-
12
- .wui-resizable {
13
- display: flex;
14
- flex-direction: row;
15
- width: 100%;
16
- height: var(--wui-resizable-height, auto);
17
- min-width: 0;
18
- min-height: 0;
19
- }
20
- .wui-resizable[direction="vertical"] {
21
- flex-direction: column;
22
- height: var(--wui-resizable-height, 100%);
23
- }
24
-
25
- .wui-resizable-panel {
26
- flex: 1 1 0;
27
- min-width: 0;
28
- min-height: 0;
29
- overflow: auto;
30
- }
31
-
32
- .wui-resizable-handle {
33
- position: relative;
34
- flex: none;
35
- width: 9px;
36
- cursor: col-resize;
37
- touch-action: none;
38
- user-select: none;
39
- outline: none;
40
- }
41
- .wui-resizable[direction="vertical"] > .wui-resizable-handle {
42
- width: auto;
43
- height: 9px;
44
- cursor: row-resize;
45
- }
46
- // The visible line, centred in the handle.
47
- .wui-resizable-handle::after {
48
- content: "";
49
- position: absolute;
50
- inset-block: 0;
51
- inset-inline: 4px;
52
- background: var(--color-border);
53
- border-radius: 2px;
54
- }
55
- .wui-resizable[direction="vertical"] > .wui-resizable-handle::after {
56
- inset-block: 4px;
57
- inset-inline: 0;
58
- }
59
- // A wider hit area for touch than the line shows.
60
- .wui-resizable-handle::before {
61
- content: "";
62
- position: absolute;
63
- inset-block: 0;
64
- inset-inline: -6px;
65
- }
66
- .wui-resizable[direction="vertical"] > .wui-resizable-handle::before {
67
- inset-block: -6px;
68
- inset-inline: 0;
69
- }
70
-
71
- .wui-resizable-handle:hover::after,
72
- .wui-resizable-handle.is-active::after {
73
- background: var(--color-primary);
74
- }
75
- .wui-resizable-handle:focus-visible::after {
76
- background: var(--color-primary);
77
- outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
78
- outline-offset: var(--wui-focus-ring-offset);
79
- }
80
- .wui-resizable-handle:focus-visible {
81
- z-index: 1;
82
- }
83
-
84
- // While dragging, the whole group keeps the resize cursor and text under the pointer is not selected.
85
- .wui-resizable.is-dragging {
86
- cursor: col-resize;
87
- user-select: none;
88
- }
89
- .wui-resizable.is-dragging[direction="vertical"] {
90
- cursor: row-resize;
91
- }
92
- .wui-resizable.is-dragging > .wui-resizable-panel {
93
- pointer-events: none;
94
- }
95
-
96
- @media (prefers-reduced-motion: no-preference) {
97
- .wui-resizable-handle::after {
98
- transition: background-color var(--wui-duration-fast) var(--wui-ease-ui);
99
- }
100
- }
@@ -1,68 +0,0 @@
1
- @use "../config" as *;
2
-
3
- // ── Rolling number ──
4
- // AppRollingNumber / <app-rolling-number> (a <wui-rolling-number> element): a figure whose digits
5
- // roll to a new value. The element draws one reel (digits 0 to 9, stacked) per digit in the
6
- // aria-hidden roll and moves it with --wui-roll-digit; the plain text beside it is what a screen
7
- // reader reads, shown on its own until the element is ready or when motion is reduced.
8
- //
9
- // Part of the wui-components layer, see _wui-components.scss for load order.
10
-
11
- $wui-roll-cell: 1.2em;
12
-
13
- .wui-rolling-number {
14
- position: relative;
15
- display: inline-block;
16
- vertical-align: bottom;
17
- // Unitless, so a digit column whose font size differs from the figure's keeps its own cell height.
18
- line-height: 1.2;
19
- font-variant-numeric: tabular-nums;
20
- white-space: nowrap;
21
- }
22
- .wui-rolling-number-roll {
23
- display: none;
24
- }
25
- .wui-rolling-number[data-ready] > .wui-rolling-number-roll {
26
- display: inline-flex;
27
- }
28
- // The text stays for assistive technology while the roll is drawn.
29
- .wui-rolling-number[data-ready] > .wui-rolling-number-text {
30
- position: absolute;
31
- width: 1px;
32
- height: 1px;
33
- margin: -1px;
34
- padding: 0;
35
- overflow: hidden;
36
- clip-path: inset(50%);
37
- white-space: nowrap;
38
- }
39
- .wui-rolling-number-char {
40
- display: inline-block;
41
- vertical-align: top;
42
- height: $wui-roll-cell;
43
- }
44
- .wui-rolling-number-digit {
45
- display: inline-block;
46
- vertical-align: top;
47
- height: $wui-roll-cell;
48
- overflow: hidden;
49
- }
50
- .wui-rolling-number-reel {
51
- display: flex;
52
- flex-direction: column;
53
- transform: translateY(calc(var(--wui-roll-digit, 0) * -#{$wui-roll-cell}));
54
- > span {
55
- display: block;
56
- height: $wui-roll-cell;
57
- }
58
- }
59
- // Only a figure that is moving has a transition, so a still render never catches a reel mid-move.
60
- .wui-rolling-number[data-rolling] .wui-rolling-number-reel {
61
- transition: transform var(--wui-roll-duration, 600ms) var(--wui-ease-out);
62
- }
63
-
64
- @media (prefers-reduced-motion: reduce) {
65
- .wui-rolling-number-reel {
66
- transition: none;
67
- }
68
- }