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.
@@ -1042,7 +1042,7 @@ var animationConfig = {
1042
1042
  },
1043
1043
  config: function config(_a, motion) {
1044
1044
  return motion === "leave" ? {
1045
- duration: 0.1
1045
+ duration: 80
1046
1046
  } : {
1047
1047
  duration: 200
1048
1048
  };
@@ -2404,6 +2404,7 @@ var optionGroupCheckBoxWrap = /*#__PURE__*/css({
2404
2404
  position: "relative"
2405
2405
  }, ";label:optionGroupCheckBoxWrap;" + ( "" ));
2406
2406
  var optionGroupCheckBoxButtonWrap = /*#__PURE__*/css(_objectSpread$g(_objectSpread$g({}, flexSpaceBetween), {}, {
2407
+ gap: 60,
2407
2408
  padding: optionGroupCheckBoxButtonWrapPadding,
2408
2409
  paddingTop: optionGroupCheckBoxButtonWrapPaddingTop,
2409
2410
  backgroundColor: colors.white.base
@@ -3504,7 +3505,6 @@ var closeStyle = /*#__PURE__*/css({
3504
3505
  }
3505
3506
  }, ";label:closeStyle;" + ( "" ));
3506
3507
  var sidebarStyle = /*#__PURE__*/css({
3507
- transition: "transform 200ms ".concat(constants.animationCurve),
3508
3508
  backgroundColor: colors.white.base,
3509
3509
  position: "fixed",
3510
3510
  top: 0,
@@ -3523,13 +3523,17 @@ function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeRefl
3523
3523
  function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3524
3524
  var transitionProps = {
3525
3525
  from: {
3526
- opacity: 0
3526
+ opacity: 0,
3527
+ transform: "translateX(100%)"
3527
3528
  },
3528
3529
  enter: {
3529
- opacity: 1
3530
+ opacity: 1,
3531
+ transform: "translateX(0)"
3530
3532
  },
3531
3533
  leave: {
3532
- opacity: 0
3534
+ opacity: 0,
3535
+ transform: "translateX(100%)",
3536
+ pointerEvents: "none"
3533
3537
  }
3534
3538
  };
3535
3539
  var SideBar = /*#__PURE__*/function (_React$PureComponent) {
@@ -3583,46 +3587,34 @@ var SideBar = /*#__PURE__*/function (_React$PureComponent) {
3583
3587
  onClose = _this$props2.onClose,
3584
3588
  onOutsideClick = _this$props2.onOutsideClick,
3585
3589
  closeOnOutsideClick = _this$props2.closeOnOutsideClick;
3586
- var _sidebarOverride = /*#__PURE__*/css({
3587
- width: width,
3588
- transform: isOpen ? "translateX(0)" : "translateX(".concat(width, "px)")
3589
- }, ";label:SideBar;" + ( "" ));
3590
- var _sidebarStyle = cx(_sidebarOverride, sidebarStyle, /*#__PURE__*/css({
3591
- transform: isOpen ? "translateX(0)" : "translateX(100%)"
3590
+ var _sidebarStyle = cx(sidebarStyle, /*#__PURE__*/css({
3591
+ width: width
3592
3592
  }, ";label:SideBar;" + ( "" )));
3593
- return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Transition, Object.assign({
3594
- items: isOpen
3595
- }, transitionProps, {
3596
- config: animationConfig.config
3597
- }), function (show) {
3598
- return show && function (styles) {
3599
- return /*#__PURE__*/createElement(animated.div, {
3600
- style: styles,
3601
- className: sidebarWrapperStyle,
3602
- onClick: onOutsideClick || closeOnOutsideClick ? _this2.onOutsideClick : undefined,
3603
- "data-testid": "shadowArea"
3604
- });
3605
- };
3606
- }), /*#__PURE__*/createElement("div", {
3607
- className: _sidebarStyle
3608
- }, /*#__PURE__*/createElement(Transition, Object.assign({
3609
- items: isOpen
3610
- }, transitionProps), function (show) {
3611
- return show && function (styles) {
3612
- return /*#__PURE__*/createElement(animated.div, {
3613
- style: styles,
3614
- className: closeStyle,
3615
- onClick: onClose
3616
- }, /*#__PURE__*/createElement("i", {
3617
- className: "pi pi-close"
3618
- }), /*#__PURE__*/createElement(Ink, null));
3619
- };
3620
- }), isOpen && /*#__PURE__*/createElement("div", {
3621
- style: {
3622
- overflowY: "scroll",
3623
- height: "100vh"
3624
- }
3625
- }, children)));
3593
+ return /*#__PURE__*/createElement(MountTransition, Object.assign({
3594
+ visible: isOpen
3595
+ }, transitionProps), function (styles) {
3596
+ return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(animated.div, {
3597
+ style: {
3598
+ opacity: styles.opacity
3599
+ },
3600
+ className: sidebarWrapperStyle,
3601
+ onClick: onOutsideClick || closeOnOutsideClick ? _this2.onOutsideClick : undefined,
3602
+ "data-testid": "shadowArea"
3603
+ }), /*#__PURE__*/createElement(animated.div, {
3604
+ className: _sidebarStyle,
3605
+ style: styles
3606
+ }, /*#__PURE__*/createElement("div", {
3607
+ className: closeStyle,
3608
+ onClick: onClose
3609
+ }, /*#__PURE__*/createElement("i", {
3610
+ className: "pi pi-close"
3611
+ }), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
3612
+ style: {
3613
+ overflowY: "scroll",
3614
+ height: "100vh"
3615
+ }
3616
+ }, children)));
3617
+ });
3626
3618
  }
3627
3619
  }]);
3628
3620
  return SideBar;