@flytedan/flytebot-design-system 0.65.0 → 0.66.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 +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +38 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +38 -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 {
|