@skbkontur/icons 1.19.2-19a67.0 → 1.19.2-c8467.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/helpers/forwardRef.js +1 -2
- package/internal/utils.js +4 -4
- package/package.json +1 -1
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 = forwardRef;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
function forwardNameAndTag(name, render) {
|
|
@@ -12,4 +12,3 @@ 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;
|
package/internal/utils.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ZERO_WIDTH_SPACE = exports.isNonNullable = void 0;
|
|
4
|
+
exports.mergeRefs = mergeRefs;
|
|
5
|
+
exports.isDocument = isDocument;
|
|
6
|
+
exports.isShadowRoot = isShadowRoot;
|
|
4
7
|
/**
|
|
5
8
|
* Проверяет, не является ли переданный аргумент null или undefined и исключает типы null и undefined из типа аргумента
|
|
6
9
|
*
|
|
@@ -36,7 +39,6 @@ function mergeRefs(refs) {
|
|
|
36
39
|
});
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
|
-
exports.mergeRefs = mergeRefs;
|
|
40
42
|
/**
|
|
41
43
|
* Character for center alignment.
|
|
42
44
|
*
|
|
@@ -54,7 +56,6 @@ exports.ZERO_WIDTH_SPACE = String.fromCharCode(0x200b);
|
|
|
54
56
|
function isDocument(node) {
|
|
55
57
|
return node.nodeType === Node.DOCUMENT_NODE;
|
|
56
58
|
}
|
|
57
|
-
exports.isDocument = isDocument;
|
|
58
59
|
/**
|
|
59
60
|
* Checks if the node is a ShadowRoot.
|
|
60
61
|
*
|
|
@@ -66,4 +67,3 @@ exports.isDocument = isDocument;
|
|
|
66
67
|
function isShadowRoot(node) {
|
|
67
68
|
return node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'adoptedStyleSheets' in node;
|
|
68
69
|
}
|
|
69
|
-
exports.isShadowRoot = isShadowRoot;
|