@sunzi/icon 1.2.2 → 1.2.3

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.
@@ -1 +1 @@
1
- import{_ as s,a as o,b as C,j as c}from"../../assets/jsx-runtime-056d64ba.js";import{forwardRef as d}from"react";var p=["color"],u=d(function(l,r){var a=l.color,i=a===void 0?"currentColor":a,e=s(l,p),n=e,t=n.className;return e=o(o({},e),{},{width:"".concat(e.width||e.size||20),height:"".concat(e.height||e.size||20),className:"".concat(t?t+" ":"","customeow-icon customeow-icon-icon-linked-data-outline")}),C("svg",o(o({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{},{ref:r,children:[c("path",{d:"M3.67621 4.33C4.47302 3.79879 5.41473 3.58765 6.07275 3.58765H13.7239C14.1105 3.58765 14.4239 3.90105 14.4239 4.28765C14.4239 4.67425 14.1105 4.98765 13.7239 4.98765H6.07275C5.65971 4.98765 4.99481 5.13352 4.45279 5.49487C3.93938 5.83714 3.55955 6.34982 3.55955 7.14383C3.55955 7.93785 3.93938 8.45052 4.45279 8.79279C4.99481 9.15414 5.65971 9.30001 6.07275 9.30001H13.9273C14.5853 9.30001 15.527 9.51116 16.3238 10.0424C17.1492 10.5927 17.8405 11.5081 17.8405 12.8562C17.8405 14.2043 17.1492 15.1197 16.3238 15.67C15.527 16.2012 14.5853 16.4124 13.9273 16.4124H6.07275C5.68615 16.4124 5.37275 16.099 5.37275 15.7124C5.37275 15.3258 5.68615 15.0124 6.07275 15.0124H13.9273C14.3403 15.0124 15.0052 14.8665 15.5472 14.5052C16.0606 14.1629 16.4405 13.6502 16.4405 12.8562C16.4405 12.0622 16.0606 11.5495 15.5472 11.2072C15.0052 10.8459 14.3403 10.7 13.9273 10.7H6.07275C5.41473 10.7 4.47302 10.4889 3.67621 9.95766C2.85078 9.40737 2.15955 8.49195 2.15955 7.14383C2.15955 5.79571 2.85078 4.88029 3.67621 4.33Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),c("path",{d:"M13.3672 4.28773C13.3672 3.03962 14.379 2.02783 15.6271 2.02783 16.8752 2.02783 17.887 3.03962 17.887 4.28773 17.887 5.53582 16.8752 6.54763 15.6271 6.54763 14.379 6.54763 13.3672 5.53582 13.3672 4.28773ZM15.6271 3.42783C15.1522 3.42783 14.7672 3.81283 14.7672 4.28773 14.7672 4.76262 15.1522 5.14763 15.6271 5.14763 16.102 5.14763 16.487 4.76262 16.487 4.28773 16.487 3.81283 16.102 3.42783 15.6271 3.42783ZM2.1123 15.7123C2.1123 14.4649 3.12355 13.4536 4.37099 13.4536 5.61841 13.4536 6.62968 14.4649 6.62968 15.7123 6.62968 16.9597 5.61841 17.971 4.37099 17.971 3.12355 17.971 2.1123 16.9597 2.1123 15.7123ZM4.37099 14.8536C3.89676 14.8536 3.5123 15.2381 3.5123 15.7123 3.5123 16.1865 3.89676 16.571 4.37099 16.571 4.84521 16.571 5.22968 16.1865 5.22968 15.7123 5.22968 15.2381 4.84521 14.8536 4.37099 14.8536Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"})]}))});u.displayName="IconLinkedDataOutline";export{u as IconLinkedDataOutline,u as default};
1
+ import{_ as s,a as e,j as r}from"../../assets/jsx-runtime-056d64ba.js";import{forwardRef as l}from"react";var d=["color"],p=l(function(a,c){var t=a.color,i=t===void 0?"currentColor":t,o=s(a,d),n=o,C=n.className;return o=e(e({},o),{},{width:"".concat(o.width||o.size||20),height:"".concat(o.height||o.size||20),className:"".concat(C?C+" ":"","customeow-icon customeow-icon-icon-linked-data-outline")}),r("svg",e(e({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),{},{ref:c,children:r("path",{d:"M15.3193 4.41602C16.562 4.41602 17.5693 5.42337 17.5693 6.66602C17.5693 7.90866 16.562 8.91602 15.3193 8.91602C14.3401 8.91591 13.5093 8.28941 13.2002 7.41602H9.10254C9.71128 8.14456 10.078 9.08278 10.0781 10.1064V10.7959C10.0786 12.5329 11.4422 13.9509 13.1572 14.04C13.4266 13.0993 14.2921 12.4103 15.3193 12.4102C16.5619 12.4102 17.5692 13.4176 17.5693 14.6602C17.5693 15.9028 16.562 16.9102 15.3193 16.9102C14.39 16.9101 13.5921 16.3469 13.249 15.543C10.6626 15.5005 8.57859 13.3923 8.57812 10.7959V10.1064C8.57793 8.71254 7.52123 7.56528 6.16504 7.42285C5.85392 8.29257 5.0255 8.91602 4.04883 8.91602C2.80633 8.91585 1.79883 7.90855 1.79883 6.66602C1.79883 5.42348 2.80633 4.41618 4.04883 4.41602C5.02812 4.41602 5.85881 5.04264 6.16797 5.91602H13.2002C13.5093 5.04262 14.3401 4.41612 15.3193 4.41602ZM15.3193 13.9102C14.9053 13.9103 14.5695 14.2461 14.5693 14.6602C14.5693 15.0743 14.9052 15.41 15.3193 15.4102C15.7335 15.4102 16.0693 15.0744 16.0693 14.6602C16.0692 14.2461 15.7335 13.9102 15.3193 13.9102ZM4.04883 5.91602C3.63475 5.91618 3.29883 6.2519 3.29883 6.66602C3.29883 7.08013 3.63475 7.41585 4.04883 7.41602C4.46304 7.41602 4.79883 7.08023 4.79883 6.66602C4.79883 6.2518 4.46304 5.91602 4.04883 5.91602ZM15.3193 5.91602C14.9052 5.91615 14.5693 6.25188 14.5693 6.66602C14.5693 7.08015 14.9052 7.41588 15.3193 7.41602C15.7335 7.41602 16.0693 7.08023 16.0693 6.66602C16.0693 6.2518 15.7335 5.91602 15.3193 5.91602Z",fill:i})}))});p.displayName="IconLinkedDataOutline";export{p as IconLinkedDataOutline,p as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunzi/icon",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "React Icon Set",
5
5
  "type": "module",
6
6
  "types": "./types",
@@ -13,14 +13,6 @@
13
13
  "src",
14
14
  "types"
15
15
  ],
16
- "scripts": {
17
- "preinstall": "npx only-allow pnpm",
18
- "generate-icon:customeow": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow --prefixCls=customeow --gitDiff=false --fileName=icons",
19
- "generate-icon:customeow-shein": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow-shein --prefixCls=customeow-shein --gitDiff=false --fileName=icons-shein",
20
- "generate-icon:customeow-empty": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow-empty --prefixCls=customeow-empty --gitDiff=false --fileName=Empty",
21
- "build": "rimraf dist && rimraf types && vite build",
22
- "prepublishOnly": "pnpm build"
23
- },
24
16
  "keywords": [
25
17
  "icon",
26
18
  "react"
@@ -34,7 +26,7 @@
34
26
  "react-dom": "^18.2.0"
35
27
  },
36
28
  "devDependencies": {
37
- "@sunzi/generate-icon": "workspace:^0.1.0",
29
+ "@sunzi/generate-icon": "^1.2.3",
38
30
  "@types/react": "^18.0.26",
39
31
  "@types/react-dom": "^18.0.10",
40
32
  "@vitejs/plugin-react": "^3.0.1",
@@ -89,5 +81,14 @@
89
81
  "publishConfig": {
90
82
  "registry": "https://registry.npmjs.org/",
91
83
  "access": "public"
92
- }
93
- }
84
+ },
85
+ "gitHead": "45ed957e9df30fec5bd3aa79b74c1040b66414c5",
86
+ "scripts": {
87
+ "preinstall": "npx only-allow pnpm",
88
+ "generate-icon:customeow": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow --prefixCls=customeow --gitDiff=false --fileName=icons",
89
+ "generate-icon:customeow-shein": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow-shein --prefixCls=customeow-shein --gitDiff=false --fileName=icons-shein",
90
+ "generate-icon:customeow-empty": "generate-icon --file=yCYdiodKuhwbhBUC9f9O3j --folder=src/customeow-empty --prefixCls=customeow-empty --gitDiff=false --fileName=Empty",
91
+ "build": "rimraf dist && rimraf types && vite build"
92
+ },
93
+ "readme": "## 一个帮助你从 Figma 中拉去 icon 文件本地, 并生成 React 组件的工具\n\n---\n\n### 生成图标命令\n\n```\ngenerate-icon --file=uzP7XhOZK6tN47Mmd3YQbM --folder=src/test --prefixCls=test --gitDiff=false\n Options\n --file, -f 来自 Figma 的文件密钥\n --prefixCls, -c 给 icon 添加前缀 , 最终类名为 <your-prefixCls>-icon\n --folder -fo 存放资源目录\n --gitDiff -d 是否增加git diff输出 (默认true)(在调试阶段可以配置,生产阶段建议不要配置)\n --help 帮助\n```\n\n### 配置命令\n\n如果你有一个新的图标库需要生成,需要在 `packages/icons/package.json` 配置一个生成图标命令;\n具体更新图标库,就跑对应的命令,例如:`pnpm -r --filter=@sunzi/icon run generate-icon:test` 生成 test 图标库的命令\n生成完成之后,发布\n\n### 全局样式\n\n图标没有设置任何的样式,需要一个同一的全局配置\n样式名称是:prefixCls(变量)+icons\n例如 prefixCls=test\n\n```\n.test-icon {\n display: inline-block;\n font-style: normal;\n width: 1em;\n height: 1em;\n}\n```\n\n具体样式,项目设置\n\n### 颜色和大小\n\n颜色:颜色采用的是 fill=\"currentColor\"或者 stroke=\"currentColor\", 只需要改变 css 中的 color 就行了**注意, 这样只能适用于统一颜色,无法达到彩色**;\n大小:svg 没用设置大小,需要全局默认设置 svg 的样式,建议 width:1em;height:1em,采用 em 为单位,这样 svg 的大小就跟 font-szie 的大小一致只需要改变 font-szie,就能改变 svg 的大小\n\n```\n// text-green-7 和 text-24 使用采用tailwind颜色配置\n// 相当于\n.text-green-7 {\n color: #08D36A;\n}\n.text-24 {\n font-size: 24px;\n}\n<IconMore className=\"text-green-7 text-24\" />\n```\n\n### 其他\n\n填充方式要根据设计提供的 svg 有没有 stroke 或者 fill,改变填充,其他只能自己设置独立的 css 改变;\n**目前不支持彩色图标,生成的时候,会把fill或者stroke替换成currentColor**\n"
94
+ }
@@ -21,16 +21,8 @@ export const IconLinkedDataOutline = forwardRef<SVGSVGElement, IconProps>(
21
21
  ref={forwardedRef}
22
22
  >
23
23
  <path
24
- d="M3.67621 4.33C4.47302 3.79879 5.41473 3.58765 6.07275 3.58765H13.7239C14.1105 3.58765 14.4239 3.90105 14.4239 4.28765C14.4239 4.67425 14.1105 4.98765 13.7239 4.98765H6.07275C5.65971 4.98765 4.99481 5.13352 4.45279 5.49487C3.93938 5.83714 3.55955 6.34982 3.55955 7.14383C3.55955 7.93785 3.93938 8.45052 4.45279 8.79279C4.99481 9.15414 5.65971 9.30001 6.07275 9.30001H13.9273C14.5853 9.30001 15.527 9.51116 16.3238 10.0424C17.1492 10.5927 17.8405 11.5081 17.8405 12.8562C17.8405 14.2043 17.1492 15.1197 16.3238 15.67C15.527 16.2012 14.5853 16.4124 13.9273 16.4124H6.07275C5.68615 16.4124 5.37275 16.099 5.37275 15.7124C5.37275 15.3258 5.68615 15.0124 6.07275 15.0124H13.9273C14.3403 15.0124 15.0052 14.8665 15.5472 14.5052C16.0606 14.1629 16.4405 13.6502 16.4405 12.8562C16.4405 12.0622 16.0606 11.5495 15.5472 11.2072C15.0052 10.8459 14.3403 10.7 13.9273 10.7H6.07275C5.41473 10.7 4.47302 10.4889 3.67621 9.95766C2.85078 9.40737 2.15955 8.49195 2.15955 7.14383C2.15955 5.79571 2.85078 4.88029 3.67621 4.33Z"
24
+ d="M15.3193 4.41602C16.562 4.41602 17.5693 5.42337 17.5693 6.66602C17.5693 7.90866 16.562 8.91602 15.3193 8.91602C14.3401 8.91591 13.5093 8.28941 13.2002 7.41602H9.10254C9.71128 8.14456 10.078 9.08278 10.0781 10.1064V10.7959C10.0786 12.5329 11.4422 13.9509 13.1572 14.04C13.4266 13.0993 14.2921 12.4103 15.3193 12.4102C16.5619 12.4102 17.5692 13.4176 17.5693 14.6602C17.5693 15.9028 16.562 16.9102 15.3193 16.9102C14.39 16.9101 13.5921 16.3469 13.249 15.543C10.6626 15.5005 8.57859 13.3923 8.57812 10.7959V10.1064C8.57793 8.71254 7.52123 7.56528 6.16504 7.42285C5.85392 8.29257 5.0255 8.91602 4.04883 8.91602C2.80633 8.91585 1.79883 7.90855 1.79883 6.66602C1.79883 5.42348 2.80633 4.41618 4.04883 4.41602C5.02812 4.41602 5.85881 5.04264 6.16797 5.91602H13.2002C13.5093 5.04262 14.3401 4.41612 15.3193 4.41602ZM15.3193 13.9102C14.9053 13.9103 14.5695 14.2461 14.5693 14.6602C14.5693 15.0743 14.9052 15.41 15.3193 15.4102C15.7335 15.4102 16.0693 15.0744 16.0693 14.6602C16.0692 14.2461 15.7335 13.9102 15.3193 13.9102ZM4.04883 5.91602C3.63475 5.91618 3.29883 6.2519 3.29883 6.66602C3.29883 7.08013 3.63475 7.41585 4.04883 7.41602C4.46304 7.41602 4.79883 7.08023 4.79883 6.66602C4.79883 6.2518 4.46304 5.91602 4.04883 5.91602ZM15.3193 5.91602C14.9052 5.91615 14.5693 6.25188 14.5693 6.66602C14.5693 7.08015 14.9052 7.41588 15.3193 7.41602C15.7335 7.41602 16.0693 7.08023 16.0693 6.66602C16.0693 6.2518 15.7335 5.91602 15.3193 5.91602Z"
25
25
  fill={color}
26
- fillRule="evenodd"
27
- clipRule="evenodd"
28
- />
29
- <path
30
- d="M13.3672 4.28773C13.3672 3.03962 14.379 2.02783 15.6271 2.02783 16.8752 2.02783 17.887 3.03962 17.887 4.28773 17.887 5.53582 16.8752 6.54763 15.6271 6.54763 14.379 6.54763 13.3672 5.53582 13.3672 4.28773ZM15.6271 3.42783C15.1522 3.42783 14.7672 3.81283 14.7672 4.28773 14.7672 4.76262 15.1522 5.14763 15.6271 5.14763 16.102 5.14763 16.487 4.76262 16.487 4.28773 16.487 3.81283 16.102 3.42783 15.6271 3.42783ZM2.1123 15.7123C2.1123 14.4649 3.12355 13.4536 4.37099 13.4536 5.61841 13.4536 6.62968 14.4649 6.62968 15.7123 6.62968 16.9597 5.61841 17.971 4.37099 17.971 3.12355 17.971 2.1123 16.9597 2.1123 15.7123ZM4.37099 14.8536C3.89676 14.8536 3.5123 15.2381 3.5123 15.7123 3.5123 16.1865 3.89676 16.571 4.37099 16.571 4.84521 16.571 5.22968 16.1865 5.22968 15.7123 5.22968 15.2381 4.84521 14.8536 4.37099 14.8536Z"
31
- fill={color}
32
- fillRule="evenodd"
33
- clipRule="evenodd"
34
26
  />
35
27
  </svg>
36
28
  );