@bigbinary/neeto-folders-frontend 2.0.30 → 2.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.
- package/dist/cjs/components.js +15 -15
- package/dist/cjs/components.js.map +1 -1
- package/dist/components.js +15 -15
- package/dist/components.js.map +1 -1
- package/package.json +11 -11
package/dist/components.js
CHANGED
|
@@ -384,10 +384,10 @@ var Node$1 = function Node(_ref, ref) {
|
|
|
384
384
|
length: depth
|
|
385
385
|
}).map(function (_, index) {
|
|
386
386
|
return /*#__PURE__*/jsx("span", {
|
|
387
|
-
className: "neeto-ui-border-gray-300 relative h-full flex-shrink-0 border-
|
|
387
|
+
className: "neeto-ui-border-gray-300 relative h-full flex-shrink-0 border-s",
|
|
388
388
|
style: {
|
|
389
389
|
width: REORDER_TREE_INDENT_WIDTH,
|
|
390
|
-
|
|
390
|
+
insetInlineStart: Math.round(REORDER_TREE_INDENT_WIDTH / 2)
|
|
391
391
|
}
|
|
392
392
|
}, index);
|
|
393
393
|
}), /*#__PURE__*/jsxs("div", _objectSpread$g(_objectSpread$g({}, _objectSpread$g(_objectSpread$g({}, rest), {}, {
|
|
@@ -397,7 +397,7 @@ var Node$1 = function Node(_ref, ref) {
|
|
|
397
397
|
"data-cy": "".concat(hyphenate(folder.name), "-folder-node"),
|
|
398
398
|
className: classNames("relative my-1 flex cursor-pointer items-center px-2 py-1", className),
|
|
399
399
|
children: [icon, /*#__PURE__*/jsxs("div", {
|
|
400
|
-
className: "
|
|
400
|
+
className: "ms-2",
|
|
401
401
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
402
402
|
lineHeight: "snug",
|
|
403
403
|
style: "body1",
|
|
@@ -563,7 +563,7 @@ var PaneBody = function PaneBody(_ref) {
|
|
|
563
563
|
style: "h2",
|
|
564
564
|
children: t("moveToFolder.title")
|
|
565
565
|
}), /*#__PURE__*/jsx(Button, {
|
|
566
|
-
className: "
|
|
566
|
+
className: "me-2",
|
|
567
567
|
"data-cy": "add-new-folder-button",
|
|
568
568
|
label: t("folders.add"),
|
|
569
569
|
style: "link",
|
|
@@ -810,7 +810,7 @@ var RearrangeFoldersPane = function RearrangeFoldersPane(_ref) {
|
|
|
810
810
|
});
|
|
811
811
|
var nodeProps = {
|
|
812
812
|
icon: /*#__PURE__*/jsx(Reorder, {
|
|
813
|
-
className: "neeto-ui-text-gray-500 relative -
|
|
813
|
+
className: "neeto-ui-text-gray-500 relative -start-[0.3125rem] flex-shrink-0"
|
|
814
814
|
})
|
|
815
815
|
};
|
|
816
816
|
if (isFetching) {
|
|
@@ -1145,7 +1145,7 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1145
1145
|
});
|
|
1146
1146
|
var nodeProps = {
|
|
1147
1147
|
icon: /*#__PURE__*/jsx(Reorder, {
|
|
1148
|
-
className: "neeto-ui-text-gray-500 relative -
|
|
1148
|
+
className: "neeto-ui-text-gray-500 relative -start-[0.3125rem] flex-shrink-0"
|
|
1149
1149
|
})
|
|
1150
1150
|
};
|
|
1151
1151
|
if (isFetching) {
|
|
@@ -1199,7 +1199,7 @@ var ReorderFoldersPane = function ReorderFoldersPane(_ref) {
|
|
|
1199
1199
|
}), /*#__PURE__*/createPortal(/*#__PURE__*/jsx(DragOverlay, {
|
|
1200
1200
|
zIndex: 99999,
|
|
1201
1201
|
children: dragState && /*#__PURE__*/jsx(Node$2, _objectSpread$a(_objectSpread$a({}, nodeProps), {}, {
|
|
1202
|
-
className: "neeto-ui-bg-gray-200
|
|
1202
|
+
className: "neeto-ui-bg-gray-200 ps-4 pe-12",
|
|
1203
1203
|
depth: 0,
|
|
1204
1204
|
folder: dragState.activeItem,
|
|
1205
1205
|
folderLabel: config.labels[((_dragState$activeItem = (_dragState$activeItem2 = dragState.activeItem) === null || _dragState$activeItem2 === void 0 || (_dragState$activeItem2 = _dragState$activeItem2.children) === null || _dragState$activeItem2 === void 0 ? void 0 : _dragState$activeItem2.length) !== null && _dragState$activeItem !== void 0 ? _dragState$activeItem : 0) > 1 ? "folders" : "folder"],
|
|
@@ -1315,7 +1315,7 @@ var FolderTile = function FolderTile(_ref) {
|
|
|
1315
1315
|
}), /*#__PURE__*/jsxs("span", {
|
|
1316
1316
|
className: "flex min-w-0 flex-grow flex-col gap-2",
|
|
1317
1317
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1318
|
-
className: "-mt-0.5 line-clamp-2 break-words
|
|
1318
|
+
className: "-mt-0.5 line-clamp-2 break-words pe-8",
|
|
1319
1319
|
"data-cy": "folder-name",
|
|
1320
1320
|
lineHeight: "snug",
|
|
1321
1321
|
style: "body1",
|
|
@@ -1330,7 +1330,7 @@ var FolderTile = function FolderTile(_ref) {
|
|
|
1330
1330
|
}), /*#__PURE__*/jsx(MoreDropdown, {
|
|
1331
1331
|
menuItems: menuItems,
|
|
1332
1332
|
dropdownButtonProps: {
|
|
1333
|
-
className: "absolute
|
|
1333
|
+
className: "absolute end-2 top-2"
|
|
1334
1334
|
},
|
|
1335
1335
|
dropdownProps: {
|
|
1336
1336
|
onClick: function onClick(event) {
|
|
@@ -1469,15 +1469,15 @@ var Node = function Node(_ref) {
|
|
|
1469
1469
|
"data-cy": "".concat(hyphenate(name), "-").concat(isFolder ? "folder" : "item", "-sublink"),
|
|
1470
1470
|
title: "",
|
|
1471
1471
|
children: [isFolder && (isExpanded ? /*#__PURE__*/jsx(FolderIconOpen, {
|
|
1472
|
-
className: "flex-shrink-0
|
|
1472
|
+
className: "flex-shrink-0 me-1",
|
|
1473
1473
|
size: 16
|
|
1474
1474
|
}) : /*#__PURE__*/jsx(FolderIcon, {
|
|
1475
|
-
className: "flex-shrink-0
|
|
1475
|
+
className: "flex-shrink-0 me-1",
|
|
1476
1476
|
size: 16
|
|
1477
1477
|
})), /*#__PURE__*/jsxs("div", {
|
|
1478
1478
|
className: "flex items-center min-w-0 flex-1",
|
|
1479
1479
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1480
|
-
className: "line-clamp-1 block truncate
|
|
1480
|
+
className: "line-clamp-1 block truncate ps-0.5",
|
|
1481
1481
|
component: "span",
|
|
1482
1482
|
style: "body2",
|
|
1483
1483
|
title: name,
|
|
@@ -1485,12 +1485,12 @@ var Node = function Node(_ref) {
|
|
|
1485
1485
|
}), isPrivate && /*#__PURE__*/jsx("span", {
|
|
1486
1486
|
title: t("common.private"),
|
|
1487
1487
|
children: /*#__PURE__*/jsx(Lock, {
|
|
1488
|
-
className: "flex-shrink-0
|
|
1488
|
+
className: "flex-shrink-0 ms-1",
|
|
1489
1489
|
size: 16
|
|
1490
1490
|
})
|
|
1491
1491
|
})]
|
|
1492
1492
|
}), hasAnyActions && /*#__PURE__*/jsxs("div", {
|
|
1493
|
-
className: "flex items-center gap-0.5 py-0.5 absolute
|
|
1493
|
+
className: "flex items-center gap-0.5 py-0.5 absolute end-0 top-0 h-full neeto-sidebar-folders-tree__folder-node-actions neeto-ui-rounded-md ps-2",
|
|
1494
1494
|
onClick: function onClick(e) {
|
|
1495
1495
|
e.preventDefault();
|
|
1496
1496
|
e.stopPropagation();
|
|
@@ -1777,7 +1777,7 @@ TreeSelect.displayName = "TreeSelect";
|
|
|
1777
1777
|
|
|
1778
1778
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1779
1779
|
|
|
1780
|
-
var css = ".neeto-sidebar-folders-tree__folder-node{color:inherit!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper{min-width:0;padding-inline:2px!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-accent-800))!important;font-weight:500}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher{margin-
|
|
1780
|
+
var css = ".neeto-sidebar-folders-tree__folder-node{color:inherit!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper{min-width:0;padding-inline:2px!important}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-accent-800))!important;font-weight:500}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher{margin-inline-end:0}.neeto-sidebar-folders-tree.ant-tree .ant-tree-switcher .ant-tree-switcher-icon{position:relative}.neeto-folders-grid-view-wrapper{grid-template-columns:repeat(auto-fill,minmax(256px,1fr))}.neeto-sidebar-folders-tree.ant-tree .ant-tree-node-content-wrapper:hover .neeto-sidebar-folders-tree__folder-node-actions{background-image:linear-gradient(90deg,rgba(var(--neeto-ui-gray-100),.5) 0,rgba(var(--neeto-ui-gray-100),1) 25%)}.neeto-sidebar-folders-tree.ant-tree .ant-tree-treenode{margin-bottom:6px}.neeto-sidebar-folders-tree.ant-tree .ant-tree-treenode:before{height:6px}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9jb21wb25lbnRzL25lZXRvLWZvbGRlcnMtbmFuby5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlDQUNFLHVCQUNGLENBRUEsb0VBRUUsV0FBQSxDQURBLDRCQUVGLENBRUEsMkZBRUUsOENBQUEsQ0FEQSwrQ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GF0ZS1jb2x1bW5zOiByZXBlYXQoYXV0by1maWxsLCBtaW5tYXgoMjU2cHgsIDFmcikpO1xufVxuXG4ubmVldG8tc2lkZWJhci1mb2xkZXJzLXRyZWUuYW50LXRyZWUgLmFudC10cmVlLW5vZGUtY29udGVudC13cmFwcGVyOmhvdmVyIC5uZWV0by1zaWRlYmFyLWZvbGRlcnMtdHJlZV9fZm9sZGVyLW5vZGUtYWN0aW9ucyB7XG4gIGJhY2tncm91bmQtaW1hZ2U6IGxpbmVhci1ncmFkaWVudCg5MGRlZywgcmdiYSh2YXIoLS1uZWV0by11aS1ncmF5LTEwMCksIC41KSAwLCByZ2JhKHZhcigtLW5lZXRvLXVpLWdyYXktMTAwKSwgMSkgMjUlKTtcbn1cblxuLm5lZXRvLXNpZGViYXItZm9sZGVycy10cmVlLmFudC10cmVlIC5hbnQtdHJlZS10cmVlbm9kZSB7XG4gIG1hcmdpbi1ib3R0b206IDZweDtcbn1cblxuLm5lZXRvLXNpZGViYXItZm9sZGVycy10cmVlLmFudC10cmVlIC5hbnQtdHJlZS10cmVlbm9kZTo6YmVmb3JlIHtcbiAgaGVpZ2h0OiA2cHg7XG59XG4iXX0= */";
|
|
1781
1781
|
n(css,{});
|
|
1782
1782
|
|
|
1783
1783
|
export { AddEditPane, FoldersContext, FoldersList, FoldersTree, MoveToFolderPane, TreeSelect };
|