linkmore-design 1.1.19-beta → 1.1.19-beta.1
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/LmTable/components/Container/Container.d.ts +1 -1
- package/dist/LmTable/components/Item/Item.d.ts +1 -1
- package/dist/LmTable/components/Item/components/Action/Action.d.ts +1 -1
- package/dist/index.umd.css +56 -56
- package/dist/index.umd.js +6 -7
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +2 -2
- package/es/LmTable/components/Container/{Container.module.css → Container.css} +0 -0
- package/es/LmTable/components/Container/Container.d.ts +1 -1
- package/es/LmTable/components/Container/Container.js +1 -1
- package/es/LmTable/components/Item/{Item.module.css → Item.css} +15 -15
- package/es/LmTable/components/Item/Item.d.ts +1 -1
- package/es/LmTable/components/Item/Item.js +6 -6
- package/{lib/LmTable/components/Item/components/Action/Action.module.css → es/LmTable/components/Item/components/Action/Action.css} +7 -7
- package/es/LmTable/components/Item/components/Action/Action.d.ts +1 -1
- package/es/LmTable/components/Item/components/Action/Action.js +2 -2
- package/lib/LmTable/components/Container/{Container.module.css → Container.css} +0 -0
- package/lib/LmTable/components/Container/Container.d.ts +1 -1
- package/lib/LmTable/components/Container/Container.js +1 -1
- package/lib/LmTable/components/Item/{Item.module.css → Item.css} +15 -15
- package/lib/LmTable/components/Item/Item.d.ts +1 -1
- package/lib/LmTable/components/Item/Item.js +6 -6
- package/{es/LmTable/components/Item/components/Action/Action.module.css → lib/LmTable/components/Item/components/Action/Action.css} +7 -7
- package/lib/LmTable/components/Item/components/Action/Action.d.ts +1 -1
- package/lib/LmTable/components/Item/components/Action/Action.js +2 -2
- package/package.json +1 -1
|
File without changes
|
|
@@ -11,7 +11,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
11
11
|
import React, { forwardRef } from 'react';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
// import {Handle, Remove} from '../Item';
|
|
14
|
-
import "./Container.
|
|
14
|
+
import "./Container.css";
|
|
15
15
|
export var Container = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
16
16
|
var children = _a.children,
|
|
17
17
|
_a$columns = _a.columns,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
opacity: 1;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.dnd_com_item_Wrapper {
|
|
20
20
|
display: flex;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
margin-right: 6px;
|
|
26
26
|
margin-bottom: 6px;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.dnd_com_item_Wrapper.fadeIn {
|
|
29
29
|
animation: fadeIn 500ms ease;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.dnd_com_item_Wrapper.dragOverlay {
|
|
32
32
|
--scale: 1.05;
|
|
33
33
|
--box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
34
34
|
--box-shadow-picked-up: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05),
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
0px 15px 15px 0 rgba(34, 33, 81, 0.25);
|
|
37
37
|
z-index: 999;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.dnd_com_Item {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-grow: 1;
|
|
@@ -57,29 +57,29 @@
|
|
|
57
57
|
transform: scale(var(--scale, 1));
|
|
58
58
|
transition: box-shadow 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.dnd_com_Item:focus-visible {
|
|
61
61
|
box-shadow: 0 0px 4px 1px #4c9ffe, 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.dnd_com_Item:not(.withHandle) {
|
|
64
64
|
touch-action: manipulation;
|
|
65
65
|
cursor: grab;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.dnd_com_Item.dragging:not(.dragOverlay) {
|
|
68
68
|
opacity: var(--dragging-opacity, 0.5);
|
|
69
69
|
z-index: 0;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.dnd_com_Item.dragging:not(.dragOverlay):focus {
|
|
72
72
|
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.dnd_com_Item.disabled {
|
|
75
75
|
color: #999;
|
|
76
76
|
background-color: #f1f1f1;
|
|
77
77
|
cursor: not-allowed;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.dnd_com_Item.disabled:focus {
|
|
80
80
|
box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.dnd_com_Item.dragOverlay {
|
|
83
83
|
cursor: inherit;
|
|
84
84
|
/* box-shadow: 0 0px 6px 2px @focused-outline-color; */
|
|
85
85
|
animation: pop 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
box-shadow: var(--box-shadow-picked-up);
|
|
88
88
|
opacity: 1;
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.dnd_com_Item.color:before {
|
|
91
91
|
content: '';
|
|
92
92
|
position: absolute;
|
|
93
93
|
top: 50%;
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
border-bottom-left-radius: 3px;
|
|
101
101
|
background-color: var(--color);
|
|
102
102
|
}
|
|
103
|
-
.
|
|
103
|
+
.dnd_com_Item:hover .dnd_com_Remove {
|
|
104
104
|
visibility: visible;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.dnd_com_Remove {
|
|
107
107
|
margin-left: 6px;
|
|
108
108
|
color: #666;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.dnd_com_Actions {
|
|
111
111
|
display: flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
3
|
import type { Transform } from '@dnd-kit/utilities';
|
|
4
|
-
import './Item.
|
|
4
|
+
import './Item.less';
|
|
5
5
|
export interface Props {
|
|
6
6
|
dragOverlay?: boolean;
|
|
7
7
|
color?: string;
|
|
@@ -12,7 +12,7 @@ import React, { useEffect } from 'react';
|
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import { Handle, Remove } from './components';
|
|
14
14
|
// import IconFont from '../../../IconFont'
|
|
15
|
-
import "./Item.
|
|
15
|
+
import "./Item.css";
|
|
16
16
|
export var Item = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
17
17
|
var color = _a.color,
|
|
18
18
|
dragOverlay = _a.dragOverlay,
|
|
@@ -35,7 +35,7 @@ export var Item = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
35
35
|
props = __rest(_a, ["color", "dragOverlay", "dragging", "disabled", "fadeIn", "handle", "handleProps", "height", "index", "listeners", "onRemove", "renderItem", "sorting", "style", "transition", "transform", "value", "wrapperStyle"]);
|
|
36
36
|
useEffect(function () {
|
|
37
37
|
if (!dragOverlay) {
|
|
38
|
-
return
|
|
38
|
+
return undefined;
|
|
39
39
|
}
|
|
40
40
|
document.body.style.cursor = 'grabbing';
|
|
41
41
|
return function () {
|
|
@@ -55,7 +55,7 @@ export var Item = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
55
55
|
transition: transition,
|
|
56
56
|
value: value
|
|
57
57
|
}) : /*#__PURE__*/React.createElement("li", {
|
|
58
|
-
className: classNames('
|
|
58
|
+
className: classNames('dnd_com_item_Wrapper', fadeIn && 'fadeIn', sorting && 'sorting', dragOverlay && 'dragOverlay'),
|
|
59
59
|
style: Object.assign(Object.assign({}, wrapperStyle), {
|
|
60
60
|
transition: [transition, wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.transition].filter(Boolean).join(', '),
|
|
61
61
|
// @ts-ignore
|
|
@@ -68,15 +68,15 @@ export var Item = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
|
|
|
68
68
|
}),
|
|
69
69
|
ref: ref
|
|
70
70
|
}, /*#__PURE__*/React.createElement("div", Object.assign({
|
|
71
|
-
className: classNames('
|
|
71
|
+
className: classNames('dnd_com_Item', dragging && 'dragging', handle && 'withHandle', dragOverlay && 'dragOverlay', disabled && 'disabled', color && 'color'),
|
|
72
72
|
style: style,
|
|
73
73
|
"data-cypress": "draggable-item"
|
|
74
74
|
}, !handle ? listeners : undefined, props, {
|
|
75
75
|
tabIndex: !handle ? 0 : undefined
|
|
76
76
|
}), /*#__PURE__*/React.createElement("div", null, value), /*#__PURE__*/React.createElement("span", {
|
|
77
|
-
className: "
|
|
77
|
+
className: "dnd_com_Actions"
|
|
78
78
|
}, onRemove ? /*#__PURE__*/React.createElement(Remove, {
|
|
79
|
-
className: "
|
|
79
|
+
className: "dnd_com_Remove",
|
|
80
80
|
onClick: onRemove
|
|
81
81
|
}) :
|
|
82
82
|
// <IconFont className={styles.Remove} type="lmweb-close-circle-fill" onClick={onRemove} />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.dnd_item_actions {
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 12px;
|
|
4
4
|
margin-left: 6px;
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
-webkit-tap-highlight-color: transparent;
|
|
16
16
|
}
|
|
17
17
|
@media (hover: hover) {
|
|
18
|
-
.
|
|
18
|
+
.dnd_item_actions:hover {
|
|
19
19
|
background-color: var(--action-background, rgba(0, 0, 0, 0.05));
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.dnd_item_actions:hover svg {
|
|
22
22
|
fill: #6f7b88;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.dnd_item_actions svg {
|
|
26
26
|
flex: 0 0 auto;
|
|
27
27
|
margin: auto;
|
|
28
28
|
height: 100%;
|
|
29
29
|
overflow: visible;
|
|
30
30
|
fill: #919eab;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.dnd_item_actions:active {
|
|
33
33
|
background-color: var(--background, rgba(0, 0, 0, 0.05));
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.dnd_item_actions:active svg {
|
|
36
36
|
fill: var(--fill, #788491);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.dnd_item_actions:focus-visible {
|
|
39
39
|
outline: none;
|
|
40
40
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
|
|
41
41
|
}
|
|
@@ -10,7 +10,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
10
10
|
};
|
|
11
11
|
import React, { forwardRef } from 'react';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import "./Action.
|
|
13
|
+
import "./Action.css";
|
|
14
14
|
export var Action = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
15
15
|
var active = _a.active,
|
|
16
16
|
className = _a.className,
|
|
@@ -20,7 +20,7 @@ export var Action = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20
20
|
return /*#__PURE__*/React.createElement("button", Object.assign({
|
|
21
21
|
ref: ref
|
|
22
22
|
}, props, {
|
|
23
|
-
className: classNames('
|
|
23
|
+
className: classNames('dnd_item_actions', className),
|
|
24
24
|
tabIndex: 0,
|
|
25
25
|
style: Object.assign(Object.assign({}, style), {
|
|
26
26
|
cursor: cursor,
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.Container = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
require("./Container.
|
|
11
|
+
require("./Container.css");
|
|
12
12
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
13
13
|
var t = {};
|
|
14
14
|
for (var p in s) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
opacity: 1;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
.dnd_com_item_Wrapper {
|
|
20
20
|
display: flex;
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
margin-right: 6px;
|
|
26
26
|
margin-bottom: 6px;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.dnd_com_item_Wrapper.fadeIn {
|
|
29
29
|
animation: fadeIn 500ms ease;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.dnd_com_item_Wrapper.dragOverlay {
|
|
32
32
|
--scale: 1.05;
|
|
33
33
|
--box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
34
34
|
--box-shadow-picked-up: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05),
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
0px 15px 15px 0 rgba(34, 33, 81, 0.25);
|
|
37
37
|
z-index: 999;
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.dnd_com_Item {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-grow: 1;
|
|
@@ -57,29 +57,29 @@
|
|
|
57
57
|
transform: scale(var(--scale, 1));
|
|
58
58
|
transition: box-shadow 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.dnd_com_Item:focus-visible {
|
|
61
61
|
box-shadow: 0 0px 4px 1px #4c9ffe, 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.dnd_com_Item:not(.withHandle) {
|
|
64
64
|
touch-action: manipulation;
|
|
65
65
|
cursor: grab;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.dnd_com_Item.dragging:not(.dragOverlay) {
|
|
68
68
|
opacity: var(--dragging-opacity, 0.5);
|
|
69
69
|
z-index: 0;
|
|
70
70
|
}
|
|
71
|
-
.
|
|
71
|
+
.dnd_com_Item.dragging:not(.dragOverlay):focus {
|
|
72
72
|
box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.dnd_com_Item.disabled {
|
|
75
75
|
color: #999;
|
|
76
76
|
background-color: #f1f1f1;
|
|
77
77
|
cursor: not-allowed;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.dnd_com_Item.disabled:focus {
|
|
80
80
|
box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
|
|
81
81
|
}
|
|
82
|
-
.
|
|
82
|
+
.dnd_com_Item.dragOverlay {
|
|
83
83
|
cursor: inherit;
|
|
84
84
|
/* box-shadow: 0 0px 6px 2px @focused-outline-color; */
|
|
85
85
|
animation: pop 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
box-shadow: var(--box-shadow-picked-up);
|
|
88
88
|
opacity: 1;
|
|
89
89
|
}
|
|
90
|
-
.
|
|
90
|
+
.dnd_com_Item.color:before {
|
|
91
91
|
content: '';
|
|
92
92
|
position: absolute;
|
|
93
93
|
top: 50%;
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
border-bottom-left-radius: 3px;
|
|
101
101
|
background-color: var(--color);
|
|
102
102
|
}
|
|
103
|
-
.
|
|
103
|
+
.dnd_com_Item:hover .dnd_com_Remove {
|
|
104
104
|
visibility: visible;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.dnd_com_Remove {
|
|
107
107
|
margin-left: 6px;
|
|
108
108
|
color: #666;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.dnd_com_Actions {
|
|
111
111
|
display: flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DraggableSyntheticListeners } from '@dnd-kit/core';
|
|
3
3
|
import type { Transform } from '@dnd-kit/utilities';
|
|
4
|
-
import './Item.
|
|
4
|
+
import './Item.less';
|
|
5
5
|
export interface Props {
|
|
6
6
|
dragOverlay?: boolean;
|
|
7
7
|
color?: string;
|
|
@@ -9,7 +9,7 @@ exports.Item = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _components = require("./components");
|
|
12
|
-
require("./Item.
|
|
12
|
+
require("./Item.css");
|
|
13
13
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var p in s) {
|
|
@@ -42,7 +42,7 @@ var Item = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forward
|
|
|
42
42
|
props = __rest(_a, ["color", "dragOverlay", "dragging", "disabled", "fadeIn", "handle", "handleProps", "height", "index", "listeners", "onRemove", "renderItem", "sorting", "style", "transition", "transform", "value", "wrapperStyle"]);
|
|
43
43
|
(0, _react.useEffect)(function () {
|
|
44
44
|
if (!dragOverlay) {
|
|
45
|
-
return
|
|
45
|
+
return undefined;
|
|
46
46
|
}
|
|
47
47
|
document.body.style.cursor = 'grabbing';
|
|
48
48
|
return function () {
|
|
@@ -62,7 +62,7 @@ var Item = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forward
|
|
|
62
62
|
transition: transition,
|
|
63
63
|
value: value
|
|
64
64
|
}) : /*#__PURE__*/_react.default.createElement("li", {
|
|
65
|
-
className: (0, _classnames.default)('
|
|
65
|
+
className: (0, _classnames.default)('dnd_com_item_Wrapper', fadeIn && 'fadeIn', sorting && 'sorting', dragOverlay && 'dragOverlay'),
|
|
66
66
|
style: Object.assign(Object.assign({}, wrapperStyle), {
|
|
67
67
|
transition: [transition, wrapperStyle === null || wrapperStyle === void 0 ? void 0 : wrapperStyle.transition].filter(Boolean).join(', '),
|
|
68
68
|
// @ts-ignore
|
|
@@ -75,15 +75,15 @@ var Item = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forward
|
|
|
75
75
|
}),
|
|
76
76
|
ref: ref
|
|
77
77
|
}, /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
78
|
-
className: (0, _classnames.default)('
|
|
78
|
+
className: (0, _classnames.default)('dnd_com_Item', dragging && 'dragging', handle && 'withHandle', dragOverlay && 'dragOverlay', disabled && 'disabled', color && 'color'),
|
|
79
79
|
style: style,
|
|
80
80
|
"data-cypress": "draggable-item"
|
|
81
81
|
}, !handle ? listeners : undefined, props, {
|
|
82
82
|
tabIndex: !handle ? 0 : undefined
|
|
83
83
|
}), /*#__PURE__*/_react.default.createElement("div", null, value), /*#__PURE__*/_react.default.createElement("span", {
|
|
84
|
-
className: "
|
|
84
|
+
className: "dnd_com_Actions"
|
|
85
85
|
}, onRemove ? /*#__PURE__*/_react.default.createElement(_components.Remove, {
|
|
86
|
-
className: "
|
|
86
|
+
className: "dnd_com_Remove",
|
|
87
87
|
onClick: onRemove
|
|
88
88
|
}) :
|
|
89
89
|
// <IconFont className={styles.Remove} type="lmweb-close-circle-fill" onClick={onRemove} />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.dnd_item_actions {
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 12px;
|
|
4
4
|
margin-left: 6px;
|
|
@@ -15,27 +15,27 @@
|
|
|
15
15
|
-webkit-tap-highlight-color: transparent;
|
|
16
16
|
}
|
|
17
17
|
@media (hover: hover) {
|
|
18
|
-
.
|
|
18
|
+
.dnd_item_actions:hover {
|
|
19
19
|
background-color: var(--action-background, rgba(0, 0, 0, 0.05));
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.dnd_item_actions:hover svg {
|
|
22
22
|
fill: #6f7b88;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.dnd_item_actions svg {
|
|
26
26
|
flex: 0 0 auto;
|
|
27
27
|
margin: auto;
|
|
28
28
|
height: 100%;
|
|
29
29
|
overflow: visible;
|
|
30
30
|
fill: #919eab;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.dnd_item_actions:active {
|
|
33
33
|
background-color: var(--background, rgba(0, 0, 0, 0.05));
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.dnd_item_actions:active svg {
|
|
36
36
|
fill: var(--fill, #788491);
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.dnd_item_actions:focus-visible {
|
|
39
39
|
outline: none;
|
|
40
40
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
|
|
41
41
|
}
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.Action = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
require("./Action.
|
|
11
|
+
require("./Action.css");
|
|
12
12
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
13
13
|
var t = {};
|
|
14
14
|
for (var p in s) {
|
|
@@ -28,7 +28,7 @@ var Action = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement("button", Object.assign({
|
|
29
29
|
ref: ref
|
|
30
30
|
}, props, {
|
|
31
|
-
className: (0, _classnames.default)('
|
|
31
|
+
className: (0, _classnames.default)('dnd_item_actions', className),
|
|
32
32
|
tabIndex: 0,
|
|
33
33
|
style: Object.assign(Object.assign({}, style), {
|
|
34
34
|
cursor: cursor,
|