@matteoaliano/forest-ui 0.8.8 → 0.8.9

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.mjs CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  toggleColors,
42
42
  warning,
43
43
  widths
44
- } from "./chunk-I3T6PQLZ.mjs";
44
+ } from "./chunk-2XQSGP7X.mjs";
45
45
 
46
46
  // src/provider/ForestProvider.tsx
47
47
  import { useMemo } from "react";
package/dist/theme.js CHANGED
@@ -1053,7 +1053,16 @@ function buildComponents(tokens) {
1053
1053
  "&:hover::before": {
1054
1054
  top: "150%"
1055
1055
  },
1056
+ // Press: collapse the raised top bevel back to a thin edge so the
1057
+ // surface visibly sinks — the button reads as pushed deeper into
1058
+ // the page. Animated by the shared border-width transition above.
1056
1059
  "&:active": {
1060
+ // Snap the press faster than the 300ms hover flip so it feels
1061
+ // like a tactile click rather than a slow settle.
1062
+ transition: "border-width 120ms ease, border-radius 120ms ease, opacity 120ms ease",
1063
+ borderTopWidth: 1,
1064
+ borderTopLeftRadius: radius6.md,
1065
+ borderTopRightRadius: radius6.md,
1057
1066
  opacity: 0.75
1058
1067
  },
1059
1068
  "@media (prefers-reduced-motion: reduce)": {