@thecb/components 10.4.4-beta.6 → 10.4.4-beta.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.
package/dist/index.cjs.js CHANGED
@@ -1927,7 +1927,7 @@ var Action = /*#__PURE__*/function (_super) {
1927
1927
  };
1928
1928
  return Action;
1929
1929
  }(Chainable);
1930
- var action$1 = function (init) {
1930
+ var action = function (init) {
1931
1931
  return new Action({ init: init });
1932
1932
  };
1933
1933
 
@@ -2092,7 +2092,7 @@ var multi = function (_a) {
2092
2092
  setProp = _a.setProp,
2093
2093
  startActions = _a.startActions;
2094
2094
  return function (actions) {
2095
- return action$1(function (_a) {
2095
+ return action(function (_a) {
2096
2096
  var update = _a.update,
2097
2097
  complete = _a.complete,
2098
2098
  error = _a.error;
@@ -2317,7 +2317,7 @@ var decay = function (props) {
2317
2317
  if (props === void 0) {
2318
2318
  props = {};
2319
2319
  }
2320
- return action$1(function (_a) {
2320
+ return action(function (_a) {
2321
2321
  var complete = _a.complete,
2322
2322
  update = _a.update;
2323
2323
  var _b = props.velocity,
@@ -2367,7 +2367,7 @@ var spring = function (props) {
2367
2367
  if (props === void 0) {
2368
2368
  props = {};
2369
2369
  }
2370
- return action$1(function (_a) {
2370
+ return action(function (_a) {
2371
2371
  var update = _a.update,
2372
2372
  complete = _a.complete;
2373
2373
  var _b = props.velocity,
@@ -2445,7 +2445,7 @@ var scrubber = function (_a) {
2445
2445
  if (reverseEase) {
2446
2446
  ease = createReversedEasing(ease);
2447
2447
  }
2448
- return action$1(function (_a) {
2448
+ return action(function (_a) {
2449
2449
  var update = _a.update;
2450
2450
  return {
2451
2451
  seek: function (progress) {
@@ -2469,7 +2469,7 @@ var tween = function (props) {
2469
2469
  if (props === void 0) {
2470
2470
  props = {};
2471
2471
  }
2472
- return action$1(function (_a) {
2472
+ return action(function (_a) {
2473
2473
  var update = _a.update,
2474
2474
  complete = _a.complete;
2475
2475
  var _b = props.duration,
@@ -2641,7 +2641,7 @@ var physics = function (props) {
2641
2641
  if (props === void 0) {
2642
2642
  props = {};
2643
2643
  }
2644
- return action$1(function (_a) {
2644
+ return action(function (_a) {
2645
2645
  var complete = _a.complete,
2646
2646
  update = _a.update;
2647
2647
  var _b = props.acceleration,
@@ -2715,7 +2715,7 @@ var vectorPhysics = /*#__PURE__*/createVectorAction(physics, {
2715
2715
  });
2716
2716
 
2717
2717
  var listen = function (element, events, options) {
2718
- return action$1(function (_a) {
2718
+ return action(function (_a) {
2719
2719
  var update = _a.update;
2720
2720
  var eventNames = events.split(' ').map(function (eventName) {
2721
2721
  element.addEventListener(eventName, update, options);
@@ -2778,7 +2778,7 @@ var multitouch = function (_a) {
2778
2778
  scale = _d === void 0 ? 1.0 : _d,
2779
2779
  _e = _b.rotate,
2780
2780
  rotate = _e === void 0 ? 0.0 : _e;
2781
- return action$1(function (_a) {
2781
+ return action(function (_a) {
2782
2782
  var update = _a.update;
2783
2783
  var output = {
2784
2784
  touches: points,
@@ -2837,7 +2837,7 @@ if (typeof document !== 'undefined') {
2837
2837
  var mouse = function (_a) {
2838
2838
  var _b = (_a === void 0 ? {} : _a).preventDefault,
2839
2839
  preventDefault = _b === void 0 ? true : _b;
2840
- return action$1(function (_a) {
2840
+ return action(function (_a) {
2841
2841
  var update = _a.update;
2842
2842
  var updatePoint = function () {
2843
2843
  return update(point);
@@ -2896,7 +2896,7 @@ var chain = function () {
2896
2896
  for (var _i = 0; _i < arguments.length; _i++) {
2897
2897
  actions[_i] = arguments[_i];
2898
2898
  }
2899
- return action$1(function (_a) {
2899
+ return action(function (_a) {
2900
2900
  var update = _a.update,
2901
2901
  complete = _a.complete;
2902
2902
  var i = 0;
@@ -2920,7 +2920,7 @@ var chain = function () {
2920
2920
  };
2921
2921
 
2922
2922
  var delay = function (timeToDelay) {
2923
- return action$1(function (_a) {
2923
+ return action(function (_a) {
2924
2924
  var complete = _a.complete;
2925
2925
  var timeout = setTimeout(complete, timeToDelay);
2926
2926
  return {
@@ -3584,7 +3584,7 @@ var createPointer = function (axisPointerCreator, min, max, measurement) {
3584
3584
  };
3585
3585
  };
3586
3586
  var just = function (from) {
3587
- return action$1(function (_a) {
3587
+ return action(function (_a) {
3588
3588
  var update = _a.update,
3589
3589
  complete = _a.complete;
3590
3590
  update(from);
@@ -7399,7 +7399,7 @@ var Action$1 = /*#__PURE__*/function () {
7399
7399
  };
7400
7400
  return Action;
7401
7401
  }();
7402
- var action$2 = function (init) {
7402
+ var action$1 = function (init) {
7403
7403
  return new Action$1({ init: init });
7404
7404
  };
7405
7405
 
@@ -7484,7 +7484,7 @@ var decay$1 = function (props) {
7484
7484
  if (props === void 0) {
7485
7485
  props = {};
7486
7486
  }
7487
- return action$2(function (_a) {
7487
+ return action$1(function (_a) {
7488
7488
  var complete = _a.complete,
7489
7489
  update = _a.update;
7490
7490
  var _b = props.velocity,
@@ -7533,7 +7533,7 @@ var spring$1 = function (props) {
7533
7533
  if (props === void 0) {
7534
7534
  props = {};
7535
7535
  }
7536
- return action$2(function (_a) {
7536
+ return action$1(function (_a) {
7537
7537
  var update = _a.update,
7538
7538
  complete = _a.complete;
7539
7539
  var _b = props.velocity,
@@ -7617,7 +7617,7 @@ var inertia = function (_a) {
7617
7617
  _h = _a.restDelta,
7618
7618
  restDelta = _h === void 0 ? 1 : _h,
7619
7619
  modifyTarget = _a.modifyTarget;
7620
- return action$2(function (_a) {
7620
+ return action$1(function (_a) {
7621
7621
  var update = _a.update,
7622
7622
  complete = _a.complete;
7623
7623
  var prev = from;
@@ -7714,7 +7714,7 @@ var scrubber$1 = function (_a) {
7714
7714
  if (reverseEase) {
7715
7715
  ease = createReversedEasing(ease);
7716
7716
  }
7717
- return action$2(function (_a) {
7717
+ return action$1(function (_a) {
7718
7718
  var update = _a.update;
7719
7719
  return {
7720
7720
  seek: function (progress) {
@@ -7738,7 +7738,7 @@ var tween$1 = function (props) {
7738
7738
  if (props === void 0) {
7739
7739
  props = {};
7740
7740
  }
7741
- return action$2(function (_a) {
7741
+ return action$1(function (_a) {
7742
7742
  var update = _a.update,
7743
7743
  complete = _a.complete;
7744
7744
  var _b = props.duration,
@@ -7908,7 +7908,7 @@ var keyframes$1 = function (_a) {
7908
7908
  };
7909
7909
 
7910
7910
  var listen$1 = function (element, events, options) {
7911
- return action$2(function (_a) {
7911
+ return action$1(function (_a) {
7912
7912
  var update = _a.update;
7913
7913
  var eventNames = events.split(' ').map(function (eventName) {
7914
7914
  element.addEventListener(eventName, update, options);
@@ -7971,7 +7971,7 @@ if (typeof document !== 'undefined') {
7971
7971
  }
7972
7972
 
7973
7973
  var delay$1 = function (timeToDelay) {
7974
- return action$2(function (_a) {
7974
+ return action$1(function (_a) {
7975
7975
  var complete = _a.complete;
7976
7976
  var timeout = setTimeout(complete, timeToDelay);
7977
7977
  return {
@@ -8675,7 +8675,7 @@ var getDefaultTransition = function (valueKey, to) {
8675
8675
  */
8676
8676
  var just$1 = function (_a) {
8677
8677
  var to = _a.to, duration = _a.duration;
8678
- return action$2(function (_a) {
8678
+ return action$1(function (_a) {
8679
8679
  var update = _a.update, complete = _a.complete;
8680
8680
  update(to);
8681
8681
  duration ? delay$1(duration).start({ complete: complete }) : complete();
@@ -28063,7 +28063,8 @@ var renderContent = function renderContent(_ref2) {
28063
28063
  destination = _ref2.destination,
28064
28064
  dataQa = _ref2.dataQa,
28065
28065
  isDisabled = _ref2.isDisabled,
28066
- children = _ref2.children;
28066
+ children = _ref2.children,
28067
+ action = _ref2.action;
28067
28068
  return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28068
28069
  to: destination,
28069
28070
  "data-qa": dataQa,