@bigbinary/neeto-tags-frontend 0.0.43 → 0.0.45

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 CHANGED
@@ -7056,21 +7056,24 @@ var ManageTags = function ManageTags(_ref) {
7056
7056
  return /*#__PURE__*/React.createElement(Form, {
7057
7057
  noValidate: true
7058
7058
  }, /*#__PURE__*/React.createElement(Pane.Body, null, /*#__PURE__*/React.createElement("div", {
7059
- className: "flex w-full flex-col space-y-4"
7059
+ className: "neeto-ui-flex neeto-ui-w-full neeto-ui-flex-col"
7060
7060
  }, /*#__PURE__*/React.createElement(Input, {
7061
7061
  required: true,
7062
7062
  autoFocus: true,
7063
7063
  name: "name",
7064
7064
  label: "".concat(t("tag"), " ").concat(t("name").toLocaleLowerCase()),
7065
7065
  "data-cy": "tag-name-text-field",
7066
- maxLength: 50
7066
+ maxLength: 50,
7067
+ className: "neeto-ui-mb-4"
7067
7068
  }), /*#__PURE__*/React.createElement(Textarea, {
7068
7069
  name: "description",
7069
7070
  label: t("description"),
7070
7071
  rows: 3,
7071
7072
  "data-cy": "tag-description-text-area",
7072
7073
  maxLength: 255
7073
- }))), /*#__PURE__*/React.createElement(Pane.Footer, null, /*#__PURE__*/React.createElement(Button, {
7074
+ }))), /*#__PURE__*/React.createElement(Pane.Footer, {
7075
+ className: "neeto-ui-gap-2"
7076
+ }, /*#__PURE__*/React.createElement(Button, {
7074
7077
  "data-cy": "neeto-tags-manage-tag-submit-button",
7075
7078
  disabled: !dirty || isSubmitting,
7076
7079
  label: t("saveChanges"),
@@ -7180,7 +7183,7 @@ var EmptyState = function EmptyState(_ref) {
7180
7183
  component: "p",
7181
7184
  style: "body2",
7182
7185
  weight: "normal",
7183
- className: "mb-8 text-gray-600"
7186
+ className: "ntm-empty-state__description neeto-ui-text-gray-600"
7184
7187
  }, "For more information, please visit our", " ", /*#__PURE__*/React.createElement(Button, {
7185
7188
  size: "small",
7186
7189
  style: "link",
@@ -7305,11 +7308,13 @@ var Dashboard = function Dashboard(_ref) {
7305
7308
 
7306
7309
  if (isLoading) {
7307
7310
  return /*#__PURE__*/React.createElement("div", {
7308
- className: "w-full h-screen"
7311
+ className: "neeto-ui-w-full neeto-ui-h-screen"
7309
7312
  }, /*#__PURE__*/React.createElement(PageLoader, null));
7310
7313
  }
7311
7314
 
7312
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Header, {
7315
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
7316
+ isHeaderFixed: true
7317
+ }, /*#__PURE__*/React.createElement(Header, {
7313
7318
  title: "".concat(tagType.label, " ").concat(t("title").toLocaleLowerCase()),
7314
7319
  menuBarToggle: displayMenu ? handleMenuToggle : null,
7315
7320
  searchProps: {
@@ -7356,19 +7361,18 @@ var Dashboard = function Dashboard(_ref) {
7356
7361
  },
7357
7362
  "data-cy": "add-new-tag-button"
7358
7363
  })
7359
- }) : /*#__PURE__*/React.createElement("div", {
7360
- className: "w-full flex-grow"
7361
- }, /*#__PURE__*/React.createElement(SubHeader, {
7364
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubHeader, {
7362
7365
  leftActionBlock: /*#__PURE__*/React.createElement(Typography, {
7363
- className: "neeto-ui-gray-800 font-semibold",
7364
- component: "h4",
7366
+ style: "h4",
7367
+ weight: "semibold",
7368
+ className: "neeto-ui-gray-800",
7365
7369
  "data-cy": "neeto-tags-filtered-tags-count-text"
7366
7370
  }, t("tagsWithCount", {
7367
7371
  count: data === null || data === void 0 ? void 0 : data.totalCount,
7368
7372
  type: (_tagType$label = tagType.label) === null || _tagType$label === void 0 ? void 0 : _tagType$label.toLowerCase()
7369
7373
  }))
7370
7374
  }), /*#__PURE__*/React.createElement("div", {
7371
- className: "neeto-tags--table__wrapper"
7375
+ className: "neeto-tags-table__wrapper"
7372
7376
  }, /*#__PURE__*/React.createElement(Table, {
7373
7377
  fixedHeight: true,
7374
7378
  rowData: data === null || data === void 0 ? void 0 : data.tags,
@@ -7447,10 +7451,11 @@ var List = function List(_ref) {
7447
7451
  setTags(filteredTags);
7448
7452
  }, [searchTerm, tagList]);
7449
7453
  return /*#__PURE__*/React.createElement("div", {
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
- }, /*#__PURE__*/React.createElement("div", {
7452
- className: "tags-merge__title"
7453
- }, /*#__PURE__*/React.createElement("h4", null, type)), /*#__PURE__*/React.createElement(Input$1, {
7454
+ className: "neeto-tags-merge__list neeto-tags-border neeto-ui-border-gray-300 neeto-ui-shadow-xs neeto-ui-rounded-lg neeto-ui-flex neeto-ui-flex-col neeto-ui-p-6 neeto-ui-cursor-pointer"
7455
+ }, /*#__PURE__*/React.createElement(Typography, {
7456
+ style: "h4",
7457
+ className: "neeto-ui-mb-3"
7458
+ }, type), /*#__PURE__*/React.createElement(Input$1, {
7454
7459
  "data-cy": "neeto-tags-merge-".concat(listType, "-search-text-input-field"),
7455
7460
  value: searchTerm,
7456
7461
  onChange: function onChange(e) {
@@ -7460,14 +7465,14 @@ var List = function List(_ref) {
7460
7465
  where: t("tag").toLocaleLowerCase()
7461
7466
  })
7462
7467
  }), /*#__PURE__*/React.createElement("div", {
7463
- className: "tags-merge__items",
7468
+ className: "neeto-tags-merge__items",
7464
7469
  "data-cy": "neeto-tags-merge-".concat(listType, "-tags-list")
7465
7470
  }, tags.map(function (tag) {
7466
7471
  return /*#__PURE__*/React.createElement("div", {
7467
- className: classnames("tags-merge__item border neeto-ui-border-white", {
7472
+ className: classnames("neeto-tags-border neeto-ui-border-white neeto-ui-p-2 neeto-ui-rounded-lg neeto-ui-mt-2 neeto-ui-cursor-pointer", {
7468
7473
  "neeto-ui-bg-pastel-blue neeto-ui-border-primary-600": tag.id === selectedTagId,
7469
7474
  "hover:neeto-ui-bg-gray-100": tag.id !== selectedTagId,
7470
- "tags-merge__item--not-allowed neeto-ui-bg-gray-100 neeto-ui-text-gray-500": tag.id === selectedCounterTagId
7475
+ "neeto-ui-cursor-not-allowed neeto-ui-bg-gray-100 neeto-ui-text-gray-500": tag.id === selectedCounterTagId
7471
7476
  }),
7472
7477
  key: tag.id,
7473
7478
  onClick: tag.id === selectedCounterTagId ? undefined : function () {
@@ -7659,13 +7664,15 @@ var Merge = function Merge(_ref) {
7659
7664
 
7660
7665
  if (isLoading) {
7661
7666
  return /*#__PURE__*/React.createElement("div", {
7662
- className: "w-full h-screen"
7667
+ className: "neeto-ui-w-full neeto-ui-h-screen"
7663
7668
  }, /*#__PURE__*/React.createElement(PageLoader, null));
7664
7669
  }
7665
7670
 
7666
7671
  return /*#__PURE__*/React.createElement("div", {
7667
- className: "w-full"
7668
- }, /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(Header, {
7672
+ className: "neeto-ui-w-full"
7673
+ }, /*#__PURE__*/React.createElement(Container, {
7674
+ isHeaderFixed: true
7675
+ }, /*#__PURE__*/React.createElement(Header, {
7669
7676
  title: t("merge.mergeTags"),
7670
7677
  menuBarToggle: displayMenu ? handleMenuToggle : null,
7671
7678
  actionBlock: /*#__PURE__*/React.createElement(Button, {
@@ -7689,9 +7696,9 @@ var Merge = function Merge(_ref) {
7689
7696
  label: t("goBack")
7690
7697
  })
7691
7698
  }) : /*#__PURE__*/React.createElement("div", {
7692
- className: "w-full neeto-tags-merge-container pb-6"
7699
+ className: "neeto-tags-merge__wrapper"
7693
7700
  }, /*#__PURE__*/React.createElement("div", {
7694
- className: "tags-merge"
7701
+ className: "neeto-tags-merge__container"
7695
7702
  }, /*#__PURE__*/React.createElement(List, {
7696
7703
  tagList: data === null || data === void 0 ? void 0 : data.tags,
7697
7704
  onSelect: setSourceTag,
@@ -7703,7 +7710,7 @@ var Merge = function Merge(_ref) {
7703
7710
  isSource: true
7704
7711
  }), /*#__PURE__*/React.createElement(Merge$1, {
7705
7712
  size: 24,
7706
- className: "self-center mx-8 neeto-ui-text-gray-600"
7713
+ className: "neeto-ui-self-center neeto-ui-mx-6 neeto-ui-text-gray-600"
7707
7714
  }), /*#__PURE__*/React.createElement(List, {
7708
7715
  tagList: data === null || data === void 0 ? void 0 : data.tags,
7709
7716
  onSelect: setDestinationTag,
@@ -7827,7 +7834,7 @@ var Tags = function Tags(_ref) {
7827
7834
  tagType: tagType
7828
7835
  }));
7829
7836
  return /*#__PURE__*/React.createElement("div", {
7830
- className: "neeto-tag-wrapper"
7837
+ className: "neeto-ui-flex"
7831
7838
  }, displayMenu && /*#__PURE__*/React.createElement(Menu, {
7832
7839
  tagTypes: tagTypes,
7833
7840
  showMenu: isMenuOpen,