@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.
@@ -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-base);
101
- color: var(--bs-blue-base);
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-500);
112
- color: var(--bs-red-500);
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-base);
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-500);
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
 
@@ -31,6 +31,9 @@
31
31
 
32
32
  .bs-modal :where(.modal-title) {
33
33
  flex-grow: 1;
34
+ font-size: var(--bs-text-md);
35
+ font-weight: 600;
36
+ margin: 0;
34
37
  }
35
38
 
36
39
  .bs-modal :where(.only-close-button-modal-header) {
@@ -20,6 +20,7 @@
20
20
  justify-content: var(--tab-justify);
21
21
  line-height: 1.5;
22
22
  opacity: var(--tab-list-opacity);
23
+ overflow: hidden;
23
24
  position: relative;
24
25
  width: 100%;
25
26
  }
@@ -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-base);
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-base);
100
- color: var(--bs-blue-base);
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-500);
111
- color: var(--bs-red-500);
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-base);
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-500);
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
+ }
@@ -30,6 +30,9 @@
30
30
 
31
31
  .bs-modal :where(.modal-title) {
32
32
  flex-grow: 1;
33
+ font-size: var(--bs-text-md);
34
+ font-weight: 600;
35
+ margin: 0;
33
36
  }
34
37
 
35
38
  .bs-modal :where(.only-close-button-modal-header) {
@@ -19,6 +19,7 @@
19
19
  justify-content: var(--tab-justify);
20
20
  line-height: 1.5;
21
21
  opacity: var(--tab-list-opacity);
22
+ overflow: hidden;
22
23
  position: relative;
23
24
  width: 100%;
24
25
  }
@@ -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-base);
12
+ color: var(--bs-ink-violet);
13
13
  display: flex;
14
14
  font-size: var(--bs-text-sm);
15
15
  justify-content: center;