@trackunit/react-components 0.1.260 → 0.1.261

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/index.cjs.js CHANGED
@@ -720,7 +720,9 @@ Button.displayName = "Button";
720
720
  */
721
721
  const IconButton = React__namespace.forwardRef((_a, ref) => {
722
722
  var { icon, size = "medium", square = true, loading, disabled, className } = _a, rest = __rest(_a, ["icon", "size", "square", "loading", "disabled", "className"]);
723
- return (jsxRuntime.jsx(Button, Object.assign({ className: cvaIconButton({ size: size, className }), disabled: disabled || loading, loading: loading, prefix: !loading ? icon : undefined, ref: ref, size: size, square: square }, rest)));
723
+ return (jsxRuntime.jsx(Button, Object.assign({ className: cvaIconButton({ size: size, className }), disabled: disabled || loading, loading: loading,
724
+ // eslint-disable-next-line local-rules/design-guideline-button-icon-size-match
725
+ prefix: !loading ? icon : undefined, ref: ref, size: size, square: square }, rest)));
724
726
  });
725
727
  IconButton.displayName = "IconButton";
726
728
 
package/index.esm.js CHANGED
@@ -689,7 +689,9 @@ Button.displayName = "Button";
689
689
  */
690
690
  const IconButton = React.forwardRef((_a, ref) => {
691
691
  var { icon, size = "medium", square = true, loading, disabled, className } = _a, rest = __rest(_a, ["icon", "size", "square", "loading", "disabled", "className"]);
692
- return (jsx(Button, Object.assign({ className: cvaIconButton({ size: size, className }), disabled: disabled || loading, loading: loading, prefix: !loading ? icon : undefined, ref: ref, size: size, square: square }, rest)));
692
+ return (jsx(Button, Object.assign({ className: cvaIconButton({ size: size, className }), disabled: disabled || loading, loading: loading,
693
+ // eslint-disable-next-line local-rules/design-guideline-button-icon-size-match
694
+ prefix: !loading ? icon : undefined, ref: ref, size: size, square: square }, rest)));
693
695
  });
694
696
  IconButton.displayName = "IconButton";
695
697
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.260",
3
+ "version": "0.1.261",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {