@bigbinary/neeto-rules-frontend 0.7.2 → 0.8.0-beta1

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
@@ -330,70 +330,10 @@ var ActionsDetail = function ActionsDetail(_ref) {
330
330
  });
331
331
  };
332
332
 
333
- var OPERATORS$1 = {
334
- or: "or_operator",
335
- and: "and_operator"
336
- };
337
- var OPERATOR_LABELS = {
338
- or_operator: i18next.t("neetoRules.operators.or"),
339
- and_operator: i18next.t("neetoRules.operators.and")
340
- };
341
- var VERB_LABELS = {
342
- is: i18next.t("neetoRules.conditionVerbs.is"),
343
- is_not: i18next.t("neetoRules.conditionVerbs.isNot"),
344
- contains: i18next.t("neetoRules.conditionVerbs.contains"),
345
- does_not_contain: i18next.t("neetoRules.conditionVerbs.doesNotContain"),
346
- contains_any_of: i18next.t("neetoRules.conditionVerbs.containsAnyOf"),
347
- contains_all_of: i18next.t("neetoRules.conditionVerbs.containsAllOf"),
348
- contains_none_of: i18next.t("neetoRules.conditionVerbs.containsNoneOf"),
349
- starts_with: i18next.t("neetoRules.conditionVerbs.startsWith"),
350
- ends_with: i18next.t("neetoRules.conditionVerbs.endsWith"),
351
- less_than: i18next.t("neetoRules.conditionVerbs.lessThan"),
352
- greater_than: i18next.t("neetoRules.conditionVerbs.greaterThan"),
353
- any_time: i18next.t("neetoRules.conditionVerbs.anyTime"),
354
- during: i18next.t("neetoRules.conditionVerbs.during"),
355
- not_during: i18next.t("neetoRules.conditionVerbs.notDuring"),
356
- any_of: i18next.t("neetoRules.conditionVerbs.anyOf"),
357
- none_of: i18next.t("neetoRules.conditionVerbs.noneOf"),
358
- is_before: i18next.t("neetoRules.conditionVerbs.isBefore"),
359
- is_after: i18next.t("neetoRules.conditionVerbs.isAfter")
360
- };
361
- var CONDITION_VALUE_TYPES = {
362
- text: "text",
363
- number: "number",
364
- decimal: "decimal",
365
- url: "url",
366
- email: "email",
367
- dropdown: "dropdown",
368
- multiSelect: "multi-select",
369
- multiSelectCreate: "multi-select-create",
370
- date: "date",
371
- regex: "regex",
372
- textarea: "textarea"
373
- };
374
- var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
375
- var MAXIMUM_OPTION_LENGTH$3 = 7;
376
-
377
- var PREVIEW_CONDITION_LIMIT = 3;
378
-
379
- 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; }
380
- function _objectSpread$p(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$2(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; }
381
333
  var ConditionsDetail = function ConditionsDetail(_ref) {
382
334
  var conditions = _ref.conditions,
383
335
  conditionOptions = _ref.conditionOptions,
384
- _ref$conditionVerbs = _ref.conditionVerbs,
385
- conditionVerbs = _ref$conditionVerbs === void 0 ? {} : _ref$conditionVerbs,
386
- _ref$hasEvent = _ref.hasEvent,
387
- hasEvent = _ref$hasEvent === void 0 ? true : _ref$hasEvent;
388
- var _useState = React.useState(false),
389
- _useState2 = _slicedToArray$1(_useState, 2),
390
- viewMore = _useState2[0],
391
- setViewMore = _useState2[1];
392
- var _useTranslation = reactI18next.useTranslation(),
393
- t = _useTranslation.t;
394
- var conditionsList = conditions.value;
395
- var allConditions = viewMore && conditionsList.length > PREVIEW_CONDITION_LIMIT ? conditionsList : conditionsList.slice(0, PREVIEW_CONDITION_LIMIT);
396
- var allConditionVerbs = _objectSpread$p(_objectSpread$p({}, VERB_LABELS), conditionVerbs);
336
+ conditionVerbs = _ref.conditionVerbs;
397
337
  var getLogicOperator = function getLogicOperator(joinType) {
398
338
  return joinType === "or_operator" ? "or" : "and";
399
339
  };
@@ -414,7 +354,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
414
354
  }));
415
355
  return /*#__PURE__*/jsxRuntime.jsx(MultiSelectValues, {
416
356
  values: values,
417
- separator: t("neetoRules.common.or")
357
+ separator: i18next.t("neetoRules.common.or")
418
358
  });
419
359
  }
420
360
  if (conditionOption.type === "dropdown") {
@@ -428,12 +368,12 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
428
368
  return null;
429
369
  };
430
370
  var renderCondition = function renderCondition(condition) {
431
- var _allConditionVerbs$co;
371
+ var _conditionVerbs$condi;
432
372
  var conditionOption = neetoCist.findBy({
433
373
  value: condition.field
434
374
  }, conditionOptions);
435
375
  if (!conditionOption) return null;
436
- var conditionVerb = (_allConditionVerbs$co = allConditionVerbs[condition.verb]) === null || _allConditionVerbs$co === void 0 ? void 0 : _allConditionVerbs$co.toLowerCase();
376
+ var conditionVerb = (_conditionVerbs$condi = conditionVerbs[condition.verb]) === null || _conditionVerbs$condi === void 0 ? void 0 : _conditionVerbs$condi.toLowerCase();
437
377
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
438
378
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
439
379
  className: "neeto-ui-text-gray-800",
@@ -448,46 +388,31 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
448
388
  }), renderConditionValues(condition, conditionOption)]
449
389
  });
450
390
  };
451
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
452
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
453
- className: "mt-2",
454
- children: allConditions.map(function (condition, index) {
455
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
456
- className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
457
- children: [!index && hasEvent && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
458
- className: "neeto-ui-text-gray-700",
459
- style: "h5",
460
- weight: "normal",
461
- children: t("neetoRules.common.and", {
462
- what: ""
463
- })
464
- }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
465
- className: "neeto-ui-text-gray-800",
466
- style: "h5",
467
- weight: "semibold",
468
- children: getLogicOperator(condition.joinType)
469
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
470
- className: "neeto-ui-text-gray-700",
471
- style: "h5",
472
- weight: "normal",
473
- children: t("neetoRules.common.when")
474
- }), renderCondition(condition)]
475
- }, condition.id);
476
- })
477
- }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
478
- className: "mt-3 w-full",
479
- children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
480
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
481
- size: "small",
482
- style: "link",
483
- label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
484
- onClick: function onClick() {
485
- return setViewMore(function (prevState) {
486
- return !prevState;
487
- });
488
- }
489
- })
490
- })]
391
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
392
+ className: "mt-2",
393
+ children: conditions.map(function (condition, index) {
394
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
395
+ className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
396
+ children: [!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
397
+ className: "neeto-ui-text-gray-700",
398
+ style: "h5",
399
+ weight: "normal",
400
+ children: i18next.t("neetoRules.common.and", {
401
+ what: ""
402
+ })
403
+ }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
404
+ className: "neeto-ui-text-gray-800",
405
+ style: "h5",
406
+ weight: "semibold",
407
+ children: getLogicOperator(condition.joinType)
408
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
409
+ className: "neeto-ui-text-gray-700",
410
+ style: "h5",
411
+ weight: "normal",
412
+ children: i18next.t("neetoRules.common.when").toLowerCase()
413
+ }), renderCondition(condition)]
414
+ }, condition.id);
415
+ })
491
416
  });
492
417
  };
493
418
 
@@ -496,17 +421,21 @@ var EventsDetail = function EventsDetail(_ref) {
496
421
  var events = _ref.events,
497
422
  performer = _ref.performer,
498
423
  conditions = _ref.conditions;
499
- var _useTranslation = reactI18next.useTranslation(),
500
- t = _useTranslation.t;
424
+ var _useState = React.useState(false),
425
+ _useState2 = _slicedToArray$1(_useState, 2),
426
+ viewMore = _useState2[0],
427
+ setViewMore = _useState2[1];
501
428
  var eventNames = ramda.pluck("name", events.value);
502
429
  var allEvents = events.eventOptions.filter(function (event) {
503
430
  return eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(event.value);
504
431
  });
432
+ var conditionsList = conditions.value;
433
+ var allConditions = viewMore && conditionsList.length > 3 ? conditionsList : conditionsList.slice(0, 3);
505
434
  var currentPerformer = neetoCist.findBy({
506
435
  value: performer.value
507
436
  }, performer.options);
508
437
  return /*#__PURE__*/jsxRuntime.jsxs(Title, {
509
- title: t("neetoRules.common.when"),
438
+ title: i18next.t("neetoRules.common.when"),
510
439
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
511
440
  className: "flex flex-wrap gap-x-2 gap-y-2",
512
441
  children: [allEvents.map(function (event, index) {
@@ -516,12 +445,12 @@ var EventsDetail = function EventsDetail(_ref) {
516
445
  className: "neeto-ui-text-gray-700 my-auto",
517
446
  style: "h5",
518
447
  weight: "normal",
519
- children: t("neetoRules.common.when")
448
+ children: i18next.t("neetoRules.common.when")
520
449
  }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
521
450
  className: "neeto-ui-text-gray-700 my-auto",
522
451
  style: "h5",
523
452
  weight: "normal",
524
- children: t("neetoRules.common.or")
453
+ children: i18next.t("neetoRules.common.or")
525
454
  }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
526
455
  className: "neeto-ui-text-gray-800",
527
456
  style: "h5",
@@ -533,7 +462,7 @@ var EventsDetail = function EventsDetail(_ref) {
533
462
  className: "neeto-ui-text-gray-700",
534
463
  style: "h5",
535
464
  weight: "normal",
536
- children: t("neetoRules.common.by")
465
+ children: i18next.t("neetoRules.common.by")
537
466
  }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
538
467
  className: "neeto-ui-text-gray-800",
539
468
  style: "h5",
@@ -541,18 +470,30 @@ var EventsDetail = function EventsDetail(_ref) {
541
470
  children: currentPerformer === null || currentPerformer === void 0 || (_currentPerformer$lab = currentPerformer.label) === null || _currentPerformer$lab === void 0 ? void 0 : _currentPerformer$lab.toLowerCase()
542
471
  })]
543
472
  }), /*#__PURE__*/jsxRuntime.jsx(ConditionsDetail, {
544
- conditions: conditions,
545
473
  conditionOptions: conditions.conditionOptions,
546
- conditionVerbs: conditions.verbs
474
+ conditionVerbs: conditions.verbs,
475
+ conditions: allConditions
476
+ }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
477
+ className: "mt-3 w-full",
478
+ children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
479
+ icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
480
+ size: "small",
481
+ style: "link",
482
+ label: !viewMore ? i18next.t("neetoRules.common.viewMore") : i18next.t("neetoRules.common.viewLess"),
483
+ onClick: function onClick() {
484
+ return setViewMore(function (prevState) {
485
+ return !prevState;
486
+ });
487
+ }
488
+ })
547
489
  })]
548
490
  });
549
491
  };
550
492
 
551
493
  function ownKeys$q(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; }
552
494
  function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
553
- var RulePreview = reactUtils.withT(function (_ref) {
554
- var t = _ref.t,
555
- isLoading = _ref.isLoading,
495
+ var RulePreview = function RulePreview(_ref) {
496
+ var isLoading = _ref.isLoading,
556
497
  ruleDetails = _ref.ruleDetails,
557
498
  isOpen = _ref.isOpen,
558
499
  onClose = _ref.onClose,
@@ -595,18 +536,10 @@ var RulePreview = reactUtils.withT(function (_ref) {
595
536
  children: ruleDetails.entity.value
596
537
  })]
597
538
  })]
598
- }), ruleDetails.events && neetoCist.isNotEmpty(ruleDetails.events) ? /*#__PURE__*/jsxRuntime.jsx(EventsDetail, {
539
+ }), /*#__PURE__*/jsxRuntime.jsx(EventsDetail, {
599
540
  conditions: ruleDetails.conditions,
600
541
  events: ruleDetails.events,
601
542
  performer: ruleDetails.performer
602
- }) : /*#__PURE__*/jsxRuntime.jsx(Title, {
603
- title: t("neetoRules.common.when"),
604
- children: /*#__PURE__*/jsxRuntime.jsx(ConditionsDetail, {
605
- conditionOptions: ruleDetails.conditions.conditionOptions,
606
- conditionVerbs: ruleDetails.conditions.verbs,
607
- conditions: ruleDetails.conditions,
608
- hasEvent: false
609
- })
610
543
  }), /*#__PURE__*/jsxRuntime.jsx(ActionsDetail, {
611
544
  actions: ruleDetails.actions
612
545
  })]
@@ -614,7 +547,7 @@ var RulePreview = reactUtils.withT(function (_ref) {
614
547
  })]
615
548
  })
616
549
  });
617
- });
550
+ };
618
551
 
619
552
  function _typeof$2(o) {
620
553
  "@babel/helpers - typeof";
@@ -10004,9 +9937,53 @@ var DEFAULT_RULE_ACTION = {
10004
9937
  };
10005
9938
  var EDITOR_ADDONS = ["code-block", "block-quote", "image-upload"];
10006
9939
  var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
10007
- var MAXIMUM_OPTION_LENGTH$2 = 7;
9940
+ var MAXIMUM_OPTION_LENGTH$3 = 7;
10008
9941
  var ACTION_INPUT_TYPES = ["text", "number", "decimal", "regex"];
10009
9942
 
9943
+ var OPERATORS$1 = {
9944
+ or: "or_operator",
9945
+ and: "and_operator"
9946
+ };
9947
+ var OPERATOR_LABELS = {
9948
+ or_operator: i18next.t("neetoRules.operators.or"),
9949
+ and_operator: i18next.t("neetoRules.operators.and")
9950
+ };
9951
+ var VERB_LABELS = {
9952
+ is: i18next.t("neetoRules.conditionVerbs.is"),
9953
+ is_not: i18next.t("neetoRules.conditionVerbs.isNot"),
9954
+ contains: i18next.t("neetoRules.conditionVerbs.contains"),
9955
+ does_not_contain: i18next.t("neetoRules.conditionVerbs.doesNotContain"),
9956
+ contains_any_of: i18next.t("neetoRules.conditionVerbs.containsAnyOf"),
9957
+ contains_all_of: i18next.t("neetoRules.conditionVerbs.containsAllOf"),
9958
+ contains_none_of: i18next.t("neetoRules.conditionVerbs.containsNoneOf"),
9959
+ starts_with: i18next.t("neetoRules.conditionVerbs.startsWith"),
9960
+ ends_with: i18next.t("neetoRules.conditionVerbs.endsWith"),
9961
+ less_than: i18next.t("neetoRules.conditionVerbs.lessThan"),
9962
+ greater_than: i18next.t("neetoRules.conditionVerbs.greaterThan"),
9963
+ any_time: i18next.t("neetoRules.conditionVerbs.anyTime"),
9964
+ during: i18next.t("neetoRules.conditionVerbs.during"),
9965
+ not_during: i18next.t("neetoRules.conditionVerbs.notDuring"),
9966
+ any_of: i18next.t("neetoRules.conditionVerbs.anyOf"),
9967
+ none_of: i18next.t("neetoRules.conditionVerbs.noneOf"),
9968
+ is_before: i18next.t("neetoRules.conditionVerbs.isBefore"),
9969
+ is_after: i18next.t("neetoRules.conditionVerbs.isAfter")
9970
+ };
9971
+ var CONDITION_VALUE_TYPES = {
9972
+ text: "text",
9973
+ number: "number",
9974
+ decimal: "decimal",
9975
+ url: "url",
9976
+ email: "email",
9977
+ dropdown: "dropdown",
9978
+ multiSelect: "multi-select",
9979
+ multiSelectCreate: "multi-select-create",
9980
+ date: "date",
9981
+ regex: "regex",
9982
+ textarea: "textarea"
9983
+ };
9984
+ var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
9985
+ var MAXIMUM_OPTION_LENGTH$2 = 7;
9986
+
10010
9987
  function ownKeys$l(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; }
10011
9988
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10012
9989
  var getSchemaForStrings = function getSchemaForStrings(element) {
@@ -11089,7 +11066,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11089
11066
  onClose: handleClose,
11090
11067
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$a, {
11091
11068
  className: "max-h-60 max-w-2xl p-3",
11092
- children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11069
+ children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11093
11070
  autoFocus: true,
11094
11071
  className: "mb-1",
11095
11072
  "data-cy": "search-text-field",
@@ -11103,7 +11080,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11103
11080
  return e.stopPropagation();
11104
11081
  }
11105
11082
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
11106
- hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11083
+ hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11107
11084
  children: searchedOptions.map(function (option, idx) {
11108
11085
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$9.Button, {
11109
11086
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -11737,7 +11714,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11737
11714
  onClose: handleClose,
11738
11715
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$9, {
11739
11716
  className: "max-h-60 max-w-2xl p-3",
11740
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11717
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11741
11718
  autoFocus: true,
11742
11719
  className: "mb-1",
11743
11720
  "data-cy": "search-text-field",
@@ -11748,7 +11725,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11748
11725
  return setSearchTerm(e.target.value);
11749
11726
  }
11750
11727
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
11751
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11728
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11752
11729
  children: searchedOptions.map(function (option, idx) {
11753
11730
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
11754
11731
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20432,7 +20409,7 @@ var DropdownField = function DropdownField(_ref) {
20432
20409
  onClose: handleClose,
20433
20410
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$6, {
20434
20411
  className: "max-h-60 max-w-2xl p-3",
20435
- children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20412
+ children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20436
20413
  autoFocus: true,
20437
20414
  className: "mb-1",
20438
20415
  "data-cy": "search-text-field",
@@ -20446,7 +20423,7 @@ var DropdownField = function DropdownField(_ref) {
20446
20423
  return e.stopPropagation();
20447
20424
  }
20448
20425
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20449
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20426
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20450
20427
  children: searchedOptions.map(function (option, idx) {
20451
20428
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$6.Button, {
20452
20429
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20554,7 +20531,7 @@ var Dropdown = function Dropdown(_ref) {
20554
20531
  onClose: handleClose,
20555
20532
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$5, {
20556
20533
  className: "max-h-60 max-w-2xl p-3",
20557
- children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20534
+ children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20558
20535
  autoFocus: true,
20559
20536
  className: "mb-1",
20560
20537
  "data-cy": "search-text-field",
@@ -20568,7 +20545,7 @@ var Dropdown = function Dropdown(_ref) {
20568
20545
  return e.stopPropagation();
20569
20546
  }
20570
20547
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20571
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20548
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20572
20549
  children: searchedOptions.map(function (option, idx) {
20573
20550
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$5.Button, {
20574
20551
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20728,7 +20705,7 @@ var MultiSelect = function MultiSelect(_ref) {
20728
20705
  onClose: handleClose,
20729
20706
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$4, {
20730
20707
  className: "max-h-60 max-w-2xl p-3",
20731
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20708
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20732
20709
  autoFocus: true,
20733
20710
  className: "mb-1",
20734
20711
  "data-cy": "search-text-field",
@@ -20739,7 +20716,7 @@ var MultiSelect = function MultiSelect(_ref) {
20739
20716
  return setSearchTerm(e.target.value);
20740
20717
  }
20741
20718
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20742
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
20719
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
20743
20720
  children: searchedOptions.map(function (option, idx) {
20744
20721
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$4.Button, {
20745
20722
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),