@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 +5 -5
- package/package.json +1 -1
- package/src/lib/Button/Button.d.ts +2 -2
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
|
|
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
|
-
|
|
2350
|
+
IconLeft && /*#__PURE__*/ jsx(IconWrapper$2, {
|
|
2351
2351
|
iconLeft: true,
|
|
2352
|
-
children:
|
|
2352
|
+
children: /*#__PURE__*/ jsx(IconLeft, {})
|
|
2353
2353
|
}),
|
|
2354
2354
|
children,
|
|
2355
|
-
|
|
2355
|
+
IconRight && /*#__PURE__*/ jsx(IconWrapper$2, {
|
|
2356
2356
|
iconRight: true,
|
|
2357
|
-
children:
|
|
2357
|
+
children: /*#__PURE__*/ jsx(IconRight, {})
|
|
2358
2358
|
})
|
|
2359
2359
|
]
|
|
2360
2360
|
}));
|
package/package.json
CHANGED
|
@@ -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.
|
|
5
|
-
iconRight?: React.
|
|
4
|
+
iconLeft?: React.ElementType;
|
|
5
|
+
iconRight?: React.ElementType;
|
|
6
6
|
}
|
|
7
7
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|