@justfixnyc/component-library 0.51.4 → 0.51.5
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/src/index.es.js +4 -3
- package/dist/src/index.js +4 -3
- package/package.json +1 -1
package/dist/src/index.es.js
CHANGED
|
@@ -11,7 +11,8 @@ const Icon = _ref => {
|
|
|
11
11
|
let {
|
|
12
12
|
className,
|
|
13
13
|
icon,
|
|
14
|
-
type = 'solid'
|
|
14
|
+
type = 'solid',
|
|
15
|
+
...props
|
|
15
16
|
} = _ref;
|
|
16
17
|
let faIcon;
|
|
17
18
|
switch (icon) {
|
|
@@ -136,10 +137,10 @@ const Icon = _ref => {
|
|
|
136
137
|
console.warn("".concat(icon, " is not a supported icon name."));
|
|
137
138
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
138
139
|
}
|
|
139
|
-
return /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
140
|
+
return /*#__PURE__*/React.createElement(FontAwesomeIcon, _extends({
|
|
140
141
|
className: className,
|
|
141
142
|
icon: faIcon
|
|
142
|
-
});
|
|
143
|
+
}, props));
|
|
143
144
|
};
|
|
144
145
|
Icon.displayName = 'Icon';
|
|
145
146
|
|
package/dist/src/index.js
CHANGED
|
@@ -22,7 +22,8 @@ const Icon = _ref => {
|
|
|
22
22
|
let {
|
|
23
23
|
className,
|
|
24
24
|
icon,
|
|
25
|
-
type = 'solid'
|
|
25
|
+
type = 'solid',
|
|
26
|
+
...props
|
|
26
27
|
} = _ref;
|
|
27
28
|
let faIcon;
|
|
28
29
|
switch (icon) {
|
|
@@ -147,10 +148,10 @@ const Icon = _ref => {
|
|
|
147
148
|
console.warn("".concat(icon, " is not a supported icon name."));
|
|
148
149
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null);
|
|
149
150
|
}
|
|
150
|
-
return /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
151
|
+
return /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, _extends__default["default"]({
|
|
151
152
|
className: className,
|
|
152
153
|
icon: faIcon
|
|
153
|
-
});
|
|
154
|
+
}, props));
|
|
154
155
|
};
|
|
155
156
|
Icon.displayName = 'Icon';
|
|
156
157
|
|