@cleartrip/talos-user-message 1.5.0 → 1.5.1-beta-260708-1.0

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.
@@ -21329,8 +21329,8 @@
21329
21329
  isCenter = _a.isCenter,
21330
21330
  _c = _a.isTop,
21331
21331
  isTop = _c === void 0 ? true : _c,
21332
- rest = __rest$2(_a, ["wrapperCss", "isBack", "children", "variant", "isCenter", "isTop"]);
21333
- var onClose = rest.onClose;
21332
+ onClose = _a.onClose,
21333
+ rest = __rest$2(_a, ["wrapperCss", "isBack", "children", "variant", "isCenter", "isTop", "onClose"]);
21334
21334
  var theme = useTheme();
21335
21335
  var closeButtonStyles = getCloseButtonStyle({
21336
21336
  theme: theme,
@@ -30218,6 +30218,8 @@
30218
30218
  suffix = props.suffix,
30219
30219
  onChange = props.onChange,
30220
30220
  onKeyDown = props.onKeyDown,
30221
+ onFocus = props.onFocus,
30222
+ onBlur = props.onBlur,
30221
30223
  styleConfig = props.styleConfig,
30222
30224
  _e = props.disabled,
30223
30225
  disabled = _e === void 0 ? false : _e;
@@ -30275,6 +30277,14 @@
30275
30277
  onChange === null || onChange === void 0 ? void 0 : onChange(text.trim());
30276
30278
  checkMultiLine();
30277
30279
  }, [disabled, onChange, checkMultiLine]);
30280
+ var handleFocus = React__default$1.useCallback(function (e) {
30281
+ if (disabled) return;
30282
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
30283
+ }, [disabled, onFocus]);
30284
+ var handleBlur = React__default$1.useCallback(function (e) {
30285
+ if (disabled) return;
30286
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
30287
+ }, [disabled, onBlur]);
30278
30288
  var focusEditor = React__default$1.useCallback(function () {
30279
30289
  var _a;
30280
30290
  if (disabled) return;
@@ -30331,6 +30341,8 @@
30331
30341
  "data-placeholder": placeholder,
30332
30342
  onKeyDown: handleKeyDown,
30333
30343
  onInput: handleInput,
30344
+ onFocus: handleFocus,
30345
+ onBlur: handleBlur,
30334
30346
  className: editor === null || editor === void 0 ? void 0 : editor.className,
30335
30347
  css: editor === null || editor === void 0 ? void 0 : editor.css,
30336
30348
  disabled: disabled
@@ -30512,6 +30524,14 @@
30512
30524
  }));
30513
30525
  });
30514
30526
 
30527
+ var InitialCorner;
30528
+ (function (InitialCorner) {
30529
+ InitialCorner["TOP_LEFT"] = "top-left";
30530
+ InitialCorner["TOP_RIGHT"] = "top-right";
30531
+ InitialCorner["BOTTOM_LEFT"] = "bottom-left";
30532
+ InitialCorner["BOTTOM_RIGHT"] = "bottom-right";
30533
+ })(InitialCorner || (InitialCorner = {}));
30534
+
30515
30535
  var Pdf = function () {
30516
30536
  return (jsxRuntimeExports$2.jsxs("svg", __assign$4({ width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [jsxRuntimeExports$2.jsx("rect", { width: "40", height: "40", rx: "4", fill: "white", fillOpacity: "0.1" }), jsxRuntimeExports$2.jsx("path", { d: "M23.3408 7.13599C23.937 7.19527 24.4974 7.45969 24.9248 7.88696L28.6963 11.6584C29.1849 12.1471 29.46 12.8102 29.46 13.5012V28.0051C29.4598 30.6951 27.2789 32.876 24.5889 32.8762H13.4121C10.722 32.8762 8.54117 30.6952 8.54102 28.0051V11.5413C8.54123 9.10146 10.5191 7.12329 12.959 7.12329H23.083L23.3408 7.13599ZM12.959 8.70923C11.395 8.70923 10.1272 9.97736 10.127 11.5413V28.0051C10.1271 29.8193 11.5979 31.2903 13.4121 31.2903H24.5889C26.403 31.2901 27.8739 29.8192 27.874 28.0051V16.2209C27.7957 16.2468 27.712 16.262 27.625 16.262H22.1875C20.7487 16.2618 19.5822 15.0953 19.582 13.6565V8.70923H12.959ZM19.417 24.0403C19.8547 24.0405 20.2099 24.3955 20.21 24.8333C20.21 25.2711 19.8548 25.626 19.417 25.6262H14.584C14.146 25.6262 13.791 25.2712 13.791 24.8333C13.7911 24.3953 14.1461 24.0403 14.584 24.0403H19.417ZM21.625 19.2073C22.0629 19.2073 22.418 19.5623 22.418 20.0002C22.4178 20.4381 22.0629 20.7932 21.625 20.7932H14.375C13.9372 20.7931 13.5822 20.438 13.582 20.0002C13.582 19.5624 13.9372 19.2074 14.375 19.2073H21.625ZM21.168 13.6565C21.1681 14.2194 21.6246 14.6759 22.1875 14.676H27.625C27.7119 14.676 27.7958 14.6893 27.874 14.7151V13.5012C27.874 13.2308 27.7664 12.9707 27.5752 12.7795L23.8037 9.00806C23.6366 8.84104 23.4167 8.73833 23.1836 8.71509L23.083 8.70923H21.168V13.6565Z", fill: "white" })] })));
30517
30537
  };