@skbkontur/icons 1.13.1 → 1.14.0-fix-SOP-n-async-attachment.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 +11 -0
- package/FlashlightIcon.d.ts +1 -0
- package/FlashlightIcon.js +4 -0
- package/FlashlightIcon16Light.d.ts +1 -0
- package/FlashlightIcon16Light.js +4 -0
- package/FlashlightIcon16Regular.d.ts +1 -0
- package/FlashlightIcon16Regular.js +4 -0
- package/FlashlightIcon16Solid.d.ts +1 -0
- package/FlashlightIcon16Solid.js +4 -0
- package/FlashlightIcon20Light.d.ts +1 -0
- package/FlashlightIcon20Light.js +4 -0
- package/FlashlightIcon20Regular.d.ts +1 -0
- package/FlashlightIcon20Regular.js +4 -0
- package/FlashlightIcon20Solid.d.ts +1 -0
- package/FlashlightIcon20Solid.js +4 -0
- package/FlashlightIcon24Regular.d.ts +1 -0
- package/FlashlightIcon24Regular.js +4 -0
- package/FlashlightIcon24Solid.d.ts +1 -0
- package/FlashlightIcon24Solid.js +4 -0
- package/FlashlightIcon32Regular.d.ts +1 -0
- package/FlashlightIcon32Regular.js +4 -0
- package/FlashlightIcon64Regular.d.ts +1 -0
- package/FlashlightIcon64Regular.js +4 -0
- package/FlashlightOffIcon.d.ts +1 -0
- package/FlashlightOffIcon.js +4 -0
- package/FlashlightOffIcon16Light.d.ts +1 -0
- package/FlashlightOffIcon16Light.js +4 -0
- package/FlashlightOffIcon16Regular.d.ts +1 -0
- package/FlashlightOffIcon16Regular.js +4 -0
- package/FlashlightOffIcon16Solid.d.ts +1 -0
- package/FlashlightOffIcon16Solid.js +4 -0
- package/FlashlightOffIcon20Light.d.ts +1 -0
- package/FlashlightOffIcon20Light.js +4 -0
- package/FlashlightOffIcon20Regular.d.ts +1 -0
- package/FlashlightOffIcon20Regular.js +4 -0
- package/FlashlightOffIcon20Solid.d.ts +1 -0
- package/FlashlightOffIcon20Solid.js +4 -0
- package/FlashlightOffIcon24Regular.d.ts +1 -0
- package/FlashlightOffIcon24Regular.js +4 -0
- package/FlashlightOffIcon24Solid.d.ts +1 -0
- package/FlashlightOffIcon24Solid.js +4 -0
- package/FlashlightOffIcon32Regular.d.ts +1 -0
- package/FlashlightOffIcon32Regular.js +4 -0
- package/FlashlightOffIcon64Regular.d.ts +1 -0
- package/FlashlightOffIcon64Regular.js +4 -0
- package/UiCompareIcon.d.ts +1 -0
- package/UiCompareIcon.js +4 -0
- package/UiCompareIcon16Light.d.ts +1 -0
- package/UiCompareIcon16Light.js +4 -0
- package/UiCompareIcon16Regular.d.ts +1 -0
- package/UiCompareIcon16Regular.js +4 -0
- package/UiCompareIcon16Solid.d.ts +1 -0
- package/UiCompareIcon16Solid.js +4 -0
- package/UiCompareIcon20Light.d.ts +1 -0
- package/UiCompareIcon20Light.js +4 -0
- package/UiCompareIcon20Regular.d.ts +1 -0
- package/UiCompareIcon20Regular.js +4 -0
- package/UiCompareIcon20Solid.d.ts +1 -0
- package/UiCompareIcon20Solid.js +4 -0
- package/UiCompareIcon24Regular.d.ts +1 -0
- package/UiCompareIcon24Regular.js +4 -0
- package/UiCompareIcon24Solid.d.ts +1 -0
- package/UiCompareIcon24Solid.js +4 -0
- package/UiCompareIcon32Regular.d.ts +1 -0
- package/UiCompareIcon32Regular.js +4 -0
- package/UiCompareIcon64Regular.d.ts +1 -0
- package/UiCompareIcon64Regular.js +4 -0
- package/esm/FlashlightIcon.d.ts +1 -0
- package/esm/FlashlightIcon.js +1 -0
- package/esm/FlashlightIcon16Light.d.ts +1 -0
- package/esm/FlashlightIcon16Light.js +1 -0
- package/esm/FlashlightIcon16Regular.d.ts +1 -0
- package/esm/FlashlightIcon16Regular.js +1 -0
- package/esm/FlashlightIcon16Solid.d.ts +1 -0
- package/esm/FlashlightIcon16Solid.js +1 -0
- package/esm/FlashlightIcon20Light.d.ts +1 -0
- package/esm/FlashlightIcon20Light.js +1 -0
- package/esm/FlashlightIcon20Regular.d.ts +1 -0
- package/esm/FlashlightIcon20Regular.js +1 -0
- package/esm/FlashlightIcon20Solid.d.ts +1 -0
- package/esm/FlashlightIcon20Solid.js +1 -0
- package/esm/FlashlightIcon24Regular.d.ts +1 -0
- package/esm/FlashlightIcon24Regular.js +1 -0
- package/esm/FlashlightIcon24Solid.d.ts +1 -0
- package/esm/FlashlightIcon24Solid.js +1 -0
- package/esm/FlashlightIcon32Regular.d.ts +1 -0
- package/esm/FlashlightIcon32Regular.js +1 -0
- package/esm/FlashlightIcon64Regular.d.ts +1 -0
- package/esm/FlashlightIcon64Regular.js +1 -0
- package/esm/FlashlightOffIcon.d.ts +1 -0
- package/esm/FlashlightOffIcon.js +1 -0
- package/esm/FlashlightOffIcon16Light.d.ts +1 -0
- package/esm/FlashlightOffIcon16Light.js +1 -0
- package/esm/FlashlightOffIcon16Regular.d.ts +1 -0
- package/esm/FlashlightOffIcon16Regular.js +1 -0
- package/esm/FlashlightOffIcon16Solid.d.ts +1 -0
- package/esm/FlashlightOffIcon16Solid.js +1 -0
- package/esm/FlashlightOffIcon20Light.d.ts +1 -0
- package/esm/FlashlightOffIcon20Light.js +1 -0
- package/esm/FlashlightOffIcon20Regular.d.ts +1 -0
- package/esm/FlashlightOffIcon20Regular.js +1 -0
- package/esm/FlashlightOffIcon20Solid.d.ts +1 -0
- package/esm/FlashlightOffIcon20Solid.js +1 -0
- package/esm/FlashlightOffIcon24Regular.d.ts +1 -0
- package/esm/FlashlightOffIcon24Regular.js +1 -0
- package/esm/FlashlightOffIcon24Solid.d.ts +1 -0
- package/esm/FlashlightOffIcon24Solid.js +1 -0
- package/esm/FlashlightOffIcon32Regular.d.ts +1 -0
- package/esm/FlashlightOffIcon32Regular.js +1 -0
- package/esm/FlashlightOffIcon64Regular.d.ts +1 -0
- package/esm/FlashlightOffIcon64Regular.js +1 -0
- package/esm/UiCompareIcon.d.ts +1 -0
- package/esm/UiCompareIcon.js +1 -0
- package/esm/UiCompareIcon16Light.d.ts +1 -0
- package/esm/UiCompareIcon16Light.js +1 -0
- package/esm/UiCompareIcon16Regular.d.ts +1 -0
- package/esm/UiCompareIcon16Regular.js +1 -0
- package/esm/UiCompareIcon16Solid.d.ts +1 -0
- package/esm/UiCompareIcon16Solid.js +1 -0
- package/esm/UiCompareIcon20Light.d.ts +1 -0
- package/esm/UiCompareIcon20Light.js +1 -0
- package/esm/UiCompareIcon20Regular.d.ts +1 -0
- package/esm/UiCompareIcon20Regular.js +1 -0
- package/esm/UiCompareIcon20Solid.d.ts +1 -0
- package/esm/UiCompareIcon20Solid.js +1 -0
- package/esm/UiCompareIcon24Regular.d.ts +1 -0
- package/esm/UiCompareIcon24Regular.js +1 -0
- package/esm/UiCompareIcon24Solid.d.ts +1 -0
- package/esm/UiCompareIcon24Solid.js +1 -0
- package/esm/UiCompareIcon32Regular.d.ts +1 -0
- package/esm/UiCompareIcon32Regular.js +1 -0
- package/esm/UiCompareIcon64Regular.d.ts +1 -0
- package/esm/UiCompareIcon64Regular.js +1 -0
- package/esm/icons/BuildingOfficeIcon/BuildingOfficeIcon20Light.js +10 -8
- package/esm/icons/FlashlightIcon/FlashlightIcon.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon.js +41 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Light.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Light.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Regular.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Regular.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Solid.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon16Solid.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Light.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Light.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Regular.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Regular.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Solid.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon20Solid.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon24Regular.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon24Regular.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon24Solid.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon24Solid.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon32Regular.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon32Regular.js +11 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon64Regular.d.ts +2 -0
- package/esm/icons/FlashlightIcon/FlashlightIcon64Regular.js +11 -0
- package/esm/icons/FlashlightIcon/index.d.ts +11 -0
- package/esm/icons/FlashlightIcon/index.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon.js +41 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Light.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Light.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Regular.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Regular.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Solid.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon16Solid.js +12 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Light.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Light.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Regular.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Regular.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Solid.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon20Solid.js +12 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon24Regular.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon24Regular.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon24Solid.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon24Solid.js +12 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon32Regular.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon32Regular.js +11 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon64Regular.d.ts +2 -0
- package/esm/icons/FlashlightOffIcon/FlashlightOffIcon64Regular.js +11 -0
- package/esm/icons/FlashlightOffIcon/index.d.ts +11 -0
- package/esm/icons/FlashlightOffIcon/index.js +11 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon.js +41 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Light.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Light.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Regular.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Regular.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Solid.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon16Solid.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Light.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Light.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Regular.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Regular.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Solid.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon20Solid.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon24Regular.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon24Regular.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon24Solid.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon24Solid.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon32Regular.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon32Regular.js +13 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon64Regular.d.ts +2 -0
- package/esm/icons/UiCompareIcon/UiCompareIcon64Regular.js +13 -0
- package/esm/icons/UiCompareIcon/index.d.ts +11 -0
- package/esm/icons/UiCompareIcon/index.js +11 -0
- package/esm/icons/index.d.ts +3 -0
- package/esm/icons/index.js +3 -0
- package/esm/internal/BaseIcon.js +37 -16
- package/esm/internal/utils.d.ts +24 -0
- package/esm/internal/utils.js +28 -0
- package/icons/BuildingOfficeIcon/BuildingOfficeIcon20Light.js +10 -8
- package/icons/FlashlightIcon/FlashlightIcon.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon.js +44 -0
- package/icons/FlashlightIcon/FlashlightIcon16Light.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon16Light.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon16Regular.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon16Regular.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon16Solid.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon16Solid.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon20Light.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon20Light.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon20Regular.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon20Regular.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon20Solid.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon20Solid.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon24Regular.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon24Regular.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon24Solid.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon24Solid.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon32Regular.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon32Regular.js +14 -0
- package/icons/FlashlightIcon/FlashlightIcon64Regular.d.ts +2 -0
- package/icons/FlashlightIcon/FlashlightIcon64Regular.js +14 -0
- package/icons/FlashlightIcon/index.d.ts +11 -0
- package/icons/FlashlightIcon/index.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon.js +44 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Light.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Light.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Regular.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Regular.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Solid.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon16Solid.js +15 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Light.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Light.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Regular.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Regular.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Solid.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon20Solid.js +15 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon24Regular.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon24Regular.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon24Solid.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon24Solid.js +15 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon32Regular.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon32Regular.js +14 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon64Regular.d.ts +2 -0
- package/icons/FlashlightOffIcon/FlashlightOffIcon64Regular.js +14 -0
- package/icons/FlashlightOffIcon/index.d.ts +11 -0
- package/icons/FlashlightOffIcon/index.js +14 -0
- package/icons/UiCompareIcon/UiCompareIcon.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon.js +44 -0
- package/icons/UiCompareIcon/UiCompareIcon16Light.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon16Light.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon16Regular.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon16Regular.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon16Solid.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon16Solid.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon20Light.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon20Light.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon20Regular.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon20Regular.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon20Solid.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon20Solid.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon24Regular.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon24Regular.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon24Solid.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon24Solid.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon32Regular.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon32Regular.js +16 -0
- package/icons/UiCompareIcon/UiCompareIcon64Regular.d.ts +2 -0
- package/icons/UiCompareIcon/UiCompareIcon64Regular.js +16 -0
- package/icons/UiCompareIcon/index.d.ts +11 -0
- package/icons/UiCompareIcon/index.js +14 -0
- package/icons/index.d.ts +3 -0
- package/icons/index.js +3 -0
- package/internal/BaseIcon.js +35 -14
- package/internal/utils.d.ts +24 -0
- package/internal/utils.js +31 -1
- package/package.json +1 -1
- package/esm/internal/cssRules.d.ts +0 -1
- package/esm/internal/cssRules.js +0 -6
- package/esm/internal/injectCss.d.ts +0 -6
- package/esm/internal/injectCss.js +0 -63
- package/internal/cssRules.d.ts +0 -1
- package/internal/cssRules.js +0 -9
- package/internal/injectCss.d.ts +0 -6
- package/internal/injectCss.js +0 -67
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable react/display-name */
|
|
3
|
+
// * You should NOT edit this file directly. Read CONTRIBUTING.md for more information on creating icons
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.UiCompareIcon32Regular = void 0;
|
|
6
|
+
var tslib_1 = require("tslib");
|
|
7
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
+
var forwardRef_1 = require("../../helpers/forwardRef");
|
|
9
|
+
var BaseIcon_1 = require("../../internal/BaseIcon");
|
|
10
|
+
exports.UiCompareIcon32Regular = forwardRef_1.forwardRef('UiCompareIcon32Regular', function (props, ref) {
|
|
11
|
+
return (react_1.default.createElement(BaseIcon_1.BaseIcon, tslib_1.__assign({ ref: ref, viewBoxSize: 32 }, props),
|
|
12
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17 1a1 1 0 1 0-2 0v4H7.5A5.5 5.5 0 0 0 2 10.5v11A5.5 5.5 0 0 0 7.5 27H15v4a1 1 0 1 0 2 0v-4h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2h-3V1Zm-2 6H7.5A3.5 3.5 0 0 0 4 10.5v11A3.5 3.5 0 0 0 7.5 25H15V7Z" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M29.966 22.11a1 1 0 1 0-1.987-.22A3.5 3.5 0 0 1 24.5 25H24a1 1 0 1 0 0 2h.5a5.5 5.5 0 0 0 5.466-4.89Z" }),
|
|
14
|
+
react_1.default.createElement("path", { d: "M29 13a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z" }),
|
|
15
|
+
react_1.default.createElement("path", { d: "M24 5a1 1 0 1 0 0 2h.5a3.5 3.5 0 0 1 3.479 3.11 1 1 0 0 0 1.988-.22A5.5 5.5 0 0 0 24.5 5H24Z" })));
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable react/display-name */
|
|
3
|
+
// * You should NOT edit this file directly. Read CONTRIBUTING.md for more information on creating icons
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.UiCompareIcon64Regular = void 0;
|
|
6
|
+
var tslib_1 = require("tslib");
|
|
7
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
+
var forwardRef_1 = require("../../helpers/forwardRef");
|
|
9
|
+
var BaseIcon_1 = require("../../internal/BaseIcon");
|
|
10
|
+
exports.UiCompareIcon64Regular = forwardRef_1.forwardRef('UiCompareIcon64Regular', function (props, ref) {
|
|
11
|
+
return (react_1.default.createElement(BaseIcon_1.BaseIcon, tslib_1.__assign({ ref: ref, viewBoxSize: 64 }, props),
|
|
12
|
+
react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M34 2.5a1.5 1.5 0 0 0-3 0V11H16.5C10.701 11 6 15.701 6 21.5v21C6 48.299 10.701 53 16.5 53H31v8.5a1.5 1.5 0 0 0 3 0V53h5.5a1.5 1.5 0 0 0 0-3H34V14h5.5a1.5 1.5 0 0 0 0-3H34V2.5ZM31 14H16.5A7.5 7.5 0 0 0 9 21.5v21a7.5 7.5 0 0 0 7.5 7.5H31V14Z" }),
|
|
13
|
+
react_1.default.createElement("path", { d: "M57.936 43.665a1.5 1.5 0 0 0-2.982-.33A7.501 7.501 0 0 1 47.5 50h-1a1.5 1.5 0 0 0 0 3h1c5.406 0 9.855-4.084 10.436-9.335Z" }),
|
|
14
|
+
react_1.default.createElement("path", { d: "M45 12.5a1.5 1.5 0 0 1 1.5-1.5h1c5.406 0 9.855 4.084 10.436 9.335a1.5 1.5 0 0 1-2.982.33A7.501 7.501 0 0 0 47.5 14h-1a1.5 1.5 0 0 1-1.5-1.5Z" }),
|
|
15
|
+
react_1.default.createElement("path", { d: "M56.5 26a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 1 1-3 0v-9a1.5 1.5 0 0 1 1.5-1.5Z" })));
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './UiCompareIcon';
|
|
2
|
+
export * from './UiCompareIcon16Light';
|
|
3
|
+
export * from './UiCompareIcon16Regular';
|
|
4
|
+
export * from './UiCompareIcon16Solid';
|
|
5
|
+
export * from './UiCompareIcon20Light';
|
|
6
|
+
export * from './UiCompareIcon20Regular';
|
|
7
|
+
export * from './UiCompareIcon20Solid';
|
|
8
|
+
export * from './UiCompareIcon24Regular';
|
|
9
|
+
export * from './UiCompareIcon24Solid';
|
|
10
|
+
export * from './UiCompareIcon32Regular';
|
|
11
|
+
export * from './UiCompareIcon64Regular';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./UiCompareIcon"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./UiCompareIcon16Light"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./UiCompareIcon16Regular"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./UiCompareIcon16Solid"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./UiCompareIcon20Light"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./UiCompareIcon20Regular"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./UiCompareIcon20Solid"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./UiCompareIcon24Regular"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./UiCompareIcon24Solid"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./UiCompareIcon32Regular"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./UiCompareIcon64Regular"), exports);
|
package/icons/index.d.ts
CHANGED
|
@@ -566,3 +566,6 @@ export * from './MoneyPiggyCoinIcon';
|
|
|
566
566
|
export * from './PercentCircleIcon';
|
|
567
567
|
export * from './PercentIcon';
|
|
568
568
|
export * from './PercentSealIcon';
|
|
569
|
+
export * from './FlashlightIcon';
|
|
570
|
+
export * from './FlashlightOffIcon';
|
|
571
|
+
export * from './UiCompareIcon';
|
package/icons/index.js
CHANGED
|
@@ -573,3 +573,6 @@ tslib_1.__exportStar(require("./MoneyPiggyCoinIcon"), exports);
|
|
|
573
573
|
tslib_1.__exportStar(require("./PercentCircleIcon"), exports);
|
|
574
574
|
tslib_1.__exportStar(require("./PercentIcon"), exports);
|
|
575
575
|
tslib_1.__exportStar(require("./PercentSealIcon"), exports);
|
|
576
|
+
tslib_1.__exportStar(require("./FlashlightIcon"), exports);
|
|
577
|
+
tslib_1.__exportStar(require("./FlashlightOffIcon"), exports);
|
|
578
|
+
tslib_1.__exportStar(require("./UiCompareIcon"), exports);
|
package/internal/BaseIcon.js
CHANGED
|
@@ -7,24 +7,45 @@ var react_1 = tslib_1.__importStar(require("react"));
|
|
|
7
7
|
var Icon_1 = require("./Icon");
|
|
8
8
|
var forwardRef_1 = require("../helpers/forwardRef");
|
|
9
9
|
var utils_1 = require("./utils");
|
|
10
|
-
var injectCss_1 = require("./injectCss");
|
|
11
10
|
exports.BaseIcon = forwardRef_1.forwardRef('BaseIcon', function (_a, ref) {
|
|
12
|
-
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 = tslib_1.__rest(_a, ["color", "size", "style", 'aria-hidden', "viewBoxSize", "align", "children"]);
|
|
13
|
-
var
|
|
14
|
-
react_1.
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
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, tabIndex = _a.tabIndex, onKeyUp = _a.onKeyUp, onBlur = _a.onBlur, rest = tslib_1.__rest(_a, ["color", "size", "style", 'aria-hidden', "viewBoxSize", "align", "children", "tabIndex", "onKeyUp", "onBlur"]);
|
|
12
|
+
var zeroWidthSpaceRef = react_1.useRef(null);
|
|
13
|
+
var _e = react_1.useState(false), focusVisible = _e[0], setFocusVisible = _e[1];
|
|
14
|
+
react_1.useLayoutEffect(function () {
|
|
15
|
+
var element = zeroWidthSpaceRef.current;
|
|
16
|
+
if (!element || !element.attachShadow) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
var zeroWidthSpace = element.ownerDocument.createElement('span');
|
|
20
|
+
element.append(zeroWidthSpace);
|
|
21
|
+
try {
|
|
22
|
+
var shadow = zeroWidthSpace.attachShadow({ mode: 'closed' });
|
|
23
|
+
shadow.textContent = utils_1.ZERO_WIDTH_SPACE;
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
console.error(e);
|
|
27
|
+
}
|
|
28
|
+
return function () { return zeroWidthSpace.remove(); };
|
|
29
|
+
}, [zeroWidthSpaceRef.current]);
|
|
30
|
+
var enableFocusVisibleOnTab = react_1.useCallback(function (e) {
|
|
31
|
+
var root = e.currentTarget.getRootNode();
|
|
32
|
+
if (!focusVisible &&
|
|
33
|
+
e.key === 'Tab' &&
|
|
34
|
+
(utils_1.isDocument(root) || utils_1.isShadowRoot(root)) &&
|
|
35
|
+
root.activeElement === e.currentTarget) {
|
|
36
|
+
setFocusVisible(true);
|
|
37
|
+
}
|
|
38
|
+
onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(e);
|
|
39
|
+
}, [focusVisible, onKeyUp]);
|
|
40
|
+
var disableFocusVisible = react_1.useCallback(function (e) {
|
|
41
|
+
focusVisible && setFocusVisible(false);
|
|
42
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
43
|
+
}, [focusVisible, onBlur]);
|
|
44
|
+
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 " + viewBoxSize + " " + viewBoxSize, "aria-hidden": ariaHidden, tabIndex: tabIndex, onKeyUp: enableFocusVisibleOnTab, onBlur: disableFocusVisible }, rest), children));
|
|
26
45
|
if (align === 'center') {
|
|
27
|
-
return (react_1.default.createElement("span", {
|
|
46
|
+
return (react_1.default.createElement("span", { "aria-hidden": ariaHidden, style: tslib_1.__assign({ display: 'inline-flex', WebkitBoxAlign: 'center', alignItems: 'center' }, style) },
|
|
47
|
+
react_1.default.createElement("span", { ref: zeroWidthSpaceRef }),
|
|
48
|
+
icon));
|
|
28
49
|
}
|
|
29
50
|
return icon;
|
|
30
51
|
});
|
package/internal/utils.d.ts
CHANGED
|
@@ -19,3 +19,27 @@ export declare const isNonNullable: <T>(value: T) => value is NonNullable<T>;
|
|
|
19
19
|
* });
|
|
20
20
|
*/
|
|
21
21
|
export declare function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>): (value: any) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Character for center alignment.
|
|
24
|
+
*
|
|
25
|
+
* @see https://www.fileformat.info/info/unicode/char/200b/index.htm
|
|
26
|
+
*/
|
|
27
|
+
export declare const ZERO_WIDTH_SPACE: string;
|
|
28
|
+
/**
|
|
29
|
+
* Checks if the node is a Document.
|
|
30
|
+
*
|
|
31
|
+
* Suitable for use in same-origin iframes.
|
|
32
|
+
*
|
|
33
|
+
* @param {Node} node - The node to check.
|
|
34
|
+
* @returns {boolean} - True if the node is a Document, otherwise false.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isDocument(node: Node): node is Document;
|
|
37
|
+
/**
|
|
38
|
+
* Checks if the node is a ShadowRoot.
|
|
39
|
+
*
|
|
40
|
+
* Suitable for use in same-origin iframes.
|
|
41
|
+
*
|
|
42
|
+
* @param {Node} node - The node to check.
|
|
43
|
+
* @returns {boolean} - True if the node is a ShadowRoot, otherwise false.
|
|
44
|
+
*/
|
|
45
|
+
export declare function isShadowRoot(node: Node): node is ShadowRoot;
|
package/internal/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeRefs = exports.isNonNullable = void 0;
|
|
3
|
+
exports.isShadowRoot = exports.isDocument = exports.ZERO_WIDTH_SPACE = exports.mergeRefs = exports.isNonNullable = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Проверяет, не является ли переданный аргумент null или undefined и исключает типы null и undefined из типа аргумента
|
|
6
6
|
*
|
|
@@ -36,3 +36,33 @@ function mergeRefs(refs) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
exports.mergeRefs = mergeRefs;
|
|
39
|
+
/**
|
|
40
|
+
* Character for center alignment.
|
|
41
|
+
*
|
|
42
|
+
* @see https://www.fileformat.info/info/unicode/char/200b/index.htm
|
|
43
|
+
*/
|
|
44
|
+
exports.ZERO_WIDTH_SPACE = String.fromCharCode(0x200b);
|
|
45
|
+
/**
|
|
46
|
+
* Checks if the node is a Document.
|
|
47
|
+
*
|
|
48
|
+
* Suitable for use in same-origin iframes.
|
|
49
|
+
*
|
|
50
|
+
* @param {Node} node - The node to check.
|
|
51
|
+
* @returns {boolean} - True if the node is a Document, otherwise false.
|
|
52
|
+
*/
|
|
53
|
+
function isDocument(node) {
|
|
54
|
+
return node.nodeType === Node.DOCUMENT_NODE;
|
|
55
|
+
}
|
|
56
|
+
exports.isDocument = isDocument;
|
|
57
|
+
/**
|
|
58
|
+
* Checks if the node is a ShadowRoot.
|
|
59
|
+
*
|
|
60
|
+
* Suitable for use in same-origin iframes.
|
|
61
|
+
*
|
|
62
|
+
* @param {Node} node - The node to check.
|
|
63
|
+
* @returns {boolean} - True if the node is a ShadowRoot, otherwise false.
|
|
64
|
+
*/
|
|
65
|
+
function isShadowRoot(node) {
|
|
66
|
+
return node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && 'adoptedStyleSheets' in node;
|
|
67
|
+
}
|
|
68
|
+
exports.isShadowRoot = isShadowRoot;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CSSRules: readonly string[];
|
package/esm/internal/cssRules.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export var CSSRules = [
|
|
2
|
-
".ui-parking-icon-centered { \n display: -webkit-inline-box;\n display: inline-flex;\n -webkit-box-align: center;\n align-items: center; \n }",
|
|
3
|
-
".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 }",
|
|
4
|
-
".ui-parking-icon-base { \n outline: none; \n }",
|
|
5
|
-
".ui-parking-icon-base:focus-visible { \n outline: blue auto 5px; \n }",
|
|
6
|
-
];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { __spreadArrays } from "tslib";
|
|
2
|
-
import { CSSRules } from './cssRules';
|
|
3
|
-
function checkRuleExists(rootNodeStyles, cssText) {
|
|
4
|
-
return rootNodeStyles.some(function (cssRules) { return Array.from(cssRules).some(function (r) { return r.cssText === cssText; }); });
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Not attached element can return the root of the DOM tree it belongs to, or itself - HTMLElement, Text, etc
|
|
8
|
-
*/
|
|
9
|
-
function getSafeRootNode(element) {
|
|
10
|
-
var _a;
|
|
11
|
-
var rootNode = (_a = element.getRootNode) === null || _a === void 0 ? void 0 : _a.call(element);
|
|
12
|
-
return (rootNode instanceof Document || rootNode instanceof ShadowRoot ? rootNode : element.ownerDocument);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Whether the current browser supports `adoptedStyleSheets`.
|
|
16
|
-
* https://github.com/lit/lit-element/blob/master/src/lib/css-tag.ts#L14
|
|
17
|
-
*/
|
|
18
|
-
var supportsAdoptingStyleSheets = Boolean(typeof window !== 'undefined' &&
|
|
19
|
-
window.ShadowRoot &&
|
|
20
|
-
(window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&
|
|
21
|
-
'adoptedStyleSheets' in Document.prototype &&
|
|
22
|
-
'replace' in CSSStyleSheet.prototype);
|
|
23
|
-
export function injectCss(element) {
|
|
24
|
-
var _a;
|
|
25
|
-
var rootNode = getSafeRootNode(element);
|
|
26
|
-
if (supportsAdoptingStyleSheets) {
|
|
27
|
-
var currentWindow = element.ownerDocument.defaultView;
|
|
28
|
-
if (!currentWindow) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
var rootNodeStyles_1 = rootNode.adoptedStyleSheets.map(function (item) { return item.cssRules; });
|
|
32
|
-
var cssRulesStyleSheet_1 = new currentWindow.CSSStyleSheet();
|
|
33
|
-
CSSRules.forEach(function (rule) { return cssRulesStyleSheet_1.insertRule(rule); });
|
|
34
|
-
var filteredStyleSheet_1 = new currentWindow.CSSStyleSheet();
|
|
35
|
-
Array.from(cssRulesStyleSheet_1.cssRules).forEach(function (cssRule) {
|
|
36
|
-
if (!checkRuleExists(rootNodeStyles_1, cssRule.cssText)) {
|
|
37
|
-
filteredStyleSheet_1.insertRule(cssRule.cssText);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
if (filteredStyleSheet_1.cssRules.length > 0) {
|
|
41
|
-
try {
|
|
42
|
-
rootNode.adoptedStyleSheets.push(filteredStyleSheet_1);
|
|
43
|
-
}
|
|
44
|
-
catch (e) {
|
|
45
|
-
// fix for old chrome https://chromestatus.com/feature/5638996492288000 , but slow performance
|
|
46
|
-
rootNode.adoptedStyleSheets = __spreadArrays(rootNode.adoptedStyleSheets, [filteredStyleSheet_1]);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
var styleId = 'ui-parking-icons-style';
|
|
52
|
-
var isShadowRoot = !!rootNode.host;
|
|
53
|
-
var rootElement = isShadowRoot ? rootNode.firstElementChild : rootNode;
|
|
54
|
-
var hasInsertStyles = (_a = rootElement) === null || _a === void 0 ? void 0 : _a.querySelector("#" + styleId);
|
|
55
|
-
var elementForStyle = isShadowRoot ? rootElement : rootElement.getElementsByTagName('head')[0];
|
|
56
|
-
if (!hasInsertStyles) {
|
|
57
|
-
var style = element.ownerDocument.createElement('style');
|
|
58
|
-
style.id = styleId;
|
|
59
|
-
style.innerHTML = CSSRules.join('');
|
|
60
|
-
elementForStyle === null || elementForStyle === void 0 ? void 0 : elementForStyle.appendChild(style);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
package/internal/cssRules.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CSSRules: readonly string[];
|
package/internal/cssRules.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CSSRules = void 0;
|
|
4
|
-
exports.CSSRules = [
|
|
5
|
-
".ui-parking-icon-centered { \n display: -webkit-inline-box;\n display: inline-flex;\n -webkit-box-align: center;\n align-items: center; \n }",
|
|
6
|
-
".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 }",
|
|
7
|
-
".ui-parking-icon-base { \n outline: none; \n }",
|
|
8
|
-
".ui-parking-icon-base:focus-visible { \n outline: blue auto 5px; \n }",
|
|
9
|
-
];
|
package/internal/injectCss.d.ts
DELETED
package/internal/injectCss.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.injectCss = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var cssRules_1 = require("./cssRules");
|
|
6
|
-
function checkRuleExists(rootNodeStyles, cssText) {
|
|
7
|
-
return rootNodeStyles.some(function (cssRules) { return Array.from(cssRules).some(function (r) { return r.cssText === cssText; }); });
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Not attached element can return the root of the DOM tree it belongs to, or itself - HTMLElement, Text, etc
|
|
11
|
-
*/
|
|
12
|
-
function getSafeRootNode(element) {
|
|
13
|
-
var _a;
|
|
14
|
-
var rootNode = (_a = element.getRootNode) === null || _a === void 0 ? void 0 : _a.call(element);
|
|
15
|
-
return (rootNode instanceof Document || rootNode instanceof ShadowRoot ? rootNode : element.ownerDocument);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Whether the current browser supports `adoptedStyleSheets`.
|
|
19
|
-
* https://github.com/lit/lit-element/blob/master/src/lib/css-tag.ts#L14
|
|
20
|
-
*/
|
|
21
|
-
var supportsAdoptingStyleSheets = Boolean(typeof window !== 'undefined' &&
|
|
22
|
-
window.ShadowRoot &&
|
|
23
|
-
(window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&
|
|
24
|
-
'adoptedStyleSheets' in Document.prototype &&
|
|
25
|
-
'replace' in CSSStyleSheet.prototype);
|
|
26
|
-
function injectCss(element) {
|
|
27
|
-
var _a;
|
|
28
|
-
var rootNode = getSafeRootNode(element);
|
|
29
|
-
if (supportsAdoptingStyleSheets) {
|
|
30
|
-
var currentWindow = element.ownerDocument.defaultView;
|
|
31
|
-
if (!currentWindow) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
var rootNodeStyles_1 = rootNode.adoptedStyleSheets.map(function (item) { return item.cssRules; });
|
|
35
|
-
var cssRulesStyleSheet_1 = new currentWindow.CSSStyleSheet();
|
|
36
|
-
cssRules_1.CSSRules.forEach(function (rule) { return cssRulesStyleSheet_1.insertRule(rule); });
|
|
37
|
-
var filteredStyleSheet_1 = new currentWindow.CSSStyleSheet();
|
|
38
|
-
Array.from(cssRulesStyleSheet_1.cssRules).forEach(function (cssRule) {
|
|
39
|
-
if (!checkRuleExists(rootNodeStyles_1, cssRule.cssText)) {
|
|
40
|
-
filteredStyleSheet_1.insertRule(cssRule.cssText);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
if (filteredStyleSheet_1.cssRules.length > 0) {
|
|
44
|
-
try {
|
|
45
|
-
rootNode.adoptedStyleSheets.push(filteredStyleSheet_1);
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
// fix for old chrome https://chromestatus.com/feature/5638996492288000 , but slow performance
|
|
49
|
-
rootNode.adoptedStyleSheets = tslib_1.__spreadArrays(rootNode.adoptedStyleSheets, [filteredStyleSheet_1]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
var styleId = 'ui-parking-icons-style';
|
|
55
|
-
var isShadowRoot = !!rootNode.host;
|
|
56
|
-
var rootElement = isShadowRoot ? rootNode.firstElementChild : rootNode;
|
|
57
|
-
var hasInsertStyles = (_a = rootElement) === null || _a === void 0 ? void 0 : _a.querySelector("#" + styleId);
|
|
58
|
-
var elementForStyle = isShadowRoot ? rootElement : rootElement.getElementsByTagName('head')[0];
|
|
59
|
-
if (!hasInsertStyles) {
|
|
60
|
-
var style = element.ownerDocument.createElement('style');
|
|
61
|
-
style.id = styleId;
|
|
62
|
-
style.innerHTML = cssRules_1.CSSRules.join('');
|
|
63
|
-
elementForStyle === null || elementForStyle === void 0 ? void 0 : elementForStyle.appendChild(style);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.injectCss = injectCss;
|