@yugami/ui-icons 0.1.0 → 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.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
@@ -4,14 +4,18 @@ import {
|
|
|
4
4
|
DynamicIcon,
|
|
5
5
|
dynamicIconImports,
|
|
6
6
|
iconNames
|
|
7
|
-
} from "lucide-react/dynamic";
|
|
7
|
+
} from "lucide-react/dynamic.js";
|
|
8
8
|
|
|
9
9
|
// src/icon.tsx
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
var Icon = React.forwardRef(function Icon2({ icon: IconComponent, decorative = true, ...props }, ref) {
|
|
13
|
-
const
|
|
14
|
-
|
|
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
|
+
});
|
|
15
19
|
});
|
|
16
20
|
export {
|
|
17
21
|
DynamicIcon,
|
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
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugami/ui-icons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"react": ">=
|
|
14
|
-
"react-dom": ">=
|
|
13
|
+
"react": ">=16",
|
|
14
|
+
"react-dom": ">=16"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/react": "^18",
|