@bigbinary/neeto-rules-frontend 2.0.4 → 2.0.5

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.cjs.js CHANGED
@@ -16,13 +16,12 @@ var reactI18next = require('react-i18next');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
17
  var ReactDOM = require('react-dom');
18
18
  var Reorder = require('@bigbinary/neeto-icons/Reorder');
19
+ var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
19
20
  var Pane = require('@bigbinary/neetoui/Pane');
20
21
  var Typography = require('@bigbinary/neetoui/Typography');
21
- var Pagination = require('@bigbinary/neetoui/Pagination');
22
22
  var ramda = require('ramda');
23
23
  var reactRouterDom = require('react-router-dom');
24
24
  var shallow = require('zustand/shallow');
25
- var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
26
25
  var SubHeader = require('@bigbinary/neeto-molecules/SubHeader');
27
26
  var TableWrapper = require('@bigbinary/neeto-molecules/TableWrapper');
28
27
  var Alert = require('@bigbinary/neetoui/Alert');
@@ -97,10 +96,9 @@ var HelpPopover__default = /*#__PURE__*/_interopDefaultLegacy(HelpPopover);
97
96
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
98
97
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
99
98
  var Reorder__default = /*#__PURE__*/_interopDefaultLegacy(Reorder);
99
+ var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
100
100
  var Pane__default = /*#__PURE__*/_interopDefaultLegacy(Pane);
101
101
  var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
102
- var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
103
- var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
104
102
  var SubHeader__default = /*#__PURE__*/_interopDefaultLegacy(SubHeader);
105
103
  var TableWrapper__default = /*#__PURE__*/_interopDefaultLegacy(TableWrapper);
106
104
  var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
@@ -341,6 +339,11 @@ var useReorderAutomationRules = function useReorderAutomationRules(url) {
341
339
  });
342
340
  };
343
341
 
342
+ var INITIAL_RULES_DATA = {
343
+ rules: [],
344
+ totalCount: 0
345
+ };
346
+
344
347
  var createRoutes = function createRoutes(basePath) {
345
348
  return {
346
349
  index: basePath,
@@ -9467,13 +9470,21 @@ var ConnectedDroppable$1 = ConnectedDroppable;
9467
9470
 
9468
9471
  function ownKeys$r(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; }
9469
9472
  function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9470
- var reorderList = function reorderList(list, startIndex, endIndex) {
9473
+ var reorderList = function reorderList(_ref) {
9474
+ var endIndex = _ref.endIndex,
9475
+ firstDisplayOrder = _ref.firstDisplayOrder,
9476
+ list = _ref.list,
9477
+ startIndex = _ref.startIndex;
9471
9478
  var result = Array.from(list);
9472
9479
  var _result$splice = result.splice(startIndex, 1),
9473
9480
  _result$splice2 = _slicedToArray(_result$splice, 1),
9474
9481
  removed = _result$splice2[0];
9475
9482
  result.splice(endIndex, 0, removed);
9476
- return result;
9483
+ return result.map(function (item, index) {
9484
+ return _objectSpread$r(_objectSpread$r({}, item), {}, {
9485
+ displayOrder: firstDisplayOrder + index
9486
+ });
9487
+ });
9477
9488
  };
9478
9489
  var getDragItemStyle = function getDragItemStyle(isDragging, draggableStyle) {
9479
9490
  return _objectSpread$r(_objectSpread$r({}, draggableStyle), isDragging && {
@@ -9512,35 +9523,38 @@ var DraggableItem$1 = reactRouterDom.withRouter(DraggableItem);
9512
9523
  function ownKeys$p(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; }
9513
9524
  function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9514
9525
  var RulesReorder = function RulesReorder(_ref) {
9526
+ var _rules$0$displayOrder, _rules$;
9515
9527
  var isOpen = _ref.isOpen,
9516
- onClose = _ref.onClose,
9517
- rules = _ref.rules,
9518
- _ref$paginationProps = _ref.paginationProps,
9519
- paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
9528
+ totalCount = _ref.totalCount,
9520
9529
  url = _ref.url,
9530
+ onClose = _ref.onClose,
9521
9531
  onReorderSuccess = _ref.onReorderSuccess;
9522
- var _useState = React.useState(rules),
9532
+ var _useState = React.useState([]),
9523
9533
  _useState2 = _slicedToArray(_useState, 2),
9524
- initialRules = _useState2[0],
9525
- setInitialRules = _useState2[1];
9534
+ reorderedRules = _useState2[0],
9535
+ setReorderedRules = _useState2[1];
9526
9536
  var _useTranslation = reactI18next.useTranslation(),
9527
9537
  t = _useTranslation.t;
9538
+ var _useFetchAutomationRu = useFetchAutomationRules({
9539
+ pageSize: totalCount,
9540
+ url: url
9541
+ }, {
9542
+ enabled: isOpen
9543
+ }),
9544
+ _useFetchAutomationRu2 = _useFetchAutomationRu.data,
9545
+ _useFetchAutomationRu3 = _useFetchAutomationRu2 === void 0 ? INITIAL_RULES_DATA : _useFetchAutomationRu2,
9546
+ rules = _useFetchAutomationRu3.rules,
9547
+ isLoading = _useFetchAutomationRu.isLoading;
9528
9548
  var _useReorderAutomation = useReorderAutomationRules(url),
9529
9549
  reOrder = _useReorderAutomation.mutate,
9530
9550
  isPending = _useReorderAutomation.isPending;
9531
- var handleReorderSave = function handleReorderSave(rules) {
9532
- var params = [];
9533
- rules.forEach(function (rule, index) {
9534
- params.push({
9535
- id: rule.id,
9536
- display_order: index
9537
- });
9538
- });
9539
- reOrder({
9551
+ var firstDisplayOrder = (_rules$0$displayOrder = (_rules$ = rules[0]) === null || _rules$ === void 0 ? void 0 : _rules$.displayOrder) !== null && _rules$0$displayOrder !== void 0 ? _rules$0$displayOrder : 1;
9552
+ var handleReorderSave = function handleReorderSave() {
9553
+ return reOrder({
9540
9554
  url: url,
9541
9555
  payload: {
9542
9556
  reorder: {
9543
- rules: params
9557
+ rules: reorderedRules
9544
9558
  }
9545
9559
  }
9546
9560
  }, {
@@ -9550,22 +9564,30 @@ var RulesReorder = function RulesReorder(_ref) {
9550
9564
  }
9551
9565
  });
9552
9566
  };
9553
- var onDragEnd = function onDragEnd(result) {
9554
- if (!result.destination || result.source.index === result.destination.index) {
9555
- return;
9556
- }
9557
- var originalRules = ramda.clone(initialRules);
9558
- var items = reorderList(originalRules, result.source.index, result.destination.index);
9559
- items = items.map(function (item, index) {
9560
- return _objectSpread$p(_objectSpread$p({}, item), {}, {
9561
- display_order: index
9562
- });
9567
+ var onDragEnd = function onDragEnd(_ref2) {
9568
+ var destination = _ref2.destination,
9569
+ source = _ref2.source;
9570
+ if (!destination || source.index === destination.index) return;
9571
+ var items = reorderList({
9572
+ endIndex: destination.index,
9573
+ firstDisplayOrder: firstDisplayOrder,
9574
+ list: ramda.clone(reorderedRules),
9575
+ startIndex: source.index
9563
9576
  });
9564
- setInitialRules(items);
9577
+ setReorderedRules(items);
9565
9578
  };
9566
9579
  React.useEffect(function () {
9567
- setInitialRules(rules);
9580
+ setReorderedRules(rules);
9568
9581
  }, [rules]);
9582
+ if (isLoading) {
9583
+ return /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"], {
9584
+ isOpen: isOpen,
9585
+ onClose: onClose,
9586
+ children: /*#__PURE__*/jsxRuntime.jsx(Container__default["default"], {
9587
+ children: /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {})
9588
+ })
9589
+ });
9590
+ }
9569
9591
  return /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
9570
9592
  isOpen: isOpen,
9571
9593
  onClose: onClose,
@@ -9580,9 +9602,9 @@ var RulesReorder = function RulesReorder(_ref) {
9580
9602
  className: "mb-3",
9581
9603
  style: "body2",
9582
9604
  children: t("neetoRules.description.reorder")
9583
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9605
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
9584
9606
  className: "flex flex-col items-center",
9585
- children: [/*#__PURE__*/jsxRuntime.jsx(DragDropContext, {
9607
+ children: /*#__PURE__*/jsxRuntime.jsx(DragDropContext, {
9586
9608
  onDragEnd: onDragEnd,
9587
9609
  children: /*#__PURE__*/jsxRuntime.jsx(ConnectedDroppable$1, {
9588
9610
  droppableId: "droppable",
@@ -9598,15 +9620,15 @@ var RulesReorder = function RulesReorder(_ref) {
9598
9620
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
9599
9621
  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",
9600
9622
  children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), /*#__PURE__*/jsxRuntime.jsx("div", {
9601
- children: initialRules[rubric.source.index].name
9623
+ children: reorderedRules[rubric.source.index].name
9602
9624
  })]
9603
9625
  })]
9604
- }), "list_".concat(initialRules[rubric.source.index].id));
9626
+ }), "list_".concat(reorderedRules[rubric.source.index].id));
9605
9627
  },
9606
9628
  children: function children(provided) {
9607
9629
  return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread$p(_objectSpread$p({}, provided.droppableProps), {}, {
9608
9630
  ref: provided.innerRef,
9609
- children: [initialRules.map(function (rule, index) {
9631
+ children: [reorderedRules.map(function (rule, index) {
9610
9632
  return /*#__PURE__*/React.createElement(DraggableItem$1, {
9611
9633
  rule: rule,
9612
9634
  key: rule.id,
@@ -9616,18 +9638,16 @@ var RulesReorder = function RulesReorder(_ref) {
9616
9638
  }));
9617
9639
  }
9618
9640
  })
9619
- }), neetoCist.isNotEmpty(paginationProps) && /*#__PURE__*/jsxRuntime.jsx(Pagination__default["default"], _objectSpread$p({}, paginationProps))]
9641
+ })
9620
9642
  })]
9621
9643
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"].Footer, {
9622
9644
  className: "flex items-center gap-x-2",
9623
9645
  children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
9624
- disabled: isPending || ramda.equals(rules, initialRules),
9646
+ disabled: isPending || ramda.equals(rules, reorderedRules),
9625
9647
  label: t("neetoRules.common.saveChange"),
9626
9648
  loading: isPending,
9627
9649
  style: "primary",
9628
- onClick: function onClick() {
9629
- return handleReorderSave(initialRules);
9630
- }
9650
+ onClick: handleReorderSave
9631
9651
  }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
9632
9652
  label: t("neetoRules.buttons.cancel"),
9633
9653
  style: "text",
@@ -9716,6 +9736,7 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9716
9736
  key: "edit",
9717
9737
  className: "neeto-ui-btn",
9718
9738
  "data-test-id": "automation-rules-edit-link",
9739
+ "data-cy": "automation-rules-edit-link",
9719
9740
  label: i18next.t("neetoRules.button.edit"),
9720
9741
  to: utils.buildUrl(createRoutes(automationRulesPath).edit, {
9721
9742
  ruleId: rule.id
@@ -9723,6 +9744,7 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9723
9744
  }, {
9724
9745
  key: "clone",
9725
9746
  "data-test-id": "automation-rules-clone-link",
9747
+ "data-cy": "automation-rules-clone-link",
9726
9748
  label: i18next.t("neetoRules.button.clone"),
9727
9749
  onClick: function onClick() {
9728
9750
  return onClone(rule.id);
@@ -9733,6 +9755,7 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
9733
9755
  }, {
9734
9756
  key: "delete",
9735
9757
  "data-test-id": "automation-rules-delete-link",
9758
+ "data-cy": "automation-rules-delete-link",
9736
9759
  label: i18next.t("neetoRules.button.delete"),
9737
9760
  onClick: function onClick() {
9738
9761
  return onDelete(rule);
@@ -9833,8 +9856,8 @@ var renderNoDataHelpText = function renderNoDataHelpText(helpDocUrl) {
9833
9856
  return /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
9834
9857
  i18nKey: "neetoRules.noData.helpText",
9835
9858
  components: {
9836
- a: /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Link, {
9837
- className: "neeto-ui-text-primary-600 underline",
9859
+ a: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
9860
+ style: "link",
9838
9861
  target: "_blank",
9839
9862
  to: {
9840
9863
  pathname: helpDocUrl
@@ -10045,11 +10068,9 @@ var NeetoRules = function NeetoRules(_ref) {
10045
10068
  searchTerm: searchTerm
10046
10069
  }),
10047
10070
  _useFetchAutomationRu2 = _useFetchAutomationRu.data,
10048
- _useFetchAutomationRu3 = _useFetchAutomationRu2 === void 0 ? {} : _useFetchAutomationRu2,
10049
- _useFetchAutomationRu4 = _useFetchAutomationRu3.rules,
10050
- rules = _useFetchAutomationRu4 === void 0 ? [] : _useFetchAutomationRu4,
10051
- _useFetchAutomationRu5 = _useFetchAutomationRu3.totalCount,
10052
- totalCount = _useFetchAutomationRu5 === void 0 ? 0 : _useFetchAutomationRu5,
10071
+ _useFetchAutomationRu3 = _useFetchAutomationRu2 === void 0 ? INITIAL_RULES_DATA : _useFetchAutomationRu2,
10072
+ rules = _useFetchAutomationRu3.rules,
10073
+ totalCount = _useFetchAutomationRu3.totalCount,
10053
10074
  isLoading = _useFetchAutomationRu.isLoading,
10054
10075
  isFetching = _useFetchAutomationRu.isFetching;
10055
10076
  var hasUnfilteredRules = neetoCist.isPresent(searchTerm) || totalCount > 0;
@@ -10077,15 +10098,9 @@ var NeetoRules = function NeetoRules(_ref) {
10077
10098
  onDeleteSuccess: deleteRule === null || deleteRule === void 0 || (_deleteRule$onSuccess = deleteRule.onSuccess) === null || _deleteRule$onSuccess === void 0 ? void 0 : _deleteRule$onSuccess.callback,
10078
10099
  onUpdateSuccess: updateRule === null || updateRule === void 0 || (_updateRule$onSuccess = updateRule.onSuccess) === null || _updateRule$onSuccess === void 0 ? void 0 : _updateRule$onSuccess.callback
10079
10100
  })), allowReordering && !isLoading && /*#__PURE__*/jsxRuntime.jsx(RulesReorder, {
10080
- rules: rules,
10101
+ totalCount: totalCount,
10081
10102
  url: url,
10082
10103
  isOpen: isReorderPaneOpen,
10083
- paginationProps: {
10084
- pageNo: page,
10085
- count: totalCount,
10086
- pageSize: constants.DEFAULT_PAGE_SIZE,
10087
- navigate: setPage
10088
- },
10089
10104
  onClose: function onClose() {
10090
10105
  return setIsReorderPaneOpen(false);
10091
10106
  },
@@ -10200,25 +10215,24 @@ var LongTextField = function LongTextField(_ref) {
10200
10215
  var rows = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.rows) || DEFAULT_LONG_TEXT_ROWS;
10201
10216
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10202
10217
  children: [separator && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10203
- className: "neeto-ui-text-gray-700 mt-1",
10218
+ className: "neeto-ui-text-gray-700",
10204
10219
  "data-cy": "long-text-action-separator-text",
10205
10220
  style: "h5",
10206
10221
  weight: "normal",
10207
10222
  children: separator
10208
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10223
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10209
10224
  "data-cy": "long-text-action-button",
10210
- style: "h5",
10211
- weight: "semibold",
10212
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
10213
- "neeto-ui-text-primary-800": showPane,
10225
+ label: label.toLowerCase(),
10226
+ style: "link",
10227
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
10228
+ "neeto-ui-text-accent-800": showPane,
10214
10229
  "neeto-ui-text-error-500": isValid
10215
10230
  }),
10216
10231
  onClick: function onClick() {
10217
10232
  return setShowPane(function (prevState) {
10218
10233
  return !prevState;
10219
10234
  });
10220
- },
10221
- children: label.toLowerCase()
10235
+ }
10222
10236
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
10223
10237
  initialFocusRef: initialFocusRef,
10224
10238
  isOpen: showPane,
@@ -10422,25 +10436,24 @@ var ApiFields = function ApiFields(_ref) {
10422
10436
  };
10423
10437
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10424
10438
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10425
- className: "neeto-ui-text-gray-700 mt-1",
10439
+ className: "neeto-ui-text-gray-700",
10426
10440
  "data-cy": "api-action-separator-text",
10427
10441
  style: "h5",
10428
10442
  weight: "normal",
10429
10443
  children: separator
10430
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10444
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10431
10445
  "data-cy": "api-action-button",
10432
- style: "h5",
10433
- weight: "semibold",
10434
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
10435
- "neeto-ui-text-primary-800": showPane,
10446
+ label: defaultLabel.toLowerCase(),
10447
+ style: "link",
10448
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
10449
+ "neeto-ui-text-accent-800": showPane,
10436
10450
  "neeto-ui-text-error-500": isValid
10437
10451
  }),
10438
10452
  onClick: function onClick() {
10439
10453
  return setShowPane(function (prevState) {
10440
10454
  return !prevState;
10441
10455
  });
10442
- },
10443
- children: defaultLabel.toLowerCase()
10456
+ }
10444
10457
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
10445
10458
  initialFocusRef: initialFocusRef,
10446
10459
  isOpen: showPane,
@@ -10511,23 +10524,22 @@ var CustomAction = function CustomAction(_ref) {
10511
10524
  var defaultLabel = selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder;
10512
10525
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10513
10526
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10514
- className: "neeto-ui-text-gray-700 mt-1",
10527
+ className: "neeto-ui-text-gray-700",
10515
10528
  style: "h5",
10516
10529
  weight: "normal",
10517
10530
  children: separator
10518
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10519
- style: "h5",
10520
- weight: "semibold",
10521
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
10522
- "neeto-ui-text-primary-800": showPane,
10531
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10532
+ label: defaultLabel.toLowerCase(),
10533
+ style: "link",
10534
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
10535
+ "neeto-ui-text-accent-800": showPane,
10523
10536
  "neeto-ui-text-error-500": isValid
10524
10537
  }),
10525
10538
  onClick: function onClick() {
10526
10539
  return setShowPane(function (prevState) {
10527
10540
  return !prevState;
10528
10541
  });
10529
- },
10530
- children: defaultLabel.toLowerCase()
10542
+ }
10531
10543
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
10532
10544
  initialFocusRef: initialFocusRef,
10533
10545
  isOpen: showPane,
@@ -10579,7 +10591,7 @@ var DateField$1 = function DateField(_ref) {
10579
10591
  var isValid = errors.actions && ramda.isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && ramda.isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
10580
10592
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10581
10593
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10582
- className: "neeto-ui-text-gray-700 mt-1",
10594
+ className: "neeto-ui-text-gray-700",
10583
10595
  "data-cy": "action-dropdown-seperator-text",
10584
10596
  style: "h5",
10585
10597
  weight: "normal",
@@ -10604,10 +10616,10 @@ var DateField$1 = function DateField(_ref) {
10604
10616
  });
10605
10617
  }
10606
10618
  })]
10607
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10608
- style: "h5",
10609
- weight: "semibold",
10610
- className: classNames__default["default"]("neeto-ui-text-gray-800 hover:neeto-ui-text-primary-800 mt-1 cursor-pointer underline", {
10619
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10620
+ label: label,
10621
+ style: "link",
10622
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
10611
10623
  "neeto-ui-text-error-500": isValid
10612
10624
  }),
10613
10625
  onClick: function onClick() {
@@ -10615,8 +10627,7 @@ var DateField$1 = function DateField(_ref) {
10615
10627
  setShowInput(function (prevState) {
10616
10628
  return !prevState;
10617
10629
  });
10618
- },
10619
- children: label
10630
+ }
10620
10631
  })]
10621
10632
  });
10622
10633
  };
@@ -10808,7 +10819,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10808
10819
  }, [defaultValue, dropdownOptions]);
10809
10820
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10810
10821
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10811
- className: "neeto-ui-text-gray-700 mt-1",
10822
+ className: "neeto-ui-text-gray-700",
10812
10823
  "data-cy": "action-dropdown-seperator-text",
10813
10824
  style: "h5",
10814
10825
  weight: "normal",
@@ -10816,12 +10827,12 @@ var DropdownField$1 = function DropdownField(_ref) {
10816
10827
  }), /*#__PURE__*/jsxRuntime.jsx(Dropdown__default["default"], {
10817
10828
  buttonStyle: "secondary",
10818
10829
  className: "neeto-ui-bg-gray-100",
10819
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10830
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
10820
10831
  "data-cy": "action-dropdown-button",
10821
- style: "h5",
10822
- weight: "semibold",
10823
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
10824
- "neeto-ui-text-primary-800": isActive,
10832
+ label: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
10833
+ style: "link",
10834
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
10835
+ "neeto-ui-text-accent-800": isActive,
10825
10836
  "neeto-ui-text-error-500": isValueSelected
10826
10837
  }),
10827
10838
  onClick: function onClick() {
@@ -10829,8 +10840,7 @@ var DropdownField$1 = function DropdownField(_ref) {
10829
10840
  setIsActive(function (prevState) {
10830
10841
  return !prevState;
10831
10842
  });
10832
- },
10833
- children: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase()
10843
+ }
10834
10844
  }),
10835
10845
  onClose: handleClose,
10836
10846
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$9, {
@@ -10995,25 +11005,24 @@ var EmailFields = function EmailFields(_ref) {
10995
11005
  };
10996
11006
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
10997
11007
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
10998
- className: "neeto-ui-text-gray-700 mt-1",
11008
+ className: "neeto-ui-text-gray-700",
10999
11009
  "data-cy": "action-email-seperator-text",
11000
11010
  style: "h5",
11001
11011
  weight: "normal",
11002
11012
  children: separator
11003
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11013
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11004
11014
  "data-cy": "email-action-button",
11005
- style: "h5",
11006
- weight: "semibold",
11007
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
11008
- "neeto-ui-text-primary-800": showPane,
11015
+ label: defaultLabel.toLowerCase(),
11016
+ style: "link",
11017
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11018
+ "neeto-ui-text-accent-800": showPane,
11009
11019
  "neeto-ui-text-error-500": isValid
11010
11020
  }),
11011
11021
  onClick: function onClick() {
11012
11022
  return setShowPane(function (prevState) {
11013
11023
  return !prevState;
11014
11024
  });
11015
- },
11016
- children: defaultLabel.toLowerCase()
11025
+ }
11017
11026
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
11018
11027
  initialFocusRef: initialFocusRef,
11019
11028
  isOpen: showPane,
@@ -11137,18 +11146,17 @@ var Input = function Input(_ref) {
11137
11146
  });
11138
11147
  }
11139
11148
  })
11140
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11141
- style: "h5",
11142
- weight: "semibold",
11143
- className: classNames__default["default"]("neeto-ui-text-gray-800 hover:neeto-ui-text-primary-800 mt-1 cursor-pointer underline", {
11144
- "neeto-ui-text-error-500": isValid
11149
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11150
+ label: label,
11151
+ style: "link",
11152
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11153
+ "neeto-ui-text-accent-500": isValid
11145
11154
  }),
11146
11155
  onClick: function onClick() {
11147
11156
  return setShowInput(function (prevState) {
11148
11157
  return !prevState;
11149
11158
  });
11150
- },
11151
- children: label
11159
+ }
11152
11160
  })]
11153
11161
  });
11154
11162
  };
@@ -11285,25 +11293,24 @@ var ListField = function ListField(_ref) {
11285
11293
  var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
11286
11294
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11287
11295
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11288
- className: "neeto-ui-text-gray-700 mt-1",
11296
+ className: "neeto-ui-text-gray-700",
11289
11297
  "data-cy": "list-action-separator-text",
11290
11298
  style: "h5",
11291
11299
  weight: "normal",
11292
11300
  children: separator
11293
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11301
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11294
11302
  "data-cy": "list-action-button",
11295
- style: "h5",
11296
- weight: "semibold",
11297
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
11298
- "neeto-ui-text-primary-800": showPane,
11303
+ label: t("neetoRules.form.list"),
11304
+ style: "link",
11305
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11306
+ "neeto-ui-text-accent-800": showPane,
11299
11307
  "neeto-ui-text-error-500": isValid
11300
11308
  }),
11301
11309
  onClick: function onClick() {
11302
11310
  return setShowPane(function (prevState) {
11303
11311
  return !prevState;
11304
11312
  });
11305
- },
11306
- children: t("neetoRules.form.list")
11313
+ }
11307
11314
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
11308
11315
  initialFocusRef: initialFocusRef,
11309
11316
  isOpen: showPane,
@@ -11350,7 +11357,7 @@ var ListField = function ListField(_ref) {
11350
11357
  className: "w-full",
11351
11358
  children: function children(message) {
11352
11359
  return /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11353
- className: "neeto-ui-text-error-500 neeto-ui-text-gray-700 mt-1",
11360
+ className: "neeto-ui-text-error-500 neeto-ui-text-gray-700",
11354
11361
  "data-cy": "list-action-error-message",
11355
11362
  style: "h5",
11356
11363
  children: message
@@ -11433,7 +11440,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11433
11440
  };
11434
11441
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11435
11442
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11436
- className: "neeto-ui-text-gray-700 mt-1",
11443
+ className: "neeto-ui-text-gray-700",
11437
11444
  "data-cy": "multi-select-action-separator-text",
11438
11445
  style: "h5",
11439
11446
  weight: "normal",
@@ -11444,12 +11451,12 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11444
11451
  closeOnSelect: false,
11445
11452
  position: "top-start",
11446
11453
  customTarget: neetoCist.isNotEmpty(selectedOptions) ? /*#__PURE__*/jsxRuntime.jsx("span", {
11447
- className: "flex flex-wrap gap-y-1",
11454
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1",
11448
11455
  children: selectedOptions.map(function (option, idx) {
11449
11456
  return /*#__PURE__*/jsxRuntime.jsxs("span", {
11450
- className: "flex flex-wrap",
11457
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1",
11451
11458
  children: [!!idx && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11452
- className: "neeto-ui-text-gray-700 mr-1 mt-1",
11459
+ className: "neeto-ui-text-gray-700",
11453
11460
  style: "h5",
11454
11461
  weight: "normal",
11455
11462
  onClick: function onClick(e) {
@@ -11458,33 +11465,31 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11458
11465
  children: t("neetoRules.common.and", {
11459
11466
  what: ""
11460
11467
  })
11461
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11468
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11462
11469
  "data-cy": "multi-select-action-button",
11463
- style: "h5",
11464
- weight: "semibold",
11465
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mr-1 mt-1 cursor-pointer underline", {
11466
- "neeto-ui-text-primary-800": activeOption === (option === null || option === void 0 ? void 0 : option.value)
11470
+ label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
11471
+ style: "link",
11472
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11473
+ "neeto-ui-text-accent-800": activeOption === (option === null || option === void 0 ? void 0 : option.value)
11467
11474
  }),
11468
11475
  onClick: function onClick() {
11469
11476
  setTouched(ramda.assocPath(["actions", "value", index], true, touched));
11470
11477
  setActiveOption(activeOption ? null : option === null || option === void 0 ? void 0 : option.value);
11471
- },
11472
- children: option === null || option === void 0 ? void 0 : option.label.toLowerCase()
11478
+ }
11473
11479
  })]
11474
11480
  }, idx);
11475
11481
  })
11476
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11477
- style: "h5",
11478
- weight: "semibold",
11479
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
11480
- "neeto-ui-text-primary-800": activeOption === defaultLabel,
11482
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11483
+ label: defaultLabel,
11484
+ style: "link",
11485
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11486
+ "neeto-ui-text-accent-800": activeOption === defaultLabel,
11481
11487
  "neeto-ui-text-error-500": isValid
11482
11488
  }),
11483
11489
  onClick: function onClick() {
11484
11490
  setTouched(ramda.assocPath(["actions", "value", index], true, touched));
11485
11491
  setActiveOption(activeOption ? null : defaultLabel);
11486
- },
11487
- children: defaultLabel
11492
+ }
11488
11493
  }),
11489
11494
  onClose: handleClose,
11490
11495
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$8, {
@@ -11550,25 +11555,24 @@ var NoteField = function NoteField(_ref) {
11550
11555
  var defaultLabel = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder) || t("neetoRules.form.note");
11551
11556
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11552
11557
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11553
- className: "neeto-ui-text-gray-700 mt-1",
11558
+ className: "neeto-ui-text-gray-700",
11554
11559
  "data-cy": "note-action-separator-text",
11555
11560
  style: "h5",
11556
11561
  weight: "normal",
11557
11562
  children: separator
11558
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11563
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11559
11564
  "data-cy": "note-action-button",
11560
- style: "h5",
11561
- weight: "semibold",
11562
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
11563
- "neeto-ui-text-primary-800": showPane,
11565
+ label: defaultLabel.toLowerCase(),
11566
+ style: "link",
11567
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11568
+ "neeto-ui-text-accent-800": showPane,
11564
11569
  "neeto-ui-text-error-500": isValid
11565
11570
  }),
11566
11571
  onClick: function onClick() {
11567
11572
  return setShowPane(function (prevState) {
11568
11573
  return !prevState;
11569
11574
  });
11570
- },
11571
- children: defaultLabel.toLowerCase()
11575
+ }
11572
11576
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
11573
11577
  initialFocusRef: initialFocusRef,
11574
11578
  isOpen: showPane,
@@ -11897,25 +11901,24 @@ var SmsFields = function SmsFields(_ref) {
11897
11901
  };
11898
11902
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
11899
11903
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11900
- className: "neeto-ui-text-gray-700 mt-1",
11904
+ className: "neeto-ui-text-gray-700",
11901
11905
  "data-cy": "sms-action-separator-text",
11902
11906
  style: "h5",
11903
11907
  weight: "normal",
11904
11908
  children: separator
11905
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
11909
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
11906
11910
  "data-cy": "sms-action-button",
11907
- style: "h5",
11908
- weight: "semibold",
11909
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
11910
- "neeto-ui-text-primary-800": showPane,
11911
+ label: defaultLabel.toLowerCase(),
11912
+ style: "link",
11913
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
11914
+ "neeto-ui-text-accent-800": showPane,
11911
11915
  "neeto-ui-text-error-500": isValid
11912
11916
  }),
11913
11917
  onClick: function onClick() {
11914
11918
  return setShowPane(function (prevState) {
11915
11919
  return !prevState;
11916
11920
  });
11917
- },
11918
- children: defaultLabel.toLowerCase()
11921
+ }
11919
11922
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
11920
11923
  initialFocusRef: initialFocusRef,
11921
11924
  isOpen: showPane,
@@ -12560,77 +12563,78 @@ var ActionItem = function ActionItem(_ref) {
12560
12563
  findSelectedOption();
12561
12564
  }, [selectedField]);
12562
12565
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
12563
- className: "mb-1 flex max-w-2xl flex-wrap gap-x-1 gap-y-2",
12564
- children: [selectDropDownHasError && renderErrorCallout(selectDropDownErrorMessage), !isMessageToSlackAction && isDisabled && renderDisabledReason(), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
12565
- className: "neeto-ui-text-gray-700 mt-1",
12566
- style: "h5",
12567
- weight: "normal",
12568
- children: label
12569
- }), /*#__PURE__*/jsxRuntime.jsx(Dropdown__default["default"], {
12570
- buttonStyle: "secondary",
12571
- className: "neeto-ui-bg-gray-100",
12572
- position: "bottom-start",
12573
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
12574
- "data-cy": "action-dropdown-button",
12566
+ className: "flex max-w-2xl flex-wrap gap-x-1 gap-y-3",
12567
+ children: [selectDropDownHasError && renderErrorCallout(selectDropDownErrorMessage), !isMessageToSlackAction && isDisabled && renderDisabledReason(), /*#__PURE__*/jsxRuntime.jsxs("div", {
12568
+ className: "flex flex-wrap items-center gap-x-2 gap-y-3",
12569
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
12570
+ className: "neeto-ui-text-gray-700",
12575
12571
  style: "h5",
12576
- weight: "semibold",
12577
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
12578
- "neeto-ui-text-primary-800": isActive,
12579
- "neeto-ui-text-error-500": isActionSelected
12580
- }),
12581
- onClick: function onClick() {
12582
- return setIsActive(function (prevState) {
12583
- return !prevState;
12584
- });
12585
- },
12586
- children: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase()
12587
- }),
12588
- onClose: handleClose,
12589
- children: /*#__PURE__*/jsxRuntime.jsxs(Menu$7, {
12590
- className: "max-h-60 max-w-2xl p-3",
12591
- children: [actionOptions.length > MAXIMUM_OPTION_LENGTH$1 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
12592
- autoFocus: true,
12593
- className: "mb-1",
12594
- "data-cy": "search-text-field",
12595
- placeholder: t("neetoRules.common.search"),
12596
- prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
12597
- value: searchTerm,
12598
- onChange: function onChange(e) {
12599
- return setSearchTerm(e.target.value);
12600
- },
12601
- onClick: function onClick(e) {
12602
- return e.stopPropagation();
12572
+ weight: "normal",
12573
+ children: label
12574
+ }), /*#__PURE__*/jsxRuntime.jsx(Dropdown__default["default"], {
12575
+ buttonStyle: "secondary",
12576
+ className: "neeto-ui-bg-gray-100",
12577
+ position: "bottom-start",
12578
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
12579
+ "data-cy": "action-dropdown-button",
12580
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
12581
+ style: "link",
12582
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
12583
+ "neeto-ui-text-accent-800": isActive,
12584
+ "neeto-ui-text-error-500": isActionSelected
12585
+ }),
12586
+ onClick: function onClick() {
12587
+ return setIsActive(function (prevState) {
12588
+ return !prevState;
12589
+ });
12603
12590
  }
12604
- }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
12605
- hasScroll: actionOptions.length > MAXIMUM_OPTION_LENGTH$1,
12606
- children: searchedOptions.map(function (option, idx) {
12607
- return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
12608
- "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
12609
- suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
12610
- className: "neeto-ui-text-primary-800"
12611
- }),
12612
- onClick: function onClick() {
12613
- return handleSelectOption(option);
12614
- },
12615
- children: option.label
12616
- }, idx);
12617
- })
12618
- }), ramda.isEmpty(actionOptions) && /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
12619
- "data-cy": "no-options-menu-item",
12620
- children: t("neetoRules.common.noOptions")
12621
- })]
12622
- })
12623
- }), /*#__PURE__*/jsxRuntime.jsx(ActionSubItem, {
12624
- action: action,
12625
- index: index,
12626
- selectedField: selectedField,
12627
- name: "".concat(name, ".metadata"),
12628
- options: getSelectedFieldOptions()
12629
- }), neetoCist.isPresent(action === null || action === void 0 ? void 0 : action.children) && /*#__PURE__*/jsxRuntime.jsx(ActionChildren, {
12630
- action: action,
12631
- index: index,
12632
- selectedField: selectedField,
12633
- parentFieldName: name
12591
+ }),
12592
+ onClose: handleClose,
12593
+ children: /*#__PURE__*/jsxRuntime.jsxs(Menu$7, {
12594
+ className: "max-h-60 max-w-2xl p-3",
12595
+ children: [actionOptions.length > MAXIMUM_OPTION_LENGTH$1 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
12596
+ autoFocus: true,
12597
+ "data-cy": "search-text-field",
12598
+ placeholder: t("neetoRules.common.search"),
12599
+ prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
12600
+ value: searchTerm,
12601
+ onChange: function onChange(e) {
12602
+ return setSearchTerm(e.target.value);
12603
+ },
12604
+ onClick: function onClick(e) {
12605
+ return e.stopPropagation();
12606
+ }
12607
+ }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
12608
+ hasScroll: actionOptions.length > MAXIMUM_OPTION_LENGTH$1,
12609
+ children: searchedOptions.map(function (option, idx) {
12610
+ return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
12611
+ "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
12612
+ suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
12613
+ className: "neeto-ui-text-primary-800"
12614
+ }),
12615
+ onClick: function onClick() {
12616
+ return handleSelectOption(option);
12617
+ },
12618
+ children: option.label
12619
+ }, idx);
12620
+ })
12621
+ }), ramda.isEmpty(actionOptions) && /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
12622
+ "data-cy": "no-options-menu-item",
12623
+ children: t("neetoRules.common.noOptions")
12624
+ })]
12625
+ })
12626
+ }), /*#__PURE__*/jsxRuntime.jsx(ActionSubItem, {
12627
+ action: action,
12628
+ index: index,
12629
+ selectedField: selectedField,
12630
+ name: "".concat(name, ".metadata"),
12631
+ options: getSelectedFieldOptions()
12632
+ }), neetoCist.isPresent(action === null || action === void 0 ? void 0 : action.children) && /*#__PURE__*/jsxRuntime.jsx(ActionChildren, {
12633
+ action: action,
12634
+ index: index,
12635
+ selectedField: selectedField,
12636
+ parentFieldName: name
12637
+ })]
12634
12638
  })]
12635
12639
  });
12636
12640
  };
@@ -12828,26 +12832,24 @@ var DropdownField = function DropdownField(_ref) {
12828
12832
  buttonStyle: "secondary",
12829
12833
  className: "neeto-ui-bg-gray-100",
12830
12834
  position: "bottom-start",
12831
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
12835
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
12832
12836
  "data-cy": "condition-".concat(fieldType, "-dropdown-button"),
12833
- style: "h5",
12834
- weight: "semibold",
12835
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
12836
- "neeto-ui-text-primary-800": isSelected
12837
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
12838
+ style: "link",
12839
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
12840
+ "neeto-ui-text-accent-800": isSelected
12837
12841
  }),
12838
12842
  onClick: function onClick() {
12839
12843
  return setIsSelected(function (prevState) {
12840
12844
  return !prevState;
12841
12845
  });
12842
- },
12843
- children: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase()
12846
+ }
12844
12847
  }),
12845
12848
  onClose: handleClose,
12846
12849
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$6, {
12847
12850
  className: "max-h-60 max-w-2xl p-3",
12848
12851
  children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
12849
12852
  autoFocus: true,
12850
- className: "mb-1",
12851
12853
  "data-cy": "search-text-field",
12852
12854
  placeholder: t("neetoRules.common.search"),
12853
12855
  prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
@@ -12950,12 +12952,12 @@ var Dropdown = function Dropdown(_ref) {
12950
12952
  return /*#__PURE__*/jsxRuntime.jsx(Dropdown__default["default"], {
12951
12953
  buttonStyle: "secondary",
12952
12954
  className: "neeto-ui-bg-gray-100",
12953
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
12955
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
12954
12956
  "data-cy": "condition-value-dropdown-button",
12955
- style: "h5",
12956
- weight: "semibold",
12957
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
12958
- "neeto-ui-text-primary-800": isActive,
12957
+ label: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
12958
+ style: "link",
12959
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
12960
+ "neeto-ui-text-accent-800": isActive,
12959
12961
  "neeto-ui-text-error-500": isValueSelected
12960
12962
  }),
12961
12963
  onClick: function onClick() {
@@ -12963,15 +12965,13 @@ var Dropdown = function Dropdown(_ref) {
12963
12965
  setIsActive(function (prevState) {
12964
12966
  return !prevState;
12965
12967
  });
12966
- },
12967
- children: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase()
12968
+ }
12968
12969
  }),
12969
12970
  onClose: handleClose,
12970
12971
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$5, {
12971
12972
  className: "max-h-60 max-w-2xl p-3",
12972
12973
  children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
12973
12974
  autoFocus: true,
12974
- className: "mb-1",
12975
12975
  "data-cy": "search-text-field",
12976
12976
  placeholder: t("neetoRules.common.search"),
12977
12977
  prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
@@ -13046,18 +13046,17 @@ var InputField$1 = function InputField(_ref) {
13046
13046
  });
13047
13047
  }
13048
13048
  })
13049
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13050
- style: "h5",
13051
- weight: "semibold",
13052
- className: classNames__default["default"]("neeto-ui-text-gray-800 hover:neeto-ui-text-primary-800 mt-1 cursor-pointer underline", {
13049
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13050
+ label: label,
13051
+ style: "link",
13052
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
13053
13053
  "neeto-ui-text-error-500": isValid
13054
13054
  }),
13055
13055
  onClick: function onClick() {
13056
13056
  return setShowInput(function (prevState) {
13057
13057
  return !prevState;
13058
13058
  });
13059
- },
13060
- children: label
13059
+ }
13061
13060
  });
13062
13061
  };
13063
13062
 
@@ -13106,43 +13105,41 @@ var MultiSelect = function MultiSelect(_ref) {
13106
13105
  closeOnSelect: false,
13107
13106
  position: "top-start",
13108
13107
  customTarget: neetoCist.isNotEmpty(options) ? /*#__PURE__*/jsxRuntime.jsx("span", {
13109
- className: "flex flex-wrap gap-y-1",
13108
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1",
13110
13109
  children: options.map(function (option, idx) {
13111
13110
  var _option$label;
13112
13111
  return /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
13113
13112
  children: [!!idx && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13114
- className: "neeto-ui-text-gray-700 mr-1 mt-1",
13113
+ className: "neeto-ui-text-gray-700",
13115
13114
  style: "h5",
13116
13115
  weight: "normal",
13117
13116
  children: t("neetoRules.common.or")
13118
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13117
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13119
13118
  "data-cy": "condition-value-multi-select-field",
13120
- style: "h5",
13121
- weight: "semibold",
13122
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mr-1 mt-1 cursor-pointer underline", {
13123
- "neeto-ui-text-primary-800": activeOption === option.value
13119
+ label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
13120
+ style: "link",
13121
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
13122
+ "neeto-ui-text-accent-800": activeOption === option.value
13124
13123
  }),
13125
13124
  onClick: function onClick() {
13126
13125
  setTouched(ramda.assocPath(["conditions", "value", index], true, touched));
13127
13126
  setActiveOption(activeOption ? null : option.value);
13128
- },
13129
- children: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase()
13127
+ }
13130
13128
  })]
13131
13129
  }, idx);
13132
13130
  })
13133
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13131
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13134
13132
  "data-cy": "condition-value-multi-select-field",
13135
- style: "h5",
13136
- weight: "semibold",
13137
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
13138
- "neeto-ui-text-primary-800": activeOption === defaultLabel,
13133
+ label: defaultLabel,
13134
+ style: "link",
13135
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
13136
+ "neeto-ui-text-accent-800": activeOption === defaultLabel,
13139
13137
  "neeto-ui-text-error-500": isValid
13140
13138
  }),
13141
13139
  onClick: function onClick() {
13142
13140
  setTouched(ramda.assocPath(["conditions", "value", index], true, touched));
13143
13141
  setActiveOption(activeOption ? null : defaultLabel);
13144
- },
13145
- children: defaultLabel
13142
+ }
13146
13143
  }),
13147
13144
  onClose: handleClose,
13148
13145
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$4, {
@@ -13210,11 +13207,11 @@ var MultiSelectCreate = function MultiSelectCreate(_ref) {
13210
13207
  var defaultLabel = t("neetoRules.form.selectValues");
13211
13208
  var isValid = errors.conditions && ramda.isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && ramda.isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
13212
13209
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
13213
- children: [ramda.isEmpty(allOptions) && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13210
+ children: [ramda.isEmpty(allOptions) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13214
13211
  "data-cy": "condition-value-multi-select-create-button",
13215
- style: "h5",
13216
- weight: "semibold",
13217
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline", {
13212
+ label: defaultLabel,
13213
+ style: "link",
13214
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
13218
13215
  "neeto-ui-text-error-500": isValid
13219
13216
  }),
13220
13217
  onClick: function onClick() {
@@ -13222,26 +13219,24 @@ var MultiSelectCreate = function MultiSelectCreate(_ref) {
13222
13219
  setShowPane(function (prevState) {
13223
13220
  return !prevState;
13224
13221
  });
13225
- },
13226
- children: defaultLabel
13222
+ }
13227
13223
  }), allOptions.map(function (option, idx) {
13228
13224
  return /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
13229
13225
  children: [!!idx && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13230
- className: "neeto-ui-text-gray-700 mt-1",
13226
+ className: "neeto-ui-text-gray-700",
13231
13227
  style: "h5",
13232
13228
  weight: "normal",
13233
13229
  children: t("neetoRules.common.or")
13234
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13235
- className: "hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mt-1 cursor-pointer underline",
13230
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13231
+ className: "neeto-ui-text-gray-800 neeto-ui-font-semibold underline",
13236
13232
  "data-cy": "condition-value-multi-select-create-button",
13237
- style: "h5",
13238
- weight: "semibold",
13233
+ label: option.label,
13234
+ style: "link",
13239
13235
  onClick: function onClick() {
13240
13236
  return setShowPane(function (prevState) {
13241
13237
  return !prevState;
13242
13238
  });
13243
- },
13244
- children: option.label
13239
+ }
13245
13240
  })]
13246
13241
  }, idx);
13247
13242
  }), /*#__PURE__*/jsxRuntime.jsxs(Pane__default["default"], {
@@ -13733,10 +13728,10 @@ var DateField = function DateField(_ref) {
13733
13728
  });
13734
13729
  }
13735
13730
  })]
13736
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13737
- style: "h5",
13738
- weight: "semibold",
13739
- className: classNames__default["default"]("neeto-ui-text-gray-800 hover:neeto-ui-text-primary-800 mt-1 cursor-pointer underline", {
13731
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13732
+ label: label,
13733
+ style: "link",
13734
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
13740
13735
  "neeto-ui-text-error-500": isValid
13741
13736
  }),
13742
13737
  onClick: function onClick() {
@@ -13744,8 +13739,7 @@ var DateField = function DateField(_ref) {
13744
13739
  setShowInput(function (prevState) {
13745
13740
  return !prevState;
13746
13741
  });
13747
- },
13748
- children: label
13742
+ }
13749
13743
  })
13750
13744
  });
13751
13745
  };
@@ -13862,14 +13856,14 @@ var ConditionItem = function ConditionItem(_ref) {
13862
13856
  };
13863
13857
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
13864
13858
  children: [isWithEvents && !index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13865
- className: "neeto-ui-text-gray-700 mt-1",
13859
+ className: "neeto-ui-text-gray-700",
13866
13860
  style: "h5",
13867
13861
  weight: "normal",
13868
13862
  children: t("neetoRules.common.and", {
13869
13863
  what: ""
13870
13864
  })
13871
13865
  }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13872
- className: "neeto-ui-text-gray-700 mt-1",
13866
+ className: "neeto-ui-text-gray-700",
13873
13867
  style: "h5",
13874
13868
  weight: "normal",
13875
13869
  children: defaultLabel
@@ -13900,15 +13894,14 @@ var LogicOperator = function LogicOperator(_ref) {
13900
13894
  var logicOperation = _ref.logicOperation,
13901
13895
  handleGroupJoinType = _ref.handleGroupJoinType;
13902
13896
  var logicOperationLabel = OPERATOR_LABELS[logicOperation];
13903
- return /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
13904
- className: "neeto-ui-text-gray-800 hover:neeto-ui-text-primary-800 mt-1 cursor-pointer underline",
13897
+ return /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
13898
+ className: "neeto-ui-text-gray-800 neeto-ui-font-semibold underline",
13905
13899
  "data-cy": "logic-operator-button",
13906
- style: "h5",
13907
- weight: "semibold",
13900
+ label: logicOperationLabel,
13901
+ style: "link",
13908
13902
  onClick: function onClick() {
13909
13903
  return handleGroupJoinType(logicOperation);
13910
- },
13911
- children: logicOperationLabel
13904
+ }
13912
13905
  });
13913
13906
  };
13914
13907
 
@@ -13972,7 +13965,7 @@ var Conditions = function Conditions(_ref) {
13972
13965
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
13973
13966
  className: "flex w-full justify-between",
13974
13967
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
13975
- className: "mb-1 flex flex-wrap gap-x-2 gap-y-2",
13968
+ className: "flex flex-wrap items-center gap-x-2 gap-y-2",
13976
13969
  children: [!!index && /*#__PURE__*/jsxRuntime.jsx(LogicOperator, {
13977
13970
  handleGroupJoinType: handleGroupJoinType,
13978
13971
  logicOperation: condition.joinType
@@ -14131,29 +14124,28 @@ var Performer$1 = function Performer(_ref) {
14131
14124
  setSelectedOption(option);
14132
14125
  };
14133
14126
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
14134
- className: "my-auto flex",
14127
+ className: "my-auto flex items-center gap-x-2 gap-y-3",
14135
14128
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14136
- className: "neeto-ui-text-gray-700 mr-2",
14129
+ className: "neeto-ui-text-gray-700",
14137
14130
  style: "h5",
14138
14131
  weight: "normal",
14139
14132
  children: t("neetoRules.common.by")
14140
14133
  }), /*#__PURE__*/jsxRuntime.jsx(Dropdown__default["default"], {
14141
14134
  buttonStyle: "secondary",
14142
14135
  className: "neeto-ui-bg-gray-100",
14143
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14136
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
14144
14137
  "data-cy": "event-performer-dropdown",
14145
- style: "h5",
14146
- weight: "semibold",
14147
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 cursor-pointer underline", {
14148
- "neeto-ui-text-primary-800": isSelected,
14138
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
14139
+ style: "link",
14140
+ className: classNames__default["default"](" neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
14141
+ "neeto-ui-text-accent-800": isSelected,
14149
14142
  "neeto-ui-text-error-500": isValueSelected
14150
14143
  }),
14151
14144
  onClick: function onClick() {
14152
14145
  return setIsSelected(function (prevState) {
14153
14146
  return !prevState;
14154
14147
  });
14155
- },
14156
- children: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase()
14148
+ }
14157
14149
  }),
14158
14150
  onClose: handleClose,
14159
14151
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$3, {
@@ -14294,7 +14286,7 @@ var Events$1 = function Events(_ref) {
14294
14286
  setSearchTerm("");
14295
14287
  };
14296
14288
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
14297
- className: "my-auto flex flex-wrap gap-x-2 gap-y-3",
14289
+ className: "my-auto flex flex-wrap items-center gap-x-2 gap-y-3",
14298
14290
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14299
14291
  className: "neeto-ui-text-gray-700 my-auto",
14300
14292
  style: "h5",
@@ -14306,42 +14298,40 @@ var Events$1 = function Events(_ref) {
14306
14298
  closeOnSelect: false,
14307
14299
  position: "top-start",
14308
14300
  customTarget: neetoCist.isNotEmpty(allEvents) ? /*#__PURE__*/jsxRuntime.jsx("span", {
14309
- className: "flex flex-wrap gap-y-1",
14301
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1",
14310
14302
  children: allEvents.map(function (event, idx) {
14311
14303
  var _event$label;
14312
14304
  return /*#__PURE__*/jsxRuntime.jsxs("span", {
14313
- className: "flex flex-wrap gap-y-1",
14305
+ className: "flex flex-wrap items-center gap-x-2 gap-y-1",
14314
14306
  children: [!!idx && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14315
- className: "neeto-ui-text-gray-700 mr-1",
14307
+ className: "neeto-ui-text-gray-700",
14316
14308
  style: "h5",
14317
14309
  weight: "normal",
14318
14310
  children: t("neetoRules.common.or")
14319
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14311
+ }), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
14320
14312
  "data-cy": "condition-value-multi-select-field",
14321
- style: "h5",
14322
- weight: "semibold",
14323
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 mr-1 cursor-pointer underline", {
14324
- "neeto-ui-text-primary-800": activeOption === event.value
14313
+ label: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
14314
+ style: "link",
14315
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
14316
+ "neeto-ui-text-accent-800": activeOption === event.value
14325
14317
  }),
14326
14318
  onClick: function onClick() {
14327
14319
  return setActiveOption(activeOption ? null : event.value);
14328
- },
14329
- children: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase()
14320
+ }
14330
14321
  })]
14331
14322
  }, idx);
14332
14323
  })
14333
- }) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14324
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
14334
14325
  "data-cy": "condition-value-multi-select-field",
14335
- style: "h5",
14336
- weight: "semibold",
14337
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 cursor-pointer underline", {
14338
- "neeto-ui-text-primary-800": activeOption === defaultLabel,
14326
+ label: defaultLabel,
14327
+ style: "link",
14328
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
14329
+ "neeto-ui-text-accent-800": activeOption === defaultLabel,
14339
14330
  "neeto-ui-text-error-500": !isValid
14340
14331
  }),
14341
14332
  onClick: function onClick() {
14342
14333
  return setActiveOption(activeOption ? null : defaultLabel);
14343
- },
14344
- children: defaultLabel
14334
+ }
14345
14335
  }),
14346
14336
  onClose: handleClose,
14347
14337
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$2, {
@@ -14547,20 +14537,19 @@ var EventItem = function EventItem(_ref) {
14547
14537
  buttonStyle: "secondary",
14548
14538
  className: "neeto-ui-bg-gray-100",
14549
14539
  closeOnSelect: false,
14550
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14540
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
14551
14541
  "data-cy": "event-dropdown-button",
14552
- style: "h5",
14553
- weight: "semibold",
14554
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 cursor-pointer underline", {
14555
- "neeto-ui-text-primary-800": isActive,
14542
+ label: selectedOption.toLowerCase(),
14543
+ style: "link",
14544
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
14545
+ "neeto-ui-text-accent-800": isActive,
14556
14546
  "neeto-ui-text-error-500": isValueSelected
14557
14547
  }),
14558
14548
  onClick: function onClick() {
14559
14549
  return setIsActive(function (prevState) {
14560
14550
  return !prevState;
14561
14551
  });
14562
- },
14563
- children: selectedOption.toLowerCase()
14552
+ }
14564
14553
  }),
14565
14554
  onClose: handleClose,
14566
14555
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$1, {
@@ -14663,20 +14652,19 @@ var Performer = function Performer(_ref) {
14663
14652
  buttonStyle: "secondary",
14664
14653
  className: "neeto-ui-bg-gray-100",
14665
14654
  closeOnSelect: false,
14666
- customTarget: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
14655
+ customTarget: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
14667
14656
  "data-cy": "event-performer-dropdown",
14668
- style: "h5",
14669
- weight: "semibold",
14670
- className: classNames__default["default"]("hover:neeto-ui-text-primary-800 neeto-ui-text-gray-800 cursor-pointer underline", {
14671
- "neeto-ui-text-primary-800": isSelected,
14657
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
14658
+ style: "link",
14659
+ className: classNames__default["default"]("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
14660
+ "neeto-ui-text-accent-800": isSelected,
14672
14661
  "neeto-ui-text-error-500": isValueSelected
14673
14662
  }),
14674
14663
  onClick: function onClick() {
14675
14664
  return setIsSelected(function (prevState) {
14676
14665
  return !prevState;
14677
14666
  });
14678
- },
14679
- children: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase()
14667
+ }
14680
14668
  }),
14681
14669
  onClose: handleClose,
14682
14670
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu, {