@luminati-io/uikit 3.8.2 → 3.8.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -28567,7 +28567,11 @@ var Badge = function Badge(props) {
|
|
28567
28567
|
shape = props.shape,
|
28568
28568
|
variant = props.variant,
|
28569
28569
|
icon = props.icon,
|
28570
|
-
iconPlacement = props.iconPlacement
|
28570
|
+
iconPlacement = props.iconPlacement,
|
28571
|
+
onClick = props.onClick;
|
28572
|
+
var handleClick = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
28573
|
+
onClick === null || onClick === void 0 || onClick();
|
28574
|
+
}, [onClick]);
|
28571
28575
|
var bgColor = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
28572
28576
|
return {
|
28573
28577
|
"default": _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_3,
|
@@ -28594,7 +28598,8 @@ var Badge = function Badge(props) {
|
|
28594
28598
|
}, icon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
28595
28599
|
name: icon,
|
28596
28600
|
size: "xxs",
|
28597
|
-
color: color
|
28601
|
+
color: color,
|
28602
|
+
onClick: handleClick
|
28598
28603
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
28599
28604
|
variant: "xs",
|
28600
28605
|
color: color
|