@moda/om 15.9.0 → 15.10.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.
package/dist/index.esm.js CHANGED
@@ -4217,7 +4217,8 @@ var handleScroll = function handleScroll(axis, endTarget, event, sourceDelta, no
4217
4217
 
4218
4218
  target = target.parentNode;
4219
4219
  } while ( // portaled content
4220
- !targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
4220
+ !targetInLock && target !== document.body || // self content
4221
+ targetInLock && (endTarget.contains(target) || endTarget === target));
4221
4222
 
4222
4223
  if (isDeltaPositive && (noOverscroll && availableScroll === 0 || !noOverscroll && delta > availableScroll)) {
4223
4224
  shouldCancelScroll = true;
@@ -11555,7 +11556,7 @@ var VerticalDivider = function VerticalDivider(_ref) {
11555
11556
  }, rest));
11556
11557
  };
11557
11558
 
11558
- var PasswordInput = function PasswordInput(_ref) {
11559
+ var PasswordInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
11559
11560
  var rest = _extends$3({}, _ref);
11560
11561
 
11561
11562
  var _useState = useState(false),
@@ -11571,7 +11572,9 @@ var PasswordInput = function PasswordInput(_ref) {
11571
11572
  className: "PasswordInput"
11572
11573
  }, /*#__PURE__*/React__default.createElement(Field, _extends$3({
11573
11574
  type: passwordShown ? 'text' : 'password'
11574
- }, rest)), /*#__PURE__*/React__default.createElement(Clickable, {
11575
+ }, rest, {
11576
+ ref: ref
11577
+ })), /*#__PURE__*/React__default.createElement(Clickable, {
11575
11578
  className: "PasswordInput__password-action",
11576
11579
  onClick: togglePasswordVisiblity,
11577
11580
  type: "button"
@@ -11580,7 +11583,8 @@ var PasswordInput = function PasswordInput(_ref) {
11580
11583
  }, "HIDE") : /*#__PURE__*/React__default.createElement(Text, {
11581
11584
  treatment: "eyebrow"
11582
11585
  }, "SHOW")));
11583
- };
11586
+ });
11587
+ PasswordInput.displayName = 'PasswordInput';
11584
11588
 
11585
11589
  var isRenderProps = function isRenderProps(children) {
11586
11590
  return typeof children === 'function';