@bigbinary/neeto-rules-frontend 1.1.0 → 1.1.2

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";
@@ -9474,7 +9495,7 @@ var DraggableItem = function DraggableItem(props) {
9474
9495
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9475
9496
  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",
9476
9497
  "data-cy": "automation-rule-reorder-container",
9477
- children: [/*#__PURE__*/jsxRuntime.jsx(neetoIcons.Reorder, {}), rule.name]
9498
+ children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), rule.name]
9478
9499
  })]
9479
9500
  }), "list_".concat(rule.id));
9480
9501
  }
@@ -9570,7 +9591,7 @@ var RulesReorder = function RulesReorder(_ref) {
9570
9591
  children: rubric.source.index + 1
9571
9592
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9572
9593
  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",
9573
- children: [/*#__PURE__*/jsxRuntime.jsx(neetoIcons.Reorder, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
9594
+ children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), /*#__PURE__*/jsxRuntime.jsx("div", {
9574
9595
  children: initialRules[rubric.source.index].name
9575
9596
  })]
9576
9597
  })]
@@ -9675,8 +9696,9 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9675
9696
  onDelete = _ref.onDelete,
9676
9697
  _ref$moreDropdownItem = _ref.moreDropdownItems,
9677
9698
  moreDropdownItems = _ref$moreDropdownItem === void 0 ? [] : _ref$moreDropdownItem,
9678
- automationRulesPath = _ref.automationRulesPath;
9679
- return [].concat(_toConsumableArray$1(moreDropdownItems.map(function (_ref2) {
9699
+ automationRulesPath = _ref.automationRulesPath,
9700
+ allowCloning = _ref.allowCloning;
9701
+ var defaultOptions = [].concat(_toConsumableArray$1(moreDropdownItems.map(function (_ref2) {
9680
9702
  var _onClick = _ref2.onClick,
9681
9703
  others = _objectWithoutProperties$1(_ref2, _excluded$h);
9682
9704
  return _objectSpread$o(_objectSpread$o({}, others), {}, {
@@ -9707,6 +9729,12 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9707
9729
  return onDelete(rule);
9708
9730
  }
9709
9731
  }]);
9732
+ if (!allowCloning) {
9733
+ return neetoCist.removeBy({
9734
+ key: "clone"
9735
+ }, defaultOptions);
9736
+ }
9737
+ return defaultOptions;
9710
9738
  };
9711
9739
  var getColumnData = function getColumnData(_ref3) {
9712
9740
  var handleChangeStatus = _ref3.handleChangeStatus,
@@ -9819,7 +9847,9 @@ var RulesTable = function RulesTable(_ref) {
9819
9847
  onCloneSuccess = _ref.onCloneSuccess,
9820
9848
  onUpdateSuccess = _ref.onUpdateSuccess,
9821
9849
  page = _ref.page,
9822
- setPage = _ref.setPage;
9850
+ setPage = _ref.setPage,
9851
+ _ref$allowCloning = _ref.allowCloning,
9852
+ allowCloning = _ref$allowCloning === void 0 ? true : _ref$allowCloning;
9823
9853
  var _useQueryParams = reactUtils.useQueryParams(),
9824
9854
  _useQueryParams$searc = _useQueryParams.searchTerm,
9825
9855
  searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
@@ -9856,15 +9886,17 @@ var RulesTable = function RulesTable(_ref) {
9856
9886
  url: url,
9857
9887
  payload: payload
9858
9888
  }, {
9859
- onSuccess: onUpdateSuccess
9889
+ onSuccess: function onSuccess() {
9890
+ return onUpdateSuccess === null || onUpdateSuccess === void 0 ? void 0 : onUpdateSuccess();
9891
+ }
9860
9892
  });
9861
9893
  };
9862
9894
  var handleCloneSuccess = function handleCloneSuccess() {
9863
- onCloneSuccess();
9895
+ onCloneSuccess === null || onCloneSuccess === void 0 || onCloneSuccess();
9864
9896
  hidePreviewPane();
9865
9897
  };
9866
9898
  var handleDeleteSuccess = function handleDeleteSuccess() {
9867
- onDeleteSuccess();
9899
+ onDeleteSuccess === null || onDeleteSuccess === void 0 || onDeleteSuccess();
9868
9900
  hidePreviewPane();
9869
9901
  setSelectedRule(null);
9870
9902
  };
@@ -9882,7 +9914,8 @@ var RulesTable = function RulesTable(_ref) {
9882
9914
  onDelete: setSelectedRule,
9883
9915
  onPreview: onPreview,
9884
9916
  automationRulesPath: automationRulesPath,
9885
- moreDropdownItems: moreDropdownItems
9917
+ moreDropdownItems: moreDropdownItems,
9918
+ allowCloning: allowCloning
9886
9919
  });
9887
9920
  if (isLoading && ramda.isEmpty(rules)) {
9888
9921
  return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
@@ -9961,7 +9994,7 @@ var RulesTable = function RulesTable(_ref) {
9961
9994
  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; }
9962
9995
  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; }
9963
9996
  var NeetoRules = function NeetoRules(_ref) {
9964
- var _helpPopoverProps$hel, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
9997
+ var _helpPopoverProps$hel, _cloneRule$allowed, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
9965
9998
  var breadcrumbs = _ref.breadcrumbs,
9966
9999
  automationRulesPath = _ref.automationRulesPath,
9967
10000
  url = _ref.automationRulesEndpoint,
@@ -10019,6 +10052,7 @@ var NeetoRules = function NeetoRules(_ref) {
10019
10052
  totalCount: totalCount,
10020
10053
  url: url
10021
10054
  }, rulesTableProps)), {}, {
10055
+ allowCloning: (_cloneRule$allowed = cloneRule === null || cloneRule === void 0 ? void 0 : cloneRule.allowed) !== null && _cloneRule$allowed !== void 0 ? _cloneRule$allowed : true,
10022
10056
  isLoading: isLoading || isFetching,
10023
10057
  onCloneSuccess: cloneRule === null || cloneRule === void 0 || (_cloneRule$onSuccess = cloneRule.onSuccess) === null || _cloneRule$onSuccess === void 0 ? void 0 : _cloneRule$onSuccess.callback,
10024
10058
  onDeleteSuccess: deleteRule === null || deleteRule === void 0 || (_deleteRule$onSuccess = deleteRule.onSuccess) === null || _deleteRule$onSuccess === void 0 ? void 0 : _deleteRule$onSuccess.callback,
@@ -10279,7 +10313,7 @@ var KeyValuePairsField = reactUtils.withT(function (_ref) {
10279
10313
  name: "".concat(name, ".").concat(index, ".value"),
10280
10314
  placeholder: t("neetoRules.labels.value"),
10281
10315
  suffix: showDeleteButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10282
- icon: neetoIcons.Delete,
10316
+ icon: Delete__default["default"],
10283
10317
  size: "small",
10284
10318
  style: "text",
10285
10319
  onClick: function onClick() {
@@ -10543,7 +10577,7 @@ var DateField$1 = function DateField(_ref) {
10543
10577
  // eslint-disable-next-line @bigbinary/neeto/use-standard-date-time-formats
10544
10578
  date ? dayjs__default["default"](date).format("YYYY-MM-DD") : "");
10545
10579
  }
10546
- }), /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
10580
+ }), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
10547
10581
  className: "cursor-pointer",
10548
10582
  onClick: function onClick() {
10549
10583
  return setShowInput(function (prevState) {
@@ -10787,7 +10821,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10787
10821
  className: "mb-1",
10788
10822
  "data-cy": "search-text-field",
10789
10823
  placeholder: t("neetoRules.common.search"),
10790
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
10824
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
10791
10825
  value: searchTerm,
10792
10826
  onChange: function onChange(e) {
10793
10827
  return setSearchTerm(e.target.value);
@@ -10803,7 +10837,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10803
10837
  className: classNames__default["default"]({
10804
10838
  "neeto-ui-bg-gray-100": defaultSelectedOption.value === option.value
10805
10839
  }),
10806
- suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
10840
+ suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
10807
10841
  className: "neeto-ui-text-primary-800"
10808
10842
  }),
10809
10843
  onClick: function onClick() {
@@ -11077,7 +11111,7 @@ var Input$1 = function Input(_ref) {
11077
11111
  placeholder: t("neetoRules.placeholders.value"),
11078
11112
  ref: inputRef,
11079
11113
  size: "small",
11080
- suffix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
11114
+ suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
11081
11115
  onClick: function onClick() {
11082
11116
  return setShowInput(function (prevState) {
11083
11117
  return !prevState;
@@ -11186,14 +11220,14 @@ var InlineInput = /*#__PURE__*/React__default["default"].forwardRef(function (pr
11186
11220
  children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11187
11221
  "data-cy": "inline-input-submit-button",
11188
11222
  disabled: !isValidValue,
11189
- icon: neetoIcons.Check,
11223
+ icon: Check__default["default"],
11190
11224
  style: "text",
11191
11225
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.save,
11192
11226
  onClick: onSubmit
11193
11227
  }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11194
11228
  ref: ref,
11195
11229
  "data-cy": "inline-input-cancel-button",
11196
- icon: neetoIcons.Close,
11230
+ icon: Close__default["default"],
11197
11231
  style: "text",
11198
11232
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
11199
11233
  onClick: handleCancel
@@ -11284,7 +11318,7 @@ var ListField = function ListField(_ref) {
11284
11318
  }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11285
11319
  className: "flex-shrink-0",
11286
11320
  "data-cy": "list-action-delete-item-button",
11287
- icon: neetoIcons.Delete,
11321
+ icon: Delete__default["default"],
11288
11322
  size: "small",
11289
11323
  style: "text",
11290
11324
  onClick: function onClick() {
@@ -11313,7 +11347,7 @@ var ListField = function ListField(_ref) {
11313
11347
  ref: initialFocusRef
11314
11348
  }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11315
11349
  "data-cy": "list-action-add-item-button",
11316
- icon: neetoIcons.Plus,
11350
+ icon: Plus__default["default"],
11317
11351
  label: t("neetoRules.common.addItem"),
11318
11352
  ref: initialFocusRef,
11319
11353
  style: "text",
@@ -11441,7 +11475,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11441
11475
  className: "mb-1",
11442
11476
  "data-cy": "search-text-field",
11443
11477
  placeholder: t("neetoRules.common.search"),
11444
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
11478
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
11445
11479
  value: searchTerm,
11446
11480
  onChange: function onChange(e) {
11447
11481
  return setSearchTerm(e.target.value);
@@ -19257,7 +19291,7 @@ var STYLES = {
19257
19291
  var MultiValueRemove = function MultiValueRemove(props) {
19258
19292
  return /*#__PURE__*/jsxRuntime.jsx(components.MultiValueRemove, _objectSpread$h(_objectSpread$h({}, props), {}, {
19259
19293
  innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "".concat(dasherize(props.data.label), "-remove-icon"))),
19260
- children: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Close, {
19294
+ children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
19261
19295
  size: 16
19262
19296
  })
19263
19297
  }));
@@ -19289,7 +19323,7 @@ var ValueContainer = function ValueContainer(_ref) {
19289
19323
  var ClearIndicator = function ClearIndicator(props) {
19290
19324
  return /*#__PURE__*/jsxRuntime.jsx(components.ClearIndicator, _objectSpread$h(_objectSpread$h({}, props), {}, {
19291
19325
  innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "clear-all-button")),
19292
- children: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Close, {
19326
+ children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
19293
19327
  className: "cursor-pointer",
19294
19328
  size: 16
19295
19329
  })
@@ -20199,7 +20233,7 @@ var ActionItem = function ActionItem(_ref) {
20199
20233
  className: "mb-1",
20200
20234
  "data-cy": "search-text-field",
20201
20235
  placeholder: t("neetoRules.common.search"),
20202
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20236
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20203
20237
  value: searchTerm,
20204
20238
  onChange: function onChange(e) {
20205
20239
  return setSearchTerm(e.target.value);
@@ -20212,7 +20246,7 @@ var ActionItem = function ActionItem(_ref) {
20212
20246
  children: searchedOptions.map(function (option, idx) {
20213
20247
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
20214
20248
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
20215
- suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20249
+ suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20216
20250
  className: "neeto-ui-text-primary-800"
20217
20251
  }),
20218
20252
  onClick: function onClick() {
@@ -20313,7 +20347,7 @@ var Actions = function Actions(_ref) {
20313
20347
  className: "-mx-1 flex flex-wrap",
20314
20348
  children: [handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20315
20349
  "data-cy": "refresh-slack-button",
20316
- icon: neetoIcons.Refresh,
20350
+ icon: Refresh__default["default"],
20317
20351
  size: 24,
20318
20352
  style: "icon",
20319
20353
  tooltipProps: {
@@ -20325,7 +20359,7 @@ var Actions = function Actions(_ref) {
20325
20359
  }
20326
20360
  }), showButton && index === actions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20327
20361
  "data-cy": "add-action-button",
20328
- icon: neetoIcons.Plus,
20362
+ icon: Plus__default["default"],
20329
20363
  size: 24,
20330
20364
  style: "icon",
20331
20365
  tooltipProps: {
@@ -20337,7 +20371,7 @@ var Actions = function Actions(_ref) {
20337
20371
  }
20338
20372
  }), actions.length > 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
20339
20373
  "data-cy": "delete-action-button-".concat(index),
20340
- icon: neetoIcons.Delete,
20374
+ icon: Delete__default["default"],
20341
20375
  size: 24,
20342
20376
  style: "icon",
20343
20377
  tooltipProps: {
@@ -20456,7 +20490,7 @@ var DropdownField = function DropdownField(_ref) {
20456
20490
  className: "mb-1",
20457
20491
  "data-cy": "search-text-field",
20458
20492
  placeholder: t("neetoRules.common.search"),
20459
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20493
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20460
20494
  value: searchTerm,
20461
20495
  onChange: function onChange(e) {
20462
20496
  return setSearchTerm(e.target.value);
@@ -20472,7 +20506,7 @@ var DropdownField = function DropdownField(_ref) {
20472
20506
  className: classNames__default["default"]({
20473
20507
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
20474
20508
  }),
20475
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20509
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20476
20510
  className: "neeto-ui-text-primary-800",
20477
20511
  "data-cy": "check-icon"
20478
20512
  }),
@@ -20580,7 +20614,7 @@ var Dropdown = function Dropdown(_ref) {
20580
20614
  className: "mb-1",
20581
20615
  "data-cy": "search-text-field",
20582
20616
  placeholder: t("neetoRules.common.search"),
20583
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20617
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20584
20618
  value: searchTerm,
20585
20619
  onChange: function onChange(e) {
20586
20620
  return setSearchTerm(e.target.value);
@@ -20596,7 +20630,7 @@ var Dropdown = function Dropdown(_ref) {
20596
20630
  className: classNames__default["default"]({
20597
20631
  "neeto-ui-bg-gray-100": (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value
20598
20632
  }),
20599
- suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20633
+ suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20600
20634
  className: "neeto-ui-text-primary-800"
20601
20635
  }),
20602
20636
  onClick: function onClick() {
@@ -20644,7 +20678,7 @@ var InputField$1 = function InputField(_ref) {
20644
20678
  placeholder: placeholder,
20645
20679
  ref: inputRef,
20646
20680
  size: "small",
20647
- suffix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
20681
+ suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
20648
20682
  className: "cursor-pointer",
20649
20683
  onClick: function onClick() {
20650
20684
  return setShowInput(function (prevState) {
@@ -20758,7 +20792,7 @@ var MultiSelect = function MultiSelect(_ref) {
20758
20792
  className: "mb-1",
20759
20793
  "data-cy": "search-text-field",
20760
20794
  placeholder: t("neetoRules.common.search"),
20761
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
20795
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
20762
20796
  value: searchTerm,
20763
20797
  onChange: function onChange(e) {
20764
20798
  return setSearchTerm(e.target.value);
@@ -21331,7 +21365,7 @@ var DateField = function DateField(_ref) {
21331
21365
  name: "".concat(name, ".value"),
21332
21366
  type: "date",
21333
21367
  onChange: handleOnChange
21334
- }), /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
21368
+ }), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
21335
21369
  className: "cursor-pointer",
21336
21370
  onClick: function onClick() {
21337
21371
  return setShowInput(function (prevState) {
@@ -21596,7 +21630,7 @@ var Conditions = function Conditions(_ref) {
21596
21630
  className: "flex",
21597
21631
  children: [index === conditions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21598
21632
  "data-cy": "add-condition-button",
21599
- icon: neetoIcons.Plus,
21633
+ icon: Plus__default["default"],
21600
21634
  size: "small",
21601
21635
  style: "text",
21602
21636
  tooltipProps: {
@@ -21608,7 +21642,7 @@ var Conditions = function Conditions(_ref) {
21608
21642
  }
21609
21643
  }), (allowEmpty || index !== 0) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21610
21644
  "data-cy": "delete-condition-button-".concat(index),
21611
- icon: neetoIcons.Delete,
21645
+ icon: Delete__default["default"],
21612
21646
  size: "small",
21613
21647
  style: "text",
21614
21648
  tooltipProps: {
@@ -21633,7 +21667,7 @@ var Conditions = function Conditions(_ref) {
21633
21667
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
21634
21668
  className: "mt-2",
21635
21669
  "data-cy": "preview-callback-button",
21636
- icon: neetoIcons.Eye,
21670
+ icon: Eye__default["default"],
21637
21671
  label: t("neetoRules.common.preview"),
21638
21672
  style: "secondary",
21639
21673
  onClick: function onClick() {
@@ -21769,7 +21803,7 @@ var Performer$1 = function Performer(_ref) {
21769
21803
  className: "mb-1",
21770
21804
  "data-cy": "search-text-field",
21771
21805
  placeholder: t("neetoRules.common.search"),
21772
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
21806
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
21773
21807
  value: searchTerm,
21774
21808
  onChange: function onChange(e) {
21775
21809
  return setSearchTerm(e.target.value);
@@ -21786,7 +21820,7 @@ var Performer$1 = function Performer(_ref) {
21786
21820
  className: classNames__default["default"]({
21787
21821
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
21788
21822
  }),
21789
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
21823
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
21790
21824
  className: "neeto-ui-text-primary-800",
21791
21825
  "data-cy": "check-icon"
21792
21826
  }),
@@ -21957,7 +21991,7 @@ var Events$1 = function Events(_ref) {
21957
21991
  className: "mb-1",
21958
21992
  "data-cy": "search-text-field",
21959
21993
  placeholder: t("neetoRules.common.search"),
21960
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
21994
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
21961
21995
  value: searchTerm,
21962
21996
  onChange: function onChange(e) {
21963
21997
  return setSearchTerm(e.target.value);
@@ -22053,7 +22087,7 @@ var EventConditions = function EventConditions(_ref) {
22053
22087
  "data-cy": "add-condition-button",
22054
22088
  "data-test-id": "automation-rules-add-events-button",
22055
22089
  disabled: isConditionsEmpty,
22056
- icon: neetoIcons.Plus,
22090
+ icon: Plus__default["default"],
22057
22091
  size: "small",
22058
22092
  style: "text",
22059
22093
  onClick: handleAddCondition
@@ -22175,7 +22209,7 @@ var EventItem = function EventItem(_ref) {
22175
22209
  className: "mb-1",
22176
22210
  "data-cy": "search-text-field",
22177
22211
  placeholder: t("neetoRules.common.search"),
22178
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
22212
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
22179
22213
  value: searchTerm,
22180
22214
  onChange: function onChange(e) {
22181
22215
  return setSearchTerm(e.target.value);
@@ -22291,7 +22325,7 @@ var Performer = function Performer(_ref) {
22291
22325
  className: "mb-1",
22292
22326
  "data-cy": "search-text-field",
22293
22327
  placeholder: t("neetoRules.common.search"),
22294
- prefix: /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Search, {}),
22328
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
22295
22329
  value: searchTerm,
22296
22330
  onChange: function onChange(e) {
22297
22331
  return setSearchTerm(e.target.value);
@@ -22304,7 +22338,7 @@ var Performer = function Performer(_ref) {
22304
22338
  className: classNames__default["default"]({
22305
22339
  "neeto-ui-bg-gray-100": selectedOption.value === option.value
22306
22340
  }),
22307
- suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(neetoIcons.Check, {
22341
+ suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
22308
22342
  className: "neeto-ui-text-primary-800",
22309
22343
  "data-cy": "check-icon"
22310
22344
  }),
@@ -22435,7 +22469,7 @@ var Events = function Events(_ref) {
22435
22469
  children: [showAddButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
22436
22470
  "data-cy": "add-event-button",
22437
22471
  "data-test-id": "automation-rules-add-events-button",
22438
- icon: neetoIcons.Plus,
22472
+ icon: Plus__default["default"],
22439
22473
  size: 32,
22440
22474
  style: "icon",
22441
22475
  tooltipProps: {
@@ -22447,7 +22481,7 @@ var Events = function Events(_ref) {
22447
22481
  }
22448
22482
  }), !showMessage && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
22449
22483
  "data-cy": "delete-event-button",
22450
- icon: neetoIcons.Delete,
22484
+ icon: Delete__default["default"],
22451
22485
  size: 32,
22452
22486
  style: "icon",
22453
22487
  tooltipProps: {
@@ -22766,7 +22800,7 @@ var Status = function Status() {
22766
22800
  label: t("neetoRules.labels.active"),
22767
22801
  labelProps: {
22768
22802
  helpIconProps: {
22769
- icon: neetoIcons.Help,
22803
+ icon: Help__default["default"],
22770
22804
  tooltipProps: {
22771
22805
  content: status.value === ENABLED ? t("neetoRules.tooltips.rule.active") : t("neetoRules.tooltips.rule.inactive")
22772
22806
  }
@@ -23115,7 +23149,7 @@ var ActionsDetail = function ActionsDetail(_ref) {
23115
23149
  }), actionsList.length > 4 && /*#__PURE__*/jsxRuntime.jsx("div", {
23116
23150
  className: "mt-3 w-full",
23117
23151
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
23118
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
23152
+ icon: !viewMore ? Down__default["default"] : Up__default["default"],
23119
23153
  size: "small",
23120
23154
  style: "link",
23121
23155
  label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
@@ -23230,7 +23264,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
23230
23264
  }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
23231
23265
  className: "mt-3 w-full",
23232
23266
  children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
23233
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
23267
+ icon: !viewMore ? Down__default["default"] : Up__default["default"],
23234
23268
  size: "small",
23235
23269
  style: "link",
23236
23270
  label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),