pebble-web 2.6.0 → 2.7.0

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.
@@ -994,7 +994,7 @@ const animationConfig = {
994
994
  pointerEvents: "none"
995
995
  },
996
996
  config: (_a, motion) => motion === "leave" ? {
997
- duration: 0.1
997
+ duration: 80
998
998
  } : {
999
999
  duration: 200
1000
1000
  }
@@ -3199,7 +3199,6 @@ const closeStyle = /*#__PURE__*/css({
3199
3199
  }
3200
3200
  }, ";label:closeStyle;" + ( "" ));
3201
3201
  const sidebarStyle = /*#__PURE__*/css({
3202
- transition: `transform 200ms ${constants.animationCurve}`,
3203
3202
  backgroundColor: colors.white.base,
3204
3203
  position: "fixed",
3205
3204
  top: 0,
@@ -3216,13 +3215,17 @@ const sidebarStyle = /*#__PURE__*/css({
3216
3215
 
3217
3216
  const transitionProps = {
3218
3217
  from: {
3219
- opacity: 0
3218
+ opacity: 0,
3219
+ transform: "translateX(100%)"
3220
3220
  },
3221
3221
  enter: {
3222
- opacity: 1
3222
+ opacity: 1,
3223
+ transform: "translateX(0)"
3223
3224
  },
3224
3225
  leave: {
3225
- opacity: 0
3226
+ opacity: 0,
3227
+ transform: "translateX(100%)",
3228
+ pointerEvents: "none"
3226
3229
  }
3227
3230
  };
3228
3231
  class SideBar extends PureComponent {
@@ -3264,38 +3267,32 @@ class SideBar extends PureComponent {
3264
3267
  onOutsideClick,
3265
3268
  closeOnOutsideClick
3266
3269
  } = this.props;
3267
- const _sidebarOverride = /*#__PURE__*/css({
3268
- width,
3269
- transform: isOpen ? `translateX(0)` : `translateX(${width}px)`
3270
- }, ";label:SideBar;" + ( "" ));
3271
- const _sidebarStyle = cx(_sidebarOverride, sidebarStyle, /*#__PURE__*/css({
3272
- transform: isOpen ? `translateX(0)` : `translateX(100%)`
3270
+ const _sidebarStyle = cx(sidebarStyle, /*#__PURE__*/css({
3271
+ width
3273
3272
  }, ";label:SideBar;" + ( "" )));
3274
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Transition, Object.assign({
3275
- items: isOpen
3276
- }, transitionProps, {
3277
- config: animationConfig.config
3278
- }), show => show && (styles => /*#__PURE__*/createElement(animated.div, {
3279
- style: styles,
3273
+ return /*#__PURE__*/createElement(MountTransition, Object.assign({
3274
+ visible: isOpen
3275
+ }, transitionProps), styles => /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(animated.div, {
3276
+ style: {
3277
+ opacity: styles.opacity
3278
+ },
3280
3279
  className: sidebarWrapperStyle,
3281
3280
  onClick: onOutsideClick || closeOnOutsideClick ? this.onOutsideClick : undefined,
3282
3281
  "data-testid": "shadowArea"
3283
- }))), /*#__PURE__*/createElement("div", {
3284
- className: _sidebarStyle
3285
- }, /*#__PURE__*/createElement(Transition, Object.assign({
3286
- items: isOpen
3287
- }, transitionProps), show => show && (styles => /*#__PURE__*/createElement(animated.div, {
3288
- style: styles,
3282
+ }), /*#__PURE__*/createElement(animated.div, {
3283
+ className: _sidebarStyle,
3284
+ style: styles
3285
+ }, /*#__PURE__*/createElement("div", {
3289
3286
  className: closeStyle,
3290
3287
  onClick: onClose
3291
3288
  }, /*#__PURE__*/createElement("i", {
3292
3289
  className: "pi pi-close"
3293
- }), /*#__PURE__*/createElement(Ink, null)))), isOpen && /*#__PURE__*/createElement("div", {
3290
+ }), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
3294
3291
  style: {
3295
3292
  overflowY: "scroll",
3296
3293
  height: "100vh"
3297
3294
  }
3298
- }, children)));
3295
+ }, children))));
3299
3296
  }
3300
3297
  }
3301
3298
  SideBar.defaultProps = {