@yugami/ui-icons 0.1.0 → 0.1.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.
@@ -0,0 +1,13 @@
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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LucideProps, LucideIcon } from 'lucide-react';
2
2
  export * from 'lucide-react';
3
- export { DynamicIcon, IconName, dynamicIconImports, iconNames } from 'lucide-react/dynamic';
3
+ export { DynamicIcon, IconName, dynamicIconImports, iconNames } from 'lucide-react/dynamic.js';
4
4
  import * as React from 'react';
5
5
 
6
6
  type IconComponent = LucideIcon;
package/dist/index.js CHANGED
@@ -1,22 +1,62 @@
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
+
1
31
  // src/index.ts
2
- export * from "lucide-react";
3
- import {
4
- DynamicIcon,
5
- dynamicIconImports,
6
- iconNames
7
- } from "lucide-react/dynamic";
32
+ var index_exports = {};
33
+ __export(index_exports, {
34
+ DynamicIcon: () => import_dynamic.DynamicIcon,
35
+ Icon: () => Icon,
36
+ dynamicIconImports: () => import_dynamic.dynamicIconImports,
37
+ iconNames: () => import_dynamic.iconNames
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");
8
42
 
9
43
  // src/icon.tsx
10
- import * as React from "react";
11
- import { jsx } from "react/jsx-runtime";
44
+ var React = __toESM(require("react"));
12
45
  var Icon = React.forwardRef(function Icon2({ icon: IconComponent, decorative = true, ...props }, ref) {
13
- const accessibilityProps = decorative && props["aria-label"] == null && props["aria-labelledby"] == null ? { "aria-hidden": true, focusable: false } : void 0;
14
- return /* @__PURE__ */ jsx(IconComponent, { ref, ...accessibilityProps, ...props });
46
+ const ext = props;
47
+ const accessibilityProps = decorative && ext["aria-label"] == null && ext["aria-labelledby"] == null ? { "aria-hidden": true, focusable: false } : void 0;
48
+ return React.createElement(IconComponent, {
49
+ ref,
50
+ ...accessibilityProps,
51
+ ...props
52
+ });
15
53
  });
16
- export {
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
17
56
  DynamicIcon,
18
57
  Icon,
19
58
  dynamicIconImports,
20
- iconNames
21
- };
59
+ iconNames,
60
+ ...require("lucide-react")
61
+ });
22
62
  //# 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\";\nexport type { IconName } from \"lucide-react/dynamic\";\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 accessibilityProps =\n decorative &&\n props[\"aria-label\"] == null &&\n props[\"aria-labelledby\"] == null\n ? { \"aria-hidden\": true, focusable: false }\n : undefined;\n\n return <IconComponent ref={ref} {...accessibilityProps} {...props} />;\n});\n\nexport { Icon };\n"],"mappings":";AAAA,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACLP,YAAY,WAAW;AAqBd;AAXT,IAAM,OAAa,iBAAqC,SAASA,MAC/D,EAAE,MAAM,eAAe,aAAa,MAAM,GAAG,MAAM,GACnD,KACA;AACA,QAAM,qBACJ,cACA,MAAM,YAAY,KAAK,QACvB,MAAM,iBAAiB,KAAK,OACxB,EAAE,eAAe,MAAM,WAAW,MAAM,IACxC;AAEN,SAAO,oBAAC,iBAAc,KAAW,GAAG,oBAAqB,GAAG,OAAO;AACrE,CAAC;","names":["Icon"]}
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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,yBAAd;AACA,qBAIO;;;ACLP,YAAuB;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/dist/index.mjs ADDED
@@ -0,0 +1,26 @@
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
@@ -0,0 +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":";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,17 +1,23 @@
1
1
  {
2
2
  "name": "@yugami/ui-icons",
3
- "version": "0.1.0",
4
- "type": "module",
3
+ "version": "0.1.1",
5
4
  "main": "dist/index.js",
6
- "module": "dist/index.js",
5
+ "module": "dist/index.mjs",
7
6
  "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
+ },
8
14
  "files": [
9
15
  "dist"
10
16
  ],
11
17
  "sideEffects": false,
12
18
  "peerDependencies": {
13
- "react": ">=18",
14
- "react-dom": ">=18"
19
+ "react": ">=16",
20
+ "react-dom": ">=16"
15
21
  },
16
22
  "devDependencies": {
17
23
  "@types/react": "^18",