@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.
@@ -6,7 +6,7 @@ import _typeof from '@babel/runtime/helpers/typeof';
6
6
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
7
7
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
8
8
  import { b as useUpdateAutomationRule, e as useFetchNameGenerationStatus } from './useAutomationRulesApi-C9I3wUZ8.js';
9
- import { u as useOnClickOutside, S as SHORTCUTS, f as flatten } from './keyboardShortcuts-DcvmDX_K.js';
9
+ import { u as useOnClickOutside, S as SHORTCUTS, f as flatten } from './keyboardShortcuts-Ow9vI9My.js';
10
10
  import { toLower, identity, pluck, isEmpty, mergeDeepLeft, isNotNil, whereAny, reject, equals, unless, path, omit, useWith, split, when, is, trim, eqBy, F, values, isNil, without, append, pipe, filter, uniq, join, map, assoc, mergeLeft, includes, test } from 'ramda';
11
11
  import { t } from 'i18next';
12
12
  import * as yup from 'yup';
@@ -14,7 +14,7 @@ import { useShallow } from 'zustand/shallow';
14
14
  import { Button, Callout, Typography, Input as Input$1, Label, Select, DatePicker, Checkbox, Badge, RadioGroup as RadioGroup$1, TimePicker } from '@bigbinary/neeto-atoms';
15
15
  import { RadioGroup, Textarea, Input as Input$2, Switch, MultiEmailInput, Select as Select$1 } from '@bigbinary/neeto-atoms/formik';
16
16
  import classNames from 'classnames';
17
- import { PanelRightClose, Search, Trash2, CircleHelp, RefreshCw, Check, X, Plus, ChevronLeft } from 'lucide-react';
17
+ import { PanelRightClose, Search, Trash2, CircleHelp, RefreshCw, Lock, Check, X, Plus, ChevronLeft } from 'lucide-react';
18
18
  import { useTranslation, Trans } from 'react-i18next';
19
19
  import { a as useActiveField } from './useCustomDataStore-CU3KpyD4.js';
20
20
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
@@ -1406,13 +1406,30 @@ var SelectField$1 = function SelectField(_ref2) {
1406
1406
  setValue(value !== null && value !== void 0 ? value : null);
1407
1407
  setTouched(true);
1408
1408
  };
1409
+ var formatOptionLabel = function formatOptionLabel(_ref3) {
1410
+ var label = _ref3.label,
1411
+ isPrivate = _ref3.isPrivate;
1412
+ return /*#__PURE__*/jsxs("div", {
1413
+ className: "flex items-center justify-between gap-2",
1414
+ children: [/*#__PURE__*/jsx("span", {
1415
+ children: label
1416
+ }), isPrivate && /*#__PURE__*/jsx(Lock, {
1417
+ "aria-label": t("neetoRules.slack.private"),
1418
+ className: "text-muted-foreground shrink-0",
1419
+ role: "img",
1420
+ size: 14
1421
+ })]
1422
+ });
1423
+ };
1409
1424
  return /*#__PURE__*/jsxs("div", {
1410
1425
  className: "flex items-start gap-2",
1411
- children: [/*#__PURE__*/jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c({
1426
+ children: [/*#__PURE__*/jsx(Select$1, _objectSpread$c(_objectSpread$c({}, _objectSpread$c(_objectSpread$c({
1412
1427
  className: className,
1413
1428
  name: name,
1414
1429
  required: required
1415
- }, otherProps)), {}, {
1430
+ }, otherProps), {}, {
1431
+ formatOptionLabel: formatOptionLabel
1432
+ })), {}, {
1416
1433
  innerRef: ref,
1417
1434
  label: defaultLabel,
1418
1435
  options: dropdownOptions,
@@ -5354,4 +5371,4 @@ var formatData = function formatData(data) {
5354
5371
  };
5355
5372
 
5356
5373
  export { ActionSubItem as A, DEFAULT_RULE_ACTION as D, EditorAction as E, FIELDS_WITH_OPTIONS as F, OPERATORS as O, PANEL_TYPES as P, RadioField as R, SelectField as S, TouchErrors as T, ValueField as V, getFieldDetails$1 as a, getSlackChannelErrors as b, getLogicalOperatorOptions as c, getFieldDetails as d, getVerbOptions as e, DEFAULT_DELAY as f, getActionOptions as g, getAllEvents as h, STATUS_KEYS as i, formatData as j, buildPayload as k, ScrollToErrorField as l, Panel as m, getValidationSchema as n, DEFAULT_INITIAL_VALUE as o, ErrorCallout as p, SmsFields as q, PhoneNumberField as r, usePollRuleName as u };
5357
- //# sourceMappingURL=index-5dGlq6Wm.js.map
5374
+ //# sourceMappingURL=index-DOW_ZlOp.js.map