revdev-components 0.95.0 → 0.97.0

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.
@@ -1,13 +1,10 @@
1
1
  import React from "react";
2
+ import { ButtonProps as AntdButtonProps } from "antd";
2
3
  import { TooltipPlacement } from "antd/es/tooltip";
3
4
  import { RegularIconName } from "src/icon";
4
- interface ButtonContentProps {
5
+ interface ButtonContentProps extends Omit<AntdButtonProps, "icon" | "rightIcon"> {
5
6
  icon?: RegularIconName;
6
7
  rightIcon?: RegularIconName;
7
- className?: string;
8
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
9
- children?: React.ReactNode;
10
- disabled?: boolean;
11
8
  isPrimary?: boolean;
12
9
  }
13
10
  export interface ButtonProps extends ButtonContentProps {
package/build/index.js CHANGED
@@ -129,7 +129,7 @@ var SvgArrowBackIos = function SvgArrowBackIos(props) {
129
129
  xmlns: "http://www.w3.org/2000/svg",
130
130
  viewBox: "0 0 32 32"
131
131
  }, props), _path$2k || (_path$2k = /*#__PURE__*/React__namespace.createElement("path", {
132
- d: "M15.563 5.188 4.75 16.001l10.813 10.813-2.375 2.375L0 16.001 13.188 2.813z"
132
+ d: "M23.781 5.189 12.969 16.001l10.812 10.812-2.375 2.375L8.218 16 21.406 2.812z"
133
133
  })));
134
134
  };
135
135
 
@@ -5151,12 +5151,12 @@ var PopoverSelect = function (_a) {
5151
5151
  React.createElement(IconDivision, { icon: icon, onClick: handleOpen, rightIcon: open ? "expand-less" : "expand-more" }, showValue ? value : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label)));
5152
5152
  };
5153
5153
 
5154
- var s$7 = {"root":"index-module_root__EQ0II","root_rounded":"index-module_root_rounded__oj965"};
5154
+ var s$7 = {"root":"index-module_root__EQ0II","root__rounded":"index-module_root__rounded__nqE4q","root__link":"index-module_root__link__jIljS"};
5155
5155
 
5156
5156
  var Content = function (_a) {
5157
5157
  var _b;
5158
- var icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, onClick = _a.onClick, isPrimary = _a.isPrimary, disabled = _a.disabled;
5159
- return (React.createElement(antd.Button, { className: classNames(s$7.root, className, (_b = {}, _b[s$7.root_rounded] = !children, _b)), onClick: onClick, type: isPrimary ? "primary" : "default", disabled: disabled },
5158
+ var icon = _a.icon, rightIcon = _a.rightIcon, isPrimary = _a.isPrimary, className = _a.className, children = _a.children, href = _a.href, props = __rest(_a, ["icon", "rightIcon", "isPrimary", "className", "children", "href"]);
5159
+ return (React.createElement(antd.Button, __assign({ className: classNames(s$7.root, className, (_b = {}, _b[s$7.root__rounded] = !children, _b[s$7.root__link] = href, _b)), type: isPrimary ? "primary" : "default", href: href }, props),
5160
5160
  React.createElement(IconDivision, { icon: icon, rightIcon: rightIcon }, children)));
5161
5161
  };
5162
5162
  var Button = function (_a) {
package/build/styles.css CHANGED
@@ -451,10 +451,13 @@ body {
451
451
  .index-module_root__EQ0II {
452
452
  height: 32px;
453
453
  }
454
- .index-module_root_rounded__oj965 {
454
+ .index-module_root__rounded__nqE4q {
455
455
  width: 32px;
456
456
  border-radius: 50%;
457
457
  }
458
+ .index-module_root__link__jIljS {
459
+ text-decoration: none;
460
+ }
458
461
  .index-module_root__pGOaD {
459
462
  display: flex;
460
463
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.95.0",
3
+ "version": "0.97.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {