@skbkontur/icons 1.0.2 → 1.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.
- package/CHANGELOG.md +22 -0
- package/esm/internal/BaseIcon.js +2 -2
- package/internal/BaseIcon.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.1.0](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.0.3...@skbkontur/icons@1.1.0) (2023-06-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **icons:** ignore contents of icon on center alignment ([7be845c](https://git.skbkontur.ru/ui/ui-parking/commits/7be845cfc9980579ca50ec9014a91cbbc423e61d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.0.3](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.0.2...@skbkontur/icons@1.0.3) (2023-06-22)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **icons:** granular icons default alignment ([411e3e4](https://git.skbkontur.ru/ui/ui-parking/commits/411e3e4adec41296870acb176060bccef318b2ce))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [1.0.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.0.1...@skbkontur/icons@1.0.2) (2023-06-16)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @skbkontur/icons
|
package/esm/internal/BaseIcon.js
CHANGED
|
@@ -5,10 +5,10 @@ import { IconDataTids } from './Icon';
|
|
|
5
5
|
import { ZERO_WIDTH_SPACE } from './chars';
|
|
6
6
|
import { forwardRef } from '../helpers/forwardRef';
|
|
7
7
|
export var BaseIcon = forwardRef('BaseIcon', function (_a, ref) {
|
|
8
|
-
var color = _a.color, size = _a.size, style = _a.style, _b = _a["aria-hidden"], ariaHidden = _b === void 0 ? true : _b, _c = _a.viewBoxSize, viewBoxSize = _c === void 0 ? 16 : _c,
|
|
8
|
+
var color = _a.color, size = _a.size, style = _a.style, _b = _a["aria-hidden"], ariaHidden = _b === void 0 ? true : _b, _c = _a.viewBoxSize, viewBoxSize = _c === void 0 ? 16 : _c, _d = _a.align, align = _d === void 0 ? 'center' : _d, children = _a.children, rest = __rest(_a, ["color", "size", "style", 'aria-hidden', "viewBoxSize", "align", "children"]);
|
|
9
9
|
var icon = (React.createElement("svg", __assign({ "data-tid": IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, style: __assign({ fill: color !== null && color !== void 0 ? color : 'currentColor', marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em', flexShrink: 0 }, style), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, "aria-hidden": ariaHidden }, rest), children));
|
|
10
10
|
if (align === 'center') {
|
|
11
|
-
return (React.createElement("span", { style: { display: 'inline-flex', alignItems: 'center' } },
|
|
11
|
+
return (React.createElement("span", { "aria-hidden": ariaHidden, style: { display: 'inline-flex', alignItems: 'center' } },
|
|
12
12
|
ZERO_WIDTH_SPACE,
|
|
13
13
|
icon));
|
|
14
14
|
}
|
package/internal/BaseIcon.js
CHANGED
|
@@ -26,10 +26,10 @@ import { IconDataTids } from './Icon';
|
|
|
26
26
|
import { ZERO_WIDTH_SPACE } from './chars';
|
|
27
27
|
import { forwardRef } from '../helpers/forwardRef';
|
|
28
28
|
export var BaseIcon = forwardRef('BaseIcon', function (_a, ref) {
|
|
29
|
-
var color = _a.color, size = _a.size, style = _a.style, _b = _a["aria-hidden"], ariaHidden = _b === void 0 ? true : _b, _c = _a.viewBoxSize, viewBoxSize = _c === void 0 ? 16 : _c,
|
|
29
|
+
var color = _a.color, size = _a.size, style = _a.style, _b = _a["aria-hidden"], ariaHidden = _b === void 0 ? true : _b, _c = _a.viewBoxSize, viewBoxSize = _c === void 0 ? 16 : _c, _d = _a.align, align = _d === void 0 ? 'center' : _d, children = _a.children, rest = __rest(_a, ["color", "size", "style", 'aria-hidden', "viewBoxSize", "align", "children"]);
|
|
30
30
|
var icon = (React.createElement("svg", __assign({ "data-tid": IconDataTids.root, ref: ref, width: size || viewBoxSize, height: size || viewBoxSize, style: __assign({ fill: color !== null && color !== void 0 ? color : 'currentColor', marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em', flexShrink: 0 }, style), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, "aria-hidden": ariaHidden }, rest), children));
|
|
31
31
|
if (align === 'center') {
|
|
32
|
-
return (React.createElement("span", { style: { display: 'inline-flex', alignItems: 'center' } },
|
|
32
|
+
return (React.createElement("span", { "aria-hidden": ariaHidden, style: { display: 'inline-flex', alignItems: 'center' } },
|
|
33
33
|
ZERO_WIDTH_SPACE,
|
|
34
34
|
icon));
|
|
35
35
|
}
|