@webority/theme 0.164.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +86 -1
- package/dist/published-theme.json +2 -0
- package/dist/purge-safelist.json +58 -24
- 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-components.scss +2 -2
- package/scss/_wui-core.scss +2 -2
- package/scss/wui/_cell.scss +1 -1
- package/scss/wui/_choice.scss +18 -8
- package/scss/wui/_controls.scss +144 -61
- package/scss/wui/_data.scss +54 -4
- package/scss/wui/_display.scss +8 -4
- package/scss/wui/_entry-grid.scss +178 -0
- package/scss/wui/_field-floor.scss +6 -6
- package/scss/wui/_field-sizes.scss +9 -5
- package/scss/wui/_flow.scss +1 -0
- package/scss/wui/_forced-colors.scss +15 -0
- package/scss/wui/_formula-steps.scss +73 -0
- package/scss/wui/_groups.scss +8 -0
- package/scss/wui/_interaction.scss +4 -0
- package/scss/wui/_metric-strip.scss +14 -0
- package/scss/wui/_navigation.scss +26 -10
- package/scss/wui/_overlays.scss +8 -0
- package/scss/wui/_print.scss +15 -0
- package/scss/wui/_sections.scss +28 -0
- package/scss/wui/_select.scss +9 -2
- package/scss/wui/_shell-parts.scss +4 -0
- package/scss/wui/_typography.scss +1 -0
- package/scss/wui/_utilities.scss +0 -7
- 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
- package/scss/wui/_resizable.scss +0 -100
- package/scss/wui/_rolling-number.scss +0 -68
|
@@ -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
|
}
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
// Before `split-view`, which places the legend sheet inside the list column.
|
|
67
67
|
@use "wui/record-pager";
|
|
68
68
|
@use "wui/shortcuts";
|
|
69
|
+
@use "wui/entry-grid";
|
|
70
|
+
@use "wui/formula-steps";
|
|
69
71
|
@use "wui/split-view";
|
|
70
72
|
@use "wui/detail-pane";
|
|
71
73
|
@use "wui/groups";
|
|
@@ -77,8 +79,6 @@
|
|
|
77
79
|
@use "wui/money";
|
|
78
80
|
@use "wui/period-picker";
|
|
79
81
|
@use "wui/relative-time";
|
|
80
|
-
@use "wui/resizable";
|
|
81
|
-
@use "wui/rolling-number";
|
|
82
82
|
@use "wui/show-more";
|
|
83
83
|
@use "wui/truncate";
|
|
84
84
|
// After `navigation`/`overlays`: the switcher restates dropdown-item chrome those partials
|
package/scss/_wui-core.scss
CHANGED
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
// Before `split-view`, which places the legend sheet inside the list column.
|
|
56
56
|
@use "wui/record-pager";
|
|
57
57
|
@use "wui/shortcuts";
|
|
58
|
+
@use "wui/entry-grid";
|
|
59
|
+
@use "wui/formula-steps";
|
|
58
60
|
@use "wui/split-view";
|
|
59
61
|
@use "wui/detail-pane";
|
|
60
62
|
@use "wui/groups";
|
|
@@ -66,8 +68,6 @@
|
|
|
66
68
|
@use "wui/money";
|
|
67
69
|
@use "wui/period-picker";
|
|
68
70
|
@use "wui/relative-time";
|
|
69
|
-
@use "wui/resizable";
|
|
70
|
-
@use "wui/rolling-number";
|
|
71
71
|
@use "wui/show-more";
|
|
72
72
|
@use "wui/truncate";
|
|
73
73
|
@use "wui/page-header-bar";
|
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
|
@@ -380,49 +380,6 @@
|
|
|
380
380
|
corner-shape: round;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
// Table-row switch (<app-row-switch>, AppRowSwitch): a button, not an input, so a row can post it.
|
|
384
|
-
// Same track, knob, colours and focus ring as the form switch above.
|
|
385
|
-
.wui-row-switch {
|
|
386
|
-
display: inline-flex;
|
|
387
|
-
align-items: center;
|
|
388
|
-
padding: 0;
|
|
389
|
-
border: 0;
|
|
390
|
-
background: none;
|
|
391
|
-
border-radius: var(--wui-radius-pill);
|
|
392
|
-
cursor: pointer;
|
|
393
|
-
}
|
|
394
|
-
.wui-row-switch:focus-visible {
|
|
395
|
-
outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
|
|
396
|
-
outline-offset: var(--wui-focus-ring-offset);
|
|
397
|
-
}
|
|
398
|
-
.wui-row-switch__track {
|
|
399
|
-
position: relative;
|
|
400
|
-
display: block;
|
|
401
|
-
width: 40px;
|
|
402
|
-
height: 22px;
|
|
403
|
-
border-radius: var(--wui-radius-pill);
|
|
404
|
-
background-color: var(--color-border-strong);
|
|
405
|
-
}
|
|
406
|
-
.wui-row-switch__thumb {
|
|
407
|
-
position: absolute;
|
|
408
|
-
top: 2px;
|
|
409
|
-
left: 2px;
|
|
410
|
-
width: 18px;
|
|
411
|
-
height: 18px;
|
|
412
|
-
border-radius: 50%;
|
|
413
|
-
background-color: var(--color-surface);
|
|
414
|
-
}
|
|
415
|
-
.wui-row-switch[aria-checked="true"] .wui-row-switch__track {
|
|
416
|
-
background-color: var(--color-primary);
|
|
417
|
-
}
|
|
418
|
-
.wui-row-switch[aria-checked="true"] .wui-row-switch__thumb {
|
|
419
|
-
transform: translateX(18px);
|
|
420
|
-
}
|
|
421
|
-
.wui-row-switch:disabled,
|
|
422
|
-
.wui-row-switch[aria-busy="true"] {
|
|
423
|
-
opacity: var(--wui-disabled-opacity);
|
|
424
|
-
cursor: not-allowed;
|
|
425
|
-
}
|
|
426
383
|
@media (prefers-reduced-motion: reduce) {
|
|
427
384
|
.form-check-input,
|
|
428
385
|
.wui-check,
|
|
@@ -443,7 +400,7 @@
|
|
|
443
400
|
// border + a soft focus ring on focus. "Filled" is the same resting look with a
|
|
444
401
|
// value; the state ladder is default/filled → hover → focus → disabled → error.
|
|
445
402
|
//
|
|
446
|
-
// Keep shell utilities (.input-wrap, .input-icon, .input-sm, …). Those are
|
|
403
|
+
// Keep shell utilities (.input-wrap, .input-icon, .wui-input-sm, …). Those are
|
|
447
404
|
// structure, not a parallel visual system.
|
|
448
405
|
.form-control,
|
|
449
406
|
.form-select,
|
|
@@ -465,23 +422,30 @@
|
|
|
465
422
|
box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
|
|
466
423
|
font-family: inherit;
|
|
467
424
|
}
|
|
468
|
-
// Size steps: sm
|
|
469
|
-
// .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
|
|
470
427
|
// BS field can match without the .input alias.
|
|
471
428
|
.form-control-sm,
|
|
472
|
-
.input-sm {
|
|
429
|
+
.wui-input-sm {
|
|
473
430
|
height: var(--wui-control-sm);
|
|
474
431
|
padding: 5px 10px;
|
|
475
432
|
font-size: 13px;
|
|
476
433
|
border-radius: var(--wui-field-sm-radius);
|
|
477
434
|
}
|
|
478
435
|
.form-control-lg,
|
|
479
|
-
.input-lg {
|
|
436
|
+
.wui-input-lg {
|
|
480
437
|
height: var(--wui-control-lg);
|
|
481
438
|
padding: 9px 16px;
|
|
482
439
|
font-size: 16px;
|
|
483
440
|
border-radius: var(--wui-field-lg-radius);
|
|
484
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
|
+
}
|
|
485
449
|
.textarea,
|
|
486
450
|
textarea.form-control {
|
|
487
451
|
height: auto;
|
|
@@ -548,6 +512,106 @@ textarea.form-control.autosize {
|
|
|
548
512
|
.input-bare:focus {
|
|
549
513
|
outline: none;
|
|
550
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
|
+
}
|
|
551
615
|
// Edge/IE native password reveal: hide so only the app eye toggle shows.
|
|
552
616
|
.form-control::-ms-reveal,
|
|
553
617
|
.form-control::-ms-clear,
|
|
@@ -903,12 +967,12 @@ form .wui-field-message:empty {
|
|
|
903
967
|
align-items: center;
|
|
904
968
|
width: 100%;
|
|
905
969
|
}
|
|
906
|
-
.input-icon:has(> .input-sm) {
|
|
970
|
+
.input-icon:has(> .wui-input-sm) {
|
|
907
971
|
--wui-input-icon-slot: 34px;
|
|
908
972
|
--wui-input-icon-size: 14px;
|
|
909
973
|
--wui-input-icon-gap: 10px;
|
|
910
974
|
}
|
|
911
|
-
.input-icon:has(> .input-lg) {
|
|
975
|
+
.input-icon:has(> .wui-input-lg) {
|
|
912
976
|
--wui-input-icon-slot: 48px;
|
|
913
977
|
--wui-input-icon-size: 18px;
|
|
914
978
|
--wui-input-icon-gap: 14px;
|
|
@@ -968,7 +1032,8 @@ form .wui-field-message:empty {
|
|
|
968
1032
|
}
|
|
969
1033
|
|
|
970
1034
|
// Password reveal toggle (place inside .input-wrap).
|
|
971
|
-
.input.pw
|
|
1035
|
+
.input.pw,
|
|
1036
|
+
:is(.input-wrap, .input-icon):has(> .pw-toggle) > .input {
|
|
972
1037
|
padding-right: 44px;
|
|
973
1038
|
}
|
|
974
1039
|
.input.pw[type="password"]::placeholder {
|
|
@@ -1406,12 +1471,15 @@ wui-date-range {
|
|
|
1406
1471
|
// height at every size.
|
|
1407
1472
|
height: calc(var(--wui-control-md) - 2px);
|
|
1408
1473
|
}
|
|
1409
|
-
.input-with-unit .num-input.input-sm {
|
|
1474
|
+
.input-with-unit .num-input.wui-input-sm {
|
|
1410
1475
|
height: calc(var(--wui-control-sm) - 2px);
|
|
1411
1476
|
}
|
|
1412
|
-
.input-with-unit .num-input.input-lg {
|
|
1477
|
+
.input-with-unit .num-input.wui-input-lg {
|
|
1413
1478
|
height: calc(var(--wui-control-lg) - 2px);
|
|
1414
1479
|
}
|
|
1480
|
+
.input-with-unit .num-input.wui-input-xl {
|
|
1481
|
+
height: calc(var(--wui-control-xl) - 2px);
|
|
1482
|
+
}
|
|
1415
1483
|
.input-with-unit .num-input:focus {
|
|
1416
1484
|
box-shadow: none;
|
|
1417
1485
|
}
|
|
@@ -1543,27 +1611,36 @@ wui-date-range {
|
|
|
1543
1611
|
border-left: 1px solid var(--color-border);
|
|
1544
1612
|
}
|
|
1545
1613
|
|
|
1546
|
-
// ── Size variants ── the inner input carries .input-sm / .input-lg (height +
|
|
1547
|
-
// 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
|
|
1548
1616
|
// cells to match. Default (md) uses the control-height cell above.
|
|
1549
|
-
.num-wrap-sm {
|
|
1617
|
+
.wui-num-wrap-sm {
|
|
1550
1618
|
border-radius: var(--wui-field-sm-radius);
|
|
1551
1619
|
}
|
|
1552
|
-
.num-wrap-sm .num-btn {
|
|
1620
|
+
.wui-num-wrap-sm .num-btn {
|
|
1553
1621
|
flex-basis: var(--wui-control-sm);
|
|
1554
1622
|
}
|
|
1555
|
-
.num-wrap-sm .num-input {
|
|
1623
|
+
.wui-num-wrap-sm .num-input {
|
|
1556
1624
|
font-size: 13px;
|
|
1557
1625
|
}
|
|
1558
|
-
.num-wrap-lg {
|
|
1626
|
+
.wui-num-wrap-lg {
|
|
1559
1627
|
border-radius: var(--wui-field-lg-radius);
|
|
1560
1628
|
}
|
|
1561
|
-
.num-wrap-lg .num-btn {
|
|
1629
|
+
.wui-num-wrap-lg .num-btn {
|
|
1562
1630
|
flex-basis: var(--wui-control-lg);
|
|
1563
1631
|
}
|
|
1564
|
-
.num-wrap-lg .num-input {
|
|
1632
|
+
.wui-num-wrap-lg .num-input {
|
|
1565
1633
|
font-size: 16px;
|
|
1566
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
|
+
}
|
|
1567
1644
|
|
|
1568
1645
|
// Affix (unit) in the num-wrap: a trailing pill after the input.
|
|
1569
1646
|
.num-wrap .affix {
|
|
@@ -1609,6 +1686,7 @@ wui-date-range {
|
|
|
1609
1686
|
}
|
|
1610
1687
|
.badge-info {
|
|
1611
1688
|
@include wui-tone-pill-colors(info);
|
|
1689
|
+
border-color: var(--color-info-border);
|
|
1612
1690
|
}
|
|
1613
1691
|
.badge-dot::before {
|
|
1614
1692
|
content: "";
|
|
@@ -1646,6 +1724,8 @@ wui-date-range {
|
|
|
1646
1724
|
}
|
|
1647
1725
|
.status-label.info {
|
|
1648
1726
|
@include wui-tone-pill-colors(info);
|
|
1727
|
+
// An inset shadow, not a border, so an info pill keeps its size.
|
|
1728
|
+
box-shadow: inset 0 0 0 1px var(--color-info-border);
|
|
1649
1729
|
}
|
|
1650
1730
|
.status-label.primary {
|
|
1651
1731
|
@include wui-tone-pill-colors(primary, var(--color-primary-text));
|
|
@@ -1663,6 +1743,9 @@ wui-date-range {
|
|
|
1663
1743
|
.status-label.wui-bordered {
|
|
1664
1744
|
border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
|
|
1665
1745
|
}
|
|
1746
|
+
.status-label.info.wui-bordered {
|
|
1747
|
+
box-shadow: none;
|
|
1748
|
+
}
|
|
1666
1749
|
|
|
1667
1750
|
// ── Choice chip ──
|
|
1668
1751
|
// Inline selectable chip: the native input is hidden and the pill shows its state. The look reads
|