@easyv/react-components 0.0.28 → 0.0.31

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.
@@ -0,0 +1,9 @@
1
+ .arco-checkbox {
2
+ &:hover {
3
+ .arco-checkbox-icon-hover {
4
+ &::before {
5
+ background-color: transparent;
6
+ }
7
+ }
8
+ }
9
+ }
@@ -3,3 +3,11 @@
3
3
  display: inline-block;
4
4
  }
5
5
  }
6
+
7
+ .arco-form-vertical {
8
+ .arco-form-label-item {
9
+ .arco-form-item-symbol {
10
+ margin-left: -16px;
11
+ }
12
+ }
13
+ }
@@ -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 {
@@ -1,6 +1,6 @@
1
1
  import { TabsProps } from './interface';
2
2
  import './index.less';
3
- declare function XTabs({ borderless, className, compact, alignLeft, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function XTabs({ borderless, 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
  }
@@ -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", "className", "compact", "alignLeft"];
2
+ var _excluded = ["borderless", "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; }
@@ -12,14 +12,11 @@ import { Tabs } from '@arco-design/web-react';
12
12
  import "./index.less";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  export default function XTabs(_ref) {
15
- var _classNames;
16
15
  var borderless = _ref.borderless,
17
16
  className = _ref.className,
18
- compact = _ref.compact,
19
- alignLeft = _ref.alignLeft,
20
17
  props = _objectWithoutProperties(_ref, _excluded);
21
18
  return /*#__PURE__*/_jsx(Tabs, _objectSpread({
22
- className: classNames(className, (_classNames = {}, _defineProperty(_classNames, 'arco-tabs-borderless', borderless), _defineProperty(_classNames, 'arco-tabs-compact', compact), _defineProperty(_classNames, 'arco-tabs-left', alignLeft), _classNames))
19
+ className: classNames(className, _defineProperty({}, 'arco-tabs-borderless', borderless))
23
20
  }, props));
24
21
  }
25
22
  XTabs.TabPane = Tabs.TabPane;
@@ -4,32 +4,55 @@
4
4
  color: var(--color-text-1);
5
5
  font-weight: bold;
6
6
  }
7
- }
8
7
 
9
- &.arco-tabs-borderless {
10
- .arco-tabs-header-nav {
11
- &::before {
12
- content: none;
13
- }
14
- }
15
- }
8
+ &:not(.arco-tabs-header-title-disabled):hover {
9
+ color: var(--color-text-1);
16
10
 
17
- &.arco-tabs-compact {
18
- .arco-tabs-header-title {
19
- padding-top: 0;
20
- padding-bottom: 4px;
21
- margin-left: 12px;
22
- margin-right: 12px;
11
+ .arco-tabs-header-title-text {
12
+ &::before {
13
+ content: none;
14
+ }
15
+ }
23
16
  }
24
17
  }
25
18
 
26
19
  &.arco-tabs-horizontal {
27
- &.arco-tabs-left {
20
+ .arco-tabs-header-scroll {
28
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
+
29
30
  &:first-of-type {
30
- margin-left: 0;
31
+ margin-left: 24px;
31
32
  }
32
33
  }
33
34
  }
34
35
  }
36
+
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
+
52
+ .arco-tabs-header-nav {
53
+ &::before {
54
+ content: none;
55
+ }
56
+ }
57
+ }
35
58
  }
@@ -1,7 +1,5 @@
1
1
  import type { TabsProps } from '@arco-design/web-react';
2
2
  interface XTabsProps extends TabsProps {
3
3
  borderless?: boolean;
4
- compact?: boolean;
5
- alignLeft?: boolean;
6
4
  }
7
5
  export type { XTabsProps as TabsProps };
@@ -14,4 +14,12 @@ div.arco-tag {
14
14
  &.arco-tag-size-small {
15
15
  border-radius: var(--border-radius-small);
16
16
  }
17
+
18
+ .arco-tag-close-btn {
19
+ color: var(--color-text-3);
20
+
21
+ &:hover {
22
+ color: var(--color-text-1);
23
+ }
24
+ }
17
25
  }
@@ -23,6 +23,7 @@
23
23
  }
24
24
 
25
25
  .arco-tree-select-popup {
26
+ max-height: 240px;
26
27
  padding-left: 0;
27
28
  padding-right: 0;
28
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-components",
3
- "version": "0.0.28",
3
+ "version": "0.0.31",
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.38",
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",