@paubox/ui 0.7.3 → 0.7.4

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.esm.js CHANGED
@@ -2338,7 +2338,7 @@ var IconWrapper$2 = styled.span(_templateObject$k(), function(props) {
2338
2338
  return props.iconLeft ? '0 8px 0 0' : props.iconRight ? '0 0 0 8px' : '0';
2339
2339
  });
2340
2340
  var Button = /*#__PURE__*/ forwardRef(function(_param, ref) {
2341
- var iconLeft = _param.iconLeft, iconRight = _param.iconRight, children = _param.children, props = _object_without_properties$g(_param, [
2341
+ var IconLeft = _param.iconLeft, IconRight = _param.iconRight, children = _param.children, props = _object_without_properties$g(_param, [
2342
2342
  "iconLeft",
2343
2343
  "iconRight",
2344
2344
  "children"
@@ -2347,14 +2347,14 @@ var Button = /*#__PURE__*/ forwardRef(function(_param, ref) {
2347
2347
  ref: ref
2348
2348
  }, props), {
2349
2349
  children: [
2350
- iconLeft && /*#__PURE__*/ jsx(IconWrapper$2, {
2350
+ IconLeft && /*#__PURE__*/ jsx(IconWrapper$2, {
2351
2351
  iconLeft: true,
2352
- children: iconLeft
2352
+ children: /*#__PURE__*/ jsx(IconLeft, {})
2353
2353
  }),
2354
2354
  children,
2355
- iconRight && /*#__PURE__*/ jsx(IconWrapper$2, {
2355
+ IconRight && /*#__PURE__*/ jsx(IconWrapper$2, {
2356
2356
  iconRight: true,
2357
- children: iconRight
2357
+ children: /*#__PURE__*/ jsx(IconRight, {})
2358
2358
  })
2359
2359
  ]
2360
2360
  }));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.7.3",
5
+ "version": "0.7.4",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { BaseButtonProps } from './BaseButton';
3
3
  export interface ButtonProps extends Omit<BaseButtonProps, 'round'> {
4
- iconLeft?: React.ReactNode;
5
- iconRight?: React.ReactNode;
4
+ iconLeft?: React.ElementType;
5
+ iconRight?: React.ElementType;
6
6
  }
7
7
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;