@bigbinary/neeto-tags-frontend 0.0.41 → 0.0.43
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/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/main.css +10 -4
- package/package.json +3 -3
- package/readme.md +48 -12
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import _classCallCheck$1 from '@babel/runtime/helpers/classCallCheck';
|
|
|
17
17
|
import _createClass$1 from '@babel/runtime/helpers/createClass';
|
|
18
18
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
19
19
|
import _extends from '@babel/runtime/helpers/extends';
|
|
20
|
-
import { Plus, MenuHorizontal } from '@bigbinary/neeto-icons';
|
|
20
|
+
import { Plus, MenuHorizontal, Merge as Merge$1 } from '@bigbinary/neeto-icons';
|
|
21
21
|
import { Typography, Tag, Select, Button, Dropdown, Toastr, Pane, PageLoader, Table, Alert, Input as Input$1, Modal } from '@bigbinary/neetoui';
|
|
22
22
|
import { useHistory, Switch, Route } from 'react-router-dom';
|
|
23
23
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -26,7 +26,7 @@ import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
|
|
|
26
26
|
import _extends$1 from '@babel/runtime/helpers/esm/extends';
|
|
27
27
|
import ReactDOM from 'react-dom';
|
|
28
28
|
import axios from 'axios';
|
|
29
|
-
import { Container, Header, SubHeader,
|
|
29
|
+
import { Container, Header, SubHeader, MenuBar } from '@bigbinary/neetoui/layouts';
|
|
30
30
|
import { Formik, Form } from 'formik';
|
|
31
31
|
import { Input, Textarea } from '@bigbinary/neetoui/formik';
|
|
32
32
|
import classnames from 'classnames';
|
|
@@ -3529,7 +3529,7 @@ var Tags$2 = function Tags(_ref) {
|
|
|
3529
3529
|
weight: "bold",
|
|
3530
3530
|
className: "neeto-ui-text-gray-500 neeto-ui-mb-4"
|
|
3531
3531
|
}, label), !!selectedTags.length && /*#__PURE__*/React.createElement("div", {
|
|
3532
|
-
className: "neeto-ui-flex neeto-ui-mb-2 neeto-ui-flex-row neeto-ui-flex-wrap neeto-ui-items-start neeto-ui-justify-start"
|
|
3532
|
+
className: "neeto-ui-flex neeto-ui-mb-2 neeto-ui-flex-row neeto-ui-flex-wrap neeto-ui-items-start neeto-ui-justify-start break-all"
|
|
3533
3533
|
}, selectedTags === null || selectedTags === void 0 ? void 0 : selectedTags.map(function (tag, index) {
|
|
3534
3534
|
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
3535
3535
|
key: "".concat(index, "-").concat(tag.label),
|
|
@@ -7447,7 +7447,7 @@ var List = function List(_ref) {
|
|
|
7447
7447
|
setTags(filteredTags);
|
|
7448
7448
|
}, [searchTerm, tagList]);
|
|
7449
7449
|
return /*#__PURE__*/React.createElement("div", {
|
|
7450
|
-
className: "tags-merge__list"
|
|
7450
|
+
className: "tags-merge__list outline-none neeto-ui-border-gray-300 neeto-ui-shadow-xs neeto-ui-rounded-lg flex cursor-pointer flex-col border p-6"
|
|
7451
7451
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7452
7452
|
className: "tags-merge__title"
|
|
7453
7453
|
}, /*#__PURE__*/React.createElement("h4", null, type)), /*#__PURE__*/React.createElement(Input$1, {
|
|
@@ -7464,10 +7464,10 @@ var List = function List(_ref) {
|
|
|
7464
7464
|
"data-cy": "neeto-tags-merge-".concat(listType, "-tags-list")
|
|
7465
7465
|
}, tags.map(function (tag) {
|
|
7466
7466
|
return /*#__PURE__*/React.createElement("div", {
|
|
7467
|
-
className: classnames("tags-merge__item", {
|
|
7468
|
-
"neeto-ui-bg-
|
|
7467
|
+
className: classnames("tags-merge__item border neeto-ui-border-white", {
|
|
7468
|
+
"neeto-ui-bg-pastel-blue neeto-ui-border-primary-600": tag.id === selectedTagId,
|
|
7469
7469
|
"hover:neeto-ui-bg-gray-100": tag.id !== selectedTagId,
|
|
7470
|
-
"tags-merge__item--not-allowed": tag.id === selectedCounterTagId
|
|
7470
|
+
"tags-merge__item--not-allowed neeto-ui-bg-gray-100 neeto-ui-text-gray-500": tag.id === selectedCounterTagId
|
|
7471
7471
|
}),
|
|
7472
7472
|
key: tag.id,
|
|
7473
7473
|
onClick: tag.id === selectedCounterTagId ? undefined : function () {
|
|
@@ -7665,9 +7665,7 @@ var Merge = function Merge(_ref) {
|
|
|
7665
7665
|
|
|
7666
7666
|
return /*#__PURE__*/React.createElement("div", {
|
|
7667
7667
|
className: "w-full"
|
|
7668
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
7669
|
-
isHeaderFixed: true
|
|
7670
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
7668
|
+
}, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Header, {
|
|
7671
7669
|
title: t("merge.mergeTags"),
|
|
7672
7670
|
menuBarToggle: displayMenu ? handleMenuToggle : null,
|
|
7673
7671
|
actionBlock: /*#__PURE__*/React.createElement(Button, {
|
|
@@ -7690,8 +7688,8 @@ var Merge = function Merge(_ref) {
|
|
|
7690
7688
|
},
|
|
7691
7689
|
label: t("goBack")
|
|
7692
7690
|
})
|
|
7693
|
-
}) : /*#__PURE__*/React.createElement(
|
|
7694
|
-
className: "w-full"
|
|
7691
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
7692
|
+
className: "w-full neeto-tags-merge-container pb-6"
|
|
7695
7693
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7696
7694
|
className: "tags-merge"
|
|
7697
7695
|
}, /*#__PURE__*/React.createElement(List, {
|
|
@@ -7703,6 +7701,9 @@ var Merge = function Merge(_ref) {
|
|
|
7703
7701
|
what: t("merge.sourceTag").toLocaleLowerCase()
|
|
7704
7702
|
}),
|
|
7705
7703
|
isSource: true
|
|
7704
|
+
}), /*#__PURE__*/React.createElement(Merge$1, {
|
|
7705
|
+
size: 24,
|
|
7706
|
+
className: "self-center mx-8 neeto-ui-text-gray-600"
|
|
7706
7707
|
}), /*#__PURE__*/React.createElement(List, {
|
|
7707
7708
|
tagList: data === null || data === void 0 ? void 0 : data.tags,
|
|
7708
7709
|
onSelect: setDestinationTag,
|