@skbkontur/icons 1.7.2 → 1.7.3
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/CHANGELOG.md +11 -0
- package/esm/internal/BaseIcon.js +3 -3
- package/internal/BaseIcon.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.7.3](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.7.2...@skbkontur/icons@1.7.3) (2023-12-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **icons:** remove outline ring on icons on click ([ec60885](https://git.skbkontur.ru/ui/ui-parking/commits/ec60885b8150c4e7086a05910687300fed74dd69))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.7.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.7.1...@skbkontur/icons@1.7.2) (2023-11-30)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @skbkontur/icons
|
package/esm/internal/BaseIcon.js
CHANGED
|
@@ -10,17 +10,17 @@ export var BaseIcon = forwardRef('BaseIcon', function (_a, ref) {
|
|
|
10
10
|
if (document.getElementById(styleId) === null) {
|
|
11
11
|
var style_1 = document.createElement('style');
|
|
12
12
|
style_1.id = styleId;
|
|
13
|
-
style_1.innerHTML = "\n .ui-parking-icon-centered {\n display: -webkit-inline-box;\n display: inline-flex;\n\n -webkit-box-align: center;\n align-items: center;\n }\n\n .ui-parking-icon-centered::before {\n /*\n * ZERO WIDTH SPACE\n *\n * Symbol to align to baseline\n *\n * @see https://www.fileformat.info/info/unicode/char/200b/index.htm\n */\n content: '\\200B';\n }\n ";
|
|
13
|
+
style_1.innerHTML = "\n .ui-parking-icon-centered {\n display: -webkit-inline-box;\n display: inline-flex;\n\n -webkit-box-align: center;\n align-items: center;\n }\n\n .ui-parking-icon-centered::before {\n /*\n * ZERO WIDTH SPACE\n *\n * Symbol to align to baseline\n *\n * @see https://www.fileformat.info/info/unicode/char/200b/index.htm\n */\n content: '\\200B';\n }\n\n .ui-parking-icon-base {\n outline: none;\n }\n\n .ui-parking-icon-base:focus-visible {\n outline: blue auto 5px;\n }\n ";
|
|
14
14
|
document.getElementsByTagName('head')[0].appendChild(style_1);
|
|
15
15
|
}
|
|
16
16
|
}, []);
|
|
17
|
-
var icon = (React.createElement("svg", __assign({ "data-tid": IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, style: Object.assign({
|
|
17
|
+
var icon = (React.createElement("svg", __assign({ "data-tid": IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, className: "ui-parking-icon-base", style: Object.assign({
|
|
18
18
|
fill: color !== null && color !== void 0 ? color : 'currentColor',
|
|
19
19
|
marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em',
|
|
20
20
|
flexShrink: 0,
|
|
21
21
|
}, align !== 'center' ? style : undefined), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, "aria-hidden": ariaHidden }, rest), children));
|
|
22
22
|
if (align === 'center') {
|
|
23
|
-
return (React.createElement("span", { className:
|
|
23
|
+
return (React.createElement("span", { className: "ui-parking-icon-centered", "aria-hidden": ariaHidden, style: style }, icon));
|
|
24
24
|
}
|
|
25
25
|
return icon;
|
|
26
26
|
});
|
package/internal/BaseIcon.js
CHANGED
|
@@ -13,17 +13,17 @@ exports.BaseIcon = forwardRef_1.forwardRef('BaseIcon', function (_a, ref) {
|
|
|
13
13
|
if (document.getElementById(styleId) === null) {
|
|
14
14
|
var style_1 = document.createElement('style');
|
|
15
15
|
style_1.id = styleId;
|
|
16
|
-
style_1.innerHTML = "\n .ui-parking-icon-centered {\n display: -webkit-inline-box;\n display: inline-flex;\n\n -webkit-box-align: center;\n align-items: center;\n }\n\n .ui-parking-icon-centered::before {\n /*\n * ZERO WIDTH SPACE\n *\n * Symbol to align to baseline\n *\n * @see https://www.fileformat.info/info/unicode/char/200b/index.htm\n */\n content: '\\200B';\n }\n ";
|
|
16
|
+
style_1.innerHTML = "\n .ui-parking-icon-centered {\n display: -webkit-inline-box;\n display: inline-flex;\n\n -webkit-box-align: center;\n align-items: center;\n }\n\n .ui-parking-icon-centered::before {\n /*\n * ZERO WIDTH SPACE\n *\n * Symbol to align to baseline\n *\n * @see https://www.fileformat.info/info/unicode/char/200b/index.htm\n */\n content: '\\200B';\n }\n\n .ui-parking-icon-base {\n outline: none;\n }\n\n .ui-parking-icon-base:focus-visible {\n outline: blue auto 5px;\n }\n ";
|
|
17
17
|
document.getElementsByTagName('head')[0].appendChild(style_1);
|
|
18
18
|
}
|
|
19
19
|
}, []);
|
|
20
|
-
var icon = (react_1.default.createElement("svg", tslib_1.__assign({ "data-tid": Icon_1.IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, style: Object.assign({
|
|
20
|
+
var icon = (react_1.default.createElement("svg", tslib_1.__assign({ "data-tid": Icon_1.IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, className: "ui-parking-icon-base", style: Object.assign({
|
|
21
21
|
fill: color !== null && color !== void 0 ? color : 'currentColor',
|
|
22
22
|
marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em',
|
|
23
23
|
flexShrink: 0,
|
|
24
24
|
}, align !== 'center' ? style : undefined), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, "aria-hidden": ariaHidden }, rest), children));
|
|
25
25
|
if (align === 'center') {
|
|
26
|
-
return (react_1.default.createElement("span", { className:
|
|
26
|
+
return (react_1.default.createElement("span", { className: "ui-parking-icon-centered", "aria-hidden": ariaHidden, style: style }, icon));
|
|
27
27
|
}
|
|
28
28
|
return icon;
|
|
29
29
|
});
|