@webority/theme 0.165.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.
- package/README.md +86 -1
- package/dist/published-theme.json +2 -0
- package/dist/purge-safelist.json +21 -11
- package/dist/webority-modes.css +1 -0
- package/dist/webority-theme.css +1 -1
- package/dist/webority-tokens.css +1 -1
- package/package.json +13 -6
- package/scss/_bootstrap.generated.scss +1 -1
- package/scss/_components.scss +33 -25
- package/scss/_modes.scss +17 -0
- package/scss/_tokens-modes.generated.scss +170 -0
- package/scss/_tokens.generated.scss +11 -6
- package/scss/wui/_cell.scss +1 -1
- package/scss/wui/_choice.scss +18 -8
- package/scss/wui/_controls.scss +138 -18
- package/scss/wui/_data.scss +2 -2
- package/scss/wui/_display.scss +8 -4
- package/scss/wui/_entry-grid.scss +60 -0
- package/scss/wui/_field-floor.scss +6 -6
- package/scss/wui/_field-sizes.scss +9 -4
- package/scss/wui/_flow.scss +1 -0
- package/scss/wui/_forced-colors.scss +15 -0
- package/scss/wui/_groups.scss +8 -0
- package/scss/wui/_navigation.scss +26 -10
- package/scss/wui/_print.scss +15 -0
- package/scss/wui/_select.scss +9 -2
- package/scss/wui/forced-colors/_base.scss +95 -0
- package/scss/wui/forced-colors/_choice.scss +59 -0
- package/scss/wui/forced-colors/_controls.scss +90 -0
- package/scss/wui/forced-colors/_data.scss +57 -0
- package/scss/wui/forced-colors/_display.scss +77 -0
- package/scss/wui/forced-colors/_media.scss +63 -0
- package/scss/wui/forced-colors/_navigation.scss +40 -0
- package/scss/wui/forced-colors/_overlays.scss +41 -0
- package/scss/wui/modes/_calendar.scss +24 -0
- package/scss/wui/modes/_command-palette.scss +23 -0
- package/scss/wui/modes/_dock.scss +21 -0
- package/scss/wui/modes/_file-viewer.scss +19 -0
- package/scss/wui/modes/_image-crop.scss +21 -0
- package/scss/wui/modes/_kanban.scss +36 -0
- package/scss/wui/modes/_org-tree.scss +18 -0
- package/scss/wui/modes/_rich-text.scss +25 -0
- package/scss/wui/modes/_tour.scss +30 -0
- package/scss/wui/modes/_tree.scss +17 -0
- package/scss/wui/modes/_workspace.scss +19 -0
- package/scss/wui/print/_chrome.scss +43 -0
- package/scss/wui/print/_content.scss +73 -0
- package/scss/wui/print/_dark.scss +105 -0
- package/scss/wui/print/_data.scss +80 -0
- package/scss/wui/print/_overlays.scss +46 -0
- package/scss/wui/print/_page.scss +11 -0
- package/scss/wui/print/_status.scss +42 -0
- package/scss/wui/print/_surfaces.scss +56 -0
- package/token-meanings.json +3 -2
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// Generated by @webority/tokens 0.167.0 from its token source. Do not edit; run webority brand --library.
|
|
2
|
+
|
|
3
|
+
@media (prefers-contrast: more) {
|
|
4
|
+
:root,
|
|
5
|
+
[data-theme],
|
|
6
|
+
[data-bs-theme] {
|
|
7
|
+
--color-text-subtle: var(--color-text-muted) !important;
|
|
8
|
+
--color-border: var(--color-text-muted) !important;
|
|
9
|
+
--color-border-subtle: var(--color-text-muted) !important;
|
|
10
|
+
--color-border-strong: var(--color-text-muted) !important;
|
|
11
|
+
--color-field-border: var(--color-text-muted) !important;
|
|
12
|
+
--color-field-border-hover: var(--color-text-muted) !important;
|
|
13
|
+
--color-focus-ring-soft: var(--color-focus-ring) !important;
|
|
14
|
+
--wui-focus-ring-width: var(--wui-space-xs) !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media print {
|
|
19
|
+
:root,
|
|
20
|
+
[data-theme],
|
|
21
|
+
[data-bs-theme] {
|
|
22
|
+
--wui-primary-50: #818CF8 !important;
|
|
23
|
+
--wui-primary-30: #A5B4FC !important;
|
|
24
|
+
--wui-primary-20: #C7D2FE !important;
|
|
25
|
+
--wui-primary-15: #DDE1FD !important;
|
|
26
|
+
--wui-primary-10: #E0E7FF !important;
|
|
27
|
+
--wui-primary-5: #EEF2FF !important;
|
|
28
|
+
--wui-surface-soft: #F2EFFE !important;
|
|
29
|
+
--wui-surface-violet-soft: #FCFCFC !important;
|
|
30
|
+
--wui-surface-mute: #F9FBFC !important;
|
|
31
|
+
--wui-neutral-bg-dark: #F5F6FA !important;
|
|
32
|
+
--wui-neutral-bg-light: #F9FBFC !important;
|
|
33
|
+
--wui-info-10: #E9F3FF !important;
|
|
34
|
+
--wui-info-5: #F3F9FF !important;
|
|
35
|
+
--wui-success-10: #E8FAEE !important;
|
|
36
|
+
--wui-success-5: #F3FCF6 !important;
|
|
37
|
+
--wui-warning-10: #FFF8E6 !important;
|
|
38
|
+
--wui-warning-5: #FEFBF2 !important;
|
|
39
|
+
--wui-danger-10: #FFEAEF !important;
|
|
40
|
+
--wui-danger-5: #FEF4F6 !important;
|
|
41
|
+
--wui-chart-1: var(--wui-primary) !important;
|
|
42
|
+
--wui-chart-2: #eb6834 !important;
|
|
43
|
+
--wui-chart-3: #1baf7a !important;
|
|
44
|
+
--wui-chart-4: #eda100 !important;
|
|
45
|
+
--wui-chart-5: #e87ba4 !important;
|
|
46
|
+
--wui-chart-6: #008300 !important;
|
|
47
|
+
--wui-chart-7: #2a78d6 !important;
|
|
48
|
+
--wui-chart-8: #e34948 !important;
|
|
49
|
+
--wui-chart-seq-0: var(--wui-bg-muted) !important;
|
|
50
|
+
--wui-chart-seq-1: var(--wui-primary-10) !important;
|
|
51
|
+
--wui-chart-seq-2: var(--wui-primary-20) !important;
|
|
52
|
+
--wui-chart-seq-3: var(--wui-primary-30) !important;
|
|
53
|
+
--wui-chart-seq-4: var(--wui-primary-50) !important;
|
|
54
|
+
--wui-chart-seq-5: var(--wui-primary-hover) !important;
|
|
55
|
+
--wui-chart-seq-6: var(--wui-primary-pressed) !important;
|
|
56
|
+
--wui-chart-diverging-low: #e34948 !important;
|
|
57
|
+
--wui-chart-diverging-mid: #c4cada !important;
|
|
58
|
+
--wui-chart-diverging-high: #2a78d6 !important;
|
|
59
|
+
--wui-chart-neutral: #99a1b7 !important;
|
|
60
|
+
--wui-shadow-elevated: 0px 2px 8px -2px rgba(7, 20, 55, 0.10) !important;
|
|
61
|
+
--wui-shadow-popover: 0px 8px 28px -6px rgba(7, 20, 55, 0.14) !important;
|
|
62
|
+
--wui-shadow-modal: 0px 24px 60px -16px rgba(7, 20, 55, 0.28) !important;
|
|
63
|
+
--color-bg: var(--wui-bg-light) !important;
|
|
64
|
+
--color-bg-subtle: var(--wui-bg-light) !important;
|
|
65
|
+
--color-bg-muted: var(--wui-bg-light) !important;
|
|
66
|
+
--color-surface: var(--wui-bg-light) !important;
|
|
67
|
+
--color-surface-inverse: var(--wui-text-heading) !important;
|
|
68
|
+
--color-text: var(--wui-ink) !important;
|
|
69
|
+
--color-text-body: var(--wui-ink) !important;
|
|
70
|
+
--color-text-muted: var(--wui-text-1) !important;
|
|
71
|
+
--color-text-subtle: var(--wui-text-2) !important;
|
|
72
|
+
--color-text-inverse: var(--wui-bg-light) !important;
|
|
73
|
+
--color-link: var(--wui-ink) !important;
|
|
74
|
+
--color-link-hover: var(--wui-ink) !important;
|
|
75
|
+
--color-border: var(--wui-text-4) !important;
|
|
76
|
+
--color-border-subtle: var(--wui-text-4) !important;
|
|
77
|
+
--color-border-strong: var(--wui-text-3) !important;
|
|
78
|
+
--color-field-bg: var(--wui-bg-light) !important;
|
|
79
|
+
--color-field-border: var(--wui-text-4) !important;
|
|
80
|
+
--color-field-border-hover: var(--wui-text-4) !important;
|
|
81
|
+
--color-field-border-focus: var(--wui-primary-30) !important;
|
|
82
|
+
--color-scrim: color-mix(in srgb, var(--wui-text-heading) 45%, transparent) !important;
|
|
83
|
+
--color-scrim-strong: color-mix(in srgb, var(--wui-text-heading) 62%, transparent) !important;
|
|
84
|
+
--color-progress-track: var(--wui-progress-track) !important;
|
|
85
|
+
--color-progress-label: var(--wui-bg-light) !important;
|
|
86
|
+
--color-thumb: var(--wui-bg-light) !important;
|
|
87
|
+
--color-scrollbar: var(--wui-scrollbar) !important;
|
|
88
|
+
--color-scrollbar-hover: var(--wui-scrollbar-hover) !important;
|
|
89
|
+
--color-scrollbar-active: var(--wui-scrollbar-active) !important;
|
|
90
|
+
--color-primary: var(--wui-primary) !important;
|
|
91
|
+
--color-primary-hover: var(--wui-primary-pressed) !important;
|
|
92
|
+
--color-primary-soft: var(--wui-primary-10) !important;
|
|
93
|
+
--color-primary-text: var(--wui-primary-ink) !important;
|
|
94
|
+
--color-on-primary: var(--wui-primary-text) !important;
|
|
95
|
+
--color-success: var(--wui-success) !important;
|
|
96
|
+
--color-success-pressed: var(--wui-success-active) !important;
|
|
97
|
+
--color-success-soft: var(--wui-success-10) !important;
|
|
98
|
+
--color-success-border: var(--wui-success-30) !important;
|
|
99
|
+
--color-success-text: var(--wui-success-text) !important;
|
|
100
|
+
--color-success-text-on-soft: var(--wui-success-text) !important;
|
|
101
|
+
--color-success-strong: var(--wui-success-strong) !important;
|
|
102
|
+
--color-on-success: #FFFFFF !important;
|
|
103
|
+
--color-on-success-strong: #FFFFFF !important;
|
|
104
|
+
--color-warning: var(--wui-warning) !important;
|
|
105
|
+
--color-warning-pressed: var(--wui-warning-active) !important;
|
|
106
|
+
--color-warning-soft: var(--wui-warning-10) !important;
|
|
107
|
+
--color-warning-border: var(--wui-warning-30) !important;
|
|
108
|
+
--color-warning-text: var(--wui-warning-text) !important;
|
|
109
|
+
--color-warning-text-on-soft: var(--wui-warning-text) !important;
|
|
110
|
+
--color-warning-strong: var(--wui-warning-strong) !important;
|
|
111
|
+
--color-warning-strong-hover: var(--wui-warning-strong-hover) !important;
|
|
112
|
+
--color-on-warning: #FFFFFF !important;
|
|
113
|
+
--color-on-warning-strong: #FFFFFF !important;
|
|
114
|
+
--color-danger: var(--wui-danger) !important;
|
|
115
|
+
--color-danger-pressed: var(--wui-danger-active) !important;
|
|
116
|
+
--color-danger-soft: var(--wui-danger-10) !important;
|
|
117
|
+
--color-danger-border: var(--wui-danger-30) !important;
|
|
118
|
+
--color-danger-text: var(--wui-danger-text) !important;
|
|
119
|
+
--color-danger-text-on-soft: var(--wui-danger-text) !important;
|
|
120
|
+
--color-danger-strong: var(--wui-danger-strong) !important;
|
|
121
|
+
--color-danger-strong-hover: var(--wui-danger-strong-hover) !important;
|
|
122
|
+
--color-on-danger: #FFFFFF !important;
|
|
123
|
+
--color-on-danger-strong: #FFFFFF !important;
|
|
124
|
+
--color-info: var(--wui-info) !important;
|
|
125
|
+
--color-info-pressed: var(--wui-info-active) !important;
|
|
126
|
+
--color-info-soft: var(--wui-info-10) !important;
|
|
127
|
+
--color-info-border: var(--wui-info-30) !important;
|
|
128
|
+
--color-info-text: var(--wui-info-text) !important;
|
|
129
|
+
--color-info-text-on-soft: var(--wui-info-text) !important;
|
|
130
|
+
--color-info-strong: var(--wui-info-active) !important;
|
|
131
|
+
--color-on-info: #FFFFFF !important;
|
|
132
|
+
--color-on-info-strong: #FFFFFF !important;
|
|
133
|
+
--color-chart-1: var(--wui-primary) !important;
|
|
134
|
+
--color-chart-2: var(--wui-chart-2) !important;
|
|
135
|
+
--color-chart-3: var(--wui-chart-3) !important;
|
|
136
|
+
--color-chart-4: var(--wui-chart-4) !important;
|
|
137
|
+
--color-chart-5: var(--wui-chart-5) !important;
|
|
138
|
+
--color-chart-6: var(--wui-chart-6) !important;
|
|
139
|
+
--color-chart-7: var(--wui-chart-7) !important;
|
|
140
|
+
--color-chart-8: var(--wui-chart-8) !important;
|
|
141
|
+
--color-chart-seq-0: var(--wui-bg-muted) !important;
|
|
142
|
+
--color-chart-seq-1: var(--wui-primary-10) !important;
|
|
143
|
+
--color-chart-seq-2: var(--wui-primary-20) !important;
|
|
144
|
+
--color-chart-seq-3: var(--wui-primary-30) !important;
|
|
145
|
+
--color-chart-seq-4: var(--wui-primary-50) !important;
|
|
146
|
+
--color-chart-seq-5: var(--wui-primary-hover) !important;
|
|
147
|
+
--color-chart-seq-6: var(--wui-primary-pressed) !important;
|
|
148
|
+
--color-chart-diverging-low: var(--wui-chart-diverging-low) !important;
|
|
149
|
+
--color-chart-diverging-mid: var(--wui-chart-diverging-mid) !important;
|
|
150
|
+
--color-chart-diverging-high: var(--wui-chart-diverging-high) !important;
|
|
151
|
+
--color-chart-neutral: var(--wui-chart-neutral) !important;
|
|
152
|
+
--wui-close-filter: none !important;
|
|
153
|
+
--wui-ai-violet: #7C3AED !important;
|
|
154
|
+
--wui-thumb-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
|
|
155
|
+
--wui-thumb-shadow-hover: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
|
|
156
|
+
--bs-body-bg-rgb: 255, 255, 255 !important;
|
|
157
|
+
--bs-primary-rgb: 79, 70, 229 !important;
|
|
158
|
+
--bs-body-color-rgb: 0, 0, 0 !important;
|
|
159
|
+
--bs-emphasis-color-rgb: 0, 0, 0 !important;
|
|
160
|
+
--bs-secondary-color-rgb: 37, 47, 74 !important;
|
|
161
|
+
--bs-tertiary-color-rgb: 75, 86, 117 !important;
|
|
162
|
+
--bs-secondary-bg-rgb: 255, 255, 255 !important;
|
|
163
|
+
--bs-tertiary-bg-rgb: 255, 255, 255 !important;
|
|
164
|
+
--bs-border-color-rgb: 153, 161, 183 !important;
|
|
165
|
+
--bs-secondary-rgb: 37, 47, 74 !important;
|
|
166
|
+
--bs-link-color-rgb: 0, 0, 0 !important;
|
|
167
|
+
--bs-link-hover-color-rgb: 0, 0, 0 !important;
|
|
168
|
+
color-scheme: light !important;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by @webority/tokens 0.
|
|
1
|
+
// Generated by @webority/tokens 0.167.0 from its token source. Do not edit; run webority brand --library.
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--wui-primary: #4F46E5;
|
|
@@ -150,6 +150,8 @@
|
|
|
150
150
|
--wui-radius-md: 10px;
|
|
151
151
|
--wui-radius-lg: 14px;
|
|
152
152
|
--wui-radius-xl: 16px;
|
|
153
|
+
--wui-radius-2xl: 18px;
|
|
154
|
+
--wui-radius-3xl: 20px;
|
|
153
155
|
--wui-radius-pill: 9999px;
|
|
154
156
|
--wui-fs-xs: clamp(0.7544rem, 0.73rem + 0.1vw, 0.8125rem);
|
|
155
157
|
--wui-fs-sm: clamp(0.8194rem, 0.7902rem + 0.1198vw, 0.875rem);
|
|
@@ -190,8 +192,9 @@
|
|
|
190
192
|
--wui-section-md: 96px;
|
|
191
193
|
--wui-section-lg: 120px;
|
|
192
194
|
--wui-control-sm: 35px;
|
|
193
|
-
--wui-control-md:
|
|
194
|
-
--wui-control-lg:
|
|
195
|
+
--wui-control-md: 40px;
|
|
196
|
+
--wui-control-lg: 45px;
|
|
197
|
+
--wui-control-xl: 50px;
|
|
195
198
|
--wui-touch-target: 44px;
|
|
196
199
|
--wui-container-max: 1512px;
|
|
197
200
|
--wui-container-pad: 24px;
|
|
@@ -361,6 +364,7 @@
|
|
|
361
364
|
--wui-field-sm-radius: var(--wui-radius-sm);
|
|
362
365
|
--wui-field-md-radius: var(--wui-radius-sm);
|
|
363
366
|
--wui-field-lg-radius: var(--wui-radius-sm);
|
|
367
|
+
--wui-field-xl-radius: var(--wui-radius-sm);
|
|
364
368
|
--wui-label-fs: 11px;
|
|
365
369
|
--wui-focus-ring-width: var(--wui-space-xxs);
|
|
366
370
|
--wui-focus-ring-offset: var(--wui-space-xxs);
|
|
@@ -389,9 +393,10 @@
|
|
|
389
393
|
--wui-nav-menu-current-bg: transparent;
|
|
390
394
|
--wui-container-md-padding-x: var(--wui-container-pad);
|
|
391
395
|
--wui-disabled-opacity: 0.5;
|
|
392
|
-
--wui-button-sm-radius: var(--wui-radius-
|
|
393
|
-
--wui-button-md-radius: var(--wui-radius-
|
|
394
|
-
--wui-button-lg-radius: var(--wui-radius-
|
|
396
|
+
--wui-button-sm-radius: var(--wui-radius-lg);
|
|
397
|
+
--wui-button-md-radius: var(--wui-radius-xl);
|
|
398
|
+
--wui-button-lg-radius: var(--wui-radius-2xl);
|
|
399
|
+
--wui-button-xl-radius: var(--wui-radius-3xl);
|
|
395
400
|
--wui-toast-edge-offset: var(--wui-space-lg);
|
|
396
401
|
--wui-page-header-title-fs: 20px;
|
|
397
402
|
}
|
package/scss/wui/_cell.scss
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// <a|span class="wui-cell-primary" [href="..."]>PRIMARY</a|span>
|
|
17
17
|
// <span class="wui-cell-secondary">SECONDARY</span> (omitted when no secondary)
|
|
18
18
|
// </div>
|
|
19
|
-
// Empty primary (null, undefined, "" and no child content) draws the placeholder "-" (React
|
|
19
|
+
// Empty primary (null, undefined, "" and no child content) draws the placeholder "-" (React emptyPlaceholder() from ../lib/emptyValue, read from the text bundle; Razor EmptyValue.Placeholder).
|
|
20
20
|
// 0 is real data and draws as "0".
|
|
21
21
|
// Classes (all new, all wui-*): wui-cell, wui-cell-primary, wui-cell-secondary, wui-cell-numeric, wui-cell-mono
|
|
22
22
|
//
|
package/scss/wui/_choice.scss
CHANGED
|
@@ -993,26 +993,36 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
|
|
|
993
993
|
// owns it, and it survives <wui-phone>'s innerHTML re-renders); it scales the
|
|
994
994
|
// shell height/radius, the tel font, the dial-code text, and the adornment pad so
|
|
995
995
|
// the whole field steps together — md is the base block above.
|
|
996
|
-
.app-phone-number-input.phone-sm .phone-input-wrap {
|
|
996
|
+
.app-phone-number-input.wui-phone-sm .phone-input-wrap {
|
|
997
997
|
height: var(--wui-control-sm);
|
|
998
998
|
border-radius: var(--wui-field-sm-radius);
|
|
999
999
|
}
|
|
1000
|
-
.app-phone-number-input.phone-sm {
|
|
1000
|
+
.app-phone-number-input.wui-phone-sm {
|
|
1001
1001
|
--wui-phone-font-size: 13px;
|
|
1002
1002
|
}
|
|
1003
|
-
.app-phone-number-input.phone-sm .phone-country-adornment {
|
|
1003
|
+
.app-phone-number-input.wui-phone-sm .phone-country-adornment {
|
|
1004
1004
|
padding-left: 10px;
|
|
1005
1005
|
}
|
|
1006
|
-
.app-phone-number-input.phone-lg .phone-input-wrap {
|
|
1006
|
+
.app-phone-number-input.wui-phone-lg .phone-input-wrap {
|
|
1007
1007
|
height: var(--wui-control-lg);
|
|
1008
1008
|
border-radius: var(--wui-field-lg-radius);
|
|
1009
1009
|
}
|
|
1010
|
-
.app-phone-number-input.phone-lg {
|
|
1010
|
+
.app-phone-number-input.wui-phone-lg {
|
|
1011
1011
|
--wui-phone-font-size: 16px;
|
|
1012
1012
|
}
|
|
1013
|
-
.app-phone-number-input.phone-lg .phone-country-adornment {
|
|
1013
|
+
.app-phone-number-input.wui-phone-lg .phone-country-adornment {
|
|
1014
1014
|
padding-left: 14px;
|
|
1015
1015
|
}
|
|
1016
|
+
.app-phone-number-input.wui-phone-xl .phone-input-wrap {
|
|
1017
|
+
height: var(--wui-control-xl);
|
|
1018
|
+
border-radius: var(--wui-field-xl-radius);
|
|
1019
|
+
}
|
|
1020
|
+
.app-phone-number-input.wui-phone-xl {
|
|
1021
|
+
--wui-phone-font-size: var(--wui-fs-lg);
|
|
1022
|
+
}
|
|
1023
|
+
.app-phone-number-input.wui-phone-xl .phone-country-adornment {
|
|
1024
|
+
padding-left: var(--wui-space-lg);
|
|
1025
|
+
}
|
|
1016
1026
|
|
|
1017
1027
|
// Menu, search field and rows all share the .wui-select language so the
|
|
1018
1028
|
// country picker reads as the same component family as every other picker.
|
|
@@ -1183,7 +1193,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
|
|
|
1183
1193
|
.timepicker-trigger {
|
|
1184
1194
|
padding-right: 44px;
|
|
1185
1195
|
}
|
|
1186
|
-
.timepicker-trigger.input-sm {
|
|
1196
|
+
.timepicker-trigger.wui-input-sm {
|
|
1187
1197
|
padding-right: 36px;
|
|
1188
1198
|
}
|
|
1189
1199
|
.wui-timepicker-toggle {
|
|
@@ -1202,7 +1212,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
|
|
|
1202
1212
|
cursor: pointer;
|
|
1203
1213
|
transition: color var(--wui-duration-fast) var(--wui-ease-ui);
|
|
1204
1214
|
}
|
|
1205
|
-
.timepicker-trigger.input-sm + .wui-timepicker-toggle {
|
|
1215
|
+
.timepicker-trigger.wui-input-sm + .wui-timepicker-toggle {
|
|
1206
1216
|
width: 36px;
|
|
1207
1217
|
}
|
|
1208
1218
|
.wui-timepicker-toggle:hover:not(:disabled),
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
// border + a soft focus ring on focus. "Filled" is the same resting look with a
|
|
401
401
|
// value; the state ladder is default/filled → hover → focus → disabled → error.
|
|
402
402
|
//
|
|
403
|
-
// Keep shell utilities (.input-wrap, .input-icon, .input-sm, …). Those are
|
|
403
|
+
// Keep shell utilities (.input-wrap, .input-icon, .wui-input-sm, …). Those are
|
|
404
404
|
// structure, not a parallel visual system.
|
|
405
405
|
.form-control,
|
|
406
406
|
.form-select,
|
|
@@ -422,23 +422,30 @@
|
|
|
422
422
|
box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
|
|
423
423
|
font-family: inherit;
|
|
424
424
|
}
|
|
425
|
-
// Size steps: sm
|
|
426
|
-
// .input-sm/.input-lg; Bootstrap's form-control-sm/lg are included so a raw
|
|
425
|
+
// Size steps: sm, lg and xl step to the --wui-control-* heights (35, 45 and 50px; md is 40px). App* emits
|
|
426
|
+
// .wui-input-sm/.wui-input-lg/.wui-input-xl; Bootstrap's form-control-sm/lg are included so a raw
|
|
427
427
|
// BS field can match without the .input alias.
|
|
428
428
|
.form-control-sm,
|
|
429
|
-
.input-sm {
|
|
429
|
+
.wui-input-sm {
|
|
430
430
|
height: var(--wui-control-sm);
|
|
431
431
|
padding: 5px 10px;
|
|
432
432
|
font-size: 13px;
|
|
433
433
|
border-radius: var(--wui-field-sm-radius);
|
|
434
434
|
}
|
|
435
435
|
.form-control-lg,
|
|
436
|
-
.input-lg {
|
|
436
|
+
.wui-input-lg {
|
|
437
437
|
height: var(--wui-control-lg);
|
|
438
438
|
padding: 9px 16px;
|
|
439
439
|
font-size: 16px;
|
|
440
440
|
border-radius: var(--wui-field-lg-radius);
|
|
441
441
|
}
|
|
442
|
+
.form-control-xl,
|
|
443
|
+
.wui-input-xl {
|
|
444
|
+
height: var(--wui-control-xl);
|
|
445
|
+
padding: var(--wui-space-sm) var(--wui-space-lg);
|
|
446
|
+
font-size: var(--wui-fs-lg);
|
|
447
|
+
border-radius: var(--wui-field-xl-radius);
|
|
448
|
+
}
|
|
442
449
|
.textarea,
|
|
443
450
|
textarea.form-control {
|
|
444
451
|
height: auto;
|
|
@@ -505,6 +512,106 @@ textarea.form-control.autosize {
|
|
|
505
512
|
.input-bare:focus {
|
|
506
513
|
outline: none;
|
|
507
514
|
}
|
|
515
|
+
// Underline variant: only a line under the field, on the page's own background. The fill tokens
|
|
516
|
+
// go transparent on the field itself, so every hover, focus, invalid and autofill rule above and
|
|
517
|
+
// below keeps working and simply paints no fill. A unit or prefix/suffix field draws its box on
|
|
518
|
+
// the wrapper, so the wrapper takes the same treatment; its 1px top padding stands in for the
|
|
519
|
+
// dropped top border, keeping the height of every shell equal to the boxed field's.
|
|
520
|
+
.input.wui-input-underline,
|
|
521
|
+
.input-with-unit:has(> .wui-input-underline),
|
|
522
|
+
.input-affixed:has(> .wui-input-underline) {
|
|
523
|
+
--color-field-bg: transparent;
|
|
524
|
+
--color-surface: transparent;
|
|
525
|
+
--color-bg-subtle: transparent;
|
|
526
|
+
border-width: 0 0 1px;
|
|
527
|
+
border-radius: 0;
|
|
528
|
+
}
|
|
529
|
+
.input.wui-input-underline {
|
|
530
|
+
padding-left: 0;
|
|
531
|
+
}
|
|
532
|
+
.input-with-unit:has(> .wui-input-underline),
|
|
533
|
+
.input-affixed:has(> .wui-input-underline) {
|
|
534
|
+
padding-top: var(--bs-border-width);
|
|
535
|
+
}
|
|
536
|
+
// One line carries the whole error cue, so it takes the full danger colour, not the boxed field's 30% tint.
|
|
537
|
+
.input.wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]),
|
|
538
|
+
.input.wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]):focus,
|
|
539
|
+
.input-with-unit:has(> .wui-input-underline:is(.error, [aria-invalid="true"])),
|
|
540
|
+
.input-affixed:has(> .wui-input-underline:is(.error, [aria-invalid="true"])) {
|
|
541
|
+
border-color: var(--color-danger);
|
|
542
|
+
}
|
|
543
|
+
.input.wui-input-underline:disabled {
|
|
544
|
+
background: transparent;
|
|
545
|
+
border-color: var(--color-field-border);
|
|
546
|
+
border-bottom-style: dashed;
|
|
547
|
+
}
|
|
548
|
+
// No box, so no slot divider beside a leading icon, and no dividers beside a unit or affix.
|
|
549
|
+
.input-icon:has(> .wui-input-underline)::after {
|
|
550
|
+
display: none;
|
|
551
|
+
}
|
|
552
|
+
.input-with-unit:has(> .wui-input-underline) .unit,
|
|
553
|
+
.input-affixed:has(> .wui-input-underline) .affix {
|
|
554
|
+
border-left: 0;
|
|
555
|
+
border-right: 0;
|
|
556
|
+
}
|
|
557
|
+
.input-affixed:has(> .wui-input-underline) .affix-pre {
|
|
558
|
+
padding-left: 0;
|
|
559
|
+
}
|
|
560
|
+
// Icons sit on the line's own edges, so a leading glyph starts where the label does and a trailing
|
|
561
|
+
// glyph ends where the line does. The leading slot shrinks to the glyph; each trailing button keeps
|
|
562
|
+
// its hit area and shifts out by its own glyph inset ((32 - 18) / 2 for the toggle, (28 - 16) / 2
|
|
563
|
+
// for the clear button), so only its transparent padding passes the line's end.
|
|
564
|
+
.input-icon:has(> .input.wui-input-underline) {
|
|
565
|
+
--wui-input-icon-slot: var(--wui-input-icon-size);
|
|
566
|
+
}
|
|
567
|
+
// Layout constants of the two trailing buttons: the glyph inset of each, and the room the text
|
|
568
|
+
// leaves for each so a long value never runs under its glyph.
|
|
569
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) {
|
|
570
|
+
--wui-underline-toggle-inset: 7px;
|
|
571
|
+
--wui-underline-clear-inset: 6px;
|
|
572
|
+
--wui-underline-toggle-room: 30px;
|
|
573
|
+
--wui-underline-clear-room: 28px;
|
|
574
|
+
}
|
|
575
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > .pw-toggle {
|
|
576
|
+
right: calc(-1 * var(--wui-underline-toggle-inset));
|
|
577
|
+
}
|
|
578
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > .input-clear {
|
|
579
|
+
right: calc(-1 * var(--wui-underline-clear-inset));
|
|
580
|
+
}
|
|
581
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > .input-affix {
|
|
582
|
+
right: 0;
|
|
583
|
+
}
|
|
584
|
+
:is(.input-wrap, .input-icon):has(> .pw-toggle) > .input.wui-input-underline {
|
|
585
|
+
padding-right: var(--wui-underline-toggle-room);
|
|
586
|
+
}
|
|
587
|
+
.input.wui-input-underline.has-clear {
|
|
588
|
+
padding-right: var(--wui-underline-clear-room);
|
|
589
|
+
}
|
|
590
|
+
// The trailing buttons' hit areas pass the line's end, so a pressed or hovered one shows only its
|
|
591
|
+
// glyph colour: any fill or tap highlight would spill past the line.
|
|
592
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > :is(.pw-toggle, .input-clear) {
|
|
593
|
+
-webkit-tap-highlight-color: transparent;
|
|
594
|
+
}
|
|
595
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > :is(.pw-toggle, .input-clear):is(:hover, :active, :focus) {
|
|
596
|
+
background: transparent;
|
|
597
|
+
color: var(--color-primary-text);
|
|
598
|
+
}
|
|
599
|
+
// The shared pressed wash in _interaction.scss is an !important background image whose long :is()
|
|
600
|
+
// list lifts it to (0,4,1), so this needs !important and its own :not() to reach (0,5,0).
|
|
601
|
+
:is(.input-wrap, .input-icon):has(> .wui-input-underline) > :is(.pw-toggle, .input-clear):active:not(:disabled, [aria-disabled="true"]) {
|
|
602
|
+
background-image: none !important;
|
|
603
|
+
}
|
|
604
|
+
// A floating label starts where the text does and needs no mask: there is no top border to hide.
|
|
605
|
+
// The label paints its mask from the fill tokens in its own scope, so they go transparent on the shell.
|
|
606
|
+
.field-float:has(.wui-input-underline) {
|
|
607
|
+
--color-field-bg: transparent;
|
|
608
|
+
--color-surface: transparent;
|
|
609
|
+
}
|
|
610
|
+
.field-float:has(.wui-input-underline) .float-label {
|
|
611
|
+
left: 0;
|
|
612
|
+
padding-left: 0;
|
|
613
|
+
padding-right: 0;
|
|
614
|
+
}
|
|
508
615
|
// Edge/IE native password reveal: hide so only the app eye toggle shows.
|
|
509
616
|
.form-control::-ms-reveal,
|
|
510
617
|
.form-control::-ms-clear,
|
|
@@ -860,12 +967,12 @@ form .wui-field-message:empty {
|
|
|
860
967
|
align-items: center;
|
|
861
968
|
width: 100%;
|
|
862
969
|
}
|
|
863
|
-
.input-icon:has(> .input-sm) {
|
|
970
|
+
.input-icon:has(> .wui-input-sm) {
|
|
864
971
|
--wui-input-icon-slot: 34px;
|
|
865
972
|
--wui-input-icon-size: 14px;
|
|
866
973
|
--wui-input-icon-gap: 10px;
|
|
867
974
|
}
|
|
868
|
-
.input-icon:has(> .input-lg) {
|
|
975
|
+
.input-icon:has(> .wui-input-lg) {
|
|
869
976
|
--wui-input-icon-slot: 48px;
|
|
870
977
|
--wui-input-icon-size: 18px;
|
|
871
978
|
--wui-input-icon-gap: 14px;
|
|
@@ -925,7 +1032,8 @@ form .wui-field-message:empty {
|
|
|
925
1032
|
}
|
|
926
1033
|
|
|
927
1034
|
// Password reveal toggle (place inside .input-wrap).
|
|
928
|
-
.input.pw
|
|
1035
|
+
.input.pw,
|
|
1036
|
+
:is(.input-wrap, .input-icon):has(> .pw-toggle) > .input {
|
|
929
1037
|
padding-right: 44px;
|
|
930
1038
|
}
|
|
931
1039
|
.input.pw[type="password"]::placeholder {
|
|
@@ -1363,12 +1471,15 @@ wui-date-range {
|
|
|
1363
1471
|
// height at every size.
|
|
1364
1472
|
height: calc(var(--wui-control-md) - 2px);
|
|
1365
1473
|
}
|
|
1366
|
-
.input-with-unit .num-input.input-sm {
|
|
1474
|
+
.input-with-unit .num-input.wui-input-sm {
|
|
1367
1475
|
height: calc(var(--wui-control-sm) - 2px);
|
|
1368
1476
|
}
|
|
1369
|
-
.input-with-unit .num-input.input-lg {
|
|
1477
|
+
.input-with-unit .num-input.wui-input-lg {
|
|
1370
1478
|
height: calc(var(--wui-control-lg) - 2px);
|
|
1371
1479
|
}
|
|
1480
|
+
.input-with-unit .num-input.wui-input-xl {
|
|
1481
|
+
height: calc(var(--wui-control-xl) - 2px);
|
|
1482
|
+
}
|
|
1372
1483
|
.input-with-unit .num-input:focus {
|
|
1373
1484
|
box-shadow: none;
|
|
1374
1485
|
}
|
|
@@ -1500,27 +1611,36 @@ wui-date-range {
|
|
|
1500
1611
|
border-left: 1px solid var(--color-border);
|
|
1501
1612
|
}
|
|
1502
1613
|
|
|
1503
|
-
// ── Size variants ── the inner input carries .input-sm / .input-lg (height +
|
|
1504
|
-
// font), the wrapper carries .num-wrap-sm / .num-wrap-lg to scale the button
|
|
1614
|
+
// ── Size variants ── the inner input carries .wui-input-sm / .wui-input-lg (height +
|
|
1615
|
+
// font), the wrapper carries .wui-num-wrap-sm / .wui-num-wrap-lg to scale the button
|
|
1505
1616
|
// cells to match. Default (md) uses the control-height cell above.
|
|
1506
|
-
.num-wrap-sm {
|
|
1617
|
+
.wui-num-wrap-sm {
|
|
1507
1618
|
border-radius: var(--wui-field-sm-radius);
|
|
1508
1619
|
}
|
|
1509
|
-
.num-wrap-sm .num-btn {
|
|
1620
|
+
.wui-num-wrap-sm .num-btn {
|
|
1510
1621
|
flex-basis: var(--wui-control-sm);
|
|
1511
1622
|
}
|
|
1512
|
-
.num-wrap-sm .num-input {
|
|
1623
|
+
.wui-num-wrap-sm .num-input {
|
|
1513
1624
|
font-size: 13px;
|
|
1514
1625
|
}
|
|
1515
|
-
.num-wrap-lg {
|
|
1626
|
+
.wui-num-wrap-lg {
|
|
1516
1627
|
border-radius: var(--wui-field-lg-radius);
|
|
1517
1628
|
}
|
|
1518
|
-
.num-wrap-lg .num-btn {
|
|
1629
|
+
.wui-num-wrap-lg .num-btn {
|
|
1519
1630
|
flex-basis: var(--wui-control-lg);
|
|
1520
1631
|
}
|
|
1521
|
-
.num-wrap-lg .num-input {
|
|
1632
|
+
.wui-num-wrap-lg .num-input {
|
|
1522
1633
|
font-size: 16px;
|
|
1523
1634
|
}
|
|
1635
|
+
.wui-num-wrap-xl {
|
|
1636
|
+
border-radius: var(--wui-field-xl-radius);
|
|
1637
|
+
}
|
|
1638
|
+
.wui-num-wrap-xl .num-btn {
|
|
1639
|
+
flex-basis: var(--wui-control-xl);
|
|
1640
|
+
}
|
|
1641
|
+
.wui-num-wrap-xl .num-input {
|
|
1642
|
+
font-size: var(--wui-fs-lg);
|
|
1643
|
+
}
|
|
1524
1644
|
|
|
1525
1645
|
// Affix (unit) in the num-wrap: a trailing pill after the input.
|
|
1526
1646
|
.num-wrap .affix {
|
package/scss/wui/_data.scss
CHANGED
|
@@ -366,9 +366,9 @@
|
|
|
366
366
|
|
|
367
367
|
// Table toolbar (AppTableToolbar / <app-table-toolbar>): filters left, search and actions right;
|
|
368
368
|
// while rows are selected the bulk bar takes the same strip. Both rows are always in the markup,
|
|
369
|
-
// one `hidden`, so the swap never moves the table.
|
|
369
|
+
// one `hidden`, so the swap never moves the table. The bottom padding keeps the table header off the strip.
|
|
370
370
|
.wui-table-toolbar {
|
|
371
|
-
padding:
|
|
371
|
+
padding: var(--wui-space-md) var(--wui-table-pad, 20px);
|
|
372
372
|
}
|
|
373
373
|
.wui-table-toolbar-main,
|
|
374
374
|
.wui-table-toolbar-filters,
|
package/scss/wui/_display.scss
CHANGED
|
@@ -787,17 +787,21 @@ a.kpi:focus-visible {
|
|
|
787
787
|
font-family: var(--bs-font-monospace);
|
|
788
788
|
text-transform: uppercase;
|
|
789
789
|
}
|
|
790
|
-
// Size steps mirror AppInput's .input-sm
|
|
790
|
+
// Size steps mirror AppInput's .wui-input-sm, .wui-input-lg and .wui-input-xl (which the hex box also carries).
|
|
791
791
|
// The swatch tracks the control height per size, less the 4px inset the md swatch already
|
|
792
|
-
// keeps against the
|
|
793
|
-
.color-field-sm .color-field-swatch {
|
|
792
|
+
// keeps against the md field, so the chip stays visually inset at every size.
|
|
793
|
+
.wui-color-field-sm .color-field-swatch {
|
|
794
794
|
width: calc(var(--wui-control-sm) - 4px);
|
|
795
795
|
height: calc(var(--wui-control-sm) - 4px);
|
|
796
796
|
}
|
|
797
|
-
.color-field-lg .color-field-swatch {
|
|
797
|
+
.wui-color-field-lg .color-field-swatch {
|
|
798
798
|
width: calc(var(--wui-control-lg) - 4px);
|
|
799
799
|
height: calc(var(--wui-control-lg) - 4px);
|
|
800
800
|
}
|
|
801
|
+
.wui-color-field-xl .color-field-swatch {
|
|
802
|
+
width: calc(var(--wui-control-xl) - 4px);
|
|
803
|
+
height: calc(var(--wui-control-xl) - 4px);
|
|
804
|
+
}
|
|
801
805
|
|
|
802
806
|
// ============================================================================
|
|
803
807
|
// Timeline / activity feed. The rail is drawn on the LIST, not per item, so it
|
|
@@ -116,3 +116,63 @@
|
|
|
116
116
|
align-items: center;
|
|
117
117
|
gap: var(--wui-space-xs);
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
// Sortable headings match the data table's (_data.scss → Table extras): same pointer, focus ring and arrow.
|
|
121
|
+
.wui-entry-grid-table th[data-sortable] {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
user-select: none;
|
|
124
|
+
}
|
|
125
|
+
.wui-entry-grid-table th[data-sortable]:focus-visible {
|
|
126
|
+
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
127
|
+
outline-offset: var(--wui-focus-ring-inset);
|
|
128
|
+
}
|
|
129
|
+
.wui-entry-grid-table th[data-sortable] .sort-icon {
|
|
130
|
+
display: inline-block;
|
|
131
|
+
vertical-align: middle;
|
|
132
|
+
width: 12px;
|
|
133
|
+
margin-left: var(--wui-space-xs);
|
|
134
|
+
color: var(--color-text-subtle);
|
|
135
|
+
opacity: 0;
|
|
136
|
+
transition: opacity var(--wui-duration-fast) var(--wui-ease-ui);
|
|
137
|
+
}
|
|
138
|
+
.wui-entry-grid-table th[data-sortable]:hover .sort-icon {
|
|
139
|
+
opacity: 0.6;
|
|
140
|
+
}
|
|
141
|
+
.wui-entry-grid-table th[data-sortable][aria-sort="ascending"] .sort-icon,
|
|
142
|
+
.wui-entry-grid-table th[data-sortable][aria-sort="descending"] .sort-icon {
|
|
143
|
+
opacity: 1;
|
|
144
|
+
color: var(--color-primary-text);
|
|
145
|
+
}
|
|
146
|
+
.wui-entry-grid-table th[data-sortable][aria-sort="descending"] .sort-icon {
|
|
147
|
+
transform: rotate(180deg);
|
|
148
|
+
}
|
|
149
|
+
.wui-entry-grid-table th[data-sortable][aria-sort="ascending"],
|
|
150
|
+
.wui-entry-grid-table th[data-sortable][aria-sort="descending"] {
|
|
151
|
+
color: var(--color-text);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// The group row is the first header row; a cell that spans several columns centres over them.
|
|
155
|
+
.wui-entry-grid-group {
|
|
156
|
+
font-weight: var(--wui-fw-semibold);
|
|
157
|
+
border-bottom: 1px solid var(--color-border);
|
|
158
|
+
}
|
|
159
|
+
.wui-entry-grid-group[colspan] {
|
|
160
|
+
text-align: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// A pinned start column stays visible while the wrap scrolls sideways. Its cells are opaque, so the
|
|
164
|
+
// row tint paints through the inset shadow, as the data table's pinned cells do. A status column sits
|
|
165
|
+
// left of it, and its width (2rem) moves the pin over.
|
|
166
|
+
.wui-entry-grid-table:has(.wui-entry-grid-status) {
|
|
167
|
+
--wui-entry-grid-pin-left: 2rem;
|
|
168
|
+
}
|
|
169
|
+
.wui-entry-grid-table [data-pin="start"] {
|
|
170
|
+
position: sticky;
|
|
171
|
+
left: var(--wui-entry-grid-pin-left, 0);
|
|
172
|
+
z-index: 1;
|
|
173
|
+
background: var(--color-surface);
|
|
174
|
+
box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
|
|
175
|
+
}
|
|
176
|
+
.wui-entry-grid-table thead [data-pin="start"] {
|
|
177
|
+
z-index: 3;
|
|
178
|
+
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.form-control-sm,
|
|
26
|
-
.input-sm {
|
|
26
|
+
.wui-input-sm {
|
|
27
27
|
font-size: max(16px, #{$input-font-size-sm});
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
// The library's large field is 16px (_controls.scss), not Bootstrap's $input-font-size-lg.
|
|
35
35
|
.form-control-lg,
|
|
36
|
-
.input-lg {
|
|
36
|
+
.wui-input-lg {
|
|
37
37
|
font-size: max(16px, 16px);
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
font-size: max(16px, 18px);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.num-wrap-sm .num-input {
|
|
58
|
+
.wui-num-wrap-sm .num-input {
|
|
59
59
|
font-size: max(16px, 13px);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.num-wrap-lg .num-input {
|
|
62
|
+
.wui-num-wrap-lg .num-input {
|
|
63
63
|
font-size: max(16px, 16px);
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
font-size: 16px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.search-wrap.search-sm .search-input {
|
|
73
|
+
.search-wrap.wui-search-sm .search-input {
|
|
74
74
|
font-size: 16px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
// The tel input and its dial code share one size, so the floor goes on the shared variable.
|
|
78
78
|
.app-phone-number-input,
|
|
79
|
-
.app-phone-number-input.phone-sm {
|
|
79
|
+
.app-phone-number-input.wui-phone-sm {
|
|
80
80
|
--wui-phone-font-size: 16px;
|
|
81
81
|
}
|
|
82
82
|
}
|