@bigbinary/neeto-rules-frontend 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/app/javascript/src/translations/ar.json +107 -3
  2. package/app/javascript/src/translations/bg.json +107 -3
  3. package/app/javascript/src/translations/ca.json +107 -3
  4. package/app/javascript/src/translations/cs.json +107 -3
  5. package/app/javascript/src/translations/da.json +107 -3
  6. package/app/javascript/src/translations/de.json +107 -3
  7. package/app/javascript/src/translations/en.json +2 -1
  8. package/app/javascript/src/translations/es-MX.json +107 -3
  9. package/app/javascript/src/translations/es.json +107 -3
  10. package/app/javascript/src/translations/et.json +107 -3
  11. package/app/javascript/src/translations/fi.json +107 -3
  12. package/app/javascript/src/translations/fil.json +107 -3
  13. package/app/javascript/src/translations/fr.json +107 -3
  14. package/app/javascript/src/translations/he.json +107 -3
  15. package/app/javascript/src/translations/hi.json +107 -3
  16. package/app/javascript/src/translations/hr.json +107 -3
  17. package/app/javascript/src/translations/hu.json +107 -3
  18. package/app/javascript/src/translations/id.json +107 -3
  19. package/app/javascript/src/translations/it.json +107 -3
  20. package/app/javascript/src/translations/ja.json +107 -3
  21. package/app/javascript/src/translations/ko.json +107 -3
  22. package/app/javascript/src/translations/nl.json +107 -3
  23. package/app/javascript/src/translations/pl.json +107 -3
  24. package/app/javascript/src/translations/pt-BR.json +107 -3
  25. package/app/javascript/src/translations/pt.json +107 -3
  26. package/app/javascript/src/translations/ro.json +107 -3
  27. package/app/javascript/src/translations/ru.json +107 -3
  28. package/app/javascript/src/translations/sk.json +107 -3
  29. package/app/javascript/src/translations/sl.json +107 -3
  30. package/app/javascript/src/translations/sv.json +107 -3
  31. package/app/javascript/src/translations/th.json +107 -3
  32. package/app/javascript/src/translations/tr.json +107 -3
  33. package/app/javascript/src/translations/uk.json +107 -3
  34. package/app/javascript/src/translations/vi.json +107 -3
  35. package/app/javascript/src/translations/zh-CN.json +107 -3
  36. package/app/javascript/src/translations/zh-TW.json +107 -3
  37. package/dist/.ready +1 -1
  38. package/dist/NeetoRulesBuilder.js +1 -1
  39. package/dist/NeetoRulesForm.js +1 -1
  40. package/dist/cjs/NeetoRulesBuilder.js +1 -1
  41. package/dist/cjs/NeetoRulesForm.js +1 -1
  42. package/dist/cjs/index.js +1 -1
  43. package/dist/{index-CkYo0ca_.js → index-B0FTuUOt.js} +20 -3
  44. package/dist/index-B0FTuUOt.js.map +1 -0
  45. package/dist/{index-3f8Yrbst.js → index-C8o4tdnQ.js} +20 -3
  46. package/dist/index-C8o4tdnQ.js.map +1 -0
  47. package/dist/index.js +1 -1
  48. package/package.json +6 -6
  49. package/dist/index-3f8Yrbst.js.map +0 -1
  50. package/dist/index-CkYo0ca_.js.map +0 -1
@@ -1500,13 +1500,30 @@ var SelectField$1 = function SelectField(_ref2) {
1500
1500
  setValue((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : null);
1501
1501
  setTouched(true);
1502
1502
  };
1503
+ var formatOptionLabel = function formatOptionLabel(_ref4, _ref5) {
1504
+ var label = _ref4.label,
1505
+ isPrivate = _ref4.isPrivate;
1506
+ var context = _ref5.context;
1507
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
1508
+ className: "flex items-center justify-between gap-2",
1509
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
1510
+ children: label
1511
+ }), isPrivate && context === "menu" && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1512
+ className: "neeto-ui-text-gray-500 italic",
1513
+ style: "body3",
1514
+ children: t("neetoRules.slack.private")
1515
+ })]
1516
+ });
1517
+ };
1503
1518
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
1504
1519
  className: "flex items-start gap-2",
1505
- children: [/*#__PURE__*/jsxRuntime.jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c({
1520
+ children: [/*#__PURE__*/jsxRuntime.jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c(_objectSpread$c({
1506
1521
  className: className,
1507
1522
  name: name,
1508
1523
  required: required
1509
- }, otherProps)), {}, {
1524
+ }, otherProps), {}, {
1525
+ formatOptionLabel: formatOptionLabel
1526
+ })), {}, {
1510
1527
  innerRef: ref,
1511
1528
  label: defaultLabel,
1512
1529
  options: dropdownOptions,
@@ -5558,4 +5575,4 @@ exports.getSlackChannelErrors = getSlackChannelErrors;
5558
5575
  exports.getValidationSchema = getValidationSchema;
5559
5576
  exports.getVerbOptions = getVerbOptions;
5560
5577
  exports.usePollRuleName = usePollRuleName;
5561
- //# sourceMappingURL=index-3f8Yrbst.js.map
5578
+ //# sourceMappingURL=index-C8o4tdnQ.js.map