indicator-ui 0.0.274 → 0.0.276

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.js CHANGED
@@ -25403,26 +25403,26 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
25403
25403
 
25404
25404
 
25405
25405
 
25406
- function Button(_ref) {
25407
- var children = _ref.children,
25408
- text = _ref.text,
25409
- iconLeft = _ref.iconLeft,
25410
- iconRight = _ref.iconRight,
25411
- _ref$hierarchy = _ref.hierarchy,
25412
- hierarchy = _ref$hierarchy === void 0 ? 'primary' : _ref$hierarchy,
25413
- _ref$warning = _ref.warning,
25414
- warning = _ref$warning === void 0 ? false : _ref$warning,
25415
- _ref$size = _ref.size,
25416
- size = _ref$size === void 0 ? 'medium' : _ref$size,
25417
- _ref$width = _ref.width,
25418
- width = _ref$width === void 0 ? 'hug' : _ref$width,
25419
- _ref$height = _ref.height,
25420
- height = _ref$height === void 0 ? 'hug' : _ref$height,
25421
- _ref$additionStyles = _ref.additionStyles,
25422
- additionStyles = _ref$additionStyles === void 0 ? [] : _ref$additionStyles,
25423
- customComponent = _ref.customComponent,
25424
- disabled = _ref.disabled,
25425
- props = _objectWithoutProperties(_ref, _excluded);
25406
+ var Button = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (_props, ref) {
25407
+ var children = _props.children,
25408
+ text = _props.text,
25409
+ iconLeft = _props.iconLeft,
25410
+ iconRight = _props.iconRight,
25411
+ _props$hierarchy = _props.hierarchy,
25412
+ hierarchy = _props$hierarchy === void 0 ? 'primary' : _props$hierarchy,
25413
+ _props$warning = _props.warning,
25414
+ warning = _props$warning === void 0 ? false : _props$warning,
25415
+ _props$size = _props.size,
25416
+ size = _props$size === void 0 ? 'medium' : _props$size,
25417
+ _props$width = _props.width,
25418
+ width = _props$width === void 0 ? 'hug' : _props$width,
25419
+ _props$height = _props.height,
25420
+ height = _props$height === void 0 ? 'hug' : _props$height,
25421
+ _props$additionStyles = _props.additionStyles,
25422
+ additionStyles = _props$additionStyles === void 0 ? [] : _props$additionStyles,
25423
+ customComponent = _props.customComponent,
25424
+ disabled = _props.disabled,
25425
+ props = _objectWithoutProperties(_props, _excluded);
25426
25426
  var getHierarchyClassName = function getHierarchyClassName() {
25427
25427
  switch (hierarchy) {
25428
25428
  case "primary":
@@ -25500,15 +25500,17 @@ function Button(_ref) {
25500
25500
  if (customComponent !== undefined) {
25501
25501
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(customComponent, {
25502
25502
  children: getMainContent(),
25503
- className: getClassName()
25503
+ className: getClassName(),
25504
+ ref: ref
25504
25505
  });
25505
25506
  }
25506
25507
  return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("button", _objectSpread(_objectSpread({}, props), {}, {
25507
25508
  disabled: disabled,
25508
25509
  className: getClassName(),
25510
+ ref: ref,
25509
25511
  children: getMainContent()
25510
25512
  }));
25511
- }
25513
+ });
25512
25514
 
25513
25515
  /***/ }),
25514
25516