@justfixnyc/component-library 0.30.0 → 0.30.1

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.
@@ -14,9 +14,10 @@ const Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
14
14
  labelIcon: ButtonIcon,
15
15
  iconOnRight,
16
16
  iconOnly,
17
+ className,
17
18
  ...props
18
19
  } = _ref;
19
- const buttonClassNames = classNames('jfcl-button', "jfcl-variant-".concat(variant), "jfcl-size-".concat(size), "".concat(loading ? 'jfcl-is-loading' : ''), "".concat(iconOnly ? 'jfcl-btn-icon-only' : ''));
20
+ const buttonClassNames = classNames('jfcl-button', "jfcl-variant-".concat(variant), "jfcl-size-".concat(size), "".concat(loading ? 'jfcl-is-loading' : ''), "".concat(iconOnly ? 'jfcl-btn-icon-only' : ''), className);
20
21
  const iconClassNames = classNames('jfcl-button__icon', "".concat(iconOnRight ? 'jfcl-button__icon_right' : ''));
21
22
  const arias = {};
22
23
  if (iconOnly) {
package/dist/src/index.js CHANGED
@@ -24,9 +24,10 @@ const Button = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
24
24
  labelIcon: ButtonIcon,
25
25
  iconOnRight,
26
26
  iconOnly,
27
+ className,
27
28
  ...props
28
29
  } = _ref;
29
- const buttonClassNames = classNames__default["default"]('jfcl-button', "jfcl-variant-".concat(variant), "jfcl-size-".concat(size), "".concat(loading ? 'jfcl-is-loading' : ''), "".concat(iconOnly ? 'jfcl-btn-icon-only' : ''));
30
+ const buttonClassNames = classNames__default["default"]('jfcl-button', "jfcl-variant-".concat(variant), "jfcl-size-".concat(size), "".concat(loading ? 'jfcl-is-loading' : ''), "".concat(iconOnly ? 'jfcl-btn-icon-only' : ''), className);
30
31
  const iconClassNames = classNames__default["default"]('jfcl-button__icon', "".concat(iconOnRight ? 'jfcl-button__icon_right' : ''));
31
32
  const arias = {};
32
33
  if (iconOnly) {
@@ -8,6 +8,7 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
8
8
  loading?: boolean;
9
9
  iconOnRight?: boolean;
10
10
  iconOnly?: boolean;
11
+ className?: string;
11
12
  }
12
13
  /**
13
14
  * Accepts all `ButtonHTMLAttributes`
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.30.0",
5
+ "version": "0.30.1",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [