@justfixnyc/component-library 0.51.4 → 0.51.6

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.
@@ -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
 
@@ -247,7 +248,7 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
247
248
  type: "button",
248
249
  className: buttonClassNames,
249
250
  "data-testid": "jfcl-button"
250
- }, arias, props), /*#__PURE__*/React.createElement("div", {
251
+ }, arias, props), /*#__PURE__*/React.createElement("span", {
251
252
  className: "jfcl-button__label"
252
253
  }, loading && /*#__PURE__*/React.createElement("span", {
253
254
  className: iconClassNames
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
 
@@ -258,7 +259,7 @@ const Button = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
258
259
  type: "button",
259
260
  className: buttonClassNames,
260
261
  "data-testid": "jfcl-button"
261
- }, arias, props), /*#__PURE__*/React__default["default"].createElement("div", {
262
+ }, arias, props), /*#__PURE__*/React__default["default"].createElement("span", {
262
263
  className: "jfcl-button__label"
263
264
  }, loading && /*#__PURE__*/React__default["default"].createElement("span", {
264
265
  className: iconClassNames
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@justfixnyc/component-library",
3
3
  "description": "JustFix Component Library",
4
4
  "license": "MIT",
5
- "version": "0.51.4",
5
+ "version": "0.51.6",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [