@nulogy/components 7.4.0 → 7.5.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/main.js CHANGED
@@ -16153,7 +16153,11 @@
16153
16153
  var _hover, _active, _hoverActive, _focus, _ref3;
16154
16154
 
16155
16155
  var disabled = _ref2.disabled,
16156
+ hoverBackgroundColor = _ref2.hoverBackgroundColor,
16156
16157
  theme = _ref2.theme;
16158
+
16159
+ var _a;
16160
+
16157
16161
  return _ref3 = {
16158
16162
  background: "transparent",
16159
16163
  border: "none",
@@ -16172,7 +16176,7 @@
16172
16176
  }, _ref3["" + HoverText] = {
16173
16177
  opacity: "0"
16174
16178
  }, _ref3["&:hover"] = (_hover = {}, _hover["" + Icon] = {
16175
- backgroundColor: theme.colors.lightBlue
16179
+ backgroundColor: (_a = theme.colors[hoverBackgroundColor]) !== null && _a !== void 0 ? _a : hoverBackgroundColor
16176
16180
  }, _hover["" + HoverText] = {
16177
16181
  opacity: "1"
16178
16182
  }, _hover), _ref3["&:active"] = (_active = {}, _active["" + Icon] = {
@@ -16196,18 +16200,21 @@
16196
16200
  var children = _a.children,
16197
16201
  _a$color = _a.color,
16198
16202
  color = _a$color === void 0 ? "darkBlue" : _a$color,
16203
+ _a$hoverBackgroundCol = _a.hoverBackgroundColor,
16204
+ hoverBackgroundColor = _a$hoverBackgroundCol === void 0 ? "lightBlue" : _a$hoverBackgroundCol,
16199
16205
  icon = _a.icon,
16200
16206
  labelHidden = _a.labelHidden,
16201
16207
  className = _a.className,
16202
16208
  iconSize = _a.iconSize,
16203
16209
  fontSize = _a.fontSize,
16204
16210
  tooltip = _a.tooltip,
16205
- props = __rest(_a, ["children", "color", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
16211
+ props = __rest(_a, ["children", "color", "hoverBackgroundColor", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
16206
16212
 
16207
16213
  return /*#__PURE__*/React__default['default'].createElement(WrapperButton$1, Object.assign({
16208
16214
  ref: forwardedRef,
16209
16215
  "aria-label": props["aria-label"] ? props["aria-label"] : typeof children === "string" ? children : undefined,
16210
- className: className
16216
+ className: className,
16217
+ hoverBackgroundColor: hoverBackgroundColor
16211
16218
  }, props), /*#__PURE__*/React__default['default'].createElement(Manager$2, null, /*#__PURE__*/React__default['default'].createElement(Reference$2, null, function (_ref4) {
16212
16219
  var ref = _ref4.ref;
16213
16220
  return /*#__PURE__*/React__default['default'].createElement(Icon, {
@@ -16127,7 +16127,11 @@ var WrapperButton$1 = styled.button.withConfig({
16127
16127
  var _hover, _active, _hoverActive, _focus, _ref3;
16128
16128
 
16129
16129
  var disabled = _ref2.disabled,
16130
+ hoverBackgroundColor = _ref2.hoverBackgroundColor,
16130
16131
  theme = _ref2.theme;
16132
+
16133
+ var _a;
16134
+
16131
16135
  return _ref3 = {
16132
16136
  background: "transparent",
16133
16137
  border: "none",
@@ -16146,7 +16150,7 @@ var WrapperButton$1 = styled.button.withConfig({
16146
16150
  }, _ref3["" + HoverText] = {
16147
16151
  opacity: "0"
16148
16152
  }, _ref3["&:hover"] = (_hover = {}, _hover["" + Icon] = {
16149
- backgroundColor: theme.colors.lightBlue
16153
+ backgroundColor: (_a = theme.colors[hoverBackgroundColor]) !== null && _a !== void 0 ? _a : hoverBackgroundColor
16150
16154
  }, _hover["" + HoverText] = {
16151
16155
  opacity: "1"
16152
16156
  }, _hover), _ref3["&:active"] = (_active = {}, _active["" + Icon] = {
@@ -16170,18 +16174,21 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
16170
16174
  var children = _a.children,
16171
16175
  _a$color = _a.color,
16172
16176
  color = _a$color === void 0 ? "darkBlue" : _a$color,
16177
+ _a$hoverBackgroundCol = _a.hoverBackgroundColor,
16178
+ hoverBackgroundColor = _a$hoverBackgroundCol === void 0 ? "lightBlue" : _a$hoverBackgroundCol,
16173
16179
  icon = _a.icon,
16174
16180
  labelHidden = _a.labelHidden,
16175
16181
  className = _a.className,
16176
16182
  iconSize = _a.iconSize,
16177
16183
  fontSize = _a.fontSize,
16178
16184
  tooltip = _a.tooltip,
16179
- props = __rest(_a, ["children", "color", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
16185
+ props = __rest(_a, ["children", "color", "hoverBackgroundColor", "icon", "labelHidden", "className", "iconSize", "fontSize", "tooltip"]);
16180
16186
 
16181
16187
  return /*#__PURE__*/React__default.createElement(WrapperButton$1, Object.assign({
16182
16188
  ref: forwardedRef,
16183
16189
  "aria-label": props["aria-label"] ? props["aria-label"] : typeof children === "string" ? children : undefined,
16184
- className: className
16190
+ className: className,
16191
+ hoverBackgroundColor: hoverBackgroundColor
16185
16192
  }, props), /*#__PURE__*/React__default.createElement(Manager$2, null, /*#__PURE__*/React__default.createElement(Reference$2, null, function (_ref4) {
16186
16193
  var ref = _ref4.ref;
16187
16194
  return /*#__PURE__*/React__default.createElement(Icon, {
@@ -5,6 +5,7 @@ declare type BaseProps = {
5
5
  labelHidden?: boolean;
6
6
  icon?: any;
7
7
  iconSize?: string;
8
+ hoverBackgroundColor?: string;
8
9
  fontSize?: string;
9
10
  tooltip?: string;
10
11
  };
@@ -71,3 +71,5 @@ export declare const WithNonTextChildren: {
71
71
  name: string;
72
72
  };
73
73
  };
74
+ export declare const WithCustomHoverBackgroundThemeColor: () => JSX.Element;
75
+ export declare const WithCustomHoverBackgroundNonThemeColor: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {