pebble-web 2.6.0 → 2.7.1

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
  }
@@ -2202,6 +2202,7 @@ const optionGroupCheckBoxWrap = /*#__PURE__*/css({
2202
2202
  position: "relative"
2203
2203
  }, ";label:optionGroupCheckBoxWrap;" + ( "" ));
2204
2204
  const optionGroupCheckBoxButtonWrap = /*#__PURE__*/css({ ...flexSpaceBetween,
2205
+ gap: 60,
2205
2206
  padding: optionGroupCheckBoxButtonWrapPadding,
2206
2207
  paddingTop: optionGroupCheckBoxButtonWrapPaddingTop,
2207
2208
  backgroundColor: colors.white.base
@@ -3199,7 +3200,6 @@ const closeStyle = /*#__PURE__*/css({
3199
3200
  }
3200
3201
  }, ";label:closeStyle;" + ( "" ));
3201
3202
  const sidebarStyle = /*#__PURE__*/css({
3202
- transition: `transform 200ms ${constants.animationCurve}`,
3203
3203
  backgroundColor: colors.white.base,
3204
3204
  position: "fixed",
3205
3205
  top: 0,
@@ -3216,13 +3216,17 @@ const sidebarStyle = /*#__PURE__*/css({
3216
3216
 
3217
3217
  const transitionProps = {
3218
3218
  from: {
3219
- opacity: 0
3219
+ opacity: 0,
3220
+ transform: "translateX(100%)"
3220
3221
  },
3221
3222
  enter: {
3222
- opacity: 1
3223
+ opacity: 1,
3224
+ transform: "translateX(0)"
3223
3225
  },
3224
3226
  leave: {
3225
- opacity: 0
3227
+ opacity: 0,
3228
+ transform: "translateX(100%)",
3229
+ pointerEvents: "none"
3226
3230
  }
3227
3231
  };
3228
3232
  class SideBar extends PureComponent {
@@ -3264,38 +3268,32 @@ class SideBar extends PureComponent {
3264
3268
  onOutsideClick,
3265
3269
  closeOnOutsideClick
3266
3270
  } = 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%)`
3271
+ const _sidebarStyle = cx(sidebarStyle, /*#__PURE__*/css({
3272
+ width
3273
3273
  }, ";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,
3274
+ return /*#__PURE__*/createElement(MountTransition, Object.assign({
3275
+ visible: isOpen
3276
+ }, transitionProps), styles => /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(animated.div, {
3277
+ style: {
3278
+ opacity: styles.opacity
3279
+ },
3280
3280
  className: sidebarWrapperStyle,
3281
3281
  onClick: onOutsideClick || closeOnOutsideClick ? this.onOutsideClick : undefined,
3282
3282
  "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,
3283
+ }), /*#__PURE__*/createElement(animated.div, {
3284
+ className: _sidebarStyle,
3285
+ style: styles
3286
+ }, /*#__PURE__*/createElement("div", {
3289
3287
  className: closeStyle,
3290
3288
  onClick: onClose
3291
3289
  }, /*#__PURE__*/createElement("i", {
3292
3290
  className: "pi pi-close"
3293
- }), /*#__PURE__*/createElement(Ink, null)))), isOpen && /*#__PURE__*/createElement("div", {
3291
+ }), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
3294
3292
  style: {
3295
3293
  overflowY: "scroll",
3296
3294
  height: "100vh"
3297
3295
  }
3298
- }, children)));
3296
+ }, children))));
3299
3297
  }
3300
3298
  }
3301
3299
  SideBar.defaultProps = {