@flytedan/flytebot-design-system 0.50.0 → 0.50.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +32 -19
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -1882,13 +1882,23 @@
|
|
|
1882
1882
|
min-width: 0;
|
|
1883
1883
|
overflow: hidden;
|
|
1884
1884
|
}
|
|
1885
|
+
/* The figure and its delta share a line while both fit; when the tile is too narrow for
|
|
1886
|
+
* both, the delta wraps onto its own line under the figure. Neither is ever clipped or
|
|
1887
|
+
* shrunk: each is one unbreakable unit (nowrap) and only the gap between them yields. */
|
|
1885
1888
|
.fd-stat-top {
|
|
1886
1889
|
display: flex;
|
|
1890
|
+
flex-wrap: wrap;
|
|
1887
1891
|
align-items: baseline;
|
|
1888
|
-
gap: 8px;
|
|
1889
|
-
|
|
1892
|
+
column-gap: 8px;
|
|
1893
|
+
row-gap: 2px;
|
|
1890
1894
|
min-width: 0;
|
|
1891
1895
|
}
|
|
1896
|
+
.fd-stat-delta {
|
|
1897
|
+
flex: none;
|
|
1898
|
+
font-weight: 600;
|
|
1899
|
+
font-size: var(--body-sm-size);
|
|
1900
|
+
white-space: nowrap;
|
|
1901
|
+
}
|
|
1892
1902
|
.fd-stat-sub {
|
|
1893
1903
|
/* MP-141: this is explanatory copy ("on every funded campus, at minimum"),
|
|
1894
1904
|
* never a user-data identifier — per the kit's truncation rule (see this
|
|
@@ -4036,28 +4046,31 @@
|
|
|
4036
4046
|
}
|
|
4037
4047
|
|
|
4038
4048
|
/* BarList */
|
|
4049
|
+
/* One shared column set for the whole list, so every row's label, bar, value and percent
|
|
4050
|
+
line up. The label column is as wide as the widest label (capped at 40% of the list, past
|
|
4051
|
+
which a long label ellipsizes and exposes its full text via `title`), so a short label such
|
|
4052
|
+
as a date is always shown whole instead of being cut to a fixed share of the row. Each level
|
|
4053
|
+
between the list and the cells (item, Tooltip anchor, button) is a subgrid over those same
|
|
4054
|
+
columns. */
|
|
4039
4055
|
.fd-barlist-list {
|
|
4040
4056
|
list-style: none;
|
|
4041
4057
|
margin: 0;
|
|
4042
4058
|
padding: 0;
|
|
4043
|
-
display:
|
|
4044
|
-
|
|
4045
|
-
gap:
|
|
4046
|
-
|
|
4047
|
-
/* Tooltip's own trigger wrapper is an inline-flex span sized to its content (so an icon
|
|
4048
|
-
trigger elsewhere in the kit hugs the icon) — here the trigger IS the whole row, so it
|
|
4049
|
-
has to fill the row's width instead of shrink-wrapping it, or every column past the
|
|
4050
|
-
label collapses to min-content. */
|
|
4051
|
-
.fd-barlist-row .fd-tooltip-anchor {
|
|
4052
|
-
display: block;
|
|
4053
|
-
width: 100%;
|
|
4059
|
+
display: grid;
|
|
4060
|
+
grid-template-columns: fit-content(40%) minmax(48px, 1fr) max-content max-content;
|
|
4061
|
+
column-gap: 10px;
|
|
4062
|
+
row-gap: 2px;
|
|
4054
4063
|
}
|
|
4064
|
+
.fd-barlist-row,
|
|
4065
|
+
.fd-barlist-row .fd-tooltip-anchor,
|
|
4055
4066
|
.fd-barlist-btn {
|
|
4056
4067
|
display: grid;
|
|
4057
|
-
grid-
|
|
4068
|
+
grid-column: 1 / -1;
|
|
4069
|
+
grid-template-columns: subgrid;
|
|
4070
|
+
min-width: 0;
|
|
4071
|
+
}
|
|
4072
|
+
.fd-barlist-btn {
|
|
4058
4073
|
align-items: center;
|
|
4059
|
-
gap: 10px;
|
|
4060
|
-
width: 100%;
|
|
4061
4074
|
border: none;
|
|
4062
4075
|
background: none;
|
|
4063
4076
|
padding: 6px 4px;
|
|
@@ -4109,9 +4122,9 @@
|
|
|
4109
4122
|
text-align: right;
|
|
4110
4123
|
}
|
|
4111
4124
|
@media (max-width: 480px) {
|
|
4112
|
-
.fd-barlist-
|
|
4113
|
-
grid-template-columns: minmax(
|
|
4114
|
-
gap: 6px;
|
|
4125
|
+
.fd-barlist-list {
|
|
4126
|
+
grid-template-columns: fit-content(40%) minmax(40px, 1fr) max-content;
|
|
4127
|
+
column-gap: 6px;
|
|
4115
4128
|
}
|
|
4116
4129
|
.fd-barlist-pct {
|
|
4117
4130
|
display: none;
|