@bigbinary/neeto-rules-frontend 2.9.0 → 2.9.1

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.
@@ -7,15 +7,15 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
7
7
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
8
8
  var shallow = require('zustand/shallow');
9
9
  var react = require('react');
10
- var neetoAtoms = require('@bigbinary/neeto-atoms');
11
10
  var formik = require('formik');
12
11
  var lucideReact = require('lucide-react');
12
+ var neetoAtoms = require('@bigbinary/neeto-atoms');
13
13
  var neetoCist = require('@bigbinary/neeto-cist');
14
14
  var reactI18next = require('react-i18next');
15
15
  var useUtilityStore = require('../../useUtilityStore-gtPhFvpI.js');
16
16
  var classNames = require('classnames');
17
17
  var ramda = require('ramda');
18
- var index = require('../../index-djZiAHat.js');
18
+ var index = require('../../index-fOTfZZ-u.js');
19
19
  var useCustomDataStore = require('../../useCustomDataStore-DPmWkEhs.js');
20
20
  var jsxRuntime = require('react/jsx-runtime');
21
21
  var utils = require('@bigbinary/neeto-commons-frontend/v2/utils');
@@ -230,11 +230,12 @@ var ActionItem$1 = /*#__PURE__*/react.memo(ActionItem);
230
230
 
231
231
  var Card = function Card(_ref) {
232
232
  var title = _ref.title,
233
- children = _ref.children;
233
+ children = _ref.children,
234
+ dataTestid = _ref.dataTestid;
234
235
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
235
236
  children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
236
237
  color: "muted",
237
- "data-testid": "".concat(utils.joinHyphenCase(title), "-card-title"),
238
+ "data-testid": dataTestid || "".concat(utils.joinHyphenCase(title), "-card-title"),
238
239
  variant: "h6",
239
240
  children: title
240
241
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -298,6 +299,7 @@ var Actions = function Actions(_ref) {
298
299
  resetPanelState();
299
300
  };
300
301
  return /*#__PURE__*/jsxRuntime.jsx(Card, {
302
+ dataTestid: elementProps === null || elementProps === void 0 ? void 0 : elementProps.dataTestid,
301
303
  title: label || (elementProps === null || elementProps === void 0 ? void 0 : elementProps.label),
302
304
  children: /*#__PURE__*/jsxRuntime.jsx(formik.FieldArray, {
303
305
  name: "".concat(name, ".value"),
@@ -737,6 +739,7 @@ var AddDelay = function AddDelay(_ref) {
737
739
  variant: "outline",
738
740
  onClick: handleAddDelay
739
741
  }), !showAddDelayButton && /*#__PURE__*/jsxRuntime.jsx(Card, {
742
+ dataTestid: "add-delay-card-title",
740
743
  title: t("neetoRules.common.addDelay"),
741
744
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
742
745
  className: "flex w-full items-center justify-between",
@@ -1020,6 +1023,7 @@ var EventConditions = function EventConditions(_ref) {
1020
1023
  var tooltipProps = isConditionsEmpty ? disabledAddButtonTooltips : addButtonTooltips;
1021
1024
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
1022
1025
  children: [/*#__PURE__*/jsxRuntime.jsxs(Card, {
1026
+ dataTestid: elementProps === null || elementProps === void 0 ? void 0 : elementProps.dataTestid,
1023
1027
  title: label || (elementProps === null || elementProps === void 0 ? void 0 : elementProps.label),
1024
1028
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
1025
1029
  className: "flex justify-between items-center",