revdev-components 0.95.0 → 0.96.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.
- package/build/button/index.d.ts +2 -5
- package/build/index.js +3 -3
- package/build/styles.css +4 -1
- package/package.json +1 -1
package/build/button/index.d.ts
CHANGED
|
@@ -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
|
@@ -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","
|
|
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,
|
|
5159
|
-
return (React.createElement(antd.Button, { className: classNames(s$7.root, className, (_b = {}, _b[s$7.
|
|
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-
|
|
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;
|