@bi-digital/css 0.11.10 → 0.12.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/baseline.css +4 -2
- package/dist/components/alert.css +52 -114
- package/dist/components/avatar.css +11 -59
- package/dist/components/badge.css +25 -92
- package/dist/components/button.css +108 -131
- package/dist/components/card.css +232 -309
- package/dist/components/checkbox-subsection.css +13 -17
- package/dist/components/chip.css +41 -185
- package/dist/components/details.css +86 -105
- package/dist/components/dialog.css +97 -102
- package/dist/components/dropdown.css +19 -30
- package/dist/components/field.css +203 -219
- package/dist/components/fieldset.css +18 -26
- package/dist/components/filter-group.css +76 -94
- package/dist/components/footer.css +104 -124
- package/dist/components/icons.css +30 -30
- package/dist/components/input.css +188 -206
- package/dist/components/label.css +15 -21
- package/dist/components/link.css +36 -56
- package/dist/components/logo.css +45 -41
- package/dist/components/navbar.css +49 -52
- package/dist/components/pagination.css +27 -30
- package/dist/components/popover.css +37 -46
- package/dist/components/search.css +12 -8
- package/dist/components/skip-link.css +8 -10
- package/dist/components/spinner.css +22 -25
- package/dist/components/sticky-header.css +1 -3
- package/dist/components/sub-navbar.css +25 -25
- package/dist/components/tabs.css +105 -121
- package/dist/components/tooltip.css +32 -32
- package/dist/components/validation-message.css +11 -11
- package/dist/components.css +1695 -2281
- package/dist/index.css +509 -10
- package/dist/salesforce.css +2200 -2289
- package/dist/tokens.css +505 -8
- package/package.json +2 -2
|
@@ -1,226 +1,210 @@
|
|
|
1
1
|
.bi-field {
|
|
2
|
-
--bic-field-border-color-invalid: var(--bi-alert-50);
|
|
3
2
|
--bic-field-box-shadow: 0 0 0 var(--bi-stroke-thin) var(--bic-field-border-color);
|
|
4
|
-
--bic-field-box-shadow-hover: 0 0 0 var(--bi-stroke-thick) var(--bic-field-border-color-hover);
|
|
5
3
|
--bic-field-content-spacing: var(--bi-scale-0-50x);
|
|
6
4
|
--bic-field-padding-inline: var(--bi-scale-3x);
|
|
7
|
-
--bic-field-affix-color: var(--bi-
|
|
8
|
-
--bic-field-background: var(--bi-
|
|
9
|
-
--bic-field-background-hover: var(--bi-states-hover
|
|
10
|
-
--bic-field-background-press: var(--bi-states-press
|
|
11
|
-
--bic-field-
|
|
12
|
-
--bic-field-border-color: var(--bi-
|
|
13
|
-
--bic-field-
|
|
14
|
-
--bic-field-
|
|
15
|
-
--bic-field-
|
|
16
|
-
--bic-field-
|
|
17
|
-
--bic-field-
|
|
18
|
-
--bic-field-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.bi-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.bi-field
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.bi-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
.bi-field .bi-field--affixes:has(.bi-input[size]) {
|
|
181
|
-
width: fit-content;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.bi-field .bi-field--affixes:hover {
|
|
185
|
-
box-shadow: var(--_bi--hover, var(--bic-field-box-shadow-hover));
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.bi-field .bi-field--affixes:hover * {
|
|
189
|
-
--_bi--hover: ;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.bi-field .bi-field--affixes:has(.bi-input:focus-visible) {
|
|
193
|
-
outline: var(--_bi--focus, 3px solid var(--bic-field-focus-outline-color));
|
|
194
|
-
outline-offset: 0;
|
|
195
|
-
box-shadow: var(--_bi--focus, 0px 0px 20px var(--bi-scale-1-5x) #0000000d,
|
|
5
|
+
--bic-field-affix-color: var(--bi-color-text);
|
|
6
|
+
--bic-field-background: var(--bi-color-surface-subtle);
|
|
7
|
+
--bic-field-background-hover: var(--bi-states-hover);
|
|
8
|
+
--bic-field-background-press: var(--bi-states-press);
|
|
9
|
+
--bic-field-border-color: var(--bi-color-stroke-contrast);
|
|
10
|
+
--bic-field-border-color-invalid: var(--bi-color-alert-stroke-contrast);
|
|
11
|
+
--bic-field-disabled-color: var(--bi-color-text-subtle);
|
|
12
|
+
--bic-field-description-color: var(--bi-color-text-secondary);
|
|
13
|
+
--bic-field-label-color: var(--bi-color-text);
|
|
14
|
+
--bic-field-label-required-color: var(--bi-states-required);
|
|
15
|
+
--bic-field-focus-outline-color: var(--bi-states-focus);
|
|
16
|
+
--bic-field-focus-shadow-color: var(--bi-states-focus-background);
|
|
17
|
+
|
|
18
|
+
& > * {
|
|
19
|
+
margin-block: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& > * + * {
|
|
23
|
+
margin-top: var(--bic-field-content-spacing);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& .bi-field--description {
|
|
27
|
+
color: var(--bic-field-description-color);
|
|
28
|
+
font: var(--bi-font-body-small);
|
|
29
|
+
line-height: 1.15;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& .bi-input:where(:not([hidden])) {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:has(.bi-input[aria-invalid="true"]) {
|
|
37
|
+
--bic-field-border-color: var(--bic-field-border-color-invalid);
|
|
38
|
+
--bic-field-focus-outline-color: var(--bic-field-border-color-invalid);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:has([aria-disabled="true"]:not([role="option"][aria-disabled="true"]), :disabled:not(option)) > * {
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
--bic-field-label-color: var(--bic-field-disabled-color);
|
|
44
|
+
--bic-field-description-color: var(--bic-field-disabled-color);
|
|
45
|
+
--bic-field-affix-color: var(--bic-field-disabled-color);
|
|
46
|
+
--bic-input-toggle-background: var(--bic-field-disabled-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&[data-fullwidth="true"] {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:has(.bi-input:is([type="radio"], [type="checkbox"])) {
|
|
54
|
+
border-radius: var(--bi-radius-medium);
|
|
55
|
+
gap: 0 var(--bi-scale-3x);
|
|
56
|
+
width: fit-content;
|
|
57
|
+
padding: var(--bi-scale-2x) var(--bi-scale-3x);
|
|
58
|
+
grid-template-columns: auto 1fr;
|
|
59
|
+
grid-template-areas: "input content";
|
|
60
|
+
align-items: center;
|
|
61
|
+
|
|
62
|
+
&:not([hidden]) {
|
|
63
|
+
display: grid;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&[data-fullwidth="true"] {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:has(.bi-input[role="switch"]) {
|
|
71
|
+
border-radius: var(--bi-scale-24x);
|
|
72
|
+
padding: var(--bi-scale-1x) var(--bi-scale-2x);
|
|
73
|
+
|
|
74
|
+
&:has(.bi-label) {
|
|
75
|
+
&[data-position="start"] {
|
|
76
|
+
padding-inline-end: var(--bi-scale-4x);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-position="end"] {
|
|
80
|
+
padding-inline-start: var(--bi-scale-4x);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
& > * {
|
|
86
|
+
grid-column: content;
|
|
87
|
+
margin-block: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& .bi-label {
|
|
91
|
+
margin: var(--bi-scale-0-50x) 0;
|
|
92
|
+
-webkit-user-select: none;
|
|
93
|
+
user-select: none;
|
|
94
|
+
font-size: 1rem;
|
|
95
|
+
line-height: 1.5;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .bi-input {
|
|
99
|
+
margin: var(--bi-scale-1x) auto;
|
|
100
|
+
grid-area: 1 / input;
|
|
101
|
+
align-self: flex-start;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:is(label):not(:has([readonly], [aria-disabled="true"], :disabled)) {
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:has(input:only-child) {
|
|
109
|
+
gap: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:hover:not(:has(a:hover), :has([aria-disabled="true"], :disabled)) {
|
|
113
|
+
background: var(--_bi--hover, var(--bic-field-background-hover));
|
|
114
|
+
|
|
115
|
+
& * {
|
|
116
|
+
--_bi--hover: ;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:active:not(:has(a:active), :has([aria-disabled="true"], :disabled)) {
|
|
121
|
+
background: var(--_bi--hover, var(--bic-field-background-press));
|
|
122
|
+
|
|
123
|
+
& * {
|
|
124
|
+
--_bi--hover: ;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:has(.bi-input:focus-visible) {
|
|
129
|
+
box-shadow: var(--_bi--focus, 0 0 0 4.5px var(--bic-field-focus-shadow-color));
|
|
130
|
+
outline: var(--_bi--focus, 3px solid var(--bic-field-focus-outline-color));
|
|
131
|
+
outline-offset: var(--_bi--focus, 2px);
|
|
132
|
+
|
|
133
|
+
& * {
|
|
134
|
+
--_bi--focus: ;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&[data-position="end"] {
|
|
139
|
+
grid-template-columns: 1fr auto;
|
|
140
|
+
grid-template-areas: "content input";
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& .bi-field--affixes {
|
|
145
|
+
background: var(--bic-field-background);
|
|
146
|
+
border-radius: var(--bi-radius-medium);
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
max-width: 100%;
|
|
150
|
+
box-shadow: var(--bic-field-box-shadow);
|
|
151
|
+
|
|
152
|
+
& .bi-input {
|
|
153
|
+
--bic-input-background: ;
|
|
154
|
+
--bic-input-box-shadow: ;
|
|
155
|
+
flex: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:not([hidden]) {
|
|
159
|
+
display: flex;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:has(.bi-input[size]) {
|
|
163
|
+
width: fit-content;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:hover {
|
|
167
|
+
background: linear-gradient(0deg, var(--bi-states-hover) 0%, var(--bi-states-hover) 100%), var(--bic-field-background);
|
|
168
|
+
|
|
169
|
+
& * {
|
|
170
|
+
--_bi--hover: ;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&:has(.bi-input:focus-visible) {
|
|
175
|
+
outline: var(--_bi--focus, 3px solid var(--bic-field-focus-outline-color));
|
|
176
|
+
outline-offset: 0;
|
|
177
|
+
box-shadow: var(--_bi--focus, 0px 0px 20px var(--bi-scale-1-5x) #0000000d,
|
|
196
178
|
0px 0px 10px 0px #0000000d);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.bi-field .bi-field--affixes:has(.bi-input:focus-visible) * {
|
|
200
|
-
--_bi--focus: ;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.bi-field .bi-field--affixes .bi-field--affix {
|
|
204
|
-
padding-inline: var(--bic-field-padding-inline);
|
|
205
|
-
color: var(--bic-field-affix-color);
|
|
206
|
-
flex-shrink: 0;
|
|
207
|
-
align-items: center;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.bi-field .bi-field--affixes .bi-field--affix:not([hidden]) {
|
|
211
|
-
display: flex;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.bi-field .bi-field--affixes .bi-field--affix:first-child {
|
|
215
|
-
border-inline-end: 0;
|
|
216
|
-
border-start-start-radius: inherit;
|
|
217
|
-
border-end-start-radius: inherit;
|
|
218
|
-
padding-inline-end: 0;
|
|
219
|
-
}
|
|
220
179
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
180
|
+
& * {
|
|
181
|
+
--_bi--focus: ;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
& .bi-field--affix {
|
|
186
|
+
padding-inline: var(--bic-field-padding-inline);
|
|
187
|
+
color: var(--bic-field-affix-color);
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
align-items: center;
|
|
190
|
+
|
|
191
|
+
&:not([hidden]) {
|
|
192
|
+
display: flex;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:first-child {
|
|
196
|
+
border-inline-end: 0;
|
|
197
|
+
border-start-start-radius: inherit;
|
|
198
|
+
border-end-start-radius: inherit;
|
|
199
|
+
padding-inline-end: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:last-child {
|
|
203
|
+
border-inline-start: 0;
|
|
204
|
+
border-start-end-radius: inherit;
|
|
205
|
+
border-end-end-radius: inherit;
|
|
206
|
+
padding-inline-start: 0;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
226
210
|
}
|
|
@@ -1,36 +1,28 @@
|
|
|
1
1
|
.bi-fieldset {
|
|
2
|
-
--bic-fieldset-color: var(--bi-
|
|
3
|
-
--bic-fieldset-description-color: var(--bi-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.bi-fieldset[data-dark="true"] {
|
|
7
|
-
--bic-fieldset-color: var(--bi-basic-white);
|
|
8
|
-
--bic-fieldset-description-color: var(--bi-neutral-15);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.bi-fieldset {
|
|
2
|
+
--bic-fieldset-color: var(--bi-color-text);
|
|
3
|
+
--bic-fieldset-description-color: var(--bi-color-text-subtle);
|
|
12
4
|
border: 0;
|
|
13
5
|
min-width: 0;
|
|
14
6
|
margin: 0;
|
|
15
7
|
padding: 0;
|
|
16
|
-
}
|
|
17
8
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
9
|
+
& > legend {
|
|
10
|
+
color: var(--bic-fieldset-color);
|
|
11
|
+
padding: 0;
|
|
12
|
+
font-size: 1rem;
|
|
13
|
+
}
|
|
23
14
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
15
|
+
& > * + * {
|
|
16
|
+
margin-block-start: var(--bi-scale-1x);
|
|
17
|
+
}
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
19
|
+
& > legend + p {
|
|
20
|
+
margin-block: var(--bi-scale-1x) 0;
|
|
21
|
+
color: var(--bic-fieldset-description-color);
|
|
22
|
+
font: var(--bi-font-body-large);
|
|
23
|
+
}
|
|
33
24
|
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
&:disabled > legend, &:disabled > legend + p {
|
|
26
|
+
opacity: var(--ds-opacity-disabled);
|
|
27
|
+
}
|
|
36
28
|
}
|