@flytedan/flytebot-design-system 0.51.4 → 0.51.5
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/package.json +1 -1
- package/styles/components.css +33 -12
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -3023,20 +3023,23 @@
|
|
|
3023
3023
|
}
|
|
3024
3024
|
|
|
3025
3025
|
/* ============ FilterBar (MP-243, SMS-50) ============ */
|
|
3026
|
-
/*
|
|
3027
|
-
(its own column, always first) beside the chips (a wrapping area of their own,
|
|
3028
|
-
left over), and an optional `actions` slot pinned to the right edge
|
|
3029
|
-
The columns top-align, so however many lines the chips wrap onto, the
|
|
3030
|
-
never move. The main column never wraps its two children under each
|
|
3031
|
-
the row is too narrow for main and actions together (main keeps a floor of
|
|
3026
|
+
/* At 30rem and wider the bar is two columns on one wrapping row: the MAIN column, which is the
|
|
3027
|
+
"Filter" trigger (its own column, always first) beside the chips (a wrapping area of their own,
|
|
3028
|
+
taking the room left over), and an optional `actions` slot pinned to the right edge
|
|
3029
|
+
(`margin-left: auto`). The columns top-align, so however many lines the chips wrap onto, the
|
|
3030
|
+
trigger and the actions never move. The main column never wraps its two children under each
|
|
3031
|
+
other; when the row is too narrow for main and actions together (main keeps a floor of
|
|
3032
3032
|
--filterbar-main-min), the actions wrap onto a row of their own and stay right-aligned.
|
|
3033
3033
|
|
|
3034
|
+
Below 30rem (a phone) there is no room for a column beside the button: the main column takes
|
|
3035
|
+
the whole row, the Filter button and Clear all share its first line, the chips wrap underneath
|
|
3036
|
+
on rows of their own, and the actions take the row below that. The switch is a container query
|
|
3037
|
+
on the bar itself, so it follows the room the bar is given, not the viewport.
|
|
3038
|
+
|
|
3034
3039
|
It is a block-level flex box that fills the row it is put in, and `min-width: 0` lets it
|
|
3035
|
-
shrink inside a flex parent instead of forcing that parent wider.
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
takes its width from its container, which is what makes wrapping, and the chips column's
|
|
3039
|
-
own width, well defined.) */
|
|
3040
|
+
shrink inside a flex parent instead of forcing that parent wider. A block-level flex box takes
|
|
3041
|
+
its width from its container, which is what makes wrapping, and the chips column's own width,
|
|
3042
|
+
well defined. */
|
|
3040
3043
|
.fd-filterbar {
|
|
3041
3044
|
--filterbar-main-min: 20rem;
|
|
3042
3045
|
/* The most a chip may take. A longer value is shortened in the middle (MiddleEllipsis). */
|
|
@@ -3047,6 +3050,7 @@
|
|
|
3047
3050
|
align-items: flex-start;
|
|
3048
3051
|
gap: var(--s-sm) var(--s-md);
|
|
3049
3052
|
min-width: 0;
|
|
3053
|
+
container: fd-filterbar / inline-size;
|
|
3050
3054
|
}
|
|
3051
3055
|
.fd-filterbar-main {
|
|
3052
3056
|
flex: 1 1 var(--filterbar-main-min);
|
|
@@ -3111,6 +3115,24 @@
|
|
|
3111
3115
|
gap: var(--s-sm) var(--s-md);
|
|
3112
3116
|
max-width: 100%;
|
|
3113
3117
|
}
|
|
3118
|
+
/* A phone-width bar: the main column is the whole row, stacked, with Filter and Clear all side
|
|
3119
|
+
by side on its first line and the chips wrapping underneath at up to their max width each.
|
|
3120
|
+
It follows the rules it overrides so the two never tie on source order. */
|
|
3121
|
+
@container fd-filterbar (width < 30rem) {
|
|
3122
|
+
.fd-filterbar-main {
|
|
3123
|
+
flex: 1 1 100%;
|
|
3124
|
+
flex-direction: column;
|
|
3125
|
+
align-items: stretch;
|
|
3126
|
+
}
|
|
3127
|
+
.fd-filterbar-trigger {
|
|
3128
|
+
flex-direction: row;
|
|
3129
|
+
flex-wrap: wrap;
|
|
3130
|
+
}
|
|
3131
|
+
.fd-filterbar-chips {
|
|
3132
|
+
flex: none;
|
|
3133
|
+
min-height: 0;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3114
3136
|
/* MP-282: seen live at 375px — a chip whose value is long (a full campaign name) painted
|
|
3115
3137
|
637px wide inside a 297px-wide bar instead of respecting it, because .fd-tag is `flex:
|
|
3116
3138
|
none; white-space: nowrap; max-width: none` with nothing to clamp it, and the ONLY thing
|
|
@@ -7511,7 +7533,6 @@ button.fd-erow-metric:focus-visible {
|
|
|
7511
7533
|
display:flex;
|
|
7512
7534
|
flex-direction:column-reverse;
|
|
7513
7535
|
gap:10px;
|
|
7514
|
-
pointer-events:none;
|
|
7515
7536
|
}
|
|
7516
7537
|
.fd-job-tray>.fd-job-card{pointer-events:auto}
|
|
7517
7538
|
.fd-job-card{
|