@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.
@@ -23,7 +23,7 @@ const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = h
23
23
  opacity: 1,
24
24
  transition: {
25
25
  when: "beforeChildren",
26
- duration: 0.09999999999999999
26
+ duration: 0.1
27
27
  }
28
28
  },
29
29
  scaleIn: {
@@ -43,7 +43,7 @@ const createColorTheme = createColorTheme$1, hexToRgb = hexToRgb$1, hslToRgb = h
43
43
  },
44
44
  transition: {
45
45
  type: "spring",
46
- visualDuration: 0.3,
46
+ visualDuration: 0.2,
47
47
  bounce: 0.25
48
48
  }
49
49
  };
@@ -4411,9 +4411,9 @@ function useDelayedState(initialState) {
4411
4411
  const action = () => {
4412
4412
  setState(nextState);
4413
4413
  };
4414
- if (!delay)
4414
+ if (delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), !delay)
4415
4415
  return action();
4416
- delayedAction.current && (clearTimeout(delayedAction.current), delayedAction.current = void 0), delayedAction.current = setTimeout(action, delay);
4416
+ delayedAction.current = setTimeout(action, delay);
4417
4417
  }, $[0] = t0) : t0 = $[0];
4418
4418
  const onStateChange = t0;
4419
4419
  let t1;