@sanity/ui 2.14.4-canary.0 → 2.14.4-canary.2

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.
@@ -17,7 +17,7 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
17
17
  opacity: 1,
18
18
  transition: {
19
19
  when: "beforeChildren",
20
- duration: 0.09999999999999999
20
+ duration: 0.1
21
21
  }
22
22
  },
23
23
  scaleIn: {
@@ -37,7 +37,7 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
37
37
  },
38
38
  transition: {
39
39
  type: "spring",
40
- visualDuration: 0.3,
40
+ visualDuration: 0.2,
41
41
  bounce: 0.25
42
42
  }
43
43
  };
@@ -4407,9 +4407,9 @@ function useDelayedState(initialState) {
4407
4407
  const action = () => {
4408
4408
  setState(nextState);
4409
4409
  };
4410
- if (!delay)
4410
+ if (delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), !delay)
4411
4411
  return action();
4412
- delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), delayedAction.current = setTimeout(action, delay);
4412
+ delayedAction.current = setTimeout(action, delay);
4413
4413
  }, $[0] = t0) : t0 = $[0];
4414
4414
  const onStateChange = t0;
4415
4415
  let t1;