@voplus/morpho-document 1.4.111 → 1.4.112
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,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { faEdit } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { faEdit as faEditSolid } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import Icon from "@voplus/morpho-ui/es/controls/HoverSwitchIcon";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
const FolderEdit = (props) => {
|
|
8
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
9
|
+
React.createElement("div", { className: "content-container" },
|
|
10
|
+
props.children,
|
|
11
|
+
props.showEditIcon === true && (React.createElement(Icon, { className: "edit-icon", icon: faEdit, hover: faEditSolid, onClick: () => { var _a; return (_a = props.onEditIconClick) === null || _a === void 0 ? void 0 : _a.call(props); } }))))));
|
|
12
|
+
};
|
|
13
|
+
export default FolderEdit;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/FolderEdit/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,+CAA+C,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,KAInB,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,mBAAmB;YAChC,KAAK,CAAC,QAAQ;YACd,KAAK,CAAC,YAAY,KAAK,IAAI,IAAI,CAC/B,oBAAC,IAAI,IACJ,SAAS,EAAC,WAAW,EACrB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,eAAe,+CAArB,KAAK,CAAoB,CAAA,EAAA,GACvC,CACF,CACI,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
|
|
5
|
+
.content-container {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
|
|
10
|
+
>.buttons {
|
|
11
|
+
:hover {
|
|
12
|
+
color: @primary-color;
|
|
13
|
+
font-size: 1.05rem;
|
|
14
|
+
|
|
15
|
+
svg {
|
|
16
|
+
filter: drop-shadow(2px 2px 2px @primary-color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
font-size: 1rem;
|
|
22
|
+
|
|
23
|
+
svg {
|
|
24
|
+
margin-left: 5px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:not(:hover) {
|
|
29
|
+
|
|
30
|
+
.edit-icon {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.edit-icon {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
color: lightgray;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|