@easyv/react-components 0.0.39 → 0.0.41
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/dist/Button/index.d.ts +3 -7
- package/dist/Button/index.js +4 -2
- package/dist/Button/index.less +14 -0
- package/dist/Button/interface.d.ts +6 -1
- package/dist/Color/Preview.less +1 -1
- package/dist/Dropdown/index.less +11 -0
- package/dist/Input/index.less +16 -0
- package/dist/Radio/index.less +1 -1
- package/dist/RangeColor/index.less +2 -3
- package/package.json +2 -2
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ButtonProps
|
|
2
|
+
import type { ButtonProps } from './interface';
|
|
3
3
|
import './index.less';
|
|
4
|
-
|
|
5
|
-
type?: 'link' | ButtonProps['type'];
|
|
6
|
-
}
|
|
7
|
-
declare function XButton({ type, className, ...restProps }: XButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function XButton({ type, className, simple, ...restProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
5
|
declare namespace XButton {
|
|
9
|
-
var Group: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<unknown>>;
|
|
6
|
+
var Group: import("react").ForwardRefExoticComponent<import("@arco-design/web-react").ButtonGroupProps & import("react").RefAttributes<unknown>>;
|
|
10
7
|
}
|
|
11
|
-
export { XButtonProps as ButtonProps, ButtonGroupProps };
|
|
12
8
|
export default XButton;
|
package/dist/Button/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
var _excluded = ["type", "className"];
|
|
2
|
+
var _excluded = ["type", "className", "simple"];
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -14,11 +14,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
function XButton(_ref) {
|
|
15
15
|
var type = _ref.type,
|
|
16
16
|
className = _ref.className,
|
|
17
|
+
simple = _ref.simple,
|
|
17
18
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
19
|
var isLink = type === 'link';
|
|
19
20
|
return /*#__PURE__*/_jsx(Button, _objectSpread({
|
|
20
21
|
className: classNames(className, {
|
|
21
|
-
'arco-btn-link': isLink
|
|
22
|
+
'arco-btn-link': isLink,
|
|
23
|
+
'arco-btn-simple': simple
|
|
22
24
|
}),
|
|
23
25
|
type: isLink ? 'text' : type
|
|
24
26
|
}, restProps));
|
package/dist/Button/index.less
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// icon 处理
|
|
26
27
|
span:has(svg) {
|
|
27
28
|
vertical-align: -2px;
|
|
28
29
|
}
|
|
@@ -30,4 +31,17 @@
|
|
|
30
31
|
span:has(svg) + span {
|
|
31
32
|
margin-left: 8px;
|
|
32
33
|
}
|
|
34
|
+
|
|
35
|
+
// simple 类型的样式处理
|
|
36
|
+
&.arco-btn-simple {
|
|
37
|
+
&.arco-btn-link,
|
|
38
|
+
&.arco-btn-text {
|
|
39
|
+
padding-left: 0;
|
|
40
|
+
padding-right: 0;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
33
47
|
}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ButtonProps, ButtonGroupProps } from '@arco-design/web-react';
|
|
2
|
+
interface XButtonProps extends Omit<ButtonProps, 'type'> {
|
|
3
|
+
type?: 'link' | ButtonProps['type'];
|
|
4
|
+
simple?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export { XButtonProps as ButtonProps, ButtonGroupProps };
|
package/dist/Color/Preview.less
CHANGED
package/dist/Dropdown/index.less
CHANGED
package/dist/Input/index.less
CHANGED
|
@@ -60,4 +60,20 @@
|
|
|
60
60
|
border-color: rgb(var(--primary-6));
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
// 修改前缀的间距
|
|
65
|
+
.arco-input-inner-wrapper-has-prefix {
|
|
66
|
+
& > .arco-input {
|
|
67
|
+
padding-left: 4px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 修改后缀的间距
|
|
73
|
+
.arco-input-has-suffix {
|
|
74
|
+
.arco-input-group {
|
|
75
|
+
.arco-input {
|
|
76
|
+
padding-right: 4px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
63
79
|
}
|
package/dist/Radio/index.less
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 28px;
|
|
5
5
|
border-radius: 2px;
|
|
6
|
-
border: 1px solid var(--border-
|
|
7
|
-
margin-right: 8px;
|
|
6
|
+
border: 1px solid var(--color-border-2);
|
|
8
7
|
padding: 6px;
|
|
9
8
|
display: flex;
|
|
10
9
|
align-items: center;
|
|
11
10
|
justify-content: center;
|
|
12
|
-
background-color: var(--color-bg-
|
|
11
|
+
background-color: var(--color-bg-white);
|
|
13
12
|
cursor: pointer;
|
|
14
13
|
|
|
15
14
|
&::before {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyv/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"description": "a react component library base on arco design",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@arco-design/web-react": "2.57.1",
|
|
57
57
|
"@arco-themes/react-dtable": "0.0.40",
|
|
58
|
-
"@arco-themes/react-easytwin": "0.0.
|
|
58
|
+
"@arco-themes/react-easytwin": "0.0.23",
|
|
59
59
|
"@commitlint/cli": "^17.1.2",
|
|
60
60
|
"@commitlint/config-conventional": "^17.1.0",
|
|
61
61
|
"@easyv/sync-to-mirror": "^0.0.2",
|