@cleartrip/talos-heading 1.5.0 → 1.5.1-beta-260708-2.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
|
-
|
|
21333
|
-
|
|
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 getHeadingStyle = function (theme) {
|
|
30516
30536
|
return {
|
|
30517
30537
|
headingContainer: {
|