@flytedan/flytebot-design-system 0.51.4 → 0.51.6
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.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +46 -18
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);
|
|
@@ -3062,11 +3066,13 @@
|
|
|
3062
3066
|
display: none;
|
|
3063
3067
|
}
|
|
3064
3068
|
/* The Filter button, and Clear all right after it. Beside each other while the main column has
|
|
3065
|
-
room for both and a chip;
|
|
3066
|
-
|
|
3067
|
-
exactly as wide as what is in it either way, so
|
|
3068
|
-
switch is a container query on the main column, not
|
|
3069
|
-
its cap as its width and leaves a hole beside the
|
|
3069
|
+
room for both and a chip; when the actions beside the main column leave it under 30rem (the two,
|
|
3070
|
+
a gap and one chip at its max) Clear all stacks under the button, still in this column and
|
|
3071
|
+
never on a row of the chips' own. The column is exactly as wide as what is in it either way, so
|
|
3072
|
+
the chips always start one gap from it. The switch is a container query on the main column, not
|
|
3073
|
+
a wrapping flex row: a wrapped row takes its cap as its width and leaves a hole beside the
|
|
3074
|
+
button. A bar under 30rem wide is the phone layout below, which puts Clear all beside the
|
|
3075
|
+
button again. */
|
|
3070
3076
|
.fd-filterbar-main {
|
|
3071
3077
|
container-type: inline-size;
|
|
3072
3078
|
}
|
|
@@ -3076,7 +3082,7 @@
|
|
|
3076
3082
|
align-items: center;
|
|
3077
3083
|
gap: var(--s-sm) var(--s-md);
|
|
3078
3084
|
}
|
|
3079
|
-
@container (
|
|
3085
|
+
@container (width < 30rem) {
|
|
3080
3086
|
.fd-filterbar-trigger {
|
|
3081
3087
|
flex-direction: column;
|
|
3082
3088
|
align-items: flex-start;
|
|
@@ -3111,6 +3117,29 @@
|
|
|
3111
3117
|
gap: var(--s-sm) var(--s-md);
|
|
3112
3118
|
max-width: 100%;
|
|
3113
3119
|
}
|
|
3120
|
+
/* A phone-width bar: the main column is the whole row, stacked, with Filter and Clear all side
|
|
3121
|
+
by side on its first line and the chips wrapping underneath at up to their max width each.
|
|
3122
|
+
It follows the rules it overrides so the two never tie on source order. */
|
|
3123
|
+
@container fd-filterbar (width < 30rem) {
|
|
3124
|
+
.fd-filterbar-main {
|
|
3125
|
+
flex: 1 1 100%;
|
|
3126
|
+
flex-direction: column;
|
|
3127
|
+
align-items: stretch;
|
|
3128
|
+
}
|
|
3129
|
+
.fd-filterbar-trigger {
|
|
3130
|
+
flex-direction: row;
|
|
3131
|
+
flex-wrap: wrap;
|
|
3132
|
+
align-items: center;
|
|
3133
|
+
}
|
|
3134
|
+
.fd-filterbar-chips {
|
|
3135
|
+
flex: none;
|
|
3136
|
+
min-height: 0;
|
|
3137
|
+
}
|
|
3138
|
+
/* No chips, no row: an empty chips area would still add a row gap under the button. */
|
|
3139
|
+
.fd-filterbar-chips:empty {
|
|
3140
|
+
display: none;
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3114
3143
|
/* MP-282: seen live at 375px — a chip whose value is long (a full campaign name) painted
|
|
3115
3144
|
637px wide inside a 297px-wide bar instead of respecting it, because .fd-tag is `flex:
|
|
3116
3145
|
none; white-space: nowrap; max-width: none` with nothing to clamp it, and the ONLY thing
|
|
@@ -7511,7 +7540,6 @@ button.fd-erow-metric:focus-visible {
|
|
|
7511
7540
|
display:flex;
|
|
7512
7541
|
flex-direction:column-reverse;
|
|
7513
7542
|
gap:10px;
|
|
7514
|
-
pointer-events:none;
|
|
7515
7543
|
}
|
|
7516
7544
|
.fd-job-tray>.fd-job-card{pointer-events:auto}
|
|
7517
7545
|
.fd-job-card{
|