@flytedan/flytebot-design-system 0.11.3 → 0.11.4
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/index.cjs +3 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +52 -1
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -217,7 +217,12 @@
|
|
|
217
217
|
background: var(--btn-solid-bg-hover);
|
|
218
218
|
color: var(--btn-solid-ink);
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
/* Pressed restates every selector hover uses: a toned `:hover` is three classes deep, so a
|
|
221
|
+
bare `.fd-btn-icon-solid:active` loses to it and a pressed add/remove button would keep
|
|
222
|
+
its hover fill. */
|
|
223
|
+
.fd-btn-icon-solid:active,
|
|
224
|
+
.fd-btn-icon-solid.is-ok:active,
|
|
225
|
+
.fd-btn-icon-solid.is-danger:active {
|
|
221
226
|
background: var(--btn-solid-bg-active);
|
|
222
227
|
box-shadow: none;
|
|
223
228
|
}
|
|
@@ -4057,6 +4062,7 @@
|
|
|
4057
4062
|
align-items: center;
|
|
4058
4063
|
gap: 4px;
|
|
4059
4064
|
flex: none;
|
|
4065
|
+
width: var(--erow-metric-w);
|
|
4060
4066
|
font-size: var(--overline-size);
|
|
4061
4067
|
color: var(--text-2);
|
|
4062
4068
|
white-space: nowrap;
|
|
@@ -4111,6 +4117,21 @@ button.fd-erow-metric:focus-visible {
|
|
|
4111
4117
|
font-size: 18px;
|
|
4112
4118
|
}
|
|
4113
4119
|
}
|
|
4120
|
+
/* On a narrow screen the fixed column widths give way to the figures themselves. A phone
|
|
4121
|
+
row has roughly 170px beside its name's grip and its 44px action, and a strip of three
|
|
4122
|
+
columns sized for desktop totals is 270px, so fixed widths there do not clip "the tail":
|
|
4123
|
+
they hide a whole figure, on every row, with nothing to say it exists. Content-sized
|
|
4124
|
+
cells with a gap keep every figure visible; the cost is that columns can drift a few px
|
|
4125
|
+
row to row, which on a phone is the smaller loss. Wider than this, cells keep their
|
|
4126
|
+
fixed widths and the aligned-column contract above holds exactly. */
|
|
4127
|
+
@media (max-width: 768px) {
|
|
4128
|
+
.fd-erow-metrics {
|
|
4129
|
+
gap: 10px;
|
|
4130
|
+
}
|
|
4131
|
+
.fd-erow-metric {
|
|
4132
|
+
width: auto;
|
|
4133
|
+
}
|
|
4134
|
+
}
|
|
4114
4135
|
.fd-erow-accessory {
|
|
4115
4136
|
margin-left: auto;
|
|
4116
4137
|
flex: none;
|
|
@@ -4137,6 +4158,36 @@ button.fd-erow-metric:focus-visible {
|
|
|
4137
4158
|
opacity: 0.6;
|
|
4138
4159
|
}
|
|
4139
4160
|
|
|
4161
|
+
/* TransferList: two panels side by side, each its own bordered surface. On a narrow screen
|
|
4162
|
+
the panels stack instead: two lists sharing a phone's width get ~140px each, which is
|
|
4163
|
+
too narrow for a search field beside its sort button or for a row's name beside its
|
|
4164
|
+
figures and action, so a list you cannot read is traded for one you scroll past. */
|
|
4165
|
+
.fd-tlist {
|
|
4166
|
+
display: flex;
|
|
4167
|
+
gap: 16px;
|
|
4168
|
+
align-items: flex-start;
|
|
4169
|
+
}
|
|
4170
|
+
.fd-tlist-side {
|
|
4171
|
+
flex: 1;
|
|
4172
|
+
min-width: 0;
|
|
4173
|
+
display: flex;
|
|
4174
|
+
flex-direction: column;
|
|
4175
|
+
gap: 8px;
|
|
4176
|
+
padding: 10px;
|
|
4177
|
+
border-radius: 10px;
|
|
4178
|
+
border: 1px solid var(--border);
|
|
4179
|
+
background: var(--surface);
|
|
4180
|
+
position: relative;
|
|
4181
|
+
}
|
|
4182
|
+
.fd-tlist-side.is-drop-target {
|
|
4183
|
+
border-color: var(--brand);
|
|
4184
|
+
}
|
|
4185
|
+
@media (max-width: 768px) {
|
|
4186
|
+
.fd-tlist {
|
|
4187
|
+
flex-direction: column;
|
|
4188
|
+
align-items: stretch;
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4140
4191
|
/* TransferList's full-panel drop overlay — extends the existing subtle
|
|
4141
4192
|
dragOverSide border-color change into real visual weight: a dashed blue
|
|
4142
4193
|
border and a translucent brand scrim across the WHOLE target side, with
|