@basic-ui/material 1.0.0-alpha.5 → 1.0.0-alpha.6

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,15 +1336,16 @@ function useRippleSurface(opts) {
1336
1336
  backgroundColor: rippleColor,
1337
1337
  disabled
1338
1338
  }, rippleProps));
1339
-
1340
- const css$1 = _extends__default['default']({
1341
- overflow: 'hidden',
1342
- position: 'relative',
1343
- cursor: 'pointer',
1344
- // fix overflow: hidden + borderRadius in Safari
1345
- // https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b#gistcomment-2359479
1346
- willChange: 'transform,opacity',
1347
- WebkitTapHighlightColor: 'transparent',
1339
+ const css$1 = react$1.useMemo(() => _extends__default['default']({
1340
+ '&': {
1341
+ overflow: 'hidden',
1342
+ position: 'relative',
1343
+ cursor: 'pointer',
1344
+ // fix overflow: hidden + borderRadius in Safari
1345
+ // https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b#gistcomment-2359479
1346
+ willChange: 'transform,opacity',
1347
+ WebkitTapHighlightColor: 'transparent'
1348
+ },
1348
1349
  // ripple overlay
1349
1350
  '&::before': {
1350
1351
  backgroundColor: rippleColor,
@@ -1394,8 +1395,7 @@ function useRippleSurface(opts) {
1394
1395
  '&::after': _extends__default['default']({}, rippleStyle({
1395
1396
  animation
1396
1397
  }))
1397
- });
1398
-
1398
+ }), [animation, baseOpacity, focusOpacity, hoverOpacity, pressedOpacity, rippleColor, rippleEnabled]);
1399
1399
  return {
1400
1400
  style: _extends__default['default']({}, animationStyle, style),
1401
1401
  onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),