@basic-ui/material 1.0.0-alpha.4 → 1.0.0-alpha.7

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.
@@ -1298,7 +1298,7 @@ function useRippleHandlers(opts) {
1298
1298
  }, rest);
1299
1299
  }
1300
1300
 
1301
- function useRippleSurface(opts) {
1301
+ function useRippleSurface(opts = {}) {
1302
1302
  let {
1303
1303
  // eslint-disable-next-line prefer-const
1304
1304
  baseOpacity = 0,
@@ -1336,8 +1336,7 @@ function useRippleSurface(opts) {
1336
1336
  backgroundColor: rippleColor,
1337
1337
  disabled
1338
1338
  }, rippleProps));
1339
-
1340
- const css$1 = _extends__default['default']({
1339
+ const css$1 = react$1.useMemo(() => _extends__default['default']({
1341
1340
  overflow: 'hidden',
1342
1341
  position: 'relative',
1343
1342
  cursor: 'pointer',
@@ -1394,8 +1393,7 @@ function useRippleSurface(opts) {
1394
1393
  '&::after': _extends__default['default']({}, rippleStyle({
1395
1394
  animation
1396
1395
  }))
1397
- });
1398
-
1396
+ }), [animation, baseOpacity, focusOpacity, hoverOpacity, pressedOpacity, rippleColor, rippleEnabled]);
1399
1397
  return {
1400
1398
  style: _extends__default['default']({}, animationStyle, style),
1401
1399
  onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),