@flytedan/flytebot-design-system 0.12.0 → 0.12.3
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 +29 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +49 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +18 -4
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -263,6 +263,9 @@
|
|
|
263
263
|
border-radius: var(--r-md);
|
|
264
264
|
padding: 3px;
|
|
265
265
|
gap: 3px;
|
|
266
|
+
/* Options can't shrink below their longest word; wrap onto a second row rather
|
|
267
|
+
than letting a clipping ancestor (Card, Collapsible) cut the last one off. */
|
|
268
|
+
flex-wrap: wrap;
|
|
266
269
|
}
|
|
267
270
|
.fd-seg button {
|
|
268
271
|
border: 0;
|
|
@@ -823,6 +826,11 @@
|
|
|
823
826
|
font-weight: var(--w-semibold);
|
|
824
827
|
white-space: nowrap;
|
|
825
828
|
border: 1px solid transparent;
|
|
829
|
+
/* One line, capped at the container: a long label ellipsizes instead of being
|
|
830
|
+
clipped out of sight. Callers with unbounded content pass a `title`. */
|
|
831
|
+
max-width: 100%;
|
|
832
|
+
overflow: hidden;
|
|
833
|
+
text-overflow: ellipsis;
|
|
826
834
|
}
|
|
827
835
|
.fd-badge-neutral {
|
|
828
836
|
background: var(--surface-3);
|
|
@@ -1273,7 +1281,9 @@
|
|
|
1273
1281
|
border: 1px solid var(--warn-border);
|
|
1274
1282
|
font-size: var(--body-sm-size);
|
|
1275
1283
|
font-weight: var(--w-bold);
|
|
1276
|
-
|
|
1284
|
+
/* Wraps at word boundaries and never exceeds its container: the bypassed veil's
|
|
1285
|
+
bar has no clipping ancestor, so a one-line long label would widen the shell. */
|
|
1286
|
+
max-width: 100%;
|
|
1277
1287
|
}
|
|
1278
1288
|
.fd-soon-badge .ph {
|
|
1279
1289
|
font-size: 14px;
|
|
@@ -2318,6 +2328,8 @@
|
|
|
2318
2328
|
border-top: 1px solid var(--border);
|
|
2319
2329
|
background: var(--surface-2);
|
|
2320
2330
|
}
|
|
2331
|
+
/* z-index below is a resting default only — Drawer.tsx sets it (and its scrim's) inline
|
|
2332
|
+
via useOverlayLayer(DRAWER_BASE), which wins over this rule (see Popover.tsx). */
|
|
2321
2333
|
.fd-drawer {
|
|
2322
2334
|
position: fixed;
|
|
2323
2335
|
top: 0;
|
|
@@ -2341,9 +2353,11 @@
|
|
|
2341
2353
|
min-width: 0;
|
|
2342
2354
|
}
|
|
2343
2355
|
/* Portaled to document.body and placed by Tooltip.tsx (fixed, anchored geometry), so no
|
|
2344
|
-
overflow: hidden ancestor of the trigger can clip it.
|
|
2345
|
-
|
|
2346
|
-
|
|
2356
|
+
overflow: hidden ancestor of the trigger can clip it. Short labels stay on one line
|
|
2357
|
+
(max-content); a sentence wraps at a readable measure instead of running off-screen.
|
|
2358
|
+
The z-index below is a resting default only — Tooltip.tsx always sets it inline via
|
|
2359
|
+
useOverlayLayer(TOOLTIP_BASE), which wins over this rule and is what actually keeps a
|
|
2360
|
+
tip above whatever popover its trigger happens to be nested inside (see Popover.tsx). */
|
|
2347
2361
|
.fd-tooltip {
|
|
2348
2362
|
position: fixed;
|
|
2349
2363
|
z-index: 150;
|