@flytedan/flytebot-design-system 0.65.0 → 0.67.0
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 +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +52 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +54 -0
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -1994,6 +1994,44 @@
|
|
|
1994
1994
|
.fd-stat-delta-neutral {
|
|
1995
1995
|
color: var(--text-muted);
|
|
1996
1996
|
}
|
|
1997
|
+
/* MP-311: a pressable tile (StatTile with `onPress`) is a real <button> that filters a list.
|
|
1998
|
+
* Reset the button chrome so it reads as the same tile, then give it hover, press, focus,
|
|
1999
|
+
* pressed and disabled states that only touch border, fill and shadow, never size, so nothing
|
|
2000
|
+
* reflows. `:focus-visible` is restated after `:hover`/`:active` for the reason .fd-card-interactive
|
|
2001
|
+
* gives above (a hovered, focused tile must still show its ring). A pressed tile uses the brand
|
|
2002
|
+
* tokens .fd-tag[aria-pressed] uses, so light, dark and high contrast all resolve. */
|
|
2003
|
+
.fd-stat-pressable {
|
|
2004
|
+
display: block;
|
|
2005
|
+
width: 100%;
|
|
2006
|
+
text-align: left;
|
|
2007
|
+
color: inherit;
|
|
2008
|
+
font: inherit;
|
|
2009
|
+
cursor: pointer;
|
|
2010
|
+
transition:
|
|
2011
|
+
background var(--dur-base) var(--ease),
|
|
2012
|
+
border-color var(--dur-base) var(--ease),
|
|
2013
|
+
box-shadow var(--dur-base) var(--ease);
|
|
2014
|
+
}
|
|
2015
|
+
.fd-stat-pressable:hover {
|
|
2016
|
+
box-shadow: var(--e-2);
|
|
2017
|
+
border-color: var(--border-strong);
|
|
2018
|
+
}
|
|
2019
|
+
.fd-stat-pressable:active {
|
|
2020
|
+
box-shadow: var(--e-1);
|
|
2021
|
+
border-color: var(--border-strong);
|
|
2022
|
+
}
|
|
2023
|
+
.fd-stat-pressable[aria-pressed="true"] {
|
|
2024
|
+
background: var(--surface-brand);
|
|
2025
|
+
border-color: var(--border-brand);
|
|
2026
|
+
}
|
|
2027
|
+
.fd-stat-pressable:focus-visible {
|
|
2028
|
+
box-shadow: var(--focus-ring);
|
|
2029
|
+
}
|
|
2030
|
+
.fd-stat-pressable:disabled {
|
|
2031
|
+
cursor: not-allowed;
|
|
2032
|
+
opacity: 0.6;
|
|
2033
|
+
box-shadow: none;
|
|
2034
|
+
}
|
|
1997
2035
|
|
|
1998
2036
|
/* ============ Meter / progress ============ */
|
|
1999
2037
|
.fd-meterbar {
|
|
@@ -3383,6 +3421,22 @@
|
|
|
3383
3421
|
border-color: var(--border-brand);
|
|
3384
3422
|
cursor: text;
|
|
3385
3423
|
}
|
|
3424
|
+
/* MP-312: a chip whose filter the host set (a "fixed" field): the selected chip's look, but not a
|
|
3425
|
+
control. Only its x is one, so no hover change and no pointer on the label. */
|
|
3426
|
+
.fd-filterbar-fixed {
|
|
3427
|
+
background: var(--surface-brand);
|
|
3428
|
+
border-color: var(--border-brand);
|
|
3429
|
+
color: var(--text-on-surface-brand);
|
|
3430
|
+
cursor: default;
|
|
3431
|
+
}
|
|
3432
|
+
.fd-filterbar-fixed:hover {
|
|
3433
|
+
background: var(--surface-brand);
|
|
3434
|
+
color: var(--text-on-surface-brand);
|
|
3435
|
+
}
|
|
3436
|
+
.fd-filterbar-fixed .fd-tag-remove:focus-visible {
|
|
3437
|
+
outline: none;
|
|
3438
|
+
box-shadow: var(--focus-ring);
|
|
3439
|
+
}
|
|
3386
3440
|
.fd-filterbar-text-input {
|
|
3387
3441
|
all: unset;
|
|
3388
3442
|
min-width: 90px;
|