@easyv/react-components 0.0.28 → 0.0.30
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/Checkbox/index.less +9 -0
- package/dist/Form/index.less +8 -0
- package/dist/Modal/index.less +43 -0
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +3 -4
- package/dist/Tabs/index.less +44 -15
- package/dist/Tabs/interface.d.ts +1 -2
- package/dist/Tag/index.less +8 -0
- package/dist/TreeSelect/index.less +1 -0
- package/package.json +2 -2
package/dist/Checkbox/index.less
CHANGED
package/dist/Form/index.less
CHANGED
package/dist/Modal/index.less
CHANGED
|
@@ -40,6 +40,49 @@
|
|
|
40
40
|
padding-bottom: 24px;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
// close
|
|
45
|
+
.arco-modal-close-icon {
|
|
46
|
+
line-height: 1;
|
|
47
|
+
height: 14px;
|
|
48
|
+
color: var(--color-text-3);
|
|
49
|
+
|
|
50
|
+
.easyv-icon {
|
|
51
|
+
position: relative;
|
|
52
|
+
|
|
53
|
+
&::before {
|
|
54
|
+
content: '';
|
|
55
|
+
position: absolute;
|
|
56
|
+
display: block;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
top: 50%;
|
|
59
|
+
left: 50%;
|
|
60
|
+
height: 20px;
|
|
61
|
+
width: 20px;
|
|
62
|
+
transform: translate(-50%, -50%);
|
|
63
|
+
transition: background-color 0.1s cubic-bezier(0, 0, 1, 1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
svg {
|
|
67
|
+
position: relative;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
color: var(--color-text-1);
|
|
73
|
+
|
|
74
|
+
.easyv-icon {
|
|
75
|
+
&::before {
|
|
76
|
+
background-color: var(--color-fill-1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// info
|
|
83
|
+
.arco-icon-info-circle-fill {
|
|
84
|
+
color: rgb(var(--link-6));
|
|
85
|
+
}
|
|
43
86
|
}
|
|
44
87
|
|
|
45
88
|
.arco-modal-simple {
|
package/dist/Tabs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TabsProps } from './interface';
|
|
2
2
|
import './index.less';
|
|
3
|
-
declare function XTabs({ borderless,
|
|
3
|
+
declare function XTabs({ borderless, noPadding, className, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare namespace XTabs {
|
|
5
5
|
var TabPane: import("@arco-design/web-react/es/Tabs/tab-pane").TabPaneType;
|
|
6
6
|
}
|
package/dist/Tabs/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 = ["borderless", "
|
|
2
|
+
var _excluded = ["borderless", "noPadding", "className"];
|
|
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,12 +14,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
export default function XTabs(_ref) {
|
|
15
15
|
var _classNames;
|
|
16
16
|
var borderless = _ref.borderless,
|
|
17
|
+
noPadding = _ref.noPadding,
|
|
17
18
|
className = _ref.className,
|
|
18
|
-
compact = _ref.compact,
|
|
19
|
-
alignLeft = _ref.alignLeft,
|
|
20
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
20
|
return /*#__PURE__*/_jsx(Tabs, _objectSpread({
|
|
22
|
-
className: classNames(className, (_classNames = {}, _defineProperty(_classNames, 'arco-tabs-borderless', borderless), _defineProperty(_classNames, 'arco-tabs-
|
|
21
|
+
className: classNames(className, (_classNames = {}, _defineProperty(_classNames, 'arco-tabs-borderless', borderless), _defineProperty(_classNames, 'arco-tabs-content-no-padding', noPadding), _classNames))
|
|
23
22
|
}, props));
|
|
24
23
|
}
|
|
25
24
|
XTabs.TabPane = Tabs.TabPane;
|
package/dist/Tabs/index.less
CHANGED
|
@@ -4,9 +4,51 @@
|
|
|
4
4
|
color: var(--color-text-1);
|
|
5
5
|
font-weight: bold;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
&:not(.arco-tabs-header-title-disabled):hover {
|
|
9
|
+
color: var(--color-text-1);
|
|
10
|
+
|
|
11
|
+
.arco-tabs-header-title-text {
|
|
12
|
+
&::before {
|
|
13
|
+
content: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.arco-tabs-horizontal {
|
|
20
|
+
.arco-tabs-header-scroll {
|
|
21
|
+
.arco-tabs-header-title {
|
|
22
|
+
padding-top: 0;
|
|
23
|
+
margin-left: 12px;
|
|
24
|
+
margin-right: 12px;
|
|
25
|
+
|
|
26
|
+
.arco-tabs-header-title-text {
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:first-of-type {
|
|
31
|
+
margin-left: 24px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
7
35
|
}
|
|
8
36
|
|
|
9
37
|
&.arco-tabs-borderless {
|
|
38
|
+
&.arco-tabs-horizontal {
|
|
39
|
+
.arco-tabs-header-scroll {
|
|
40
|
+
.arco-tabs-header-title {
|
|
41
|
+
&:first-of-type {
|
|
42
|
+
margin-left: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:nth-last-child(2) {
|
|
46
|
+
margin-right: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
10
52
|
.arco-tabs-header-nav {
|
|
11
53
|
&::before {
|
|
12
54
|
content: none;
|
|
@@ -14,22 +56,9 @@
|
|
|
14
56
|
}
|
|
15
57
|
}
|
|
16
58
|
|
|
17
|
-
&.arco-tabs-
|
|
18
|
-
.arco-tabs-
|
|
59
|
+
&.arco-tabs-content-no-padding {
|
|
60
|
+
.arco-tabs-content {
|
|
19
61
|
padding-top: 0;
|
|
20
|
-
padding-bottom: 4px;
|
|
21
|
-
margin-left: 12px;
|
|
22
|
-
margin-right: 12px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.arco-tabs-horizontal {
|
|
27
|
-
&.arco-tabs-left {
|
|
28
|
-
.arco-tabs-header-title {
|
|
29
|
-
&:first-of-type {
|
|
30
|
-
margin-left: 0;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
62
|
}
|
|
34
63
|
}
|
|
35
64
|
}
|
package/dist/Tabs/interface.d.ts
CHANGED
package/dist/Tag/index.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyv/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "a react component library base on arco design",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@arco-design/web-react": "2.57.1",
|
|
57
|
-
"@arco-themes/react-dtable": "0.0.
|
|
57
|
+
"@arco-themes/react-dtable": "0.0.40",
|
|
58
58
|
"@commitlint/cli": "^17.1.2",
|
|
59
59
|
"@commitlint/config-conventional": "^17.1.0",
|
|
60
60
|
"@easyv/sync-to-mirror": "^0.0.2",
|