@skbkontur/icons 1.20.1-ec84b.0 → 1.20.2
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 +19 -0
- package/__docs__/Icons.docs.stories.d.ts +1 -2
- package/esm/__docs__/Icons.docs.stories.d.ts +1 -2
- package/esm/icons/DeliveryTrolleyBoxIcon/DeliveryTrolleyBoxIcon64Regular.js +0 -2
- package/esm/internal/BaseIcon.js +4 -5
- package/helpers/forwardRef.js +2 -1
- package/icons/DeliveryTrolleyBoxIcon/DeliveryTrolleyBoxIcon64Regular.js +0 -2
- package/internal/BaseIcon.js +4 -5
- package/internal/utils.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.20.2](https://git.skbkontur.ru/ui/ui-parking-2/compare/@skbkontur/icons@1.20.1...@skbkontur/icons@1.20.2) (2025-12-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **icons:** DeliveryTrolleyBoxIcon64Regular ([bdf163f](https://git.skbkontur.ru/ui/ui-parking-2/commits/bdf163fe40d5621eed76e650f12a57dcfe205558))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.20.1](https://git.skbkontur.ru/ui/ui-parking-2/compare/@skbkontur/icons@1.20.0...@skbkontur/icons@1.20.1) (2025-12-10)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @skbkontur/icons
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [1.20.0](https://git.skbkontur.ru/ui/ui-parking-2/compare/@skbkontur/icons@1.19.1...@skbkontur/icons@1.20.0) (2025-10-15)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: Meta;
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
|
|
3
2
|
export default _default;
|
|
4
3
|
export declare const IconsStoryDump: () => null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: Meta;
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
|
|
3
2
|
export default _default;
|
|
4
3
|
export declare const IconsStoryDump: () => null;
|
|
@@ -6,8 +6,6 @@ import { forwardRef } from '../../helpers/forwardRef';
|
|
|
6
6
|
import { BaseIcon } from '../../internal/BaseIcon';
|
|
7
7
|
export var DeliveryTrolleyBoxIcon64Regular = forwardRef('DeliveryTrolleyBoxIcon64Regular', function (props, ref) {
|
|
8
8
|
return (React.createElement(BaseIcon, __assign({ ref: ref, viewBoxSize: 64 }, props),
|
|
9
|
-
React.createElement("path", { d: "m33.81 49.446 24.47-6.557", stroke: "#222", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
10
|
-
React.createElement("path", { d: "m4.07 11.862 4.83-1.294a6 6 0 0 1 7.348 4.243l7.765 28.978", stroke: "#222", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
11
9
|
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M30.939 12.228a6.5 6.5 0 0 0-4.596 7.96L30.31 35a6.5 6.5 0 0 0 7.961 4.596l14.81-3.969a6.5 6.5 0 0 0 4.597-7.96l-3.968-14.811a6.5 6.5 0 0 0-7.961-4.597l-14.811 3.969Zm-1.699 7.184a3.5 3.5 0 0 1 2.475-4.286l14.811-3.969a3.5 3.5 0 0 1 4.287 2.475l3.968 14.811a3.5 3.5 0 0 1-2.475 4.287l-14.81 3.968a3.5 3.5 0 0 1-4.287-2.475l-3.969-14.81Z" }),
|
|
12
10
|
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M35.026 50.673a8.981 8.981 0 1 1-12.684-7.323L14.799 15.2a4.5 4.5 0 0 0-5.511-3.183l-4.83 1.294a1.5 1.5 0 1 1-.776-2.897l4.83-1.295a7.5 7.5 0 0 1 9.185 5.304l7.543 28.15a8.99 8.99 0 0 1 9.01 5.202l23.642-6.335a1.5 1.5 0 0 1 .777 2.898l-23.642 6.335ZM20.27 53.074a6.018 6.018 0 1 1 11.627-3.115 6.018 6.018 0 0 1-11.627 3.115Z" })));
|
|
13
11
|
});
|
package/esm/internal/BaseIcon.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
+
/* eslint-disable react/display-name */
|
|
2
3
|
import React, { useCallback, useRef, useState } from 'react';
|
|
3
4
|
import { forwardRef } from '../helpers/forwardRef';
|
|
4
5
|
import { IconDataTids } from './Icon';
|
|
@@ -35,14 +36,12 @@ export var BaseIcon = forwardRef('BaseIcon', function (_a, ref) {
|
|
|
35
36
|
onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(e);
|
|
36
37
|
}, [focusVisible, onKeyUp]);
|
|
37
38
|
var disableFocusVisible = useCallback(function (e) {
|
|
38
|
-
|
|
39
|
-
setFocusVisible(false);
|
|
40
|
-
}
|
|
39
|
+
focusVisible && setFocusVisible(false);
|
|
41
40
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
42
41
|
}, [focusVisible, onBlur]);
|
|
43
|
-
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, outline: focusVisible ? undefined : 'none' }, (align !== 'center' ? style : {})), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 ".concat(viewBoxSize, " ").concat(viewBoxSize), "aria-hidden": ariaHidden
|
|
42
|
+
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, outline: focusVisible ? undefined : 'none' }, (align !== 'center' ? style : {})), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 ".concat(viewBoxSize, " ").concat(viewBoxSize), "aria-hidden": ariaHidden, tabIndex: tabIndex, onKeyUp: enableFocusVisibleOnTab, onBlur: disableFocusVisible }, rest), children));
|
|
44
43
|
if (align === 'center') {
|
|
45
|
-
return (React.createElement("span", { "aria-hidden": ariaHidden
|
|
44
|
+
return (React.createElement("span", { "aria-hidden": ariaHidden, style: __assign({ display: 'inline-flex', alignItems: 'center' }, style) },
|
|
46
45
|
React.createElement("span", { ref: zeroWidthSpaceRef }),
|
|
47
46
|
icon));
|
|
48
47
|
}
|
package/helpers/forwardRef.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forwardRef =
|
|
3
|
+
exports.forwardRef = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
function forwardNameAndTag(name, render) {
|
|
@@ -12,3 +12,4 @@ function forwardNameAndTag(name, render) {
|
|
|
12
12
|
function forwardRef(name, render) {
|
|
13
13
|
return forwardNameAndTag(name, react_1.default.forwardRef(render));
|
|
14
14
|
}
|
|
15
|
+
exports.forwardRef = forwardRef;
|
|
@@ -9,8 +9,6 @@ var forwardRef_1 = require("../../helpers/forwardRef");
|
|
|
9
9
|
var BaseIcon_1 = require("../../internal/BaseIcon");
|
|
10
10
|
exports.DeliveryTrolleyBoxIcon64Regular = (0, forwardRef_1.forwardRef)('DeliveryTrolleyBoxIcon64Regular', function (props, ref) {
|
|
11
11
|
return (react_1.default.createElement(BaseIcon_1.BaseIcon, tslib_1.__assign({ ref: ref, viewBoxSize: 64 }, props),
|
|
12
|
-
react_1.default.createElement("path", { d: "m33.81 49.446 24.47-6.557", stroke: "#222", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
13
|
-
react_1.default.createElement("path", { d: "m4.07 11.862 4.83-1.294a6 6 0 0 1 7.348 4.243l7.765 28.978", stroke: "#222", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
14
12
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M30.939 12.228a6.5 6.5 0 0 0-4.596 7.96L30.31 35a6.5 6.5 0 0 0 7.961 4.596l14.81-3.969a6.5 6.5 0 0 0 4.597-7.96l-3.968-14.811a6.5 6.5 0 0 0-7.961-4.597l-14.811 3.969Zm-1.699 7.184a3.5 3.5 0 0 1 2.475-4.286l14.811-3.969a3.5 3.5 0 0 1 4.287 2.475l3.968 14.811a3.5 3.5 0 0 1-2.475 4.287l-14.81 3.968a3.5 3.5 0 0 1-4.287-2.475l-3.969-14.81Z" }),
|
|
15
13
|
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M35.026 50.673a8.981 8.981 0 1 1-12.684-7.323L14.799 15.2a4.5 4.5 0 0 0-5.511-3.183l-4.83 1.294a1.5 1.5 0 1 1-.776-2.897l4.83-1.295a7.5 7.5 0 0 1 9.185 5.304l7.543 28.15a8.99 8.99 0 0 1 9.01 5.202l23.642-6.335a1.5 1.5 0 0 1 .777 2.898l-23.642 6.335ZM20.27 53.074a6.018 6.018 0 1 1 11.627-3.115 6.018 6.018 0 0 1-11.627 3.115Z" })));
|
|
16
14
|
});
|
package/internal/BaseIcon.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseIcon = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
+
/* eslint-disable react/display-name */
|
|
5
6
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
7
|
var forwardRef_1 = require("../helpers/forwardRef");
|
|
7
8
|
var Icon_1 = require("./Icon");
|
|
@@ -38,14 +39,12 @@ exports.BaseIcon = (0, forwardRef_1.forwardRef)('BaseIcon', function (_a, ref) {
|
|
|
38
39
|
onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(e);
|
|
39
40
|
}, [focusVisible, onKeyUp]);
|
|
40
41
|
var disableFocusVisible = (0, react_1.useCallback)(function (e) {
|
|
41
|
-
|
|
42
|
-
setFocusVisible(false);
|
|
43
|
-
}
|
|
42
|
+
focusVisible && setFocusVisible(false);
|
|
44
43
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
45
44
|
}, [focusVisible, onBlur]);
|
|
46
|
-
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: tslib_1.__assign({ fill: color !== null && color !== void 0 ? color : 'currentColor', marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em', flexShrink: 0, outline: focusVisible ? undefined : 'none' }, (align !== 'center' ? style : {})), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 ".concat(viewBoxSize, " ").concat(viewBoxSize), "aria-hidden": ariaHidden
|
|
45
|
+
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: tslib_1.__assign({ fill: color !== null && color !== void 0 ? color : 'currentColor', marginBottom: align === 'none' || align === 'center' ? 0 : '-0.1875em', flexShrink: 0, outline: focusVisible ? undefined : 'none' }, (align !== 'center' ? style : {})), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 ".concat(viewBoxSize, " ").concat(viewBoxSize), "aria-hidden": ariaHidden, tabIndex: tabIndex, onKeyUp: enableFocusVisibleOnTab, onBlur: disableFocusVisible }, rest), children));
|
|
47
46
|
if (align === 'center') {
|
|
48
|
-
return (react_1.default.createElement("span", { "aria-hidden": ariaHidden
|
|
47
|
+
return (react_1.default.createElement("span", { "aria-hidden": ariaHidden, style: tslib_1.__assign({ display: 'inline-flex', alignItems: 'center' }, style) },
|
|
49
48
|
react_1.default.createElement("span", { ref: zeroWidthSpaceRef }),
|
|
50
49
|
icon));
|
|
51
50
|
}
|
package/internal/utils.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZERO_WIDTH_SPACE = exports.isNonNullable = void 0;
|
|
4
|
-
exports.mergeRefs = mergeRefs;
|
|
5
|
-
exports.isDocument = isDocument;
|
|
6
|
-
exports.isShadowRoot = isShadowRoot;
|
|
3
|
+
exports.isShadowRoot = exports.isDocument = exports.ZERO_WIDTH_SPACE = exports.mergeRefs = exports.isNonNullable = void 0;
|
|
7
4
|
/**
|
|
8
5
|
* Проверяет, не является ли переданный аргумент null или undefined и исключает типы null и undefined из типа аргумента
|
|
9
6
|
*
|
|
@@ -39,6 +36,7 @@ function mergeRefs(refs) {
|
|
|
39
36
|
});
|
|
40
37
|
};
|
|
41
38
|
}
|
|
39
|
+
exports.mergeRefs = mergeRefs;
|
|
42
40
|
/**
|
|
43
41
|
* Character for center alignment.
|
|
44
42
|
*
|
|
@@ -56,6 +54,7 @@ exports.ZERO_WIDTH_SPACE = String.fromCharCode(0x200b);
|
|
|
56
54
|
function isDocument(node) {
|
|
57
55
|
return node.nodeType === Node.DOCUMENT_NODE;
|
|
58
56
|
}
|
|
57
|
+
exports.isDocument = isDocument;
|
|
59
58
|
/**
|
|
60
59
|
* Checks if the node is a ShadowRoot.
|
|
61
60
|
*
|
|
@@ -67,3 +66,4 @@ function isDocument(node) {
|
|
|
67
66
|
function isShadowRoot(node) {
|
|
68
67
|
return node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'adoptedStyleSheets' in node;
|
|
69
68
|
}
|
|
69
|
+
exports.isShadowRoot = isShadowRoot;
|