@yugami/ui-icons 0.1.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/dist/index.d.ts +13 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -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';
|
|
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.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "lucide-react";
|
|
3
|
+
import {
|
|
4
|
+
DynamicIcon,
|
|
5
|
+
dynamicIconImports,
|
|
6
|
+
iconNames
|
|
7
|
+
} from "lucide-react/dynamic";
|
|
8
|
+
|
|
9
|
+
// src/icon.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
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 });
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
DynamicIcon,
|
|
18
|
+
Icon,
|
|
19
|
+
dynamicIconImports,
|
|
20
|
+
iconNames
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.js.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\";\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"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yugami/ui-icons",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"react": ">=18",
|
|
14
|
+
"react-dom": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "^18",
|
|
18
|
+
"@types/react-dom": "^18",
|
|
19
|
+
"tsup": "^8",
|
|
20
|
+
"typescript": "^5"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"lucide-react": "^1.8.0"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"dev": "tsup --watch",
|
|
28
|
+
"release": "pnpm run build && pnpm publish --access public"
|
|
29
|
+
}
|
|
30
|
+
}
|