@webority/theme 0.178.4 → 0.180.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/dist/published-theme.json +4 -0
- package/dist/purge-safelist.json +171 -18
- package/dist/webority-modes.css +1 -1
- package/dist/webority-theme.css +2 -2
- package/dist/webority-tokens.css +1 -1
- package/fonts/sans/WeboritySans-Black.woff2 +0 -0
- package/fonts/sans/WeboritySans-BlackItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Bold.woff2 +0 -0
- package/fonts/sans/WeboritySans-BoldItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-ExtraBold.woff2 +0 -0
- package/fonts/sans/WeboritySans-ExtraBoldItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-ExtraLight.woff2 +0 -0
- package/fonts/sans/WeboritySans-ExtraLightItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Light.woff2 +0 -0
- package/fonts/sans/WeboritySans-LightItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Medium.woff2 +0 -0
- package/fonts/sans/WeboritySans-MediumItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Regular.woff2 +0 -0
- package/fonts/sans/WeboritySans-RegularItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-SemiBold.woff2 +0 -0
- package/fonts/sans/WeboritySans-SemiBoldItalic.woff2 +0 -0
- package/fonts/sans/WeboritySans-Thin.woff2 +0 -0
- package/fonts/sans/WeboritySans-ThinItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Bold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-BoldItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-DemiBold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-DemiBoldItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-ExtraBold.woff2 +0 -0
- package/fonts/serif/WeboritySerif-ExtraBoldItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Light.woff2 +0 -0
- package/fonts/serif/WeboritySerif-LightItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Medium.woff2 +0 -0
- package/fonts/serif/WeboritySerif-MediumItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Regular.woff2 +0 -0
- package/fonts/serif/WeboritySerif-RegularItalic.woff2 +0 -0
- package/fonts/serif/WeboritySerif-Thin.woff2 +0 -0
- package/fonts/serif/WeboritySerif-ThinItalic.woff2 +0 -0
- package/package.json +3 -3
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +120 -15
- package/scss/_fonts.scss +137 -2
- package/scss/_tokens-modes.generated.scss +2 -1
- package/scss/_tokens.generated.scss +23 -17
- package/scss/_wui-components.scss +10 -0
- package/scss/_wui-core.scss +10 -0
- package/scss/wui/_app-agenda.scss +75 -0
- package/scss/wui/_calendar-views.scss +46 -0
- package/scss/wui/_calendar.scss +31 -0
- package/scss/wui/_card.scss +1 -0
- package/scss/wui/_cell.scss +1 -0
- package/scss/wui/_change-list.scss +37 -0
- package/scss/wui/_chart-card.scss +49 -0
- package/scss/wui/_choice.scss +2 -1
- package/scss/wui/_command-palette.scss +68 -0
- package/scss/wui/_controls.scss +211 -26
- package/scss/wui/_dashboard-header.scss +42 -0
- package/scss/wui/_data.scss +86 -6
- package/scss/wui/_disclosure.scss +102 -1
- package/scss/wui/_display.scss +52 -2
- package/scss/wui/_drawer.scss +1 -0
- package/scss/wui/_entry-grid.scss +9 -0
- package/scss/wui/_file-viewer.scss +4 -0
- package/scss/wui/_flow.scss +119 -3
- package/scss/wui/_gantt.scss +89 -0
- package/scss/wui/_interaction.scss +0 -3
- package/scss/wui/_kanban.scss +52 -0
- package/scss/wui/_list-card.scss +11 -0
- package/scss/wui/_media.scss +0 -1
- package/scss/wui/_mini-calendar.scss +120 -0
- package/scss/wui/_navigation-menu.scss +44 -3
- package/scss/wui/_navigation.scss +10 -0
- package/scss/wui/_notification-center.scss +51 -0
- package/scss/wui/_offline-banner.scss +52 -0
- package/scss/wui/_overlays.scss +1 -1
- package/scss/wui/_queue-bundle.scss +71 -0
- package/scss/wui/_result-block.scss +117 -0
- package/scss/wui/_setting-row.scss +106 -0
- package/scss/wui/_setting-section.scss +36 -0
- package/scss/wui/_shell-parts.scss +3 -164
- package/scss/wui/_shell.scss +12 -2
- package/scss/wui/_split-view.scss +6 -2
- package/scss/wui/_utilities.scss +43 -5
- package/scss/wui/forced-colors/_display.scss +7 -0
- package/scss/wui/forced-colors/_navigation.scss +1 -3
- package/token-meanings.json +1 -0
package/scss/wui/_controls.scss
CHANGED
|
@@ -488,16 +488,30 @@ textarea.form-control.autosize {
|
|
|
488
488
|
// below keeps working and simply paints no fill. A unit or prefix/suffix field draws its box on
|
|
489
489
|
// the wrapper, so the wrapper takes the same treatment; its 1px top padding stands in for the
|
|
490
490
|
// dropped top border, keeping the height of every shell equal to the boxed field's.
|
|
491
|
-
.input.
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
// AppTextarea takes the same variants; the textarea carries .form-control, not .input.
|
|
492
|
+
// The shared declarations of every underline box; the field-specific groups below extend them.
|
|
493
|
+
%wui-underline-box {
|
|
494
494
|
--color-field-bg: transparent;
|
|
495
495
|
--color-surface: transparent;
|
|
496
496
|
--color-bg-subtle: transparent;
|
|
497
497
|
border-width: 0 0 1px;
|
|
498
498
|
border-radius: 0;
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
%wui-underline-error {
|
|
501
|
+
border-color: var(--color-danger);
|
|
502
|
+
}
|
|
503
|
+
%wui-underline-disabled {
|
|
504
|
+
background: transparent;
|
|
505
|
+
border-color: var(--color-field-border);
|
|
506
|
+
border-bottom-style: dashed;
|
|
507
|
+
}
|
|
508
|
+
:is(.input, :where(textarea).form-control).wui-input-underline,
|
|
509
|
+
.input-with-unit:has(> .wui-input-underline),
|
|
510
|
+
.input-affixed:has(> .wui-input-underline) {
|
|
511
|
+
@extend %wui-underline-box;
|
|
512
|
+
}
|
|
513
|
+
// A search field keeps its start padding: the magnifier sits inside it, at every size.
|
|
514
|
+
:is(.input, :where(textarea).form-control).wui-input-underline:where(:not(.search-input)) {
|
|
501
515
|
padding-inline-start: 0;
|
|
502
516
|
}
|
|
503
517
|
.input-with-unit:has(> .wui-input-underline),
|
|
@@ -505,16 +519,14 @@ textarea.form-control.autosize {
|
|
|
505
519
|
padding-top: var(--bs-border-width);
|
|
506
520
|
}
|
|
507
521
|
// One line carries the whole error cue, so it takes the full danger colour, not the boxed field's 30% tint.
|
|
508
|
-
.input.wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]),
|
|
509
|
-
.input.wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]):focus,
|
|
522
|
+
:is(.input, :where(textarea).form-control).wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]),
|
|
523
|
+
:is(.input, :where(textarea).form-control).wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]):focus,
|
|
510
524
|
.input-with-unit:has(> .wui-input-underline:is(.error, [aria-invalid="true"])),
|
|
511
525
|
.input-affixed:has(> .wui-input-underline:is(.error, [aria-invalid="true"])) {
|
|
512
|
-
|
|
526
|
+
@extend %wui-underline-error;
|
|
513
527
|
}
|
|
514
|
-
.input.wui-input-underline:disabled {
|
|
515
|
-
|
|
516
|
-
border-color: var(--color-field-border);
|
|
517
|
-
border-bottom-style: dashed;
|
|
528
|
+
:is(.input, :where(textarea).form-control).wui-input-underline:disabled {
|
|
529
|
+
@extend %wui-underline-disabled;
|
|
518
530
|
}
|
|
519
531
|
// No box, so no slot divider beside a leading icon, and no dividers beside a unit or affix.
|
|
520
532
|
.input-icon:has(> .wui-input-underline)::after {
|
|
@@ -532,7 +544,7 @@ textarea.form-control.autosize {
|
|
|
532
544
|
// glyph ends where the line does. The leading slot shrinks to the glyph; each trailing button keeps
|
|
533
545
|
// its hit area and shifts out by its own glyph inset ((32 - 18) / 2 for the toggle, (28 - 16) / 2
|
|
534
546
|
// for the clear button), so only its transparent padding passes the line's end.
|
|
535
|
-
.input-icon:has(> .input.wui-input-underline) {
|
|
547
|
+
.input-icon:has(> :is(.input, :where(textarea).form-control).wui-input-underline) {
|
|
536
548
|
--wui-input-icon-slot: var(--wui-input-icon-size);
|
|
537
549
|
}
|
|
538
550
|
// Layout constants of the two trailing buttons: the glyph inset of each, and the room the text
|
|
@@ -583,6 +595,96 @@ textarea.form-control.autosize {
|
|
|
583
595
|
padding-left: 0;
|
|
584
596
|
padding-right: 0;
|
|
585
597
|
}
|
|
598
|
+
// The other field types draw the same underline on their own box. Each group extends the shared
|
|
599
|
+
// placeholders, and its selector carries the field's own wrapper or class so it beats that field's
|
|
600
|
+
// boxed rule (size radius, hover and open fills, the error tint) without !important.
|
|
601
|
+
// AppSelect: the control carries the line; the focus ring, avatar inset, reset and caret keep their place.
|
|
602
|
+
wui-select .wui-select-control.wui-input-underline {
|
|
603
|
+
@extend %wui-underline-box;
|
|
604
|
+
}
|
|
605
|
+
wui-select[aria-invalid="true"] .wui-select-control.wui-input-underline {
|
|
606
|
+
@extend %wui-underline-error;
|
|
607
|
+
}
|
|
608
|
+
wui-select .wui-select-control.wui-input-underline[aria-disabled="true"] {
|
|
609
|
+
@extend %wui-underline-disabled;
|
|
610
|
+
}
|
|
611
|
+
// AppNumberInput: the wrapper carries the line; its 1px top padding stands in for the dropped top border.
|
|
612
|
+
div.num-wrap.wui-input-underline {
|
|
613
|
+
@extend %wui-underline-box;
|
|
614
|
+
padding-top: var(--bs-border-width);
|
|
615
|
+
}
|
|
616
|
+
div.num-wrap.wui-input-underline:has(.num-input:is(.error, .is-invalid, [aria-invalid="true"])) {
|
|
617
|
+
@extend %wui-underline-error;
|
|
618
|
+
}
|
|
619
|
+
div.num-wrap.wui-input-underline:has(.num-input:disabled) {
|
|
620
|
+
@extend %wui-underline-disabled;
|
|
621
|
+
}
|
|
622
|
+
div.num-wrap.wui-input-underline .num-btn {
|
|
623
|
+
border: 0;
|
|
624
|
+
}
|
|
625
|
+
div.num-wrap.wui-input-underline .affix {
|
|
626
|
+
border-inline-start: 0;
|
|
627
|
+
}
|
|
628
|
+
// AppSearch: the input carries the line; the start padding it keeps (above) leaves room for the magnifier.
|
|
629
|
+
input.search-input.wui-input-underline {
|
|
630
|
+
@extend %wui-underline-box;
|
|
631
|
+
}
|
|
632
|
+
// AppPhoneNumberInput: the shell carries the line; the country adornment keeps its start padding.
|
|
633
|
+
.app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline {
|
|
634
|
+
@extend %wui-underline-box;
|
|
635
|
+
}
|
|
636
|
+
.app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(> .input:disabled) {
|
|
637
|
+
@extend %wui-underline-disabled;
|
|
638
|
+
}
|
|
639
|
+
.app-phone-number-input wui-phone[aria-invalid="true"] .phone-input-wrap.wui-input-underline,
|
|
640
|
+
.app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(.input:is(.error, .is-invalid, [aria-invalid="true"])) {
|
|
641
|
+
@extend %wui-underline-error;
|
|
642
|
+
// The error glyph the boxed field draws on the shell ends where the line does.
|
|
643
|
+
padding-inline-end: 32px;
|
|
644
|
+
background-position: right 0 center;
|
|
645
|
+
}
|
|
646
|
+
.app-phone-number-input wui-phone[aria-invalid="true"] .phone-input-wrap.wui-input-underline:dir(rtl),
|
|
647
|
+
.app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(.input:is(.error, .is-invalid, [aria-invalid="true"])):dir(rtl) {
|
|
648
|
+
background-position: left 0 center;
|
|
649
|
+
}
|
|
650
|
+
// AppColorField: the hex box carries the line; the swatch beside it keeps its own chip.
|
|
651
|
+
input.color-field-hex.wui-input-underline {
|
|
652
|
+
@extend %wui-underline-box;
|
|
653
|
+
}
|
|
654
|
+
// AppDatePicker, AppDateRangePicker, AppTimePicker: the trigger carries the line. The host's aria-invalid
|
|
655
|
+
// reddens the trigger, open or not; the open rule's tint would otherwise win.
|
|
656
|
+
button.datepicker-trigger.wui-input-underline,
|
|
657
|
+
button.daterange-trigger.wui-input-underline,
|
|
658
|
+
.timepicker-trigger.wui-input-underline {
|
|
659
|
+
@extend %wui-underline-box;
|
|
660
|
+
}
|
|
661
|
+
@each $host, $root, $trigger in ("wui-datepicker", ".datepicker", "button.datepicker-trigger"), ("wui-date-range", ".daterange", "button.daterange-trigger"),
|
|
662
|
+
("wui-timepicker", ".timepicker", ".timepicker-trigger")
|
|
663
|
+
{
|
|
664
|
+
#{$host}[aria-invalid="true"] #{$trigger}.wui-input-underline,
|
|
665
|
+
#{$host}[aria-invalid="true"] #{$root}.open #{$trigger}.wui-input-underline {
|
|
666
|
+
@extend %wui-underline-error;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
.timepicker.open .timepicker-trigger.wui-input-underline[aria-invalid="true"] {
|
|
670
|
+
@extend %wui-underline-error;
|
|
671
|
+
}
|
|
672
|
+
// AppMentionInput: the textarea carries the line.
|
|
673
|
+
textarea.wui-mention-input-text.wui-input-underline {
|
|
674
|
+
@extend %wui-underline-box;
|
|
675
|
+
}
|
|
676
|
+
// AppOtpInput: each slot draws its own line; the cells stay separate.
|
|
677
|
+
wui-otp.wui-input-underline .otp-slot {
|
|
678
|
+
@extend %wui-underline-box;
|
|
679
|
+
}
|
|
680
|
+
wui-otp.wui-input-underline[aria-invalid="true"] .otp-slot,
|
|
681
|
+
wui-otp.wui-input-underline .otp.error .otp-slot,
|
|
682
|
+
wui-otp.wui-input-underline .field-error ~ .otp .otp-slot {
|
|
683
|
+
@extend %wui-underline-error;
|
|
684
|
+
}
|
|
685
|
+
wui-otp.wui-input-underline .otp-field:disabled ~ .otp-slots .otp-slot {
|
|
686
|
+
@extend %wui-underline-disabled;
|
|
687
|
+
}
|
|
586
688
|
// Edge/IE native password reveal: hide so only the app eye toggle shows.
|
|
587
689
|
.form-control::-ms-reveal,
|
|
588
690
|
.form-control::-ms-clear,
|
|
@@ -741,6 +843,15 @@ form .wui-field-message:empty {
|
|
|
741
843
|
opacity var(--wui-duration-fast) var(--wui-ease-ui),
|
|
742
844
|
visibility 0s var(--wui-ease-linear) var(--wui-duration-fast);
|
|
743
845
|
}
|
|
846
|
+
// A segmented field shows its error and helper text one under the other, error first.
|
|
847
|
+
.field > .segmented + .wui-field-message > .field-error,
|
|
848
|
+
.field > .segmented + .wui-field-message > .field-hint {
|
|
849
|
+
grid-area: auto;
|
|
850
|
+
}
|
|
851
|
+
.field > .segmented + .wui-field-message:has(> .field-error:not(:empty):not(.wui-leaving)) > .field-hint {
|
|
852
|
+
opacity: 1;
|
|
853
|
+
visibility: visible;
|
|
854
|
+
}
|
|
744
855
|
@keyframes wui-field-message-in {
|
|
745
856
|
from {
|
|
746
857
|
opacity: 0;
|
|
@@ -755,20 +866,51 @@ form .wui-field-message:empty {
|
|
|
755
866
|
}
|
|
756
867
|
}
|
|
757
868
|
|
|
758
|
-
//
|
|
759
|
-
|
|
869
|
+
// Every native form select draws one chevron; a multi-select or a sized list keeps none. The
|
|
870
|
+
// arrow image lives in a custom property on the select so the dark scope swaps only its colour:
|
|
871
|
+
// #4B5675 is the light text-muted; #B4B9C6 is --wui-dark-text-muted (3:1 or better on the dark
|
|
872
|
+
// field, disabled and focused fills, where #4B5675 reaches 2.05, 1.33 and 2.37).
|
|
873
|
+
// The :where() on the general rule keeps it at (0,1,1): above Bootstrap's .form-select, below
|
|
874
|
+
// .form-select.tpg-select in _pagination.scss (14px at 8px inset), the busy spinner and the valid tick.
|
|
875
|
+
select.form-select {
|
|
876
|
+
--wui-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95' fill='none' stroke='%234B5675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
|
|
877
|
+
}
|
|
878
|
+
:root[data-bs-theme="dark"] select.form-select,
|
|
879
|
+
[data-bs-theme="dark"]:not(:root) select.form-select {
|
|
880
|
+
--wui-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95' fill='none' stroke='%23B4B9C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
|
|
881
|
+
}
|
|
882
|
+
select.form-select:where(:not([multiple]):not([size])) {
|
|
883
|
+
// Room at the end for the 16px chevron at its 14px inset.
|
|
884
|
+
--wui-select-end-room: 40px;
|
|
760
885
|
appearance: none;
|
|
761
886
|
-webkit-appearance: none;
|
|
762
|
-
padding-inline-end
|
|
763
|
-
background-image:
|
|
887
|
+
padding-inline: var(--wui-space-md) var(--wui-select-end-room);
|
|
888
|
+
background-image: var(--wui-select-arrow);
|
|
764
889
|
background-repeat: no-repeat;
|
|
765
890
|
background-position: right 14px center;
|
|
766
891
|
background-size: 16px;
|
|
767
892
|
cursor: pointer;
|
|
768
893
|
}
|
|
769
|
-
.
|
|
894
|
+
select.form-select:where(:not([multiple]):not([size])):dir(rtl) {
|
|
895
|
+
background-position: left 14px center;
|
|
896
|
+
}
|
|
897
|
+
// The disabled and invalid rules above and Bootstrap's invalid skin clear the image and reset the
|
|
898
|
+
// end padding; these rank above both (0,5,1) to put the arrow back. The pager keeps its own
|
|
899
|
+
// metrics from _pagination.scss, so it only gets its image back.
|
|
900
|
+
select.form-select:not([multiple]):not([size]):not(.tpg-select):is(.is-invalid, [aria-invalid="true"], :disabled) {
|
|
901
|
+
padding-inline-end: var(--wui-select-end-room);
|
|
902
|
+
background-image: var(--wui-select-arrow);
|
|
903
|
+
background-repeat: no-repeat;
|
|
904
|
+
background-position: right 14px center;
|
|
905
|
+
background-size: 16px;
|
|
906
|
+
}
|
|
907
|
+
select.form-select:not([multiple]):not([size]):not(.tpg-select):is(.is-invalid, [aria-invalid="true"], :disabled):dir(rtl) {
|
|
770
908
|
background-position: left 14px center;
|
|
771
909
|
}
|
|
910
|
+
select.form-select.tpg-select:not([multiple]):not([size]):is(.is-invalid, [aria-invalid="true"], :disabled) {
|
|
911
|
+
background-image: var(--wui-select-arrow);
|
|
912
|
+
background-repeat: no-repeat;
|
|
913
|
+
}
|
|
772
914
|
|
|
773
915
|
// Date inputs: a brand calendar glyph that fills the field so a click
|
|
774
916
|
// anywhere opens the native picker; muted text until a value is chosen.
|
|
@@ -870,6 +1012,7 @@ form .wui-field-message:empty {
|
|
|
870
1012
|
.field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]),
|
|
871
1013
|
.field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control,
|
|
872
1014
|
.field > wui-datepicker.wui-valid:not([aria-invalid="true"]) > .datepicker > .datepicker-trigger,
|
|
1015
|
+
.field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap,
|
|
873
1016
|
.field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control {
|
|
874
1017
|
padding-inline-end: 41px;
|
|
875
1018
|
}
|
|
@@ -897,6 +1040,7 @@ form .wui-field-message:empty {
|
|
|
897
1040
|
.field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]),
|
|
898
1041
|
.field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control,
|
|
899
1042
|
.field > wui-datepicker.wui-valid:not([aria-invalid="true"]) > .datepicker > .datepicker-trigger,
|
|
1043
|
+
.field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap,
|
|
900
1044
|
.field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control {
|
|
901
1045
|
background-image: $wui-field-valid-glyph;
|
|
902
1046
|
background-repeat: no-repeat;
|
|
@@ -907,6 +1051,7 @@ form .wui-field-message:empty {
|
|
|
907
1051
|
.field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl),
|
|
908
1052
|
.field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl) > .wui-select > .wui-select-control,
|
|
909
1053
|
.field > wui-datepicker.wui-valid:not([aria-invalid="true"]):dir(rtl) > .datepicker > .datepicker-trigger,
|
|
1054
|
+
.field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap:dir(rtl),
|
|
910
1055
|
.field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl) > .wui-select > .wui-select-control {
|
|
911
1056
|
background-position: left 14px center;
|
|
912
1057
|
}
|
|
@@ -1001,7 +1146,8 @@ form .wui-field-message:empty {
|
|
|
1001
1146
|
background: var(--color-field-border);
|
|
1002
1147
|
pointer-events: none;
|
|
1003
1148
|
}
|
|
1004
|
-
.input-icon .input
|
|
1149
|
+
.input-icon .input,
|
|
1150
|
+
.input-icon > textarea.form-control {
|
|
1005
1151
|
padding-inline-start: calc(var(--wui-input-icon-slot) + var(--wui-input-icon-gap));
|
|
1006
1152
|
}
|
|
1007
1153
|
.input-icon:focus-within > .ic {
|
|
@@ -1076,7 +1222,8 @@ form .wui-field-message:empty {
|
|
|
1076
1222
|
|
|
1077
1223
|
// Clearable ✕: a trailing reset button, placed inside .input-wrap / .input-icon. It only
|
|
1078
1224
|
// renders while the field has a value; .has-clear reserves the room so text never sits under it.
|
|
1079
|
-
.input.has-clear
|
|
1225
|
+
.input.has-clear,
|
|
1226
|
+
textarea.form-control.has-clear {
|
|
1080
1227
|
padding-inline-end: 40px;
|
|
1081
1228
|
}
|
|
1082
1229
|
.input-clear {
|
|
@@ -1111,6 +1258,21 @@ form .wui-field-message:empty {
|
|
|
1111
1258
|
from { opacity: 0; transform: translateY(-50%) scale(0.72); }
|
|
1112
1259
|
to { opacity: 1; transform: translateY(-50%) scale(1); }
|
|
1113
1260
|
}
|
|
1261
|
+
// A textarea is several lines tall, so its leading icon and clear button sit on its first line,
|
|
1262
|
+
// not the vertical centre: the 12px top padding plus half of one 1.5 line.
|
|
1263
|
+
.input-icon:has(> textarea.form-control) > .ic {
|
|
1264
|
+
bottom: auto;
|
|
1265
|
+
height: calc(24px + 1.5em);
|
|
1266
|
+
}
|
|
1267
|
+
:is(.input-wrap, .input-icon) > textarea.form-control ~ .input-clear {
|
|
1268
|
+
top: 8px;
|
|
1269
|
+
transform: none;
|
|
1270
|
+
animation-name: wui-clear-in-top;
|
|
1271
|
+
}
|
|
1272
|
+
@keyframes wui-clear-in-top {
|
|
1273
|
+
from { opacity: 0; transform: scale(0.72); }
|
|
1274
|
+
to { opacity: 1; transform: none; }
|
|
1275
|
+
}
|
|
1114
1276
|
|
|
1115
1277
|
// Prefix / suffix addon: a bordered box before/after the input (₹, https://, .com). The
|
|
1116
1278
|
// WRAPPER owns the border + radius so the affixes and input read as one control; the input
|
|
@@ -1223,23 +1385,35 @@ form .wui-field-message:empty {
|
|
|
1223
1385
|
.field-float .float-label:dir(rtl) {
|
|
1224
1386
|
transform-origin: right center;
|
|
1225
1387
|
}
|
|
1388
|
+
// A textarea's label rests on its first line, not the vertical centre.
|
|
1389
|
+
.field-float:has(> textarea.form-control) .float-label {
|
|
1390
|
+
top: 22px;
|
|
1391
|
+
}
|
|
1226
1392
|
.field-float .input:focus ~ .float-label,
|
|
1227
|
-
.field-float .
|
|
1393
|
+
.field-float textarea.form-control:focus ~ .float-label,
|
|
1394
|
+
.field-float .input:not(:placeholder-shown) ~ .float-label,
|
|
1395
|
+
.field-float textarea.form-control:not(:placeholder-shown) ~ .float-label {
|
|
1228
1396
|
top: 0;
|
|
1229
1397
|
transform: translateY(-50%) scale(0.86);
|
|
1230
1398
|
}
|
|
1231
|
-
.field-float .input:focus ~ .float-label
|
|
1399
|
+
.field-float .input:focus ~ .float-label,
|
|
1400
|
+
.field-float textarea.form-control:focus ~ .float-label {
|
|
1232
1401
|
color: var(--color-primary-text);
|
|
1233
1402
|
}
|
|
1234
|
-
.field-float .input.error ~ .float-label
|
|
1403
|
+
.field-float .input.error ~ .float-label,
|
|
1404
|
+
.field-float textarea.form-control.error ~ .float-label {
|
|
1235
1405
|
color: var(--color-danger-text);
|
|
1236
1406
|
}
|
|
1237
1407
|
// Track the field's fill: it lifts to --color-surface while focused or invalid, so the label
|
|
1238
1408
|
// mask follows to stay seamless in those states too.
|
|
1239
1409
|
.field-float .input:focus ~ .float-label,
|
|
1410
|
+
.field-float textarea.form-control:focus ~ .float-label,
|
|
1240
1411
|
.field-float .input.error ~ .float-label,
|
|
1412
|
+
.field-float textarea.form-control.error ~ .float-label,
|
|
1241
1413
|
.field-float .input.is-invalid ~ .float-label,
|
|
1242
|
-
.field-float .
|
|
1414
|
+
.field-float textarea.form-control.is-invalid ~ .float-label,
|
|
1415
|
+
.field-float .input[aria-invalid="true"] ~ .float-label,
|
|
1416
|
+
.field-float textarea.form-control[aria-invalid="true"] ~ .float-label {
|
|
1243
1417
|
background: var(--color-surface);
|
|
1244
1418
|
}
|
|
1245
1419
|
// Above placement (floatingLabel="above"): the same slide, but the label comes to rest above
|
|
@@ -1249,6 +1423,9 @@ form .wui-field-message:empty {
|
|
|
1249
1423
|
--wui-float-above-space: 22px;
|
|
1250
1424
|
padding-top: var(--wui-float-above-space);
|
|
1251
1425
|
}
|
|
1426
|
+
.field-float.wui-float-above:has(> textarea.form-control) .float-label {
|
|
1427
|
+
top: calc(22px + var(--wui-float-above-space));
|
|
1428
|
+
}
|
|
1252
1429
|
.field-float.wui-float-above .float-label {
|
|
1253
1430
|
// Centred on the box, not the shell: the shell is the reserved line plus the box.
|
|
1254
1431
|
top: calc(50% + var(--wui-float-above-space) / 2);
|
|
@@ -1261,21 +1438,29 @@ form .wui-field-message:empty {
|
|
|
1261
1438
|
color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1262
1439
|
}
|
|
1263
1440
|
.field-float.wui-float-above .input:focus ~ .float-label,
|
|
1264
|
-
.field-float.wui-float-above .
|
|
1441
|
+
.field-float.wui-float-above textarea.form-control:focus ~ .float-label,
|
|
1442
|
+
.field-float.wui-float-above .input:not(:placeholder-shown) ~ .float-label,
|
|
1443
|
+
.field-float.wui-float-above textarea.form-control:not(:placeholder-shown) ~ .float-label {
|
|
1265
1444
|
top: 0;
|
|
1266
1445
|
inset-inline-start: 0;
|
|
1267
1446
|
padding: 0;
|
|
1268
1447
|
transform: scale(0.86);
|
|
1269
1448
|
font-weight: 500;
|
|
1270
1449
|
}
|
|
1271
|
-
.field-float.wui-float-above .input:not(:focus):not(:placeholder-shown):not(.error):not(.is-invalid) ~ .float-label
|
|
1450
|
+
.field-float.wui-float-above .input:not(:focus):not(:placeholder-shown):not(.error):not(.is-invalid) ~ .float-label,
|
|
1451
|
+
.field-float.wui-float-above textarea.form-control:not(:focus):not(:placeholder-shown):not(.error):not(.is-invalid) ~ .float-label {
|
|
1272
1452
|
color: var(--color-text);
|
|
1273
1453
|
}
|
|
1274
1454
|
.field-float.wui-float-above .input ~ .float-label,
|
|
1455
|
+
.field-float.wui-float-above textarea.form-control ~ .float-label,
|
|
1275
1456
|
.field-float.wui-float-above .input:focus ~ .float-label,
|
|
1457
|
+
.field-float.wui-float-above textarea.form-control:focus ~ .float-label,
|
|
1276
1458
|
.field-float.wui-float-above .input.error ~ .float-label,
|
|
1459
|
+
.field-float.wui-float-above textarea.form-control.error ~ .float-label,
|
|
1277
1460
|
.field-float.wui-float-above .input.is-invalid ~ .float-label,
|
|
1278
|
-
.field-float.wui-float-above .
|
|
1461
|
+
.field-float.wui-float-above textarea.form-control.is-invalid ~ .float-label,
|
|
1462
|
+
.field-float.wui-float-above .input[aria-invalid="true"] ~ .float-label,
|
|
1463
|
+
.field-float.wui-float-above textarea.form-control[aria-invalid="true"] ~ .float-label {
|
|
1279
1464
|
background: transparent;
|
|
1280
1465
|
}
|
|
1281
1466
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use "../config" as *;
|
|
2
|
+
|
|
3
|
+
// Dashboard top line: the greeting block at the left and the period slot at the right. Below sm the
|
|
4
|
+
// slot drops onto its own row under the greeting.
|
|
5
|
+
.wui-dashboard-header {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
gap: var(--wui-space-md);
|
|
11
|
+
margin-bottom: var(--wui-space-lg);
|
|
12
|
+
}
|
|
13
|
+
.wui-dashboard-header-text {
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
.wui-dashboard-header-greeting {
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-size: var(--wui-fs-xl);
|
|
19
|
+
font-weight: var(--wui-fw-semibold);
|
|
20
|
+
line-height: var(--wui-lh-tight);
|
|
21
|
+
color: var(--color-text);
|
|
22
|
+
}
|
|
23
|
+
.wui-dashboard-header-meta {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
column-gap: var(--wui-space-md);
|
|
27
|
+
margin: var(--wui-space-xxs) 0 0;
|
|
28
|
+
font-size: var(--wui-fs-sm);
|
|
29
|
+
color: var(--color-text-muted);
|
|
30
|
+
}
|
|
31
|
+
.wui-dashboard-header-period {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: var(--wui-space-sm);
|
|
35
|
+
margin-inline-start: auto;
|
|
36
|
+
}
|
|
37
|
+
@include media-breakpoint-down(sm) {
|
|
38
|
+
.wui-dashboard-header-period {
|
|
39
|
+
width: 100%;
|
|
40
|
+
margin-inline-start: 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
package/scss/wui/_data.scss
CHANGED
|
@@ -307,11 +307,16 @@
|
|
|
307
307
|
}
|
|
308
308
|
// Identity-cell subline. `.u-email` is in the group because an identity cell
|
|
309
309
|
// renders the secondary line as either a generic .wui-text-xs or a .u-email.
|
|
310
|
+
// A data cell's secondary line takes the same size, 12 px under the primary; the type scale has no 12 px step.
|
|
310
311
|
.table-ledger .u-meta > .u-email,
|
|
311
|
-
.table-ledger .u-meta > .wui-text-xs
|
|
312
|
+
.table-ledger .u-meta > .wui-text-xs,
|
|
313
|
+
.table-ledger .wui-cell-secondary {
|
|
312
314
|
font-size: 12px;
|
|
313
|
-
font-weight: 400;
|
|
314
315
|
line-height: 15px;
|
|
316
|
+
}
|
|
317
|
+
.table-ledger .u-meta > .u-email,
|
|
318
|
+
.table-ledger .u-meta > .wui-text-xs {
|
|
319
|
+
font-weight: 400;
|
|
315
320
|
color: var(--color-text-subtle);
|
|
316
321
|
}
|
|
317
322
|
.table-ledger .u-row-actions {
|
|
@@ -383,6 +388,7 @@
|
|
|
383
388
|
// while rows are selected the bulk bar takes the same strip. Both rows are always in the markup,
|
|
384
389
|
// one `hidden`, so the swap never moves the table. The bottom padding keeps the table header off the strip.
|
|
385
390
|
.wui-table-toolbar {
|
|
391
|
+
--wui-table-pad: 20px;
|
|
386
392
|
padding: var(--wui-space-md) var(--wui-table-pad, 20px);
|
|
387
393
|
}
|
|
388
394
|
.wui-table-toolbar-main,
|
|
@@ -618,6 +624,7 @@
|
|
|
618
624
|
// Horizontal scroll guard + flush-fit inside a card. Wrapping the table here
|
|
619
625
|
// also stops `.card > .table` header-corner rounding from applying mid-card.
|
|
620
626
|
.table-wrap {
|
|
627
|
+
--wui-table-pad: 20px;
|
|
621
628
|
overflow-x: auto;
|
|
622
629
|
max-width: 100%;
|
|
623
630
|
// Keep the horizontal swipe inside the table — don't let it drag the
|
|
@@ -975,6 +982,11 @@
|
|
|
975
982
|
border-radius: 0;
|
|
976
983
|
background: none;
|
|
977
984
|
}
|
|
985
|
+
.table-ledger.wui-table-stack > tbody > tr.wui-group-row > td {
|
|
986
|
+
display: block;
|
|
987
|
+
border: 0;
|
|
988
|
+
background: none;
|
|
989
|
+
}
|
|
978
990
|
.table-ledger.wui-table-stack > tbody > tr.wui-group-row > th.wui-group-cell {
|
|
979
991
|
display: block;
|
|
980
992
|
padding: 12px 0 4px;
|
|
@@ -991,8 +1003,8 @@
|
|
|
991
1003
|
.table-ledger.wui-table-stack > * > tr > th.wui-row-header:empty {
|
|
992
1004
|
display: none;
|
|
993
1005
|
}
|
|
994
|
-
.table-ledger.wui-table-stack > tbody > tr > td.wui-select-cell,
|
|
995
|
-
.table-ledger.wui-table-stack > tbody > tr > td.wui-expand-cell {
|
|
1006
|
+
.table-ledger.wui-table-stack > tbody > tr:not(.wui-group-row) > td.wui-select-cell,
|
|
1007
|
+
.table-ledger.wui-table-stack > tbody > tr:not(.wui-group-row) > td.wui-expand-cell {
|
|
996
1008
|
// !important for the same reason as the static rule above: a pinned-column `left` with this
|
|
997
1009
|
// `right` would stretch the cell across the card.
|
|
998
1010
|
position: absolute !important;
|
|
@@ -1063,6 +1075,18 @@
|
|
|
1063
1075
|
margin-top: var(--wui-card-table-inset, var(--wui-card-pad));
|
|
1064
1076
|
}
|
|
1065
1077
|
|
|
1078
|
+
// Header pinned to the page (`stickyHeader`): the wrap clips instead of scrolling, because a sticky header
|
|
1079
|
+
// cannot reach the page through a scroll box. It stops under the layers above it (--wui-sticky-stack-height,
|
|
1080
|
+
// written by the sticky-layer coordinator) plus the table's own offset.
|
|
1081
|
+
.table-wrap.wui-table-sticky-header {
|
|
1082
|
+
overflow-x: clip;
|
|
1083
|
+
}
|
|
1084
|
+
.table-wrap.wui-table-sticky-header .table-ledger thead th {
|
|
1085
|
+
position: sticky;
|
|
1086
|
+
top: calc(var(--wui-shell-topbar-height, 0px) + var(--wui-sticky-stack-height, 0px) + var(--wui-table-sticky-offset, 0px));
|
|
1087
|
+
z-index: 18;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1066
1090
|
// A pinned cell paints a solid colour so scrolled cells pass under it; that colour must match what shows
|
|
1067
1091
|
// through the row's transparent cells: the page background, or the surface of the card, modal or drawer
|
|
1068
1092
|
// around the table. A consumer sets --wui-table-pin-bg on any wrapper with a different background.
|
|
@@ -1195,8 +1219,8 @@
|
|
|
1195
1219
|
justify-content: center;
|
|
1196
1220
|
}
|
|
1197
1221
|
|
|
1198
|
-
// Row actions
|
|
1199
|
-
// `row-actions-mode`)
|
|
1222
|
+
// Row actions sit in their own column by default. The hover mode (AppDataTable `rowActionsMode`, Razor
|
|
1223
|
+
// `row-actions-mode`) shows them on row hover and keyboard focus; "column" keeps the icons always visible; "hover-menu" keeps the menu visible and fades the icons.
|
|
1200
1224
|
// 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.
|
|
1201
1225
|
.table-ledger:not(.wui-table-actions-column) tbody .u-row-actions {
|
|
1202
1226
|
opacity: 0;
|
|
@@ -1610,6 +1634,11 @@ wui-data-table {
|
|
|
1610
1634
|
color: var(--wui-group-cell-color, var(--color-text));
|
|
1611
1635
|
text-align: start;
|
|
1612
1636
|
}
|
|
1637
|
+
.table-ledger > tbody > tr.wui-group-row > td {
|
|
1638
|
+
border-bottom: var(--wui-group-cell-border-bottom, 1px solid var(--color-border));
|
|
1639
|
+
background-color: var(--wui-group-cell-bg, var(--color-bg-muted));
|
|
1640
|
+
--bs-table-bg: var(--wui-group-cell-bg, var(--color-bg-muted));
|
|
1641
|
+
}
|
|
1613
1642
|
.table-ledger > tbody > tr.wui-group-row:hover {
|
|
1614
1643
|
--bs-table-bg-state: transparent;
|
|
1615
1644
|
}
|
|
@@ -1747,6 +1776,57 @@ wui-data-table {
|
|
|
1747
1776
|
white-space: normal;
|
|
1748
1777
|
}
|
|
1749
1778
|
|
|
1779
|
+
// The save status in a row's identity cell on a table with save labels (AppDataTable `saveLabels`, or
|
|
1780
|
+
// `save-labels` on <app-data-table>): a spinner while saving, a tick once saved, danger text when it failed.
|
|
1781
|
+
.wui-row-status {
|
|
1782
|
+
display: flex;
|
|
1783
|
+
align-items: center;
|
|
1784
|
+
gap: var(--wui-space-xs);
|
|
1785
|
+
margin-bottom: var(--wui-space-xxs);
|
|
1786
|
+
color: var(--color-text-muted);
|
|
1787
|
+
font-size: var(--wui-fs-xs);
|
|
1788
|
+
font-weight: 500;
|
|
1789
|
+
line-height: 1.35;
|
|
1790
|
+
}
|
|
1791
|
+
.wui-row-status::before {
|
|
1792
|
+
content: "";
|
|
1793
|
+
flex: none;
|
|
1794
|
+
box-sizing: border-box;
|
|
1795
|
+
width: 12px;
|
|
1796
|
+
height: 12px;
|
|
1797
|
+
border-radius: 50%;
|
|
1798
|
+
}
|
|
1799
|
+
.wui-row-status-saving::before {
|
|
1800
|
+
border: 2px solid var(--color-primary);
|
|
1801
|
+
border-inline-end-color: transparent;
|
|
1802
|
+
animation: wui-row-status-spin var(--wui-duration-slow) var(--wui-ease-linear) infinite;
|
|
1803
|
+
}
|
|
1804
|
+
.wui-row-status-saved {
|
|
1805
|
+
color: var(--color-success-text);
|
|
1806
|
+
}
|
|
1807
|
+
.wui-row-status-saved::before {
|
|
1808
|
+
width: 5px;
|
|
1809
|
+
height: 9px;
|
|
1810
|
+
margin-inline: 3px;
|
|
1811
|
+
border: solid currentColor;
|
|
1812
|
+
border-width: 0 2px 2px 0;
|
|
1813
|
+
border-radius: 0;
|
|
1814
|
+
transform: translateY(-1px) rotate(45deg);
|
|
1815
|
+
}
|
|
1816
|
+
.wui-row-status-error {
|
|
1817
|
+
color: var(--color-danger-text);
|
|
1818
|
+
}
|
|
1819
|
+
@keyframes wui-row-status-spin {
|
|
1820
|
+
to {
|
|
1821
|
+
transform: rotate(360deg);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1825
|
+
.wui-row-status-saving::before {
|
|
1826
|
+
animation: none;
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1750
1830
|
@media (prefers-reduced-motion: reduce) {
|
|
1751
1831
|
.table-wrap.wui-table-scroll > .table-ledger > thead > tr > th {
|
|
1752
1832
|
transition: none;
|