@yugami/ui-icons 0.1.1 → 0.1.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/dist/index.js +10 -46
- package/dist/index.js.map +1 -1
- package/package.json +3 -9
- package/dist/index.d.mts +0 -13
- package/dist/index.mjs +0 -26
- package/dist/index.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,47 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
1
|
// src/index.ts
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
DynamicIcon
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(index_exports);
|
|
40
|
-
__reExport(index_exports, require("lucide-react"), module.exports);
|
|
41
|
-
var import_dynamic = require("lucide-react/dynamic.js");
|
|
2
|
+
export * from "lucide-react";
|
|
3
|
+
import {
|
|
4
|
+
DynamicIcon,
|
|
5
|
+
dynamicIconImports,
|
|
6
|
+
iconNames
|
|
7
|
+
} from "lucide-react/dynamic.js";
|
|
42
8
|
|
|
43
9
|
// src/icon.tsx
|
|
44
|
-
|
|
10
|
+
import * as React from "react";
|
|
45
11
|
var Icon = React.forwardRef(function Icon2({ icon: IconComponent, decorative = true, ...props }, ref) {
|
|
46
12
|
const ext = props;
|
|
47
13
|
const accessibilityProps = decorative && ext["aria-label"] == null && ext["aria-labelledby"] == null ? { "aria-hidden": true, focusable: false } : void 0;
|
|
@@ -51,12 +17,10 @@ var Icon = React.forwardRef(function Icon2({ icon: IconComponent, decorative = t
|
|
|
51
17
|
...props
|
|
52
18
|
});
|
|
53
19
|
});
|
|
54
|
-
|
|
55
|
-
0 && (module.exports = {
|
|
20
|
+
export {
|
|
56
21
|
DynamicIcon,
|
|
57
22
|
Icon,
|
|
58
23
|
dynamicIconImports,
|
|
59
|
-
iconNames
|
|
60
|
-
|
|
61
|
-
});
|
|
24
|
+
iconNames
|
|
25
|
+
};
|
|
62
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/icon.tsx"],"sourcesContent":["export * from \"lucide-react\";\nexport {\n DynamicIcon,\n dynamicIconImports,\n iconNames,\n} from \"lucide-react/dynamic.js\";\nexport type { IconName } from \"lucide-react/dynamic.js\";\n\nexport { Icon } from \"./icon\";\nexport type { IconComponent, IconProps } from \"./icon\";\n","import * as React from \"react\";\nimport type { LucideIcon, LucideProps } from \"lucide-react\";\n\nexport type IconComponent = LucideIcon;\n\nexport interface IconProps extends LucideProps {\n icon: LucideIcon;\n decorative?: boolean;\n}\n\nconst Icon = React.forwardRef<SVGSVGElement, IconProps>(function Icon(\n { icon: IconComponent, decorative = true, ...props },\n ref,\n) {\n const ext = props as Record<string, unknown>;\n const accessibilityProps =\n decorative &&\n ext[\"aria-label\"] == null &&\n ext[\"aria-labelledby\"] == null\n ? { \"aria-hidden\": true, focusable: false }\n : undefined;\n\n return React.createElement(IconComponent, {\n ref,\n ...accessibilityProps,\n ...props,\n });\n});\n\nexport { Icon };\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/icon.tsx"],"sourcesContent":["export * from \"lucide-react\";\nexport {\n DynamicIcon,\n dynamicIconImports,\n iconNames,\n} from \"lucide-react/dynamic.js\";\nexport type { IconName } from \"lucide-react/dynamic.js\";\n\nexport { Icon } from \"./icon\";\nexport type { IconComponent, IconProps } from \"./icon\";\n","import * as React from \"react\";\nimport type { LucideIcon, LucideProps } from \"lucide-react\";\n\nexport type IconComponent = LucideIcon;\n\nexport interface IconProps extends LucideProps {\n icon: LucideIcon;\n decorative?: boolean;\n}\n\nconst Icon = React.forwardRef<SVGSVGElement, IconProps>(function Icon(\n { icon: IconComponent, decorative = true, ...props },\n ref,\n) {\n const ext = props as Record<string, unknown>;\n const accessibilityProps =\n decorative &&\n ext[\"aria-label\"] == null &&\n ext[\"aria-labelledby\"] == null\n ? { \"aria-hidden\": true, focusable: false }\n : undefined;\n\n return React.createElement(IconComponent, {\n ref,\n ...accessibilityProps,\n ...props,\n });\n});\n\nexport { Icon };\n"],"mappings":";AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACLP,YAAY,WAAW;AAUvB,IAAM,OAAa,iBAAqC,SAASA,MAC/D,EAAE,MAAM,eAAe,aAAa,MAAM,GAAG,MAAM,GACnD,KACA;AACA,QAAM,MAAM;AACZ,QAAM,qBACJ,cACA,IAAI,YAAY,KAAK,QACrB,IAAI,iBAAiB,KAAK,OACtB,EAAE,eAAe,MAAM,WAAW,MAAM,IACxC;AAEN,SAAa,oBAAc,eAAe;AAAA,IACxC;AAAA,IACA,GAAG;AAAA,IACH,GAAG;AAAA,EACL,CAAC;AACH,CAAC;","names":["Icon"]}
|
package/package.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugami/ui-icons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
|
-
"module": "dist/index.
|
|
6
|
+
"module": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
8
|
"files": [
|
|
15
9
|
"dist"
|
|
16
10
|
],
|
package/dist/index.d.mts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
2
|
-
export * from 'lucide-react';
|
|
3
|
-
export { DynamicIcon, IconName, dynamicIconImports, iconNames } from 'lucide-react/dynamic.js';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
type IconComponent = LucideIcon;
|
|
7
|
-
interface IconProps extends LucideProps {
|
|
8
|
-
icon: LucideIcon;
|
|
9
|
-
decorative?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const Icon: React.ForwardRefExoticComponent<Omit<IconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
12
|
-
|
|
13
|
-
export { Icon, type IconComponent, type IconProps };
|
package/dist/index.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
export * from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
-
DynamicIcon,
|
|
5
|
-
dynamicIconImports,
|
|
6
|
-
iconNames
|
|
7
|
-
} from "lucide-react/dynamic.js";
|
|
8
|
-
|
|
9
|
-
// src/icon.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
var Icon = React.forwardRef(function Icon2({ icon: IconComponent, decorative = true, ...props }, ref) {
|
|
12
|
-
const ext = props;
|
|
13
|
-
const accessibilityProps = decorative && ext["aria-label"] == null && ext["aria-labelledby"] == null ? { "aria-hidden": true, focusable: false } : void 0;
|
|
14
|
-
return React.createElement(IconComponent, {
|
|
15
|
-
ref,
|
|
16
|
-
...accessibilityProps,
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
DynamicIcon,
|
|
22
|
-
Icon,
|
|
23
|
-
dynamicIconImports,
|
|
24
|
-
iconNames
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/icon.tsx"],"sourcesContent":["export * from \"lucide-react\";\nexport {\n DynamicIcon,\n dynamicIconImports,\n iconNames,\n} from \"lucide-react/dynamic.js\";\nexport type { IconName } from \"lucide-react/dynamic.js\";\n\nexport { Icon } from \"./icon\";\nexport type { IconComponent, IconProps } from \"./icon\";\n","import * as React from \"react\";\nimport type { LucideIcon, LucideProps } from \"lucide-react\";\n\nexport type IconComponent = LucideIcon;\n\nexport interface IconProps extends LucideProps {\n icon: LucideIcon;\n decorative?: boolean;\n}\n\nconst Icon = React.forwardRef<SVGSVGElement, IconProps>(function Icon(\n { icon: IconComponent, decorative = true, ...props },\n ref,\n) {\n const ext = props as Record<string, unknown>;\n const accessibilityProps =\n decorative &&\n ext[\"aria-label\"] == null &&\n ext[\"aria-labelledby\"] == null\n ? { \"aria-hidden\": true, focusable: false }\n : undefined;\n\n return React.createElement(IconComponent, {\n ref,\n ...accessibilityProps,\n ...props,\n });\n});\n\nexport { Icon };\n"],"mappings":";AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACLP,YAAY,WAAW;AAUvB,IAAM,OAAa,iBAAqC,SAASA,MAC/D,EAAE,MAAM,eAAe,aAAa,MAAM,GAAG,MAAM,GACnD,KACA;AACA,QAAM,MAAM;AACZ,QAAM,qBACJ,cACA,IAAI,YAAY,KAAK,QACrB,IAAI,iBAAiB,KAAK,OACtB,EAAE,eAAe,MAAM,WAAW,MAAM,IACxC;AAEN,SAAa,oBAAc,eAAe;AAAA,IACxC;AAAA,IACA,GAAG;AAAA,IACH,GAAG;AAAA,EACL,CAAC;AACH,CAAC;","names":["Icon"]}
|