@gravity-ui/blog-constructor 6.3.1 → 6.4.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.
- package/build/cjs/components/Search/Search.js +1 -1
- package/build/cjs/containers/BlogPostPage/BlogPostPage.css +3 -0
- package/build/cjs/i18n/index.d.ts +2 -1
- package/build/cjs/i18n/index.js +3 -0
- package/build/esm/components/Search/Search.js +1 -1
- package/build/esm/containers/BlogPostPage/BlogPostPage.css +3 -0
- package/build/esm/i18n/index.d.ts +2 -1
- package/build/esm/i18n/index.js +3 -0
- package/package.json +1 -1
- package/styles/styles.css +3 -0
- package/styles/yfm.css +3 -0
- package/styles/yfm.scss +5 -0
@@ -45,7 +45,7 @@ const Search = ({ className, initialValue, onSubmit, debounce = 300, placeholder
|
|
45
45
|
onSubmit('');
|
46
46
|
}
|
47
47
|
};
|
48
|
-
return (react_1.default.createElement("button", { className: b('input-icon'), onClick: handleClick },
|
48
|
+
return (react_1.default.createElement("button", { className: b('input-icon'), onClick: handleClick, "aria-label": (0, i18n_1.i18n)(i18n_1.Keyset.SearchAction) },
|
49
49
|
react_1.default.createElement(uikit_1.Icon, { size: iconSize, data: iconData })));
|
50
50
|
}, [handleChange, onSubmit, value]);
|
51
51
|
return (react_1.default.createElement("div", { className: b({ size }, className) },
|
@@ -18,6 +18,7 @@ export declare enum Keyset {
|
|
18
18
|
AllServices = "label_all_services",
|
19
19
|
PromptSignInOnLike = "prompt_sign_in_on_like",
|
20
20
|
SignIn = "Sign In",
|
21
|
-
Save = "save"
|
21
|
+
Save = "save",
|
22
|
+
SearchAction = "search_action"
|
22
23
|
}
|
23
24
|
export declare const i18n: (key: Keyset, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
package/build/cjs/i18n/index.js
CHANGED
@@ -25,6 +25,7 @@ var Keyset;
|
|
25
25
|
Keyset["PromptSignInOnLike"] = "prompt_sign_in_on_like";
|
26
26
|
Keyset["SignIn"] = "Sign In";
|
27
27
|
Keyset["Save"] = "save";
|
28
|
+
Keyset["SearchAction"] = "search_action";
|
28
29
|
})(Keyset = exports.Keyset || (exports.Keyset = {}));
|
29
30
|
const en = {
|
30
31
|
[Keyset.Title]: 'Blog',
|
@@ -51,6 +52,7 @@ const en = {
|
|
51
52
|
],
|
52
53
|
[Keyset.SignIn]: 'Sign In',
|
53
54
|
[Keyset.Save]: 'Save',
|
55
|
+
[Keyset.SearchAction]: 'Find',
|
54
56
|
};
|
55
57
|
const ru = {
|
56
58
|
[Keyset.Title]: 'Блог',
|
@@ -77,5 +79,6 @@ const ru = {
|
|
77
79
|
],
|
78
80
|
[Keyset.SignIn]: 'Войти',
|
79
81
|
[Keyset.Save]: 'Сохранить',
|
82
|
+
[Keyset.SearchAction]: 'Найти',
|
80
83
|
};
|
81
84
|
exports.i18n = (0, i18n_1.addComponentKeysets)({ en, ru }, NAMESPACE);
|
@@ -42,7 +42,7 @@ export const Search = ({ className, initialValue, onSubmit, debounce = 300, plac
|
|
42
42
|
onSubmit('');
|
43
43
|
}
|
44
44
|
};
|
45
|
-
return (React.createElement("button", { className: b('input-icon'), onClick: handleClick },
|
45
|
+
return (React.createElement("button", { className: b('input-icon'), onClick: handleClick, "aria-label": i18n(Keyset.SearchAction) },
|
46
46
|
React.createElement(Icon, { size: iconSize, data: iconData })));
|
47
47
|
}, [handleChange, onSubmit, value]);
|
48
48
|
return (React.createElement("div", { className: b({ size }, className) },
|
@@ -18,6 +18,7 @@ export declare enum Keyset {
|
|
18
18
|
AllServices = "label_all_services",
|
19
19
|
PromptSignInOnLike = "prompt_sign_in_on_like",
|
20
20
|
SignIn = "Sign In",
|
21
|
-
Save = "save"
|
21
|
+
Save = "save",
|
22
|
+
SearchAction = "search_action"
|
22
23
|
}
|
23
24
|
export declare const i18n: (key: Keyset, params?: import("@gravity-ui/i18n").Params | undefined) => string;
|
package/build/esm/i18n/index.js
CHANGED
@@ -22,6 +22,7 @@ export var Keyset;
|
|
22
22
|
Keyset["PromptSignInOnLike"] = "prompt_sign_in_on_like";
|
23
23
|
Keyset["SignIn"] = "Sign In";
|
24
24
|
Keyset["Save"] = "save";
|
25
|
+
Keyset["SearchAction"] = "search_action";
|
25
26
|
})(Keyset || (Keyset = {}));
|
26
27
|
const en = {
|
27
28
|
[Keyset.Title]: 'Blog',
|
@@ -48,6 +49,7 @@ const en = {
|
|
48
49
|
],
|
49
50
|
[Keyset.SignIn]: 'Sign In',
|
50
51
|
[Keyset.Save]: 'Save',
|
52
|
+
[Keyset.SearchAction]: 'Find',
|
51
53
|
};
|
52
54
|
const ru = {
|
53
55
|
[Keyset.Title]: 'Блог',
|
@@ -74,5 +76,6 @@ const ru = {
|
|
74
76
|
],
|
75
77
|
[Keyset.SignIn]: 'Войти',
|
76
78
|
[Keyset.Save]: 'Сохранить',
|
79
|
+
[Keyset.SearchAction]: 'Найти',
|
77
80
|
};
|
78
81
|
export const i18n = addComponentKeysets({ en, ru }, NAMESPACE);
|
package/package.json
CHANGED
package/styles/styles.css
CHANGED
package/styles/yfm.css
CHANGED