@webority/theme 0.24.0 → 0.26.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 (42) hide show
  1. package/README.md +16 -2
  2. package/dist/purge-safelist.json +199 -2
  3. package/dist/webority-brand-signal.css +1 -0
  4. package/dist/webority-theme.css +2 -2
  5. package/fonts/sans/OFL.txt +92 -0
  6. package/fonts/sans/WeboritySans-Bold.woff2 +0 -0
  7. package/fonts/sans/WeboritySans-BoldItalic.woff2 +0 -0
  8. package/fonts/sans/WeboritySans-Medium.woff2 +0 -0
  9. package/fonts/sans/WeboritySans-Regular.woff2 +0 -0
  10. package/fonts/sans/WeboritySans-RegularItalic.woff2 +0 -0
  11. package/fonts/sans/WeboritySans-SemiBold.woff2 +0 -0
  12. package/fonts/serif/WeboritySerif-Bold.woff2 +0 -0
  13. package/fonts/serif/WeboritySerif-BoldItalic.woff2 +0 -0
  14. package/fonts/serif/WeboritySerif-DemiBold.woff2 +0 -0
  15. package/fonts/serif/WeboritySerif-ExtraBold.woff2 +0 -0
  16. package/fonts/serif/WeboritySerif-Medium.woff2 +0 -0
  17. package/fonts/serif/WeboritySerif-Regular.woff2 +0 -0
  18. package/fonts/serif/WeboritySerif-RegularItalic.woff2 +0 -0
  19. package/index.scss +2 -1
  20. package/package.json +4 -2
  21. package/scss/_brand-signal.scss +202 -0
  22. package/scss/_fonts.scss +96 -0
  23. package/scss/_tokens.scss +55 -2
  24. package/scss/_variables.scss +2 -1
  25. package/scss/_wui-aliases.scss +21 -0
  26. package/scss/_wui-components.scss +12 -0
  27. package/scss/wui/_calendar.scss +256 -0
  28. package/scss/wui/_chart-card.scss +86 -0
  29. package/scss/wui/_chart.scss +524 -0
  30. package/scss/wui/_context-menu.scss +53 -0
  31. package/scss/wui/_data.scss +8 -6
  32. package/scss/wui/_display.scss +1 -1
  33. package/scss/wui/_image-crop.scss +146 -0
  34. package/scss/wui/_kanban.scss +434 -0
  35. package/scss/wui/_modal-remote.scss +55 -0
  36. package/scss/wui/_overlays.scss +39 -0
  37. package/scss/wui/_rich-text.scss +281 -0
  38. package/scss/wui/_shell-parts.scss +503 -0
  39. package/scss/wui/_shell.scss +11 -0
  40. package/scss/wui/_sortable.scss +135 -0
  41. package/scss/wui/_table-server.scss +40 -0
  42. package/scss/wui/_tree.scss +124 -0
@@ -0,0 +1,281 @@
1
+ // Rich text: the <wui-rich-text> element behind AppRichText / <app-rich-text>.
2
+ //
3
+ // Part of the wui-components layer; see _wui-components.scss for the load order. The shell wears the
4
+ // shared field chrome (muted fill at rest, white surface and brand border on focus, soft danger
5
+ // border when invalid) around a toolbar and the editable surface; the content takes the page's
6
+ // type. Every colour is a token the dark remap in _wui-aliases.scss flips with the rest of the portal.
7
+
8
+ wui-rich-text {
9
+ display: block;
10
+ min-width: 0;
11
+ }
12
+ // Until the editor's own script has run, the field shows its starting value in a plain box.
13
+ wui-rich-text:not(:defined) > textarea {
14
+ display: block;
15
+ width: 100%;
16
+ min-height: 180px;
17
+ }
18
+
19
+ .wui-rich-text-shell {
20
+ box-sizing: border-box;
21
+ display: flex;
22
+ flex-direction: column;
23
+ width: 100%;
24
+ border: 1px solid var(--color-border);
25
+ border-radius: var(--wui-field-radius);
26
+ background: var(--color-field-bg);
27
+ color: var(--color-text);
28
+ font-size: 14px;
29
+ line-height: 1.5;
30
+ overflow: hidden;
31
+ transition:
32
+ border-color 0.12s,
33
+ background-color 0.12s;
34
+ }
35
+ .wui-rich-text-shell:hover {
36
+ border-color: var(--color-border-strong);
37
+ }
38
+ .wui-rich-text-shell:focus-within {
39
+ background: var(--color-surface);
40
+ border-color: var(--color-focus-border);
41
+ }
42
+ wui-rich-text[aria-invalid="true"] .wui-rich-text-shell,
43
+ wui-rich-text[aria-invalid="true"] .wui-rich-text-shell:focus-within {
44
+ background: var(--color-surface);
45
+ border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
46
+ }
47
+ wui-rich-text[disabled] .wui-rich-text-shell {
48
+ background: var(--color-border);
49
+ border-color: transparent;
50
+ color: var(--color-text-subtle);
51
+ cursor: not-allowed;
52
+ }
53
+ wui-rich-text[readonly] .wui-rich-text-shell {
54
+ background: var(--color-bg-subtle);
55
+ color: var(--color-text-muted);
56
+ }
57
+
58
+ // ── Toolbar ──
59
+ // Wraps on a phone rather than scrolling sideways, so every tool stays reachable at 375px.
60
+ .wui-rich-text-toolbar {
61
+ display: flex;
62
+ flex-wrap: wrap;
63
+ align-items: center;
64
+ gap: 2px 8px;
65
+ padding: 6px;
66
+ border-bottom: 1px solid var(--color-border);
67
+ }
68
+ .wui-rich-text-group {
69
+ display: flex;
70
+ align-items: center;
71
+ gap: 2px;
72
+ }
73
+ .wui-rich-text-group + .wui-rich-text-group {
74
+ padding-left: 8px;
75
+ border-left: 1px solid var(--color-border);
76
+ }
77
+ .wui-rich-text-button {
78
+ display: inline-flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ min-width: 32px;
82
+ height: 32px;
83
+ padding: 0 6px;
84
+ border: 0;
85
+ border-radius: var(--wui-radius);
86
+ background: transparent;
87
+ color: var(--color-text-muted);
88
+ font: inherit;
89
+ font-size: 13px;
90
+ cursor: pointer;
91
+ transition:
92
+ background-color 0.12s,
93
+ color 0.12s;
94
+ }
95
+ .wui-rich-text-button:hover:not(:disabled) {
96
+ background: var(--color-bg-muted);
97
+ color: var(--color-text);
98
+ }
99
+ .wui-rich-text-button[aria-pressed="true"] {
100
+ background: var(--color-primary-soft);
101
+ color: var(--color-text);
102
+ }
103
+ .wui-rich-text-button:focus-visible {
104
+ outline: 2px solid var(--color-focus-border);
105
+ outline-offset: 1px;
106
+ }
107
+ .wui-rich-text-button:disabled {
108
+ color: var(--color-text-subtle);
109
+ opacity: 0.5;
110
+ cursor: not-allowed;
111
+ }
112
+ .wui-rich-text-glyph {
113
+ font-size: 13px;
114
+ font-weight: 600;
115
+ line-height: 1;
116
+ }
117
+
118
+ // ── Link box ──
119
+ .wui-rich-text-linkbar {
120
+ display: flex;
121
+ flex-wrap: wrap;
122
+ align-items: center;
123
+ gap: 6px;
124
+ padding: 6px;
125
+ border-bottom: 1px solid var(--color-border);
126
+ background: var(--color-bg-subtle);
127
+ }
128
+ .wui-rich-text-linkbar[hidden],
129
+ .wui-rich-text-link-error[hidden],
130
+ .wui-rich-text-link-remove[hidden] {
131
+ display: none;
132
+ }
133
+ .wui-rich-text-link-input {
134
+ flex: 1 1 200px;
135
+ min-width: 0;
136
+ height: 32px;
137
+ padding: 0 10px;
138
+ border: 1px solid var(--color-border);
139
+ border-radius: var(--wui-field-radius-sm);
140
+ background: var(--color-surface);
141
+ color: var(--color-text);
142
+ font: inherit;
143
+ font-size: 13px;
144
+ }
145
+ .wui-rich-text-link-input:focus {
146
+ outline: none;
147
+ border-color: var(--color-focus-border);
148
+ }
149
+ .wui-rich-text-link-input[aria-invalid="true"] {
150
+ border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
151
+ }
152
+ .wui-rich-text-link-apply,
153
+ .wui-rich-text-link-remove,
154
+ .wui-rich-text-link-cancel {
155
+ height: 32px;
156
+ padding: 0 10px;
157
+ border: 0;
158
+ border-radius: var(--wui-radius);
159
+ background: transparent;
160
+ color: var(--color-text-muted);
161
+ font: inherit;
162
+ font-size: 13px;
163
+ cursor: pointer;
164
+ }
165
+ .wui-rich-text-link-apply {
166
+ background: var(--color-primary);
167
+ color: var(--color-primary-text);
168
+ }
169
+ .wui-rich-text-link-apply:hover {
170
+ background: var(--color-primary-hover);
171
+ }
172
+ .wui-rich-text-link-remove:hover,
173
+ .wui-rich-text-link-cancel:hover {
174
+ background: var(--color-bg-muted);
175
+ color: var(--color-text);
176
+ }
177
+ .wui-rich-text-link-apply:focus-visible,
178
+ .wui-rich-text-link-remove:focus-visible,
179
+ .wui-rich-text-link-cancel:focus-visible {
180
+ outline: 2px solid var(--color-focus-border);
181
+ outline-offset: 1px;
182
+ }
183
+ .wui-rich-text-link-error {
184
+ flex: 1 0 100%;
185
+ font-size: 12px;
186
+ color: var(--color-danger-text);
187
+ }
188
+
189
+ // ── Editable surface ──
190
+ .wui-rich-text-content {
191
+ min-width: 0;
192
+ }
193
+ .wui-rich-text-prose {
194
+ box-sizing: border-box;
195
+ min-height: 140px;
196
+ max-height: 480px;
197
+ overflow-y: auto;
198
+ padding: 12px 15px;
199
+ outline: none;
200
+ overflow-wrap: anywhere;
201
+ cursor: text;
202
+ }
203
+ wui-rich-text[disabled] .wui-rich-text-prose {
204
+ cursor: not-allowed;
205
+ }
206
+ wui-rich-text[readonly] .wui-rich-text-prose {
207
+ cursor: default;
208
+ }
209
+ .wui-rich-text-prose > :first-child {
210
+ margin-top: 0;
211
+ }
212
+ .wui-rich-text-prose > :last-child {
213
+ margin-bottom: 0;
214
+ }
215
+ .wui-rich-text-prose p {
216
+ margin: 0 0 0.75em;
217
+ }
218
+ .wui-rich-text-prose h2,
219
+ .wui-rich-text-prose h3 {
220
+ margin: 1em 0 0.5em;
221
+ font-weight: 600;
222
+ line-height: 1.3;
223
+ color: var(--color-text);
224
+ }
225
+ .wui-rich-text-prose h2 {
226
+ font-size: 1.25em;
227
+ }
228
+ .wui-rich-text-prose h3 {
229
+ font-size: 1.1em;
230
+ }
231
+ .wui-rich-text-prose ul,
232
+ .wui-rich-text-prose ol {
233
+ margin: 0 0 0.75em;
234
+ padding-left: 1.5em;
235
+ }
236
+ .wui-rich-text-prose li > p {
237
+ margin-bottom: 0.25em;
238
+ }
239
+ .wui-rich-text-prose blockquote {
240
+ margin: 0 0 0.75em;
241
+ padding-left: 12px;
242
+ border-left: 3px solid var(--color-border-strong);
243
+ color: var(--color-text-muted);
244
+ }
245
+ .wui-rich-text-prose a {
246
+ color: var(--bs-link-color);
247
+ text-decoration: underline;
248
+ cursor: pointer;
249
+ }
250
+ .wui-rich-text-prose code {
251
+ padding: 0.1em 0.35em;
252
+ border-radius: var(--wui-radius-sm);
253
+ background: var(--color-bg-muted);
254
+ font-size: 0.9em;
255
+ }
256
+ .wui-rich-text-prose pre {
257
+ margin: 0 0 0.75em;
258
+ padding: 10px 12px;
259
+ border-radius: var(--wui-radius);
260
+ background: var(--color-bg-muted);
261
+ overflow-x: auto;
262
+ }
263
+ .wui-rich-text-prose pre code {
264
+ padding: 0;
265
+ background: transparent;
266
+ font-size: 0.9em;
267
+ }
268
+ // The engine marks the empty first paragraph; the placeholder text is its data attribute.
269
+ .wui-rich-text-prose p.wui-rich-text-empty:first-child::before {
270
+ content: attr(data-placeholder);
271
+ float: left;
272
+ height: 0;
273
+ color: var(--color-text-subtle);
274
+ pointer-events: none;
275
+ }
276
+ @media (prefers-reduced-motion: reduce) {
277
+ .wui-rich-text-shell,
278
+ .wui-rich-text-button {
279
+ transition: none;
280
+ }
281
+ }