@itera-web/react-ui-svg 1.20.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/LICENSE.md ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1 @@
1
+ ### [使用文档](http://iterative.keyboardecho.com/)
package/es/Svg.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface ISvgProps {
3
+ name?: string;
4
+ color?: string;
5
+ size?: number;
6
+ width?: number;
7
+ height?: number;
8
+ className?: string;
9
+ onClick?: () => void;
10
+ }
11
+ export declare const Svg: React.NamedExoticComponent<ISvgProps>;
package/es/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { Svg, type ISvgProps } from './Svg';
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ import*as e from"react";import*as o from"@itera-web/utils-cn";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)},n={};t.d(n,{n:()=>c});const r=(e=>{var o={};return t.d(o,e),o})({default:()=>e.default,memo:()=>e.memo});const i=(e=>{var o={};return t.d(o,e),o})({cn:()=>o.cn});var a=function(e){var o=e.name,t=void 0===o?"":o,n=e.color,a=void 0===n?"text-font":n,c=e.size,l=void 0===c?16:c,m=e.width,d=void 0===m?16:m,v=e.height,f=void 0===v?16:v,s=e.className,u=void 0===s?"":s,p=e.onClick,h=void 0===p?function(){}:p;return r.default.createElement("svg",{className:(0,i.cn)("w-[1em] h-[1em] overflow-hidden align-[-0.25em] outline-0 fill-current",u),onClick:h,style:{color:a,fontSize:l+"px",minWidth:l||d+"px",minHeight:l||f+"px"}},r.default.createElement("use",{xlinkHref:"#icon-".concat(t)}))},c=(0,r.memo)(a),l=n.n;export{l as Svg};
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@itera-web/react-ui-svg",
3
+ "description": "Svg容器",
4
+ "version": "1.20.0",
5
+ "main": "es/index.js",
6
+ "types": "es/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "build": "itera-cli package",
13
+ "up": "npm publish"
14
+ },
15
+ "dependencies": {
16
+ "@itera-web/utils-cn": "^1.20.0"
17
+ },
18
+ "peerDependencies": {
19
+ "react": ">=17.0.0",
20
+ "react-dom": ">=17.0.0"
21
+ },
22
+ "devDependencies": {
23
+ "@itera-web/cli": "^1.1.45"
24
+ },
25
+ "gitHead": "691b2592db8668e5d52c9712bb906484b92cb79b"
26
+ }