react-icons-sprite 0.6.0 → 0.6.1
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/dist/collector-bRP-BMAG.mjs +7 -0
- package/dist/icon-DnFCZ2O6.d.mts +12 -0
- package/dist/icon-xNGJiihA.mjs +17 -0
- package/dist/icon.d.mts +1 -11
- package/dist/icon.mjs +1 -15
- package/dist/index.d.mts +3 -1
- package/dist/index.mjs +3 -2
- package/dist/vite/plugin.mjs +2 -2
- package/dist/webpack/loader.mjs +2 -2
- package/dist/webpack/plugin.mjs +3 -3
- package/package.json +1 -1
- package/dist/collector-DrPR8kXO.mjs +0 -7
- /package/dist/{core-BoovxbBC.mjs → core-vM5V7qZ5.mjs} +0 -0
- /package/dist/{src-Bf4uZBwp.mjs → src-BY4jO8Hs.mjs} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX, SVGProps } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/icon.d.ts
|
|
4
|
+
type IconProps = SVGProps<SVGSVGElement> & {
|
|
5
|
+
iconId: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ReactIconsSpriteIcon: ({
|
|
8
|
+
iconId,
|
|
9
|
+
...rest
|
|
10
|
+
}: IconProps) => JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ReactIconsSpriteIcon as n, IconProps as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/icon.tsx
|
|
4
|
+
const ReactIconsSpriteIcon = ({ iconId, ...rest }) => {
|
|
5
|
+
const iconHref = `__SPRITE_URL_PLACEHOLDER__#${iconId}`;
|
|
6
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
7
|
+
height: "1em",
|
|
8
|
+
width: "1em",
|
|
9
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
...rest,
|
|
12
|
+
children: /* @__PURE__ */ jsx("use", { href: iconHref })
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ReactIconsSpriteIcon as t };
|
package/dist/icon.d.mts
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/icon.d.ts
|
|
4
|
-
type IconProps = SVGProps<SVGSVGElement> & {
|
|
5
|
-
iconId: string;
|
|
6
|
-
};
|
|
7
|
-
declare const ReactIconsSpriteIcon: ({
|
|
8
|
-
iconId,
|
|
9
|
-
...rest
|
|
10
|
-
}: IconProps) => JSX.Element;
|
|
11
|
-
//#endregion
|
|
1
|
+
import { n as ReactIconsSpriteIcon, t as IconProps } from "./icon-DnFCZ2O6.mjs";
|
|
12
2
|
export { IconProps, ReactIconsSpriteIcon };
|
package/dist/icon.mjs
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as ReactIconsSpriteIcon } from "./icon-xNGJiihA.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/icon.tsx
|
|
4
|
-
const ReactIconsSpriteIcon = ({ iconId, ...rest }) => {
|
|
5
|
-
const iconHref = `__SPRITE_URL_PLACEHOLDER__#${iconId}`;
|
|
6
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
7
|
-
height: "1em",
|
|
8
|
-
width: "1em",
|
|
9
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
...rest,
|
|
12
|
-
children: /* @__PURE__ */ jsx("use", { href: iconHref })
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
3
|
export { ReactIconsSpriteIcon };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { n as ReactIconsSpriteIcon } from "./icon-DnFCZ2O6.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/index.d.ts
|
|
2
4
|
declare const REACT_ICONS_SPRITE_URL_PLACEHOLDER = "__SPRITE_URL_PLACEHOLDER__";
|
|
3
5
|
//#endregion
|
|
4
|
-
export { REACT_ICONS_SPRITE_URL_PLACEHOLDER };
|
|
6
|
+
export { REACT_ICONS_SPRITE_URL_PLACEHOLDER, ReactIconsSpriteIcon };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as ReactIconsSpriteIcon } from "./icon-xNGJiihA.mjs";
|
|
2
|
+
import { t as REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "./src-BY4jO8Hs.mjs";
|
|
2
3
|
|
|
3
|
-
export { REACT_ICONS_SPRITE_URL_PLACEHOLDER };
|
|
4
|
+
export { REACT_ICONS_SPRITE_URL_PLACEHOLDER, ReactIconsSpriteIcon };
|
package/dist/vite/plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../src-
|
|
2
|
-
import { i as transformModule, n as buildSprite, r as createCollector, t as DEFAULT_ICON_SOURCES } from "../core-
|
|
1
|
+
import { t as REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../src-BY4jO8Hs.mjs";
|
|
2
|
+
import { i as transformModule, n as buildSprite, r as createCollector, t as DEFAULT_ICON_SOURCES } from "../core-vM5V7qZ5.mjs";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/vite/plugin.ts
|
package/dist/webpack/loader.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as transformModule } from "../core-
|
|
2
|
-
import { t as collector } from "../collector-
|
|
1
|
+
import { i as transformModule } from "../core-vM5V7qZ5.mjs";
|
|
2
|
+
import { t as collector } from "../collector-bRP-BMAG.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack/loader.ts
|
|
5
5
|
const reactIconsSpriteLoader = async function(source) {
|
package/dist/webpack/plugin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../src-
|
|
2
|
-
import { n as buildSprite } from "../core-
|
|
3
|
-
import { t as collector } from "../collector-
|
|
1
|
+
import { t as REACT_ICONS_SPRITE_URL_PLACEHOLDER } from "../src-BY4jO8Hs.mjs";
|
|
2
|
+
import { n as buildSprite } from "../core-vM5V7qZ5.mjs";
|
|
3
|
+
import { t as collector } from "../collector-bRP-BMAG.mjs";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
|
|
6
6
|
//#region src/webpack/plugin.ts
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|