@sunzi/icon 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/assets/jsx-runtime-6304d870.js +10 -0
- package/dist/assets/jsx-runtime-6304d870.js.map +1 -0
- package/dist/made/index.es.js +2 -0
- package/dist/made/index.es.js.map +1 -0
- package/dist/test/index.es.js +2 -0
- package/dist/test/index.es.js.map +1 -0
- package/manifest.json +9 -0
- package/package.json +51 -0
- package/src/made/arrow/icon-left.tsx +34 -0
- package/src/made/arrow/icon-right.tsx +34 -0
- package/src/made/arrow/icon-up.tsx +34 -0
- package/src/made/index.json +7 -0
- package/src/made/index.tsx +3 -0
- package/src/test/arrow/icon-left.tsx +34 -0
- package/src/test/arrow/icon-right.tsx +34 -0
- package/src/test/arrow/icon-up.tsx +34 -0
- package/src/test/index.json +7 -0
- package/src/test/index.tsx +3 -0
- package/src/types.tsx +6 -0
- package/types/made/arrow/icon-left.d.ts +3 -0
- package/types/made/arrow/icon-right.d.ts +3 -0
- package/types/made/arrow/icon-up.d.ts +3 -0
- package/types/made/index.d.ts +3 -0
- package/types/test/arrow/icon-left.d.ts +3 -0
- package/types/test/arrow/icon-right.d.ts +3 -0
- package/types/test/arrow/icon-up.d.ts +3 -0
- package/types/test/index.d.ts +3 -0
- package/types/types.d.ts +5 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import u from"react";var f={},l={get exports(){return f},set exports(t){f=t}},n={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var m=u,x=Symbol.for("react.element"),y=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,v=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(t,r,p){var e,o={},s=null,_=null;p!==void 0&&(s=""+p),r.key!==void 0&&(s=""+r.key),r.ref!==void 0&&(_=r.ref);for(e in r)c.call(r,e)&&!a.hasOwnProperty(e)&&(o[e]=r[e]);if(t&&t.defaultProps)for(e in r=t.defaultProps,r)o[e]===void 0&&(o[e]=r[e]);return{$$typeof:x,type:t,key:s,ref:_,props:o,_owner:v.current}}n.Fragment=y;n.jsx=i;n.jsxs=i;(function(t){t.exports=n})(l);const j=f.jsx;export{j};
|
|
10
|
+
//# sourceMappingURL=jsx-runtime-6304d870.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime-6304d870.js","sources":["../../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min","module"],"mappings":";;;;;;;;GASa,IAAIA,EAAEC,EAAiBC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,UAAU,eAAeC,EAAEL,EAAE,mDAAmD,kBAAkBM,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EAClP,SAASC,EAAEC,EAAEC,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAE,GAAGC,EAAE,KAAKC,EAAE,KAAcJ,IAAT,SAAaG,EAAE,GAAGH,GAAYD,EAAE,MAAX,SAAiBI,EAAE,GAAGJ,EAAE,KAAcA,EAAE,MAAX,SAAiBK,EAAEL,EAAE,KAAK,IAAIE,KAAKF,EAAEL,EAAE,KAAKK,EAAEE,CAAC,GAAG,CAACL,EAAE,eAAeK,CAAC,IAAIC,EAAED,CAAC,EAAEF,EAAEE,CAAC,GAAG,GAAGH,GAAGA,EAAE,aAAa,IAAIG,KAAKF,EAAED,EAAE,aAAaC,EAAWG,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEF,EAAEE,CAAC,GAAG,MAAM,CAAC,SAAST,EAAE,KAAKM,EAAE,IAAIK,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOP,EAAE,OAAO,CAAC,YAAkBF,EAAaY,EAAA,IAACR,EAAEQ,EAAA,KAAaR,eCPxWS,EAAA,QAAiBf"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as n}from"../assets/jsx-runtime-6304d870.js";import{forwardRef as c}from"react";const i=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-right`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});i.displayName="IconRight";const s=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-left`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});s.displayName="IconLeft";const a=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-up`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});a.displayName="IconUp";export{s as IconLeft,i as IconRight,a as IconUp};
|
|
2
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/made/arrow/icon-right.tsx","../../src/made/arrow/icon-left.tsx","../../src/made/arrow/icon-up.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconRight = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-right`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconRight.displayName = \"IconRight\";\n\nexport default IconRight;\n","import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconLeft = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-left`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconLeft.displayName = \"IconLeft\";\n\nexport default IconLeft;\n","import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconUp = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-up`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconUp.displayName = \"IconUp\";\n\nexport default IconUp;\n"],"names":["IconRight","forwardRef","color","props","forwardedRef","className","jsx","IconLeft","IconUp"],"mappings":"yFAGO,MAAMA,EAAYC,EACvB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,kCAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,6VACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAF,EAAU,YAAc,YC5BjB,MAAMO,EAAWN,EACtB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,iCAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,yWACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAK,EAAS,YAAc,WC5BhB,MAAMC,EAASP,EACpB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,+BAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,yWACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAM,EAAO,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{j as n}from"../assets/jsx-runtime-6304d870.js";import{forwardRef as c}from"react";const i=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-right`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});i.displayName="IconRight";const s=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-left`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});s.displayName="IconLeft";const a=c(({color:t="currentColor",...e},o)=>{const{className:l}=e;return e={...e,className:`${l?l+" ":""}test-icon test-icon-icon-up`},n("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:o,children:n("path",{d:"M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z",fill:t,fillRule:"evenodd",clipRule:"evenodd"})})});a.displayName="IconUp";export{s as IconLeft,i as IconRight,a as IconUp};
|
|
2
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/test/arrow/icon-right.tsx","../../src/test/arrow/icon-left.tsx","../../src/test/arrow/icon-up.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconRight = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-right`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconRight.displayName = \"IconRight\";\n\nexport default IconRight;\n","import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconLeft = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-left`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconLeft.displayName = \"IconLeft\";\n\nexport default IconLeft;\n","import { forwardRef } from \"react\";\nimport type { IconProps } from \"@/types\";\n\nexport const IconUp = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"currentColor\", ...props }, forwardedRef) => {\n const { className } = props;\n props = {\n ...props,\n className: `${\n className ? className + \" \" : \"\"\n }test-icon test-icon-icon-up`,\n };\n return (\n <svg\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n ref={forwardedRef}\n >\n <path\n d=\"M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z\"\n fill={color}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n }\n);\n\nIconUp.displayName = \"IconUp\";\n\nexport default IconUp;\n"],"names":["IconRight","forwardRef","color","props","forwardedRef","className","jsx","IconLeft","IconUp"],"mappings":"yFAGO,MAAMA,EAAYC,EACvB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,kCAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,6VACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAF,EAAU,YAAc,YC5BjB,MAAMO,EAAWN,EACtB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,iCAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,yWACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAK,EAAS,YAAc,WC5BhB,MAAMC,EAASP,EACpB,CAAC,CAAE,MAAAC,EAAQ,eAAgB,GAAGC,CAAA,EAASC,IAAiB,CAChD,KAAA,CAAE,UAAAC,CAAc,EAAAF,EACd,OAAAA,EAAA,CACN,GAAGA,EACH,UAAW,GACTE,EAAYA,EAAY,IAAM,+BAAA,EAIhCC,EAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACL,GAAGH,EACJ,IAAKC,EAEL,SAAAE,EAAC,OAAA,CACC,EAAE,yWACF,KAAMJ,EACN,SAAS,UACT,SAAS,SAAA,CACX,CAAA,CAAA,CAGN,CACF,EAEAM,EAAO,YAAc"}
|
package/manifest.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sunzi/icon",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React Icon Set",
|
|
5
|
+
"types": "types",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"manifest.json",
|
|
9
|
+
"src",
|
|
10
|
+
"types"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"preinstall": "npx only-allow pnpm",
|
|
14
|
+
"postinstall": "pnpm generate-icon:test && pnpm build",
|
|
15
|
+
"generate-icon:test": "generate-icon --file=uzP7XhOZK6tN47Mmd3YQbM --folder=src/test --prefixCls=test --gitDiff=false",
|
|
16
|
+
"generate-icon:made": "generate-icon --file=uzP7XhOZK6tN47Mmd3YQbM --folder=src/made --prefixCls=test --gitDiff=false",
|
|
17
|
+
"build": "rimraf dist && rimraf types && vite build",
|
|
18
|
+
"prepublishOnly": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"icon",
|
|
22
|
+
"react"
|
|
23
|
+
],
|
|
24
|
+
"author": "lynn1286 <lynn1286@126.com>",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"react": "18.2.0",
|
|
27
|
+
"react-dom": "^18.2.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/react": "^18.0.26",
|
|
31
|
+
"@types/react-dom": "^18.0.10",
|
|
32
|
+
"@vitejs/plugin-react": "^3.0.1",
|
|
33
|
+
"@sunzi/generate-icon": "workspace:^0.1.0",
|
|
34
|
+
"typescript": "4.9.4",
|
|
35
|
+
"vite": "^4.0.4",
|
|
36
|
+
"vite-plugin-dts": "^1.7.1"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=17.0.0"
|
|
40
|
+
},
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": "./dist/test/index.es.js",
|
|
44
|
+
"types": "./types/test/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./test": {
|
|
47
|
+
"import": "./dist/test/index.es.js",
|
|
48
|
+
"types": "./types/test/index.d.ts"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconLeft = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-left`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconLeft.displayName = "IconLeft";
|
|
33
|
+
|
|
34
|
+
export default IconLeft;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconRight = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-right`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconRight.displayName = "IconRight";
|
|
33
|
+
|
|
34
|
+
export default IconRight;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconUp = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-up`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconUp.displayName = "IconUp";
|
|
33
|
+
|
|
34
|
+
export default IconUp;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconLeft = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-left`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M12.4906 5.23017C12.7777 5.52875 12.7684 6.00353 12.4698 6.29063L8.53203 10L12.4698 13.7094C12.7684 13.9965 12.7777 14.4713 12.4906 14.7698C12.2035 15.0684 11.7287 15.0777 11.4301 14.7906L6.93012 10.5406C6.78306 10.3992 6.69995 10.204 6.69995 10C6.69995 9.79599 6.78306 9.60078 6.93012 9.45938L11.4301 5.20938C11.7287 4.92228 12.2035 4.93159 12.4906 5.23017Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconLeft.displayName = "IconLeft";
|
|
33
|
+
|
|
34
|
+
export default IconLeft;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconRight = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-right`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M7.50942 14.7698C7.22233 14.4713 7.23164 13.9965 7.53022 13.7094L11.468 10L7.53022 6.29062C7.23164 6.00353 7.22233 5.52875 7.50942 5.23017C7.79652 4.93159 8.2713 4.92228 8.56988 5.20937L13.0699 9.45937C13.2169 9.60078 13.3 9.79599 13.3 10C13.3 10.204 13.2169 10.3992 13.0699 10.5406L8.56988 14.7906C8.2713 15.0777 7.79652 15.0684 7.50942 14.7698Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconRight.displayName = "IconRight";
|
|
33
|
+
|
|
34
|
+
export default IconRight;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import type { IconProps } from "@/types";
|
|
3
|
+
|
|
4
|
+
export const IconUp = forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
+
({ color = "currentColor", ...props }, forwardedRef) => {
|
|
6
|
+
const { className } = props;
|
|
7
|
+
props = {
|
|
8
|
+
...props,
|
|
9
|
+
className: `${
|
|
10
|
+
className ? className + " " : ""
|
|
11
|
+
}test-icon test-icon-icon-up`,
|
|
12
|
+
};
|
|
13
|
+
return (
|
|
14
|
+
<svg
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
{...props}
|
|
19
|
+
ref={forwardedRef}
|
|
20
|
+
>
|
|
21
|
+
<path
|
|
22
|
+
d="M14.7698 12.4906C14.4713 12.7777 13.9965 12.7684 13.7094 12.4698L10 8.53203L6.29062 12.4698C6.00353 12.7684 5.52875 12.7777 5.23017 12.4906C4.93159 12.2035 4.92228 11.7287 5.20937 11.4301L9.45937 6.93012C9.60078 6.78306 9.79599 6.69995 10 6.69995C10.204 6.69995 10.3992 6.78306 10.5406 6.93012L14.7906 11.4301C15.0777 11.7287 15.0684 12.2035 14.7698 12.4906Z"
|
|
23
|
+
fill={color}
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
clipRule="evenodd"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
IconUp.displayName = "IconUp";
|
|
33
|
+
|
|
34
|
+
export default IconUp;
|
package/src/types.tsx
ADDED