@wwtdev/bsds-css 2.4.1 → 2.5.1
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/components/_dropdown-options.scss +6 -6
- package/dist/components/_form-input-composite.scss +71 -4
- package/dist/components/_modal.scss +3 -0
- package/dist/components/_tab-list.scss +1 -0
- package/dist/components/_tooltip.scss +1 -1
- package/dist/components/dropdown-options.css +6 -6
- package/dist/components/form-input-composite.css +71 -4
- package/dist/components/modal.css +3 -0
- package/dist/components/tab-list.css +1 -0
- package/dist/components/tooltip.css +1 -1
- package/dist/wwt-bsds.css +1385 -1327
- package/dist/wwt-bsds.min.css +1 -1
- package/package.json +1 -1
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
.bs-dropdown-options :where(li:not([role="separator"]):hover),
|
|
98
98
|
.bs-dropdown-options :where(li[data-selected]) {
|
|
99
99
|
background-color: var(--bs-bg-medium);
|
|
100
|
-
border-left: 4px solid var(--bs-blue
|
|
101
|
-
color: var(--bs-blue
|
|
100
|
+
border-left: 4px solid var(--bs-ink-blue);
|
|
101
|
+
color: var(--bs-ink-blue);
|
|
102
102
|
outline: none;
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-selected]:hover) {
|
|
109
109
|
/* 25% alpha version of --bs-red-400 */
|
|
110
110
|
background-color: rgba(248, 169, 170, 0.25);
|
|
111
|
-
border-left: 4px solid var(--bs-red
|
|
112
|
-
color: var(--bs-red
|
|
111
|
+
border-left: 4px solid var(--bs-ink-red);
|
|
112
|
+
color: var(--bs-ink-red);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/* Hover or data-selected for 2-col/3-col/description variants */
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
.bs-dropdown-options :where(li:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
120
120
|
.bs-dropdown-options :where(li[data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
121
121
|
.bs-dropdown-options :where(li[data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
122
|
-
color: var(--bs-blue
|
|
122
|
+
color: var(--bs-ink-blue);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/* Hover or data-selected for negative + 2-col/3-col/description variants */
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
.bs-dropdown-options :where(li[data-variant~="negative"]:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
130
130
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
131
131
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
132
|
-
color: var(--bs-red
|
|
132
|
+
color: var(--bs-ink-red);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/* List option keyboard navigation focus */
|
|
@@ -57,15 +57,20 @@ and issues with box-sizing
|
|
|
57
57
|
flex-shrink: 0;
|
|
58
58
|
position: relative;
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
.bs-input-addon > :where([data-part="main"], .bs-input-addon, bs-input, .bs-input),
|
|
60
62
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input, .bs-input) {
|
|
61
63
|
flex-grow: 1;
|
|
62
64
|
flex-shrink: 1;
|
|
63
65
|
}
|
|
66
|
+
|
|
67
|
+
.bs-input-addon > :where([data-part="main"]) > :where(input, select),
|
|
64
68
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"])) > :where(input, select) {
|
|
65
69
|
width: 100%;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
.bs-input-addon > *:where(:not(.bs-input-addon)) {
|
|
73
|
+
align-items: center;
|
|
69
74
|
border-width: 0px;
|
|
70
75
|
display: flex;
|
|
71
76
|
height: 100%;
|
|
@@ -105,14 +110,14 @@ and issues with box-sizing
|
|
|
105
110
|
--input-addon-nested-border: var(--bs-violet-lightest);
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within)),
|
|
109
|
-
.bs-input-addon > :where(:not(:last-child, :focus-within))::after {
|
|
113
|
+
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within, [data-part="right"])),
|
|
114
|
+
.bs-input-addon > :where(:not(:last-child, :focus-within, [data-part="right"]))::after {
|
|
110
115
|
border-top-right-radius: 0;
|
|
111
116
|
border-bottom-right-radius: 0;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
|
-
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within)),
|
|
115
|
-
.bs-input-addon > :where(:not(:first-child, :focus-within))::after {
|
|
119
|
+
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within, [data-part="left"])),
|
|
120
|
+
.bs-input-addon > :where(:not(:first-child, :focus-within, [data-part="left"]))::after {
|
|
116
121
|
border-top-left-radius: 0;
|
|
117
122
|
border-bottom-left-radius: 0;
|
|
118
123
|
}
|
|
@@ -136,6 +141,37 @@ and issues with box-sizing
|
|
|
136
141
|
border-radius: 0px;
|
|
137
142
|
}
|
|
138
143
|
|
|
144
|
+
/* -------- Auto Padding for Children, Auto Sizing Icons -------- */
|
|
145
|
+
/* Opt in for now, for backwards compatibility */
|
|
146
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > *:where(:not(.bs-input-addon)) {
|
|
147
|
+
padding-inline: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="left"]:not(.bs-input-addon)),
|
|
151
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:first-child:not(.bs-input-addon)) {
|
|
152
|
+
padding-inline: 0.75rem 0.5rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="right"]:not(.bs-input-addon)),
|
|
156
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:last-child:not(.bs-input-addon)) {
|
|
157
|
+
padding-inline: 0.5rem 0.75rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.bs-input-addon:where([data-autopad="true"][data-multifocus]) > *:where(:not(.bs-input-addon)) {
|
|
161
|
+
padding-inline: 0.75rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) > :where(:not([data-autowidth], [data-part="main"], .bs-input-addon)) {
|
|
165
|
+
height: 100%;
|
|
166
|
+
min-width: min-content;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) :where(svg) {
|
|
170
|
+
height: auto;
|
|
171
|
+
max-height: 100%;
|
|
172
|
+
width: 1rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
139
175
|
/* -------- Hover styles -------- */
|
|
140
176
|
.bs-input-addon:hover {
|
|
141
177
|
--input-bg: var(--bs-bg-input-hover);
|
|
@@ -223,5 +259,36 @@ and issues with box-sizing
|
|
|
223
259
|
margin-top: 0.25rem;
|
|
224
260
|
}
|
|
225
261
|
|
|
262
|
+
/* ----------------- Variant: Combobox Input ----------------- */
|
|
263
|
+
/*
|
|
264
|
+
Combobox variant also shares styles with data-autopad="true" &
|
|
265
|
+
data-autosize-icons="true" - see above
|
|
266
|
+
*/
|
|
267
|
+
.bs-input-addon:where([data-variant="combobox"]) {
|
|
268
|
+
--input-addon-nested-border: transparent;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button svg) {
|
|
272
|
+
transform: var(--icon-btn-transform, none);
|
|
273
|
+
transition: var(--bs-trans-rotate180);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button[data-open="true"]) {
|
|
277
|
+
--icon-btn-transform: rotate(180deg);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.bs-input-addon:where([data-variant="combobox"][data-disabled="true"]) > :where(button) {
|
|
281
|
+
opacity: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button) {
|
|
285
|
+
border-radius: .25rem;
|
|
286
|
+
outline: 1px solid transparent;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button:focus-visible:not([data-open])) {
|
|
290
|
+
outline: 1px solid var(--focus-border);
|
|
291
|
+
}
|
|
292
|
+
|
|
226
293
|
}
|
|
227
294
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
background-color: var(--bs-bg-base-elevated);
|
|
11
11
|
border-radius: 4px;
|
|
12
12
|
box-shadow: var(--bs-shadow-contentLowCenter);
|
|
13
|
-
color: var(--bs-violet
|
|
13
|
+
color: var(--bs-ink-violet);
|
|
14
14
|
display: flex;
|
|
15
15
|
font-size: var(--bs-text-sm);
|
|
16
16
|
justify-content: center;
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
.bs-dropdown-options :where(li:not([role="separator"]):hover),
|
|
97
97
|
.bs-dropdown-options :where(li[data-selected]) {
|
|
98
98
|
background-color: var(--bs-bg-medium);
|
|
99
|
-
border-left: 4px solid var(--bs-blue
|
|
100
|
-
color: var(--bs-blue
|
|
99
|
+
border-left: 4px solid var(--bs-ink-blue);
|
|
100
|
+
color: var(--bs-ink-blue);
|
|
101
101
|
outline: none;
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-selected]:hover) {
|
|
108
108
|
/* 25% alpha version of --bs-red-400 */
|
|
109
109
|
background-color: rgba(248, 169, 170, 0.25);
|
|
110
|
-
border-left: 4px solid var(--bs-red
|
|
111
|
-
color: var(--bs-red
|
|
110
|
+
border-left: 4px solid var(--bs-ink-red);
|
|
111
|
+
color: var(--bs-ink-red);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/* Hover or data-selected for 2-col/3-col/description variants */
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
.bs-dropdown-options :where(li:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
119
119
|
.bs-dropdown-options :where(li[data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
120
120
|
.bs-dropdown-options :where(li[data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
121
|
-
color: var(--bs-blue
|
|
121
|
+
color: var(--bs-ink-blue);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/* Hover or data-selected for negative + 2-col/3-col/description variants */
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
.bs-dropdown-options :where(li[data-variant~="negative"]:not([data-variant*="-col"])[data-variant~="description"][data-selected] > :nth-child(2)),
|
|
129
129
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="2-col"][data-variant~="description"][data-selected] > :nth-child(3)),
|
|
130
130
|
.bs-dropdown-options :where(li[data-variant~="negative"][data-variant~="3-col"][data-variant~="description"][data-selected] > :nth-child(4)) {
|
|
131
|
-
color: var(--bs-red
|
|
131
|
+
color: var(--bs-ink-red);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/* List option keyboard navigation focus */
|
|
@@ -56,15 +56,20 @@ and issues with box-sizing
|
|
|
56
56
|
flex-shrink: 0;
|
|
57
57
|
position: relative;
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
.bs-input-addon > :where([data-part="main"], .bs-input-addon, bs-input, .bs-input),
|
|
59
61
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"]), .bs-input-addon, bs-input, .bs-input) {
|
|
60
62
|
flex-grow: 1;
|
|
61
63
|
flex-shrink: 1;
|
|
62
64
|
}
|
|
65
|
+
|
|
66
|
+
.bs-input-addon > :where([data-part="main"]) > :where(input, select),
|
|
63
67
|
.bs-input-addon > :where([data-autowidth]:not([data-autowidth="false"])) > :where(input, select) {
|
|
64
68
|
width: 100%;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
.bs-input-addon > *:where(:not(.bs-input-addon)) {
|
|
72
|
+
align-items: center;
|
|
68
73
|
border-width: 0px;
|
|
69
74
|
display: flex;
|
|
70
75
|
height: 100%;
|
|
@@ -104,14 +109,14 @@ and issues with box-sizing
|
|
|
104
109
|
--input-addon-nested-border: var(--bs-violet-lightest);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
|
-
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within)),
|
|
108
|
-
.bs-input-addon > :where(:not(:last-child, :focus-within))::after {
|
|
112
|
+
.bs-input-addon > :where(.bs-input-addon:not(:last-child, :focus-within, [data-part="right"])),
|
|
113
|
+
.bs-input-addon > :where(:not(:last-child, :focus-within, [data-part="right"]))::after {
|
|
109
114
|
border-top-right-radius: 0;
|
|
110
115
|
border-bottom-right-radius: 0;
|
|
111
116
|
}
|
|
112
117
|
|
|
113
|
-
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within)),
|
|
114
|
-
.bs-input-addon > :where(:not(:first-child, :focus-within))::after {
|
|
118
|
+
.bs-input-addon > :where(.bs-input-addon:not(:first-child, :focus-within, [data-part="left"])),
|
|
119
|
+
.bs-input-addon > :where(:not(:first-child, :focus-within, [data-part="left"]))::after {
|
|
115
120
|
border-top-left-radius: 0;
|
|
116
121
|
border-bottom-left-radius: 0;
|
|
117
122
|
}
|
|
@@ -135,6 +140,37 @@ and issues with box-sizing
|
|
|
135
140
|
border-radius: 0px;
|
|
136
141
|
}
|
|
137
142
|
|
|
143
|
+
/* -------- Auto Padding for Children, Auto Sizing Icons -------- */
|
|
144
|
+
/* Opt in for now, for backwards compatibility */
|
|
145
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > *:where(:not(.bs-input-addon)) {
|
|
146
|
+
padding-inline: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="left"]:not(.bs-input-addon)),
|
|
150
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:first-child:not(.bs-input-addon)) {
|
|
151
|
+
padding-inline: 0.75rem 0.5rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where([data-part="right"]:not(.bs-input-addon)),
|
|
155
|
+
.bs-input-addon:where([data-autopad="true"], [data-variant="combobox"]) > :where(:last-child:not(.bs-input-addon)) {
|
|
156
|
+
padding-inline: 0.5rem 0.75rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.bs-input-addon:where([data-autopad="true"][data-multifocus]) > *:where(:not(.bs-input-addon)) {
|
|
160
|
+
padding-inline: 0.75rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) > :where(:not([data-autowidth], [data-part="main"], .bs-input-addon)) {
|
|
164
|
+
height: 100%;
|
|
165
|
+
min-width: min-content;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bs-input-addon:where([data-autosize-icons="true"], [data-variant="combobox"]) :where(svg) {
|
|
169
|
+
height: auto;
|
|
170
|
+
max-height: 100%;
|
|
171
|
+
width: 1rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
138
174
|
/* -------- Hover styles -------- */
|
|
139
175
|
.bs-input-addon:hover {
|
|
140
176
|
--input-bg: var(--bs-bg-input-hover);
|
|
@@ -221,3 +257,34 @@ and issues with box-sizing
|
|
|
221
257
|
:where(label, .bs-label, bs-label) + .bs-input-addon {
|
|
222
258
|
margin-top: 0.25rem;
|
|
223
259
|
}
|
|
260
|
+
|
|
261
|
+
/* ----------------- Variant: Combobox Input ----------------- */
|
|
262
|
+
/*
|
|
263
|
+
Combobox variant also shares styles with data-autopad="true" &
|
|
264
|
+
data-autosize-icons="true" - see above
|
|
265
|
+
*/
|
|
266
|
+
.bs-input-addon:where([data-variant="combobox"]) {
|
|
267
|
+
--input-addon-nested-border: transparent;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button svg) {
|
|
271
|
+
transform: var(--icon-btn-transform, none);
|
|
272
|
+
transition: var(--bs-trans-rotate180);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.bs-input-addon:where([data-variant="combobox"]) :where(button[data-open="true"]) {
|
|
276
|
+
--icon-btn-transform: rotate(180deg);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.bs-input-addon:where([data-variant="combobox"][data-disabled="true"]) > :where(button) {
|
|
280
|
+
opacity: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button) {
|
|
284
|
+
border-radius: .25rem;
|
|
285
|
+
outline: 1px solid transparent;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.bs-input-addon:where([data-variant="combobox"]) > :where(button:focus-visible:not([data-open])) {
|
|
289
|
+
outline: 1px solid var(--focus-border);
|
|
290
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background-color: var(--bs-bg-base-elevated);
|
|
10
10
|
border-radius: 4px;
|
|
11
11
|
box-shadow: var(--bs-shadow-contentLowCenter);
|
|
12
|
-
color: var(--bs-violet
|
|
12
|
+
color: var(--bs-ink-violet);
|
|
13
13
|
display: flex;
|
|
14
14
|
font-size: var(--bs-text-sm);
|
|
15
15
|
justify-content: center;
|