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.css +2 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -22
- package/dist/index.js.map +1 -1
- package/dist/types/src/ui/Buttons/ui/Button.d.ts +19 -2
- package/package.json +1 -1
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
|
-
|
|
25407
|
-
var children =
|
|
25408
|
-
text =
|
|
25409
|
-
iconLeft =
|
|
25410
|
-
iconRight =
|
|
25411
|
-
|
|
25412
|
-
hierarchy =
|
|
25413
|
-
|
|
25414
|
-
warning =
|
|
25415
|
-
|
|
25416
|
-
size =
|
|
25417
|
-
|
|
25418
|
-
width =
|
|
25419
|
-
|
|
25420
|
-
height =
|
|
25421
|
-
|
|
25422
|
-
additionStyles =
|
|
25423
|
-
customComponent =
|
|
25424
|
-
disabled =
|
|
25425
|
-
props = _objectWithoutProperties(
|
|
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
|
|