@paubox/ui 0.8.2 → 0.8.3

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
@@ -2400,13 +2400,15 @@ var IconWrapper$3 = styled.span(_templateObject$l(), function(props) {
2400
2400
  return props.iconLeft ? '0 8px 0 0' : props.iconRight ? '0 0 0 8px' : '0';
2401
2401
  });
2402
2402
  var Button = /*#__PURE__*/ forwardRef(function(_param, ref) {
2403
- var IconLeft = _param.iconLeft, IconRight = _param.iconRight, children = _param.children, props = _object_without_properties$i(_param, [
2403
+ var IconLeft = _param.iconLeft, IconRight = _param.iconRight, _param_type = _param.type, type = _param_type === void 0 ? 'button' : _param_type, children = _param.children, props = _object_without_properties$i(_param, [
2404
2404
  "iconLeft",
2405
2405
  "iconRight",
2406
+ "type",
2406
2407
  "children"
2407
2408
  ]);
2408
2409
  return /*#__PURE__*/ jsxs(BaseButton, _object_spread_props$n(_object_spread$t({
2409
- ref: ref
2410
+ ref: ref,
2411
+ type: type
2410
2412
  }, props), {
2411
2413
  children: [
2412
2414
  IconLeft && /*#__PURE__*/ jsx(IconWrapper$3, {
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.8.2",
5
+ "version": "0.8.3",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEventHandler } from 'react';
2
- export interface BaseButtonProps {
2
+ export interface BaseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  color?: 'primary' | 'secondary' | 'danger';
4
4
  disabled?: boolean;
5
5
  size?: 'large' | 'small';