@bigbinary/neeto-rules-frontend 1.2.0-beta2 → 2.0.0

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/README.md CHANGED
@@ -160,16 +160,17 @@ The `NeetoRules` component is used to add the dashboard for automation rules.
160
160
 
161
161
  7. `updateRule`: Object that define methods for update rule operation.
162
162
  - `onSuccess`: Object for handling update rule success callback.
163
- - `callback`: Function to be called on success.
163
+ - `callback`: Function to be called on success. (Optional)
164
164
  8. `deleteRule`: Object that define methods for delete rule operation.
165
165
  - `onSuccess`: Object for handling delete rule success callback.
166
- - `callback`: Function to be called on success.
166
+ - `callback`: Function to be called on success. (Optional)
167
167
  9. `cloneRule`: Object that define methods for clone rule operation.
168
+ - `allowed`: To specify if the clone rule should be allowed, default `true`. (Boolean)
168
169
  - `onSuccess`: Object for handling clone rule success callback.
169
- - `callback`: Function to be called on success.
170
+ - `callback`: Function to be called on success. (Optional)
170
171
  10. `reoderRules`: Function to be called on reorder success.
171
172
  - `onSuccess`: Object for handling reorder rule success callback.
172
- - `callback`: Function to be called on success.
173
+ - `callback`: Function to be called on success. (Optional)
173
174
 
174
175
  #### 2. `NeetoRulesForm`
175
176
 
package/dist/index.cjs.js CHANGED
@@ -15,7 +15,7 @@ var Button = require('@bigbinary/neetoui/Button');
15
15
  var reactI18next = require('react-i18next');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
17
  var ReactDOM = require('react-dom');
18
- var neetoIcons = require('@bigbinary/neeto-icons');
18
+ var Reorder = require('@bigbinary/neeto-icons/Reorder');
19
19
  var Pane = require('@bigbinary/neetoui/Pane');
20
20
  var Typography = require('@bigbinary/neetoui/Typography');
21
21
  var Pagination = require('@bigbinary/neetoui/Pagination');
@@ -34,7 +34,12 @@ var utils = require('@bigbinary/neeto-commons-frontend/utils');
34
34
  var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
35
35
  var Switch = require('@bigbinary/neetoui/Switch');
36
36
  var formik = require('formik');
37
+ var Plus = require('@bigbinary/neeto-icons/Plus');
38
+ var Delete = require('@bigbinary/neeto-icons/Delete');
39
+ var Refresh = require('@bigbinary/neeto-icons/Refresh');
37
40
  var classNames$1 = require('classnames');
41
+ var Check = require('@bigbinary/neeto-icons/Check');
42
+ var Search = require('@bigbinary/neeto-icons/Search');
38
43
  var Dropdown$1 = require('@bigbinary/neetoui/Dropdown');
39
44
  var Input$2 = require('@bigbinary/neetoui/Input');
40
45
  var Textarea = require('@bigbinary/neetoui/formik/Textarea');
@@ -47,14 +52,19 @@ var FormikEditor = require('@bigbinary/neeto-editor/FormikEditor');
47
52
  var MultiEmailInput = require('@bigbinary/neetoui/formik/MultiEmailInput');
48
53
  var Input$3 = require('@bigbinary/neetoui/formik/Input');
49
54
  var useHotkeys = require('@bigbinary/neeto-hotkeys');
55
+ var Close = require('@bigbinary/neeto-icons/Close');
50
56
  var Checkbox = require('@bigbinary/neetoui/Checkbox');
51
57
  var PhoneNumber = require('@bigbinary/neeto-molecules/PhoneNumber');
52
58
  var Tag = require('@bigbinary/neetoui/Tag');
53
59
  var yup = require('yup');
54
60
  var utils$1 = require('@bigbinary/neeto-editor/utils');
61
+ var Eye = require('@bigbinary/neeto-icons/Eye');
55
62
  var Tooltip = require('@bigbinary/neetoui/Tooltip');
56
63
  var Select$2 = require('@bigbinary/neetoui/formik/Select');
57
64
  var Radio = require('@bigbinary/neetoui/formik/Radio');
65
+ var Help = require('@bigbinary/neeto-icons/Help');
66
+ var Down = require('@bigbinary/neeto-icons/Down');
67
+ var Up = require('@bigbinary/neeto-icons/Up');
58
68
 
59
69
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
60
70
 
@@ -84,6 +94,7 @@ var NeetoHeader__default = /*#__PURE__*/_interopDefaultLegacy(NeetoHeader);
84
94
  var HelpPopover__default = /*#__PURE__*/_interopDefaultLegacy(HelpPopover);
85
95
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
86
96
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
97
+ var Reorder__default = /*#__PURE__*/_interopDefaultLegacy(Reorder);
87
98
  var Pane__default = /*#__PURE__*/_interopDefaultLegacy(Pane);
88
99
  var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
89
100
  var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
@@ -95,7 +106,12 @@ var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
95
106
  var NoData__default = /*#__PURE__*/_interopDefaultLegacy(NoData);
96
107
  var MoreDropdown__default = /*#__PURE__*/_interopDefaultLegacy(MoreDropdown);
97
108
  var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
109
+ var Plus__default = /*#__PURE__*/_interopDefaultLegacy(Plus);
110
+ var Delete__default = /*#__PURE__*/_interopDefaultLegacy(Delete);
111
+ var Refresh__default = /*#__PURE__*/_interopDefaultLegacy(Refresh);
98
112
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames$1);
113
+ var Check__default = /*#__PURE__*/_interopDefaultLegacy(Check);
114
+ var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
99
115
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown$1);
100
116
  var Input__default = /*#__PURE__*/_interopDefaultLegacy(Input$2);
101
117
  var Textarea__default = /*#__PURE__*/_interopDefaultLegacy(Textarea);
@@ -108,12 +124,17 @@ var FormikEditor__default = /*#__PURE__*/_interopDefaultLegacy(FormikEditor);
108
124
  var MultiEmailInput__default = /*#__PURE__*/_interopDefaultLegacy(MultiEmailInput);
109
125
  var Input__default$1 = /*#__PURE__*/_interopDefaultLegacy(Input$3);
110
126
  var useHotkeys__default = /*#__PURE__*/_interopDefaultLegacy(useHotkeys);
127
+ var Close__default = /*#__PURE__*/_interopDefaultLegacy(Close);
111
128
  var Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(Checkbox);
112
129
  var Tag__default = /*#__PURE__*/_interopDefaultLegacy(Tag);
113
130
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
131
+ var Eye__default = /*#__PURE__*/_interopDefaultLegacy(Eye);
114
132
  var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
115
133
  var Select__default$1 = /*#__PURE__*/_interopDefaultLegacy(Select$2);
116
134
  var Radio__default = /*#__PURE__*/_interopDefaultLegacy(Radio);
135
+ var Help__default = /*#__PURE__*/_interopDefaultLegacy(Help);
136
+ var Down__default = /*#__PURE__*/_interopDefaultLegacy(Down);
137
+ var Up__default = /*#__PURE__*/_interopDefaultLegacy(Up);
117
138
 
118
139
  function _typeof$3(o) {
119
140
  "@babel/helpers - typeof";
@@ -9476,7 +9497,7 @@ var DraggableItem = function DraggableItem(props) {
9476
9497
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9477
9498
  className: "neeto-ui-bg-white neeto-ui-border-gray-400 neeto-ui-rounded neeto-ui-shadow-xs flex w-96 items-center space-x-4 border border-solid p-3",
9478
9499
  "data-cy": "automation-rule-reorder-container",
9479
- children: [/*#__PURE__*/jsxRuntime.jsx(neetoIcons.Reorder, {}), rule.name]
9500
+ children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), rule.name]
9480
9501
  })]
9481
9502
  }), "list_".concat(rule.id));
9482
9503
  }
@@ -9572,7 +9593,7 @@ var RulesReorder = function RulesReorder(_ref) {
9572
9593
  children: rubric.source.index + 1
9573
9594
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9574
9595
  className: "neeto-ui-bg-white neeto-ui-border-gray-400 neeto-ui-rounded neeto-ui-shadow-xs flex w-96 items-center space-x-4 border border-solid p-3",
9575
- children: [/*#__PURE__*/jsxRuntime.jsx(neetoIcons.Reorder, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
9596
+ children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), /*#__PURE__*/jsxRuntime.jsx("div", {
9576
9597
  children: initialRules[rubric.source.index].name
9577
9598
  })]
9578
9599
  })]
@@ -9677,8 +9698,9 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9677
9698
  onDelete = _ref.onDelete,
9678
9699
  _ref$moreDropdownItem = _ref.moreDropdownItems,
9679
9700
  moreDropdownItems = _ref$moreDropdownItem === void 0 ? [] : _ref$moreDropdownItem,
9680
- automationRulesPath = _ref.automationRulesPath;
9681
- return [].concat(_toConsumableArray$1(moreDropdownItems.map(function (_ref2) {
9701
+ automationRulesPath = _ref.automationRulesPath,
9702
+ allowCloning = _ref.allowCloning;
9703
+ var defaultOptions = [].concat(_toConsumableArray$1(moreDropdownItems.map(function (_ref2) {
9682
9704
  var _onClick = _ref2.onClick,
9683
9705
  others = _objectWithoutProperties$1(_ref2, _excluded$h);
9684
9706
  return _objectSpread$o(_objectSpread$o({}, others), {}, {
@@ -9709,6 +9731,12 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9709
9731
  return onDelete(rule);
9710
9732
  }
9711
9733
  }]);
9734
+ if (!allowCloning) {
9735
+ return neetoCist.removeBy({
9736
+ key: "clone"
9737
+ }, defaultOptions);
9738
+ }
9739
+ return defaultOptions;
9712
9740
  };
9713
9741
  var getColumnData = function getColumnData(_ref3) {
9714
9742
  var handleChangeStatus = _ref3.handleChangeStatus,
@@ -9821,7 +9849,9 @@ var RulesTable = function RulesTable(_ref) {
9821
9849
  onCloneSuccess = _ref.onCloneSuccess,
9822
9850
  onUpdateSuccess = _ref.onUpdateSuccess,
9823
9851
  page = _ref.page,
9824
- setPage = _ref.setPage;
9852
+ setPage = _ref.setPage,
9853
+ _ref$allowCloning = _ref.allowCloning,
9854
+ allowCloning = _ref$allowCloning === void 0 ? true : _ref$allowCloning;
9825
9855
  var _useQueryParams = reactUtils.useQueryParams(),
9826
9856
  _useQueryParams$searc = _useQueryParams.searchTerm,
9827
9857
  searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
@@ -9858,15 +9888,17 @@ var RulesTable = function RulesTable(_ref) {
9858
9888
  url: url,
9859
9889
  payload: payload
9860
9890
  }, {
9861
- onSuccess: onUpdateSuccess
9891
+ onSuccess: function onSuccess() {
9892
+ return onUpdateSuccess === null || onUpdateSuccess === void 0 ? void 0 : onUpdateSuccess();
9893
+ }
9862
9894
  });
9863
9895
  };
9864
9896
  var handleCloneSuccess = function handleCloneSuccess() {
9865
- onCloneSuccess();
9897
+ onCloneSuccess === null || onCloneSuccess === void 0 || onCloneSuccess();
9866
9898
  hidePreviewPane();
9867
9899
  };
9868
9900
  var handleDeleteSuccess = function handleDeleteSuccess() {
9869
- onDeleteSuccess();
9901
+ onDeleteSuccess === null || onDeleteSuccess === void 0 || onDeleteSuccess();
9870
9902
  hidePreviewPane();
9871
9903
  setSelectedRule(null);
9872
9904
  };
@@ -9884,7 +9916,8 @@ var RulesTable = function RulesTable(_ref) {
9884
9916
  onDelete: setSelectedRule,
9885
9917
  onPreview: onPreview,
9886
9918
  automationRulesPath: automationRulesPath,
9887
- moreDropdownItems: moreDropdownItems
9919
+ moreDropdownItems: moreDropdownItems,
9920
+ allowCloning: allowCloning
9888
9921
  });
9889
9922
  if (isLoading && ramda.isEmpty(rules)) {
9890
9923
  return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
@@ -9963,7 +9996,7 @@ var RulesTable = function RulesTable(_ref) {
9963
9996
  function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9964
9997
  function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9965
9998
  var NeetoRules = function NeetoRules(_ref) {
9966
- var _helpPopoverProps$hel, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
9999
+ var _helpPopoverProps$hel, _cloneRule$allowed, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
9967
10000
  var breadcrumbs = _ref.breadcrumbs,
9968
10001
  automationRulesPath = _ref.automationRulesPath,
9969
10002
  url = _ref.automationRulesEndpoint,
@@ -10021,6 +10054,7 @@ var NeetoRules = function NeetoRules(_ref) {
10021
10054
  totalCount: totalCount,
10022
10055
  url: url
10023
10056
  }, rulesTableProps)), {}, {
10057
+ allowCloning: (_cloneRule$allowed = cloneRule === null || cloneRule === void 0 ? void 0 : cloneRule.allowed) !== null && _cloneRule$allowed !== void 0 ? _cloneRule$allowed : true,
10024
10058
  isLoading: isLoading || isFetching,
10025
10059
  onCloneSuccess: cloneRule === null || cloneRule === void 0 || (_cloneRule$onSuccess = cloneRule.onSuccess) === null || _cloneRule$onSuccess === void 0 ? void 0 : _cloneRule$onSuccess.callback,
10026
10060
  onDeleteSuccess: deleteRule === null || deleteRule === void 0 || (_deleteRule$onSuccess = deleteRule.onSuccess) === null || _deleteRule$onSuccess === void 0 ? void 0 : _deleteRule$onSuccess.callback,
@@ -10281,7 +10315,7 @@ var KeyValuePairsField = reactUtils.withT(function (_ref) {
10281
10315
  name: "".concat(name, ".").concat(index, ".value"),
10282
10316
  placeholder: t("neetoRules.labels.value"),
10283
10317
  suffix: showDeleteButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10284
- icon: neetoIcons.Delete,
10318
+ icon: Delete__default["default"],
10285
10319
  size: "small",
10286
10320
  style: "text",
10287
10321
  onClick: function onClick() {
@@ -10545,7 +10579,7 @@ var DateField$1 = function DateField(_ref) {
10545
10579
  // eslint-disable-next-line @bigbinary/neeto/use-standard-date-time-formats
10546
10580
  date ? dayjs__default["default"](date).format("YYYY-MM-DD") : "");
10547
10581
  }
10548
- }), /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
10582
+ }), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
10549
10583
  className: "cursor-pointer",
10550
10584
  onClick: function onClick() {
10551
10585
  return setShowInput(function (prevState) {
@@ -10789,7 +10823,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10789
10823
  className: "mb-1",
10790
10824
  "data-cy": "search-text-field",
10791
10825
  placeholder: t("neetoRules.common.search"),
10792
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
10826
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
10793
10827
  value: searchTerm,
10794
10828
  onChange: function onChange(e) {
10795
10829
  return setSearchTerm(e.target.value);
@@ -10805,7 +10839,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10805
10839
  className: classNames__default["default"]({
10806
10840
  "neeto-ui-bg-gray-100": defaultSelectedOption.value === option.value
10807
10841
  }),
10808
- suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
10842
+ suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
10809
10843
  className: "neeto-ui-text-primary-800"
10810
10844
  }),
10811
10845
  onClick: function onClick() {
@@ -11079,7 +11113,7 @@ var Input$1 = function Input(_ref) {
11079
11113
  placeholder: t("neetoRules.placeholders.value"),
11080
11114
  ref: inputRef,
11081
11115
  size: "small",
11082
- suffix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
11116
+ suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
11083
11117
  onClick: function onClick() {
11084
11118
  return setShowInput(function (prevState) {
11085
11119
  return !prevState;
@@ -11188,14 +11222,14 @@ var InlineInput = /*#__PURE__*/React__default["default"].forwardRef(function (pr
11188
11222
  children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11189
11223
  "data-cy": "inline-input-submit-button",
11190
11224
  disabled: !isValidValue,
11191
- icon: neetoIcons.Check,
11225
+ icon: Check__default["default"],
11192
11226
  style: "text",
11193
11227
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.save,
11194
11228
  onClick: onSubmit
11195
11229
  }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11196
11230
  ref: ref,
11197
11231
  "data-cy": "inline-input-cancel-button",
11198
- icon: neetoIcons.Close,
11232
+ icon: Close__default["default"],
11199
11233
  style: "text",
11200
11234
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
11201
11235
  onClick: handleCancel
@@ -11286,7 +11320,7 @@ var ListField = function ListField(_ref) {
11286
11320
  }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11287
11321
  className: "flex-shrink-0",
11288
11322
  "data-cy": "list-action-delete-item-button",
11289
- icon: neetoIcons.Delete,
11323
+ icon: Delete__default["default"],
11290
11324
  size: "small",
11291
11325
  style: "text",
11292
11326
  onClick: function onClick() {
@@ -11315,7 +11349,7 @@ var ListField = function ListField(_ref) {
11315
11349
  ref: initialFocusRef
11316
11350
  }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11317
11351
  "data-cy": "list-action-add-item-button",
11318
- icon: neetoIcons.Plus,
11352
+ icon: Plus__default["default"],
11319
11353
  label: t("neetoRules.common.addItem"),
11320
11354
  ref: initialFocusRef,
11321
11355
  style: "text",
@@ -11443,7 +11477,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11443
11477
  className: "mb-1",
11444
11478
  "data-cy": "search-text-field",
11445
11479
  placeholder: t("neetoRules.common.search"),
11446
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
11480
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
11447
11481
  value: searchTerm,
11448
11482
  onChange: function onChange(e) {
11449
11483
  return setSearchTerm(e.target.value);
@@ -19259,7 +19293,7 @@ var STYLES = {
19259
19293
  var MultiValueRemove = function MultiValueRemove(props) {
19260
19294
  return /*#__PURE__*/jsxRuntime.jsx(components.MultiValueRemove, _objectSpread$h(_objectSpread$h({}, props), {}, {
19261
19295
  innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "".concat(dasherize(props.data.label), "-remove-icon"))),
19262
- children: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Close, {
19296
+ children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
19263
19297
  size: 16
19264
19298
  })
19265
19299
  }));
@@ -19291,7 +19325,7 @@ var ValueContainer = function ValueContainer(_ref) {
19291
19325
  var ClearIndicator = function ClearIndicator(props) {
19292
19326
  return /*#__PURE__*/jsxRuntime.jsx(components.ClearIndicator, _objectSpread$h(_objectSpread$h({}, props), {}, {
19293
19327
  innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "clear-all-button")),
19294
- children: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Close, {
19328
+ children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
19295
19329
  className: "cursor-pointer",
19296
19330
  size: 16
19297
19331
  })
@@ -20201,7 +20235,7 @@ var ActionItem = function ActionItem(_ref) {
20201
20235
  className: "mb-1",
20202
20236
  "data-cy": "search-text-field",
20203
20237
  placeholder: t("neetoRules.common.search"),
20204
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20238
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20205
20239
  value: searchTerm,
20206
20240
  onChange: function onChange(e) {
20207
20241
  return setSearchTerm(e.target.value);
@@ -20214,7 +20248,7 @@ var ActionItem = function ActionItem(_ref) {
20214
20248
  children: searchedOptions.map(function (option, idx) {
20215
20249
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
20216
20250
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
20217
- suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20251
+ suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20218
20252
  className: "neeto-ui-text-primary-800"
20219
20253
  }),
20220
20254
  onClick: function onClick() {
@@ -20315,7 +20349,7 @@ var Actions = function Actions(_ref) {
20315
20349
  className: "-mx-1 flex flex-wrap",
20316
20350
  children: [handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20317
20351
  "data-cy": "refresh-slack-button",
20318
- icon: neetoIcons.Refresh,
20352
+ icon: Refresh__default["default"],
20319
20353
  size: 24,
20320
20354
  style: "icon",
20321
20355
  tooltipProps: {
@@ -20327,7 +20361,7 @@ var Actions = function Actions(_ref) {
20327
20361
  }
20328
20362
  }), showButton && index === actions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20329
20363
  "data-cy": "add-action-button",
20330
- icon: neetoIcons.Plus,
20364
+ icon: Plus__default["default"],
20331
20365
  size: 24,
20332
20366
  style: "icon",
20333
20367
  tooltipProps: {
@@ -20339,7 +20373,7 @@ var Actions = function Actions(_ref) {
20339
20373
  }
20340
20374
  }), actions.length > 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20341
20375
  "data-cy": "delete-action-button-".concat(index),
20342
- icon: neetoIcons.Delete,
20376
+ icon: Delete__default["default"],
20343
20377
  size: 24,
20344
20378
  style: "icon",
20345
20379
  tooltipProps: {
@@ -20458,7 +20492,7 @@ var DropdownField = function DropdownField(_ref) {
20458
20492
  className: "mb-1",
20459
20493
  "data-cy": "search-text-field",
20460
20494
  placeholder: t("neetoRules.common.search"),
20461
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20495
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20462
20496
  value: searchTerm,
20463
20497
  onChange: function onChange(e) {
20464
20498
  return setSearchTerm(e.target.value);
@@ -20474,7 +20508,7 @@ var DropdownField = function DropdownField(_ref) {
20474
20508
  className: classNames__default["default"]({
20475
20509
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
20476
20510
  }),
20477
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20511
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20478
20512
  className: "neeto-ui-text-primary-800",
20479
20513
  "data-cy": "check-icon"
20480
20514
  }),
@@ -20582,7 +20616,7 @@ var Dropdown = function Dropdown(_ref) {
20582
20616
  className: "mb-1",
20583
20617
  "data-cy": "search-text-field",
20584
20618
  placeholder: t("neetoRules.common.search"),
20585
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20619
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20586
20620
  value: searchTerm,
20587
20621
  onChange: function onChange(e) {
20588
20622
  return setSearchTerm(e.target.value);
@@ -20598,7 +20632,7 @@ var Dropdown = function Dropdown(_ref) {
20598
20632
  className: classNames__default["default"]({
20599
20633
  "neeto-ui-bg-gray-100": (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value
20600
20634
  }),
20601
- suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20635
+ suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20602
20636
  className: "neeto-ui-text-primary-800"
20603
20637
  }),
20604
20638
  onClick: function onClick() {
@@ -20646,7 +20680,7 @@ var InputField$1 = function InputField(_ref) {
20646
20680
  placeholder: placeholder,
20647
20681
  ref: inputRef,
20648
20682
  size: "small",
20649
- suffix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20683
+ suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20650
20684
  className: "cursor-pointer",
20651
20685
  onClick: function onClick() {
20652
20686
  return setShowInput(function (prevState) {
@@ -20760,7 +20794,7 @@ var MultiSelect = function MultiSelect(_ref) {
20760
20794
  className: "mb-1",
20761
20795
  "data-cy": "search-text-field",
20762
20796
  placeholder: t("neetoRules.common.search"),
20763
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20797
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20764
20798
  value: searchTerm,
20765
20799
  onChange: function onChange(e) {
20766
20800
  return setSearchTerm(e.target.value);
@@ -21333,7 +21367,7 @@ var DateField = function DateField(_ref) {
21333
21367
  name: "".concat(name, ".value"),
21334
21368
  type: "date",
21335
21369
  onChange: handleOnChange
21336
- }), /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
21370
+ }), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
21337
21371
  className: "cursor-pointer",
21338
21372
  onClick: function onClick() {
21339
21373
  return setShowInput(function (prevState) {
@@ -21598,7 +21632,7 @@ var Conditions = function Conditions(_ref) {
21598
21632
  className: "flex",
21599
21633
  children: [index === conditions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21600
21634
  "data-cy": "add-condition-button",
21601
- icon: neetoIcons.Plus,
21635
+ icon: Plus__default["default"],
21602
21636
  size: "small",
21603
21637
  style: "text",
21604
21638
  tooltipProps: {
@@ -21610,7 +21644,7 @@ var Conditions = function Conditions(_ref) {
21610
21644
  }
21611
21645
  }), (allowEmpty || index !== 0) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21612
21646
  "data-cy": "delete-condition-button-".concat(index),
21613
- icon: neetoIcons.Delete,
21647
+ icon: Delete__default["default"],
21614
21648
  size: "small",
21615
21649
  style: "text",
21616
21650
  tooltipProps: {
@@ -21635,7 +21669,7 @@ var Conditions = function Conditions(_ref) {
21635
21669
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21636
21670
  className: "mt-2",
21637
21671
  "data-cy": "preview-callback-button",
21638
- icon: neetoIcons.Eye,
21672
+ icon: Eye__default["default"],
21639
21673
  label: t("neetoRules.common.preview"),
21640
21674
  style: "secondary",
21641
21675
  onClick: function onClick() {
@@ -21771,7 +21805,7 @@ var Performer$1 = function Performer(_ref) {
21771
21805
  className: "mb-1",
21772
21806
  "data-cy": "search-text-field",
21773
21807
  placeholder: t("neetoRules.common.search"),
21774
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
21808
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
21775
21809
  value: searchTerm,
21776
21810
  onChange: function onChange(e) {
21777
21811
  return setSearchTerm(e.target.value);
@@ -21788,7 +21822,7 @@ var Performer$1 = function Performer(_ref) {
21788
21822
  className: classNames__default["default"]({
21789
21823
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
21790
21824
  }),
21791
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
21825
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
21792
21826
  className: "neeto-ui-text-primary-800",
21793
21827
  "data-cy": "check-icon"
21794
21828
  }),
@@ -21959,7 +21993,7 @@ var Events$1 = function Events(_ref) {
21959
21993
  className: "mb-1",
21960
21994
  "data-cy": "search-text-field",
21961
21995
  placeholder: t("neetoRules.common.search"),
21962
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
21996
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
21963
21997
  value: searchTerm,
21964
21998
  onChange: function onChange(e) {
21965
21999
  return setSearchTerm(e.target.value);
@@ -22055,7 +22089,7 @@ var EventConditions = function EventConditions(_ref) {
22055
22089
  "data-cy": "add-condition-button",
22056
22090
  "data-test-id": "automation-rules-add-events-button",
22057
22091
  disabled: isConditionsEmpty,
22058
- icon: neetoIcons.Plus,
22092
+ icon: Plus__default["default"],
22059
22093
  size: "small",
22060
22094
  style: "text",
22061
22095
  onClick: handleAddCondition
@@ -22177,7 +22211,7 @@ var EventItem = function EventItem(_ref) {
22177
22211
  className: "mb-1",
22178
22212
  "data-cy": "search-text-field",
22179
22213
  placeholder: t("neetoRules.common.search"),
22180
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
22214
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
22181
22215
  value: searchTerm,
22182
22216
  onChange: function onChange(e) {
22183
22217
  return setSearchTerm(e.target.value);
@@ -22293,7 +22327,7 @@ var Performer = function Performer(_ref) {
22293
22327
  className: "mb-1",
22294
22328
  "data-cy": "search-text-field",
22295
22329
  placeholder: t("neetoRules.common.search"),
22296
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
22330
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
22297
22331
  value: searchTerm,
22298
22332
  onChange: function onChange(e) {
22299
22333
  return setSearchTerm(e.target.value);
@@ -22306,7 +22340,7 @@ var Performer = function Performer(_ref) {
22306
22340
  className: classNames__default["default"]({
22307
22341
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
22308
22342
  }),
22309
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
22343
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
22310
22344
  className: "neeto-ui-text-primary-800",
22311
22345
  "data-cy": "check-icon"
22312
22346
  }),
@@ -22437,7 +22471,7 @@ var Events = function Events(_ref) {
22437
22471
  children: [showAddButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
22438
22472
  "data-cy": "add-event-button",
22439
22473
  "data-test-id": "automation-rules-add-events-button",
22440
- icon: neetoIcons.Plus,
22474
+ icon: Plus__default["default"],
22441
22475
  size: 32,
22442
22476
  style: "icon",
22443
22477
  tooltipProps: {
@@ -22449,7 +22483,7 @@ var Events = function Events(_ref) {
22449
22483
  }
22450
22484
  }), !showMessage && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
22451
22485
  "data-cy": "delete-event-button",
22452
- icon: neetoIcons.Delete,
22486
+ icon: Delete__default["default"],
22453
22487
  size: 32,
22454
22488
  style: "icon",
22455
22489
  tooltipProps: {
@@ -22768,7 +22802,7 @@ var Status = function Status() {
22768
22802
  label: t("neetoRules.labels.active"),
22769
22803
  labelProps: {
22770
22804
  helpIconProps: {
22771
- icon: neetoIcons.Help,
22805
+ icon: Help__default["default"],
22772
22806
  tooltipProps: {
22773
22807
  content: status.value === ENABLED ? t("neetoRules.tooltips.rule.active") : t("neetoRules.tooltips.rule.inactive")
22774
22808
  }
@@ -23117,7 +23151,7 @@ var ActionsDetail = function ActionsDetail(_ref) {
23117
23151
  }), actionsList.length > 4 && /*#__PURE__*/jsxRuntime.jsx("div", {
23118
23152
  className: "mt-3 w-full",
23119
23153
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
23120
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
23154
+ icon: !viewMore ? Down__default["default"] : Up__default["default"],
23121
23155
  size: "small",
23122
23156
  style: "link",
23123
23157
  label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
@@ -23232,7 +23266,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
23232
23266
  }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
23233
23267
  className: "mt-3 w-full",
23234
23268
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
23235
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
23269
+ icon: !viewMore ? Down__default["default"] : Up__default["default"],
23236
23270
  size: "small",
23237
23271
  style: "link",
23238
23272
  label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),