@bigbinary/neeto-rules-frontend 2.7.10 → 2.7.11

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.
@@ -8,7 +8,7 @@ var _typeof = require('@babel/runtime/helpers/typeof');
8
8
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
9
9
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
10
  var useAutomationRulesApi = require('./useAutomationRulesApi-C1T2E1AN.js');
11
- var keyboardShortcuts = require('./keyboardShortcuts-Dg7lUOmj.js');
11
+ var keyboardShortcuts = require('./keyboardShortcuts-5radhjgX.js');
12
12
  var ramda = require('ramda');
13
13
  var i18next = require('i18next');
14
14
  var yup = require('yup');
@@ -1427,13 +1427,30 @@ var SelectField$1 = function SelectField(_ref2) {
1427
1427
  setValue(value !== null && value !== void 0 ? value : null);
1428
1428
  setTouched(true);
1429
1429
  };
1430
+ var formatOptionLabel = function formatOptionLabel(_ref3) {
1431
+ var label = _ref3.label,
1432
+ isPrivate = _ref3.isPrivate;
1433
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
1434
+ className: "flex items-center justify-between gap-2",
1435
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
1436
+ children: label
1437
+ }), isPrivate && /*#__PURE__*/jsxRuntime.jsx(lucideReact.Lock, {
1438
+ "aria-label": t("neetoRules.slack.private"),
1439
+ className: "text-muted-foreground shrink-0",
1440
+ role: "img",
1441
+ size: 14
1442
+ })]
1443
+ });
1444
+ };
1430
1445
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
1431
1446
  className: "flex items-start gap-2",
1432
- children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Select, _objectSpread$c(_objectSpread$c({}, _objectSpread$c({
1447
+ children: [/*#__PURE__*/jsxRuntime.jsx(formik$1.Select, _objectSpread$c(_objectSpread$c({}, _objectSpread$c(_objectSpread$c({
1433
1448
  className: className,
1434
1449
  name: name,
1435
1450
  required: required
1436
- }, otherProps)), {}, {
1451
+ }, otherProps), {}, {
1452
+ formatOptionLabel: formatOptionLabel
1453
+ })), {}, {
1437
1454
  innerRef: ref,
1438
1455
  label: defaultLabel,
1439
1456
  options: dropdownOptions,
@@ -5403,4 +5420,4 @@ exports.getSlackChannelErrors = getSlackChannelErrors;
5403
5420
  exports.getValidationSchema = getValidationSchema;
5404
5421
  exports.getVerbOptions = getVerbOptions;
5405
5422
  exports.usePollRuleName = usePollRuleName;
5406
- //# sourceMappingURL=index-jjFVJckW.js.map
5423
+ //# sourceMappingURL=index-CqnO-IZF.js.map