@webority/theme 0.176.0 → 0.178.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.
- package/README.md +7 -7
- package/dist/purge-safelist.json +3 -5
- package/dist/webority-modes.css +1 -1
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/package.json +5 -5
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +16 -8
- package/scss/_flags.scss +1 -1
- package/scss/_marketing.scss +2 -0
- package/scss/_tokens-modes.generated.scss +1 -1
- package/scss/_tokens.generated.scss +6 -6
- package/scss/_variables.scss +1 -1
- package/scss/_wui-core.scss +1 -1
- package/scss/_wui-residual.scss +10 -0
- package/scss/wui/_auth-layout.scss +2 -1
- package/scss/wui/_calendar.scss +2 -1
- package/scss/wui/_card.scss +2 -0
- package/scss/wui/_carousel.scss +2 -1
- package/scss/wui/_chart.scss +8 -4
- package/scss/wui/_choice.scss +23 -10
- package/scss/wui/_code-block.scss +2 -1
- package/scss/wui/_command-palette.scss +4 -2
- package/scss/wui/_comment-thread.scss +8 -4
- package/scss/wui/_compare-table.scss +2 -1
- package/scss/wui/_consent-banner.scss +2 -1
- package/scss/wui/_controls.scss +65 -104
- package/scss/wui/_data.scss +19 -9
- package/scss/wui/_detail-pane.scss +2 -1
- package/scss/wui/_disclosure.scss +2 -1
- package/scss/wui/_display.scss +34 -22
- package/scss/wui/_dock.scss +2 -1
- package/scss/wui/_drawer.scss +5 -4
- package/scss/wui/_empty-state.scss +2 -1
- package/scss/wui/_field-busy.scss +3 -6
- package/scss/wui/_field-floor.scss +1 -5
- package/scss/wui/_field-sizes.scss +7 -4
- package/scss/wui/_file-tiles.scss +4 -2
- package/scss/wui/_file-viewer.scss +10 -6
- package/scss/wui/_filter-popover.scss +2 -1
- package/scss/wui/_flow.scss +10 -5
- package/scss/wui/_gantt.scss +4 -2
- package/scss/wui/_groups.scss +8 -1
- package/scss/wui/_hover-card.scss +2 -1
- package/scss/wui/_image-crop.scss +6 -3
- package/scss/wui/_inline-edit.scss +2 -1
- package/scss/wui/_interaction.scss +1 -1
- package/scss/wui/_kanban.scss +16 -8
- package/scss/wui/_lightbox.scss +4 -2
- package/scss/wui/_markdown.scss +2 -1
- package/scss/wui/_media.scss +22 -11
- package/scss/wui/_mention-input.scss +1 -1
- package/scss/wui/_modal-remote.scss +4 -2
- package/scss/wui/_nav-list.scss +2 -1
- package/scss/wui/_navigation-menu.scss +5 -3
- package/scss/wui/_navigation.scss +21 -8
- package/scss/wui/_notification-center.scss +4 -2
- package/scss/wui/_onboarding-checklist.scss +6 -3
- package/scss/wui/_org-tree.scss +2 -1
- package/scss/wui/_overlays.scss +63 -34
- package/scss/wui/_page-header-bar.scss +1 -0
- package/scss/wui/_pagination.scss +5 -4
- package/scss/wui/_rating.scss +2 -1
- package/scss/wui/_rich-text.scss +10 -4
- package/scss/wui/_score-scale.scss +2 -1
- package/scss/wui/_sections.scss +10 -5
- package/scss/wui/_select.scss +8 -4
- package/scss/wui/_shell-parts.scss +40 -6
- package/scss/wui/_shell.scss +12 -6
- package/scss/wui/_shortcuts.scss +5 -3
- package/scss/wui/_sortable.scss +2 -1
- package/scss/wui/_split-view.scss +4 -2
- package/scss/wui/_support.scss +12 -0
- package/scss/wui/_table-server.scss +2 -1
- package/scss/wui/_toolbar.scss +4 -2
- package/scss/wui/_tree-picker.scss +6 -3
- package/scss/wui/_tree.scss +2 -1
- package/scss/wui/_truncate.scss +2 -1
- package/scss/wui/_utilities.scss +15 -7
- package/scss/wui/_whats-new.scss +4 -2
- package/scss/wui/_workspace.scss +1 -1
- package/scss/wui/forced-colors/_controls.scss +2 -11
- package/scss/wui/print/_content.scss +2 -6
- package/scss/wui/tour/_base.scss +1 -1
- package/token-meanings.json +1 -0
package/scss/wui/_controls.scss
CHANGED
|
@@ -10,17 +10,14 @@
|
|
|
10
10
|
// here may be overridden by a later partial. Never reorder the imports.
|
|
11
11
|
|
|
12
12
|
// ── Checkbox / radio / switch ──
|
|
13
|
-
// Bootstrap `.form-check` + `.form-check-input` are the
|
|
14
|
-
// (AppCheckbox / AppRadio / AppSwitch).
|
|
15
|
-
//
|
|
16
|
-
// markup), never a second look. One 20px brand glyph language.
|
|
13
|
+
// Bootstrap `.form-check` + `.form-check-input` are the selection skin
|
|
14
|
+
// (AppCheckbox / AppRadio / AppSwitch / the table select column). One 20px brand
|
|
15
|
+
// glyph language.
|
|
17
16
|
//
|
|
18
17
|
// Layout wrappers:
|
|
19
|
-
// .form-check / .form-check-label:
|
|
20
|
-
// .wui-control / .wui-control-label: optional compact label wrap (alias)
|
|
18
|
+
// .form-check / .form-check-label: the label wrap
|
|
21
19
|
|
|
22
|
-
.form-check
|
|
23
|
-
.wui-control {
|
|
20
|
+
.form-check {
|
|
24
21
|
display: flex;
|
|
25
22
|
align-items: center;
|
|
26
23
|
gap: 8px;
|
|
@@ -33,9 +30,6 @@
|
|
|
33
30
|
color: var(--color-text);
|
|
34
31
|
line-height: 1.4;
|
|
35
32
|
}
|
|
36
|
-
.wui-control {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
}
|
|
39
33
|
.form-check-inline {
|
|
40
34
|
display: inline-flex;
|
|
41
35
|
margin-inline-end: 16px;
|
|
@@ -46,8 +40,7 @@
|
|
|
46
40
|
align-items: center;
|
|
47
41
|
gap: 8px 20px;
|
|
48
42
|
}
|
|
49
|
-
.form-check-label
|
|
50
|
-
.wui-control-label {
|
|
43
|
+
.form-check-label {
|
|
51
44
|
// `min-width: 0` lets the label wrap inside its column instead of forcing
|
|
52
45
|
// the track to overflow.
|
|
53
46
|
min-width: 0;
|
|
@@ -130,7 +123,8 @@
|
|
|
130
123
|
padding: 14px 16px;
|
|
131
124
|
min-height: 56px;
|
|
132
125
|
border: 1px solid var(--color-border);
|
|
133
|
-
border-radius: var(--wui-radius-md);
|
|
126
|
+
border-radius: calc(var(--wui-radius-md) * var(--wui-squircle-scale));
|
|
127
|
+
corner-shape: squircle;
|
|
134
128
|
background: var(--color-surface);
|
|
135
129
|
transition:
|
|
136
130
|
border-color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
@@ -190,10 +184,8 @@
|
|
|
190
184
|
margin-bottom: 0;
|
|
191
185
|
}
|
|
192
186
|
|
|
193
|
-
// Glyph
|
|
194
|
-
.form-check-input
|
|
195
|
-
.wui-check,
|
|
196
|
-
.wui-radio {
|
|
187
|
+
// Glyph for checkboxes and radios.
|
|
188
|
+
.form-check-input {
|
|
197
189
|
box-sizing: border-box;
|
|
198
190
|
flex: none;
|
|
199
191
|
float: none;
|
|
@@ -220,26 +212,20 @@
|
|
|
220
212
|
float: none;
|
|
221
213
|
margin: 0;
|
|
222
214
|
}
|
|
223
|
-
.form-check-input[type="checkbox"]
|
|
224
|
-
.wui-check {
|
|
215
|
+
.form-check-input[type="checkbox"] {
|
|
225
216
|
border-radius: var(--wui-radius-sm);
|
|
226
217
|
corner-shape: squircle;
|
|
227
218
|
}
|
|
228
|
-
.form-check-input[type="radio"]
|
|
229
|
-
.wui-radio {
|
|
219
|
+
.form-check-input[type="radio"] {
|
|
230
220
|
border-radius: 50%;
|
|
231
221
|
}
|
|
232
|
-
.form-check-input:hover:not(:disabled):not(:checked)
|
|
233
|
-
.wui-check:hover:not(:disabled):not(:checked),
|
|
234
|
-
.wui-radio:hover:not(:disabled):not(:checked) {
|
|
222
|
+
.form-check-input:hover:not(:disabled):not(:checked) {
|
|
235
223
|
border-color: var(--color-primary);
|
|
236
224
|
box-shadow: 0 0 0 2px var(--color-primary-soft);
|
|
237
225
|
}
|
|
238
226
|
// Keyboard focus draws the shared ring, never the soft hover glow (under 3:1 and identical to
|
|
239
227
|
// hover). :focus-visible matches keyboard/AT focus only, never a plain mouse click.
|
|
240
|
-
.form-check-input:focus-visible
|
|
241
|
-
.wui-check:focus-visible,
|
|
242
|
-
.wui-radio:focus-visible {
|
|
228
|
+
.form-check-input:focus-visible {
|
|
243
229
|
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
244
230
|
outline-offset: var(--wui-focus-ring-offset);
|
|
245
231
|
border-color: var(--color-primary);
|
|
@@ -249,11 +235,7 @@
|
|
|
249
235
|
// darkening; Bootstrap paints all of them on :focus/:active. Neutralise them for pointer
|
|
250
236
|
// focus + active while the keyboard ring above stays, so a mouse click just toggles cleanly.
|
|
251
237
|
.form-check-input:focus:not(:focus-visible),
|
|
252
|
-
.
|
|
253
|
-
.wui-radio:focus:not(:focus-visible),
|
|
254
|
-
.form-check-input:active,
|
|
255
|
-
.wui-check:active,
|
|
256
|
-
.wui-radio:active {
|
|
238
|
+
.form-check-input:active {
|
|
257
239
|
outline: none;
|
|
258
240
|
box-shadow: none;
|
|
259
241
|
filter: none;
|
|
@@ -262,30 +244,23 @@
|
|
|
262
244
|
.form-check-input:focus:not(:focus-visible):not(:checked):not([type="checkbox"]:indeterminate):not(.form-switch .form-check-input) {
|
|
263
245
|
border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
|
|
264
246
|
}
|
|
265
|
-
.form-check-input:checked
|
|
266
|
-
.wui-check:checked,
|
|
267
|
-
.wui-radio:checked {
|
|
247
|
+
.form-check-input:checked {
|
|
268
248
|
border-color: var(--color-primary);
|
|
269
249
|
background-color: var(--color-primary);
|
|
270
250
|
}
|
|
271
|
-
.form-check-input[type="checkbox"]:checked
|
|
272
|
-
.wui-check:checked {
|
|
251
|
+
.form-check-input[type="checkbox"]:checked {
|
|
273
252
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
|
|
274
253
|
}
|
|
275
|
-
.form-check-input[type="checkbox"]:indeterminate
|
|
276
|
-
.wui-check:indeterminate {
|
|
254
|
+
.form-check-input[type="checkbox"]:indeterminate {
|
|
277
255
|
border-color: var(--color-primary);
|
|
278
256
|
background-color: var(--color-primary);
|
|
279
257
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
|
|
280
258
|
}
|
|
281
|
-
.form-check-input[type="radio"]:checked
|
|
282
|
-
.wui-radio:checked {
|
|
259
|
+
.form-check-input[type="radio"]:checked {
|
|
283
260
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5.5' fill='white'/%3E%3C/svg%3E");
|
|
284
261
|
background-size: 20px 20px;
|
|
285
262
|
}
|
|
286
|
-
.form-check-input:disabled
|
|
287
|
-
.wui-check:disabled,
|
|
288
|
-
.wui-radio:disabled {
|
|
263
|
+
.form-check-input:disabled {
|
|
289
264
|
cursor: not-allowed;
|
|
290
265
|
opacity: var(--wui-disabled-opacity);
|
|
291
266
|
box-shadow: none;
|
|
@@ -293,21 +268,18 @@
|
|
|
293
268
|
// A disabled box that is ticked keeps its primary fill, only dimmed; the muted fill is for an
|
|
294
269
|
// empty one. :where keeps this at the :disabled specificity so the switch track still wins.
|
|
295
270
|
// A radio in a group with nothing chosen also matches :indeterminate, hence the type test.
|
|
296
|
-
.form-check-input:disabled:where(:not(:checked, [type="checkbox"]:indeterminate))
|
|
297
|
-
.wui-check:disabled:where(:not(:checked, :indeterminate)),
|
|
298
|
-
.wui-radio:disabled:where(:not(:checked)) {
|
|
271
|
+
.form-check-input:disabled:where(:not(:checked, [type="checkbox"]:indeterminate)) {
|
|
299
272
|
background-color: var(--color-bg-muted);
|
|
300
273
|
border-color: var(--color-border);
|
|
301
274
|
}
|
|
302
275
|
.form-check-input:disabled ~ .form-check-label,
|
|
303
|
-
.
|
|
276
|
+
.form-check:has(:disabled) {
|
|
304
277
|
cursor: not-allowed;
|
|
305
278
|
color: var(--color-text-subtle);
|
|
306
279
|
}
|
|
307
280
|
|
|
308
281
|
// Compact row-select: ONLY inside the select column (AppDataTable / Razor
|
|
309
282
|
// data-table → `.wui-select-cell`). Scope is load-bearing.
|
|
310
|
-
.wui-select-cell .wui-check,
|
|
311
283
|
.wui-select-cell .form-check-input {
|
|
312
284
|
width: 16px;
|
|
313
285
|
height: 16px;
|
|
@@ -391,17 +363,14 @@
|
|
|
391
363
|
}
|
|
392
364
|
|
|
393
365
|
@media (prefers-reduced-motion: reduce) {
|
|
394
|
-
.form-check-input
|
|
395
|
-
.wui-check,
|
|
396
|
-
.wui-radio {
|
|
366
|
+
.form-check-input {
|
|
397
367
|
transition: none;
|
|
398
368
|
}
|
|
399
369
|
}
|
|
400
370
|
|
|
401
371
|
// ── Field / Input ──
|
|
402
|
-
// Bootstrap `.form-control` / `.form-select` are the field skin. `.input`
|
|
403
|
-
//
|
|
404
|
-
// share the same chrome; never a second look. The only WUI
|
|
372
|
+
// Bootstrap `.form-control` / `.form-select` are the field skin. `.input` is an App*
|
|
373
|
+
// size/shell hook that MUST share the same chrome; never a second look. The only WUI
|
|
405
374
|
// deltas on top of Bootstrap's $input-* vars: shared control height, hover
|
|
406
375
|
// fill, brand-border focus (no glow), soft invalid border.
|
|
407
376
|
//
|
|
@@ -414,14 +383,13 @@
|
|
|
414
383
|
// structure, not a parallel visual system.
|
|
415
384
|
.form-control,
|
|
416
385
|
.form-select,
|
|
417
|
-
.input
|
|
418
|
-
.select,
|
|
419
|
-
.textarea {
|
|
386
|
+
.input {
|
|
420
387
|
box-sizing: border-box;
|
|
421
388
|
width: 100%;
|
|
422
389
|
height: var(--wui-control-md);
|
|
423
390
|
padding: 6px 12px;
|
|
424
391
|
border-radius: var(--wui-field-md-radius);
|
|
392
|
+
corner-shape: squircle;
|
|
425
393
|
border: 1px solid var(--color-field-border);
|
|
426
394
|
background: var(--color-field-bg);
|
|
427
395
|
font-size: var(--wui-fs-xs);
|
|
@@ -433,21 +401,20 @@
|
|
|
433
401
|
font-family: inherit;
|
|
434
402
|
}
|
|
435
403
|
// Size steps: sm, lg and xl step to the --wui-control-* heights (35, 45 and 50px; md is 40px). App* emits
|
|
436
|
-
// .wui-input-sm/.wui-input-lg/.wui-input-xl
|
|
437
|
-
// BS field can match without the .input alias.
|
|
438
|
-
.form-control-sm,
|
|
404
|
+
// .wui-input-sm/.wui-input-lg/.wui-input-xl, and a raw Bootstrap field takes the same classes.
|
|
439
405
|
.wui-input-sm {
|
|
440
406
|
height: var(--wui-control-sm);
|
|
441
407
|
padding: 5px 10px;
|
|
442
408
|
font-size: 13px;
|
|
443
409
|
border-radius: var(--wui-field-sm-radius);
|
|
410
|
+
corner-shape: squircle;
|
|
444
411
|
}
|
|
445
|
-
.form-control-lg,
|
|
446
412
|
.wui-input-lg {
|
|
447
413
|
height: var(--wui-control-lg);
|
|
448
414
|
padding: 9px 16px;
|
|
449
415
|
font-size: 16px;
|
|
450
416
|
border-radius: var(--wui-field-lg-radius);
|
|
417
|
+
corner-shape: squircle;
|
|
451
418
|
}
|
|
452
419
|
.form-control-xl,
|
|
453
420
|
.wui-input-xl {
|
|
@@ -455,8 +422,8 @@
|
|
|
455
422
|
padding: var(--wui-space-sm) var(--wui-space-lg);
|
|
456
423
|
font-size: var(--wui-fs-lg);
|
|
457
424
|
border-radius: var(--wui-field-xl-radius);
|
|
425
|
+
corner-shape: squircle;
|
|
458
426
|
}
|
|
459
|
-
.textarea,
|
|
460
427
|
textarea.form-control {
|
|
461
428
|
height: auto;
|
|
462
429
|
padding: 12px 15px 16px;
|
|
@@ -465,7 +432,6 @@ textarea.form-control {
|
|
|
465
432
|
}
|
|
466
433
|
// Auto-grow: JS drives the height to fit the content (Razor: data-app-autosize;
|
|
467
434
|
// React: autoGrow). Manual grabber and scrollbar off so they can't fight measure.
|
|
468
|
-
.textarea.autosize,
|
|
469
435
|
textarea.form-control.autosize {
|
|
470
436
|
resize: none;
|
|
471
437
|
overflow: hidden;
|
|
@@ -482,17 +448,13 @@ textarea.form-control.autosize {
|
|
|
482
448
|
.form-select:hover:not(:focus):not(:disabled):not([aria-invalid="true"]):not(.is-invalid):not(.error),
|
|
483
449
|
.input:hover:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.error):not(.open):not([aria-expanded="true"]):not(
|
|
484
450
|
.phone-input-wrap > .input
|
|
485
|
-
):not([aria-disabled="true"])
|
|
486
|
-
.select:hover:not(:focus):not(:disabled):not([aria-invalid="true"]):not(.is-invalid):not(.error),
|
|
487
|
-
.textarea:hover:not(:focus):not(:disabled):not([readonly]):not([aria-invalid="true"]):not(.is-invalid):not(.error) {
|
|
451
|
+
):not([aria-disabled="true"]) {
|
|
488
452
|
background-color: var(--color-field-bg);
|
|
489
453
|
border-color: var(--color-field-border-hover);
|
|
490
454
|
}
|
|
491
455
|
.form-control:focus,
|
|
492
456
|
.form-select:focus,
|
|
493
|
-
.input:focus
|
|
494
|
-
.select:focus,
|
|
495
|
-
.textarea:focus {
|
|
457
|
+
.input:focus {
|
|
496
458
|
outline: none;
|
|
497
459
|
// Lift off the muted resting fill onto a clean white surface while active.
|
|
498
460
|
background-color: var(--color-surface);
|
|
@@ -502,8 +464,7 @@ textarea.form-control.autosize {
|
|
|
502
464
|
box-shadow: none;
|
|
503
465
|
}
|
|
504
466
|
.form-control::placeholder,
|
|
505
|
-
.input::placeholder
|
|
506
|
-
.textarea::placeholder {
|
|
467
|
+
.input::placeholder {
|
|
507
468
|
color: var(--color-text-subtle);
|
|
508
469
|
}
|
|
509
470
|
// Borderless variant: no border/background, inherits the container's chrome
|
|
@@ -637,9 +598,7 @@ textarea.form-control.autosize {
|
|
|
637
598
|
.form-control:-webkit-autofill,
|
|
638
599
|
.form-control:-webkit-autofill:hover,
|
|
639
600
|
.input:-webkit-autofill,
|
|
640
|
-
.input:-webkit-autofill:hover
|
|
641
|
-
.textarea:-webkit-autofill,
|
|
642
|
-
.textarea:-webkit-autofill:hover {
|
|
601
|
+
.input:-webkit-autofill:hover {
|
|
643
602
|
-webkit-box-shadow: 0 0 0 1000px var(--color-field-bg) inset;
|
|
644
603
|
box-shadow: 0 0 0 1000px var(--color-field-bg) inset;
|
|
645
604
|
-webkit-text-fill-color: var(--color-text);
|
|
@@ -648,8 +607,7 @@ textarea.form-control.autosize {
|
|
|
648
607
|
}
|
|
649
608
|
// Focus lifts the autofilled field onto the clean surface, matching the typed-value focus state.
|
|
650
609
|
.form-control:-webkit-autofill:focus,
|
|
651
|
-
.input:-webkit-autofill:focus
|
|
652
|
-
.textarea:-webkit-autofill:focus {
|
|
610
|
+
.input:-webkit-autofill:focus {
|
|
653
611
|
-webkit-box-shadow: 0 0 0 1000px var(--color-surface) inset;
|
|
654
612
|
box-shadow: 0 0 0 1000px var(--color-surface) inset;
|
|
655
613
|
-webkit-text-fill-color: var(--color-text);
|
|
@@ -658,9 +616,7 @@ textarea.form-control.autosize {
|
|
|
658
616
|
}
|
|
659
617
|
.form-control:disabled,
|
|
660
618
|
.form-select:disabled,
|
|
661
|
-
.input:disabled
|
|
662
|
-
.select:disabled,
|
|
663
|
-
.textarea:disabled {
|
|
619
|
+
.input:disabled {
|
|
664
620
|
// A touch deeper than the resting fill so a disabled field stays distinct now that
|
|
665
621
|
// the resting state is itself filled (--color-border = #EBEDF3, per the reference).
|
|
666
622
|
background: var(--color-border);
|
|
@@ -676,8 +632,7 @@ textarea.form-control.autosize {
|
|
|
676
632
|
// (--color-text-muted = #4B5675) so it stays legible against the deeper disabled fill.
|
|
677
633
|
.form-control:disabled::placeholder,
|
|
678
634
|
.form-select:disabled::placeholder,
|
|
679
|
-
.input:disabled::placeholder
|
|
680
|
-
.textarea:disabled::placeholder {
|
|
635
|
+
.input:disabled::placeholder {
|
|
681
636
|
color: var(--color-text-muted);
|
|
682
637
|
}
|
|
683
638
|
|
|
@@ -686,9 +641,7 @@ textarea.form-control.autosize {
|
|
|
686
641
|
// disabled and non-editable controls).
|
|
687
642
|
.form-control[readonly],
|
|
688
643
|
.form-select[readonly],
|
|
689
|
-
.input[readonly]
|
|
690
|
-
.select[readonly],
|
|
691
|
-
.textarea[readonly] {
|
|
644
|
+
.input[readonly] {
|
|
692
645
|
background: var(--color-bg-subtle);
|
|
693
646
|
color: var(--color-text-muted);
|
|
694
647
|
cursor: default;
|
|
@@ -700,29 +653,19 @@ textarea.form-control.autosize {
|
|
|
700
653
|
.form-control.is-invalid,
|
|
701
654
|
.form-select.is-invalid,
|
|
702
655
|
.input.is-invalid,
|
|
703
|
-
.select.is-invalid,
|
|
704
|
-
.textarea.is-invalid,
|
|
705
656
|
.form-control.is-invalid:focus,
|
|
706
657
|
.form-select.is-invalid:focus,
|
|
707
658
|
.input.is-invalid:focus,
|
|
708
|
-
.select.is-invalid:focus,
|
|
709
|
-
.textarea.is-invalid:focus,
|
|
710
659
|
.form-control[aria-invalid="true"],
|
|
711
660
|
.form-select[aria-invalid="true"],
|
|
712
661
|
.input[aria-invalid="true"],
|
|
713
|
-
.select[aria-invalid="true"],
|
|
714
|
-
.textarea[aria-invalid="true"],
|
|
715
662
|
.form-control[aria-invalid="true"]:focus,
|
|
716
663
|
.form-select[aria-invalid="true"]:focus,
|
|
717
664
|
.input[aria-invalid="true"]:focus,
|
|
718
|
-
.select[aria-invalid="true"]:focus,
|
|
719
|
-
.textarea[aria-invalid="true"]:focus,
|
|
720
665
|
.form-control.error,
|
|
721
666
|
.input.error,
|
|
722
|
-
.textarea.error,
|
|
723
667
|
.form-control.error:focus,
|
|
724
|
-
.input.error:focus
|
|
725
|
-
.textarea.error:focus {
|
|
668
|
+
.input.error:focus {
|
|
726
669
|
background: var(--color-surface);
|
|
727
670
|
// Soft danger border (danger at 30%, mirroring the primary-30 focus border). No ring,
|
|
728
671
|
// so the field reads as a quiet error, not a solid alarm box.
|
|
@@ -812,8 +755,8 @@ form .wui-field-message:empty {
|
|
|
812
755
|
}
|
|
813
756
|
}
|
|
814
757
|
|
|
815
|
-
//
|
|
816
|
-
.select {
|
|
758
|
+
// The pager's native select: a rounded squircle, custom chevron, off-surface fill.
|
|
759
|
+
.tpg-select {
|
|
817
760
|
appearance: none;
|
|
818
761
|
-webkit-appearance: none;
|
|
819
762
|
padding-inline-end: 40px;
|
|
@@ -823,7 +766,7 @@ form .wui-field-message:empty {
|
|
|
823
766
|
background-size: 16px;
|
|
824
767
|
cursor: pointer;
|
|
825
768
|
}
|
|
826
|
-
.select:dir(rtl) {
|
|
769
|
+
.tpg-select:dir(rtl) {
|
|
827
770
|
background-position: left 14px center;
|
|
828
771
|
}
|
|
829
772
|
|
|
@@ -1106,7 +1049,8 @@ form .wui-field-message:empty {
|
|
|
1106
1049
|
border: none;
|
|
1107
1050
|
background: transparent;
|
|
1108
1051
|
color: var(--color-text-subtle);
|
|
1109
|
-
border-radius: var(--wui-radius-md);
|
|
1052
|
+
border-radius: calc(var(--wui-radius-md) * var(--wui-squircle-scale));
|
|
1053
|
+
corner-shape: squircle;
|
|
1110
1054
|
cursor: pointer;
|
|
1111
1055
|
transition:
|
|
1112
1056
|
color var(--wui-duration-fast) var(--wui-ease-ui),
|
|
@@ -1177,6 +1121,7 @@ form .wui-field-message:empty {
|
|
|
1177
1121
|
width: 100%;
|
|
1178
1122
|
border: 1px solid var(--color-field-border);
|
|
1179
1123
|
border-radius: var(--wui-field-md-radius);
|
|
1124
|
+
corner-shape: squircle;
|
|
1180
1125
|
// Soft-filled at rest, white on focus; one shared fill for the whole control so the
|
|
1181
1126
|
// prefix/suffix and the input body are always the SAME colour combination as the field.
|
|
1182
1127
|
background: var(--color-field-bg);
|
|
@@ -1230,10 +1175,12 @@ form .wui-field-message:empty {
|
|
|
1230
1175
|
.input-affixed .affix-pre {
|
|
1231
1176
|
border-inline-end: 1px solid var(--color-border);
|
|
1232
1177
|
border-radius: var(--wui-field-md-radius) 0 0 var(--wui-field-md-radius);
|
|
1178
|
+
corner-shape: squircle;
|
|
1233
1179
|
}
|
|
1234
1180
|
.input-affixed .affix-suf {
|
|
1235
1181
|
border-inline-start: 1px solid var(--color-border);
|
|
1236
1182
|
border-radius: 0 var(--wui-field-md-radius) var(--wui-field-md-radius) 0;
|
|
1183
|
+
corner-shape: squircle;
|
|
1237
1184
|
}
|
|
1238
1185
|
|
|
1239
1186
|
// Floating label: the label starts centred as the placeholder, then slides up and shrinks
|
|
@@ -1253,7 +1200,8 @@ form .wui-field-message:empty {
|
|
|
1253
1200
|
padding: 0 6px;
|
|
1254
1201
|
// Rounded so the background mask reads as a soft pill sitting on the border, not a sharp
|
|
1255
1202
|
// rectangle. Invisible at rest (label fill == field fill); only shows once it floats up.
|
|
1256
|
-
border-radius: var(--wui-radius-sm);
|
|
1203
|
+
border-radius: calc(var(--wui-radius-sm) * var(--wui-squircle-scale));
|
|
1204
|
+
corner-shape: squircle;
|
|
1257
1205
|
max-width: calc(100% - 24px);
|
|
1258
1206
|
overflow: hidden;
|
|
1259
1207
|
text-overflow: ellipsis;
|
|
@@ -1446,6 +1394,12 @@ wui-date-time {
|
|
|
1446
1394
|
display: block;
|
|
1447
1395
|
width: 100%;
|
|
1448
1396
|
}
|
|
1397
|
+
// The time picker keeps its own width, but never runs past a narrow field: an inline host has no
|
|
1398
|
+
// width for the inner max-width to measure against.
|
|
1399
|
+
wui-timepicker {
|
|
1400
|
+
display: block;
|
|
1401
|
+
max-width: 100%;
|
|
1402
|
+
}
|
|
1449
1403
|
.field > wui-select,
|
|
1450
1404
|
.field > wui-phone,
|
|
1451
1405
|
.field > wui-datepicker,
|
|
@@ -1485,7 +1439,8 @@ wui-date-time {
|
|
|
1485
1439
|
// red border around a non-input group (e.g. a structure-form card row)
|
|
1486
1440
|
.group-invalid {
|
|
1487
1441
|
border: 1px solid var(--color-danger);
|
|
1488
|
-
border-radius: var(--wui-radius-md);
|
|
1442
|
+
border-radius: calc(var(--wui-radius-md) * var(--wui-squircle-scale));
|
|
1443
|
+
corner-shape: squircle;
|
|
1489
1444
|
padding: 8px;
|
|
1490
1445
|
}
|
|
1491
1446
|
|
|
@@ -1496,6 +1451,7 @@ wui-date-time {
|
|
|
1496
1451
|
align-items: stretch;
|
|
1497
1452
|
border: 1px solid var(--color-field-border);
|
|
1498
1453
|
border-radius: var(--wui-field-md-radius);
|
|
1454
|
+
corner-shape: squircle;
|
|
1499
1455
|
// Soft-filled at rest, white on focus; the numeric input and its unit pill share the
|
|
1500
1456
|
// one wrapper fill, same colour combination as every other field.
|
|
1501
1457
|
background: var(--color-field-bg);
|
|
@@ -1568,8 +1524,9 @@ wui-date-time {
|
|
|
1568
1524
|
display: flex;
|
|
1569
1525
|
align-items: stretch;
|
|
1570
1526
|
border: 1px solid var(--color-field-border);
|
|
1571
|
-
// Field radius ladder (matches AppInput)
|
|
1527
|
+
// Field radius ladder (matches AppInput); sm/lg step below.
|
|
1572
1528
|
border-radius: var(--wui-field-md-radius);
|
|
1529
|
+
corner-shape: squircle;
|
|
1573
1530
|
// Match AppInput exactly: muted resting fill that lifts to a clean surface on focus.
|
|
1574
1531
|
background: var(--color-field-bg);
|
|
1575
1532
|
transition:
|
|
@@ -1675,6 +1632,7 @@ wui-date-time {
|
|
|
1675
1632
|
// cells to match. Default (md) uses the control-height cell above.
|
|
1676
1633
|
.wui-num-wrap-sm {
|
|
1677
1634
|
border-radius: var(--wui-field-sm-radius);
|
|
1635
|
+
corner-shape: squircle;
|
|
1678
1636
|
}
|
|
1679
1637
|
.wui-num-wrap-sm .num-btn {
|
|
1680
1638
|
flex-basis: var(--wui-control-sm);
|
|
@@ -1684,6 +1642,7 @@ wui-date-time {
|
|
|
1684
1642
|
}
|
|
1685
1643
|
.wui-num-wrap-lg {
|
|
1686
1644
|
border-radius: var(--wui-field-lg-radius);
|
|
1645
|
+
corner-shape: squircle;
|
|
1687
1646
|
}
|
|
1688
1647
|
.wui-num-wrap-lg .num-btn {
|
|
1689
1648
|
flex-basis: var(--wui-control-lg);
|
|
@@ -1693,6 +1652,7 @@ wui-date-time {
|
|
|
1693
1652
|
}
|
|
1694
1653
|
.wui-num-wrap-xl {
|
|
1695
1654
|
border-radius: var(--wui-field-xl-radius);
|
|
1655
|
+
corner-shape: squircle;
|
|
1696
1656
|
}
|
|
1697
1657
|
.wui-num-wrap-xl .num-btn {
|
|
1698
1658
|
flex-basis: var(--wui-control-xl);
|
|
@@ -2008,6 +1968,7 @@ wui-otp {
|
|
|
2008
1968
|
// field radius. State rules below mirror AppInput's hover/focus/invalid/disabled.
|
|
2009
1969
|
border: 1px solid var(--color-field-border);
|
|
2010
1970
|
border-radius: var(--wui-field-md-radius);
|
|
1971
|
+
corner-shape: squircle;
|
|
2011
1972
|
background: var(--color-field-bg);
|
|
2012
1973
|
font-size: 18px;
|
|
2013
1974
|
font-weight: 600;
|
package/scss/wui/_data.scss
CHANGED
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
height: 28px;
|
|
131
131
|
padding: 0;
|
|
132
132
|
border: none;
|
|
133
|
-
border-radius: var(--wui-radius-sm, 6px);
|
|
133
|
+
border-radius: calc(var(--wui-radius-sm, 6px) * var(--wui-squircle-scale));
|
|
134
|
+
corner-shape: squircle;
|
|
134
135
|
background: transparent;
|
|
135
136
|
color: var(--color-text-subtle);
|
|
136
137
|
cursor: pointer;
|
|
@@ -204,11 +205,13 @@
|
|
|
204
205
|
}
|
|
205
206
|
.table-ledger thead th:first-child {
|
|
206
207
|
padding-inline-start: 20px;
|
|
207
|
-
border-radius: var(--wui-radius-sm) 0 0 var(--wui-radius-sm);
|
|
208
|
+
border-radius: calc(var(--wui-radius-sm) * var(--wui-squircle-scale)) 0 0 calc(var(--wui-radius-sm) * var(--wui-squircle-scale));
|
|
209
|
+
corner-shape: squircle;
|
|
208
210
|
}
|
|
209
211
|
.table-ledger thead th:last-child {
|
|
210
212
|
padding-inline-end: 20px;
|
|
211
|
-
border-radius: 0 var(--wui-radius-sm) var(--wui-radius-sm) 0;
|
|
213
|
+
border-radius: 0 calc(var(--wui-radius-sm) * var(--wui-squircle-scale)) calc(var(--wui-radius-sm) * var(--wui-squircle-scale)) 0;
|
|
214
|
+
corner-shape: squircle;
|
|
212
215
|
}
|
|
213
216
|
.table-ledger tbody td,
|
|
214
217
|
.table-ledger tbody th.wui-row-header {
|
|
@@ -419,7 +422,8 @@
|
|
|
419
422
|
min-height: 40px;
|
|
420
423
|
padding-block: var(--wui-space-xs);
|
|
421
424
|
padding-inline: var(--wui-space-lg) var(--wui-space-sm);
|
|
422
|
-
border-radius: var(--wui-radius-md);
|
|
425
|
+
border-radius: calc(var(--wui-radius-md) * var(--wui-squircle-scale));
|
|
426
|
+
corner-shape: squircle;
|
|
423
427
|
background: var(--color-primary-soft);
|
|
424
428
|
}
|
|
425
429
|
.wui-table-toolbar-count {
|
|
@@ -560,7 +564,8 @@
|
|
|
560
564
|
padding: 12px;
|
|
561
565
|
background: var(--color-surface);
|
|
562
566
|
border: 1px solid var(--color-border);
|
|
563
|
-
border-radius: var(--wui-radius-xl);
|
|
567
|
+
border-radius: calc(var(--wui-radius-xl) * var(--wui-squircle-scale));
|
|
568
|
+
corner-shape: squircle;
|
|
564
569
|
box-shadow: var(--wui-shadow-popover);
|
|
565
570
|
}
|
|
566
571
|
.wui-filter-more-panel.wui-filter-more-panel-end {
|
|
@@ -598,7 +603,8 @@
|
|
|
598
603
|
overflow-y: auto;
|
|
599
604
|
padding: 16px 20px 24px;
|
|
600
605
|
border-width: 1px 0 0;
|
|
601
|
-
border-radius: var(--wui-radius-xl) var(--wui-radius-xl) 0 0;
|
|
606
|
+
border-radius: calc(var(--wui-radius-xl) * var(--wui-squircle-scale)) calc(var(--wui-radius-xl) * var(--wui-squircle-scale)) 0 0;
|
|
607
|
+
corner-shape: squircle;
|
|
602
608
|
}
|
|
603
609
|
.wui-filter-more[open] > summary::before {
|
|
604
610
|
content: "";
|
|
@@ -888,7 +894,8 @@
|
|
|
888
894
|
margin-bottom: 12px;
|
|
889
895
|
padding: 12px 16px;
|
|
890
896
|
border: 1px solid var(--color-border);
|
|
891
|
-
border-radius: var(--wui-radius-lg, 12px);
|
|
897
|
+
border-radius: calc(var(--wui-radius-lg, 12px) * var(--wui-squircle-scale));
|
|
898
|
+
corner-shape: squircle;
|
|
892
899
|
}
|
|
893
900
|
// No wrap: the label always sits beside its value, so a column lays out the same on every card whatever the value's length.
|
|
894
901
|
.table-ledger.wui-table-stack > tbody > tr > td,
|
|
@@ -1190,13 +1197,15 @@
|
|
|
1190
1197
|
|
|
1191
1198
|
// Row actions show on row hover and keyboard focus by default (AppDataTable `rowActionsMode`, Razor
|
|
1192
1199
|
// `row-actions-mode`). "column" keeps the icons always visible; "hover-menu" keeps the menu visible and fades the icons.
|
|
1200
|
+
// An open menu keeps its row's actions live: pointer-events is inherited, so the menu would otherwise go dead once the pointer leaves the row.
|
|
1193
1201
|
.table-ledger:not(.wui-table-actions-column) tbody .u-row-actions {
|
|
1194
1202
|
opacity: 0;
|
|
1195
1203
|
pointer-events: none;
|
|
1196
1204
|
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1197
1205
|
}
|
|
1198
1206
|
.table-ledger:not(.wui-table-actions-column) tbody tr:hover .u-row-actions,
|
|
1199
|
-
.table-ledger:not(.wui-table-actions-column) tbody tr:focus-within .u-row-actions
|
|
1207
|
+
.table-ledger:not(.wui-table-actions-column) tbody tr:focus-within .u-row-actions,
|
|
1208
|
+
.table-ledger:not(.wui-table-actions-column) tbody .u-row-actions:has([aria-expanded="true"], .dropdown-menu:popover-open) {
|
|
1200
1209
|
opacity: 1;
|
|
1201
1210
|
pointer-events: auto;
|
|
1202
1211
|
}
|
|
@@ -1612,7 +1621,8 @@ wui-data-table {
|
|
|
1612
1621
|
padding-block: var(--wui-space-xs);
|
|
1613
1622
|
padding-inline: var(--wui-space-xs) var(--wui-space-sm);
|
|
1614
1623
|
border: none;
|
|
1615
|
-
border-radius: var(--wui-radius-sm, 6px);
|
|
1624
|
+
border-radius: calc(var(--wui-radius-sm, 6px) * var(--wui-squircle-scale));
|
|
1625
|
+
corner-shape: squircle;
|
|
1616
1626
|
background: transparent;
|
|
1617
1627
|
color: inherit;
|
|
1618
1628
|
font: inherit;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
.wui-detail-pane > .wui-modal {
|
|
16
16
|
max-width: none;
|
|
17
17
|
border: 1px solid var(--color-border);
|
|
18
|
-
border-radius: var(--wui-radius-
|
|
18
|
+
border-radius: var(--wui-radius-2xl);
|
|
19
|
+
corner-shape: squircle;
|
|
19
20
|
box-shadow: none;
|
|
20
21
|
background: var(--color-surface);
|
|
21
22
|
}
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
background: var(--color-surface);
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
transition: border-color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
32
|
-
border-radius: var(--wui-
|
|
32
|
+
border-radius: var(--wui-radius-2xl);
|
|
33
|
+
corner-shape: squircle;
|
|
33
34
|
}
|
|
34
35
|
.wui-accordion-item:hover:not(.open) {
|
|
35
36
|
border-color: var(--color-border-strong);
|