@payfit/unity-icons 2.46.15 → 2.46.17
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/package.json +3 -3
- package/dist/esm/components/icon/Icon.d.ts +0 -262
- package/dist/esm/components/icon/Icon.figma.d.ts +0 -14
- package/dist/esm/components/icon/Icon.js +0 -113
- package/dist/esm/components/icon/parts/IconSprite.d.ts +0 -13
- package/dist/esm/components/icon/parts/IconSprite.js +0 -10
- package/dist/esm/components/icons-provider/UnityIconsProvider.d.ts +0 -23
- package/dist/esm/components/icons-provider/UnityIconsProvider.js +0 -39
- package/dist/esm/docs/blocks/Cards.d.ts +0 -18
- package/dist/esm/docs/blocks/IconGallery.d.ts +0 -4
- package/dist/esm/generated/index.d.ts +0 -2
- package/dist/esm/generated/index.js +0 -4
- package/dist/esm/generated/sprite.svg.js +0 -4
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.js +0 -11
- package/dist/esm/utils.d.ts +0 -6
- package/dist/esm/utils.js +0 -32
package/dist/esm/index.d.ts
DELETED
package/dist/esm/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { iconNames as e } from "./generated/index.js";
|
|
2
|
-
import { Icon as n } from "./components/icon/Icon.js";
|
|
3
|
-
import { IconSprite as m } from "./components/icon/parts/IconSprite.js";
|
|
4
|
-
import { UnityIconsProvider as x, useIconsContext as f } from "./components/icons-provider/UnityIconsProvider.js";
|
|
5
|
-
export {
|
|
6
|
-
n as Icon,
|
|
7
|
-
m as IconSprite,
|
|
8
|
-
x as UnityIconsProvider,
|
|
9
|
-
e as iconNames,
|
|
10
|
-
f as useIconsContext
|
|
11
|
-
};
|
package/dist/esm/utils.d.ts
DELETED
package/dist/esm/utils.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import i from "./generated/sprite.svg.js";
|
|
2
|
-
const o = i;
|
|
3
|
-
class n extends Error {
|
|
4
|
-
constructor(r) {
|
|
5
|
-
super(r), this.name = "SpriteInjectionError";
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
let t = !1;
|
|
9
|
-
function c() {
|
|
10
|
-
if (typeof document > "u")
|
|
11
|
-
throw new n(
|
|
12
|
-
"Cannot inject sprite in non-browser environment"
|
|
13
|
-
);
|
|
14
|
-
if (!t)
|
|
15
|
-
try {
|
|
16
|
-
const e = document.createElement("div");
|
|
17
|
-
e.setAttribute("data-testid", "unity-sprite-container"), e.style.display = "none", e.innerHTML = o, document.body.appendChild(e), t = !0;
|
|
18
|
-
} catch (e) {
|
|
19
|
-
throw new n(
|
|
20
|
-
`Failed to inject sprite: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function d() {
|
|
25
|
-
return typeof document < "u" && t;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
n as SpriteInjectionError,
|
|
29
|
-
c as injectSprite,
|
|
30
|
-
d as isSpriteInDocument,
|
|
31
|
-
o as spriteContent
|
|
32
|
-
};
|