@nstc-design/icons 0.0.1

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.
Files changed (163) hide show
  1. package/dist/react/icons/IconBytedanceColor.d.ts +13 -0
  2. package/dist/react/icons/IconBytedanceColor.js +37 -0
  3. package/dist/react/icons/IconCheck.d.ts +13 -0
  4. package/dist/react/icons/IconCheck.js +37 -0
  5. package/dist/react/icons/IconCheckCircle.d.ts +13 -0
  6. package/dist/react/icons/IconCheckCircle.js +37 -0
  7. package/dist/react/icons/IconCheckSquare.d.ts +13 -0
  8. package/dist/react/icons/IconCheckSquare.js +37 -0
  9. package/dist/react/icons/IconClockCircle.d.ts +13 -0
  10. package/dist/react/icons/IconClockCircle.js +37 -0
  11. package/dist/react/icons/IconClose.d.ts +13 -0
  12. package/dist/react/icons/IconClose.js +37 -0
  13. package/dist/react/icons/IconCloseCircle.d.ts +13 -0
  14. package/dist/react/icons/IconCloseCircle.js +37 -0
  15. package/dist/react/icons/IconDemoDownload.d.ts +14 -0
  16. package/dist/react/icons/IconDemoDownload.js +38 -0
  17. package/dist/react/icons/IconDemoHome.d.ts +13 -0
  18. package/dist/react/icons/IconDemoHome.js +37 -0
  19. package/dist/react/icons/IconDemoSearch.d.ts +13 -0
  20. package/dist/react/icons/IconDemoSearch.js +37 -0
  21. package/dist/react/icons/IconDemoSettings.d.ts +13 -0
  22. package/dist/react/icons/IconDemoSettings.js +37 -0
  23. package/dist/react/icons/IconDemoUpload.d.ts +13 -0
  24. package/dist/react/icons/IconDemoUpload.js +37 -0
  25. package/dist/react/icons/IconDemoUser.d.ts +13 -0
  26. package/dist/react/icons/IconDemoUser.js +37 -0
  27. package/dist/react/icons/IconExclamation.d.ts +13 -0
  28. package/dist/react/icons/IconExclamation.js +37 -0
  29. package/dist/react/icons/IconExclamationCircle.d.ts +13 -0
  30. package/dist/react/icons/IconExclamationCircle.js +37 -0
  31. package/dist/react/icons/IconFaceBookCircleFill.d.ts +13 -0
  32. package/dist/react/icons/IconFaceBookCircleFill.js +37 -0
  33. package/dist/react/icons/IconFacebookSquareFill.d.ts +13 -0
  34. package/dist/react/icons/IconFacebookSquareFill.js +37 -0
  35. package/dist/react/icons/IconFileExcelColor.d.ts +13 -0
  36. package/dist/react/icons/IconFileExcelColor.js +37 -0
  37. package/dist/react/icons/IconFileImageColor.d.ts +13 -0
  38. package/dist/react/icons/IconFileImageColor.js +37 -0
  39. package/dist/react/icons/IconFilePdfColor.d.ts +13 -0
  40. package/dist/react/icons/IconFilePdfColor.js +37 -0
  41. package/dist/react/icons/IconFileUnknownColor.d.ts +13 -0
  42. package/dist/react/icons/IconFileUnknownColor.js +37 -0
  43. package/dist/react/icons/IconFileWordColor.d.ts +13 -0
  44. package/dist/react/icons/IconFileWordColor.js +37 -0
  45. package/dist/react/icons/IconFileZipColor.d.ts +13 -0
  46. package/dist/react/icons/IconFileZipColor.js +37 -0
  47. package/dist/react/icons/IconGoogleCircleFill.d.ts +13 -0
  48. package/dist/react/icons/IconGoogleCircleFill.js +37 -0
  49. package/dist/react/icons/IconInfo.d.ts +13 -0
  50. package/dist/react/icons/IconInfo.js +37 -0
  51. package/dist/react/icons/IconInfoCircle.d.ts +13 -0
  52. package/dist/react/icons/IconInfoCircle.js +37 -0
  53. package/dist/react/icons/IconLarkColor.d.ts +13 -0
  54. package/dist/react/icons/IconLarkColor.js +37 -0
  55. package/dist/react/icons/IconMinus.d.ts +13 -0
  56. package/dist/react/icons/IconMinus.js +37 -0
  57. package/dist/react/icons/IconMinusCircle.d.ts +13 -0
  58. package/dist/react/icons/IconMinusCircle.js +37 -0
  59. package/dist/react/icons/IconPlus.d.ts +13 -0
  60. package/dist/react/icons/IconPlus.js +37 -0
  61. package/dist/react/icons/IconPlusCircle.d.ts +13 -0
  62. package/dist/react/icons/IconPlusCircle.js +37 -0
  63. package/dist/react/icons/IconQqCircleFill.d.ts +13 -0
  64. package/dist/react/icons/IconQqCircleFill.js +37 -0
  65. package/dist/react/icons/IconQuestion.d.ts +13 -0
  66. package/dist/react/icons/IconQuestion.js +37 -0
  67. package/dist/react/icons/IconQuestionCircle.d.ts +13 -0
  68. package/dist/react/icons/IconQuestionCircle.js +37 -0
  69. package/dist/react/icons/IconStop.d.ts +13 -0
  70. package/dist/react/icons/IconStop.js +37 -0
  71. package/dist/react/icons/IconTiktokColor.d.ts +13 -0
  72. package/dist/react/icons/IconTiktokColor.js +37 -0
  73. package/dist/react/icons/IconTwitterCircleFill.d.ts +13 -0
  74. package/dist/react/icons/IconTwitterCircleFill.js +37 -0
  75. package/dist/react/icons/IconWeiboCircleFill.d.ts +13 -0
  76. package/dist/react/icons/IconWeiboCircleFill.js +37 -0
  77. package/dist/react/icons/IconXiguaColor.d.ts +13 -0
  78. package/dist/react/icons/IconXiguaColor.js +37 -0
  79. package/dist/react/index.d.ts +40 -0
  80. package/dist/react/index.js +41 -0
  81. package/dist/style.css +1 -0
  82. package/dist/vue/icons/IconBytedanceColor.d.ts +10 -0
  83. package/dist/vue/icons/IconBytedanceColor.js +35 -0
  84. package/dist/vue/icons/IconCheck.d.ts +10 -0
  85. package/dist/vue/icons/IconCheck.js +35 -0
  86. package/dist/vue/icons/IconCheckCircle.d.ts +10 -0
  87. package/dist/vue/icons/IconCheckCircle.js +35 -0
  88. package/dist/vue/icons/IconCheckSquare.d.ts +10 -0
  89. package/dist/vue/icons/IconCheckSquare.js +35 -0
  90. package/dist/vue/icons/IconClockCircle.d.ts +10 -0
  91. package/dist/vue/icons/IconClockCircle.js +35 -0
  92. package/dist/vue/icons/IconClose.d.ts +10 -0
  93. package/dist/vue/icons/IconClose.js +35 -0
  94. package/dist/vue/icons/IconCloseCircle.d.ts +10 -0
  95. package/dist/vue/icons/IconCloseCircle.js +35 -0
  96. package/dist/vue/icons/IconDemoDownload.d.ts +11 -0
  97. package/dist/vue/icons/IconDemoDownload.js +36 -0
  98. package/dist/vue/icons/IconDemoHome.d.ts +10 -0
  99. package/dist/vue/icons/IconDemoHome.js +35 -0
  100. package/dist/vue/icons/IconDemoSearch.d.ts +10 -0
  101. package/dist/vue/icons/IconDemoSearch.js +35 -0
  102. package/dist/vue/icons/IconDemoSettings.d.ts +10 -0
  103. package/dist/vue/icons/IconDemoSettings.js +35 -0
  104. package/dist/vue/icons/IconDemoUpload.d.ts +10 -0
  105. package/dist/vue/icons/IconDemoUpload.js +35 -0
  106. package/dist/vue/icons/IconDemoUser.d.ts +10 -0
  107. package/dist/vue/icons/IconDemoUser.js +35 -0
  108. package/dist/vue/icons/IconExclamation.d.ts +10 -0
  109. package/dist/vue/icons/IconExclamation.js +35 -0
  110. package/dist/vue/icons/IconExclamationCircle.d.ts +10 -0
  111. package/dist/vue/icons/IconExclamationCircle.js +35 -0
  112. package/dist/vue/icons/IconFaceBookCircleFill.d.ts +10 -0
  113. package/dist/vue/icons/IconFaceBookCircleFill.js +35 -0
  114. package/dist/vue/icons/IconFacebookSquareFill.d.ts +10 -0
  115. package/dist/vue/icons/IconFacebookSquareFill.js +35 -0
  116. package/dist/vue/icons/IconFileExcelColor.d.ts +10 -0
  117. package/dist/vue/icons/IconFileExcelColor.js +35 -0
  118. package/dist/vue/icons/IconFileImageColor.d.ts +10 -0
  119. package/dist/vue/icons/IconFileImageColor.js +35 -0
  120. package/dist/vue/icons/IconFilePdfColor.d.ts +10 -0
  121. package/dist/vue/icons/IconFilePdfColor.js +35 -0
  122. package/dist/vue/icons/IconFileUnknownColor.d.ts +10 -0
  123. package/dist/vue/icons/IconFileUnknownColor.js +35 -0
  124. package/dist/vue/icons/IconFileWordColor.d.ts +10 -0
  125. package/dist/vue/icons/IconFileWordColor.js +35 -0
  126. package/dist/vue/icons/IconFileZipColor.d.ts +10 -0
  127. package/dist/vue/icons/IconFileZipColor.js +35 -0
  128. package/dist/vue/icons/IconGoogleCircleFill.d.ts +10 -0
  129. package/dist/vue/icons/IconGoogleCircleFill.js +35 -0
  130. package/dist/vue/icons/IconInfo.d.ts +10 -0
  131. package/dist/vue/icons/IconInfo.js +35 -0
  132. package/dist/vue/icons/IconInfoCircle.d.ts +10 -0
  133. package/dist/vue/icons/IconInfoCircle.js +35 -0
  134. package/dist/vue/icons/IconLarkColor.d.ts +10 -0
  135. package/dist/vue/icons/IconLarkColor.js +35 -0
  136. package/dist/vue/icons/IconMinus.d.ts +10 -0
  137. package/dist/vue/icons/IconMinus.js +35 -0
  138. package/dist/vue/icons/IconMinusCircle.d.ts +10 -0
  139. package/dist/vue/icons/IconMinusCircle.js +35 -0
  140. package/dist/vue/icons/IconPlus.d.ts +10 -0
  141. package/dist/vue/icons/IconPlus.js +35 -0
  142. package/dist/vue/icons/IconPlusCircle.d.ts +10 -0
  143. package/dist/vue/icons/IconPlusCircle.js +35 -0
  144. package/dist/vue/icons/IconQqCircleFill.d.ts +10 -0
  145. package/dist/vue/icons/IconQqCircleFill.js +35 -0
  146. package/dist/vue/icons/IconQuestion.d.ts +10 -0
  147. package/dist/vue/icons/IconQuestion.js +35 -0
  148. package/dist/vue/icons/IconQuestionCircle.d.ts +10 -0
  149. package/dist/vue/icons/IconQuestionCircle.js +35 -0
  150. package/dist/vue/icons/IconStop.d.ts +10 -0
  151. package/dist/vue/icons/IconStop.js +35 -0
  152. package/dist/vue/icons/IconTiktokColor.d.ts +10 -0
  153. package/dist/vue/icons/IconTiktokColor.js +35 -0
  154. package/dist/vue/icons/IconTwitterCircleFill.d.ts +10 -0
  155. package/dist/vue/icons/IconTwitterCircleFill.js +35 -0
  156. package/dist/vue/icons/IconWeiboCircleFill.d.ts +10 -0
  157. package/dist/vue/icons/IconWeiboCircleFill.js +35 -0
  158. package/dist/vue/icons/IconXiguaColor.d.ts +10 -0
  159. package/dist/vue/icons/IconXiguaColor.js +35 -0
  160. package/dist/vue/index.d.ts +45 -0
  161. package/dist/vue/index.js +42 -0
  162. package/dist/vue/plugin.js +42 -0
  163. package/package.json +35 -0
@@ -0,0 +1,37 @@
1
+ import { createElement, forwardRef } from "react";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconTiktokColor = forwardRef(function IconTiktokColor(props, ref) {
6
+ const {
7
+ size = "1em",
8
+ color,
9
+ originColor = true,
10
+ button = false,
11
+ background = true,
12
+ className,
13
+ style,
14
+ ...attributes
15
+ } = props;
16
+ const svgAttributes = { "viewBox": "0 0 1024 1024", "xmlns": "http://www.w3.org/2000/svg" };
17
+ const svgStyle = color === undefined ? style : { color, ...style };
18
+ const svg = createElement(
19
+ "svg",
20
+ button
21
+ ? { ...svgAttributes, width: toSize(size), height: toSize(size), "aria-hidden": true }
22
+ : { ...attributes, ...svgAttributes, ref, width: toSize(size), height: toSize(size), className, style: svgStyle },
23
+ createElement("path", { "d": "M928 310.4v148.8c-8 0-17.6 1.6-27.2 1.6-72 0-139.2-27.2-190.4-70.4v316.8c0 64-20.8 124.8-57.6 172.8-51.2 68.8-134.4 115.2-228.8 115.2-102.4 0-192-54.4-241.6-134.4 51.2 48 120 78.4 195.2 78.4 92.8 0 176-44.8 227.2-115.2 35.2-48 57.6-107.2 57.6-172.8V332.8c51.2 44.8 116.8 70.4 190.4 70.4 9.6 0 17.6 0 27.2-1.6v-96c14.4 3.2 27.2 4.8 41.6 4.8z", "fill": originColor ? "#ff004f" : "currentColor" }), createElement("path", { "d": "M464 420.8v164.8c-11.2-3.2-24-4.8-35.2-4.8-70.4 0-128 59.2-128 131.2 0 16 3.2 30.4 8 44.8-32-24-54.4-62.4-54.4-105.6 0-72 57.6-131.2 128-131.2 12.8 0 24 1.6 35.2 4.8V419.2h9.6c12.8 0 25.6 0 36.8 1.6M734.4 192c-28.8-25.6-49.6-60.8-60.8-97.6H712v22.4c3.2 25.6 11.2 51.2 22.4 75.2", "fill": originColor ? "#ff004f" : "currentColor" }), createElement("path", { "d": "M881.6 307.2v96c-8 1.6-17.6 1.6-27.2 1.6-72 0-139.2-27.2-190.4-70.4v316.8c0 64-20.8 124.8-57.6 172.8-52.8 70.4-134.4 115.2-227.2 115.2-75.2 0-144-30.4-195.2-78.4-27.2-44.8-43.2-96-43.2-152 0-155.2 123.2-281.6 276.8-286.4V528c-11.2-3.2-24-4.8-35.2-4.8-70.4 0-128 59.2-128 131.2 0 43.2 20.8 83.2 54.4 105.6 17.6 49.6 65.6 86.4 120 86.4 70.4 0 128-59.2 128-131.2V94.4h116.8c11.2 38.4 32 72 60.8 97.6 28.8 57.6 83.2 100.8 147.2 115.2" }), createElement("path", { "d": "M417.6 364.8v54.4C264 424 140.8 550.4 140.8 705.6c0 56 16 107.2 43.2 152-54.4-52.8-88-126.4-88-209.6 0-158.4 128-286.4 284.8-286.4 12.8 0 25.6 1.6 36.8 3.2", "fill": originColor ? "#00f7ef" : "currentColor" }), createElement("path", { "d": "M673.6 94.4H556.8V712c0 72-57.6 131.2-128 131.2-56 0-102.4-35.2-120-86.4 20.8 14.4 46.4 24 73.6 24 70.4 0 128-57.6 128-129.6V32h155.2v3.2c0 6.4 0 12.8 1.6 19.2 0 12.8 3.2 27.2 6.4 40m208 153.6v57.6c-64-12.8-118.4-56-148.8-113.6 40 36.8 91.2 57.6 148.8 56", "fill": originColor ? "#00f7ef" : "currentColor" }),
24
+ );
25
+ if (!button) return svg;
26
+ return createElement(
27
+ "button",
28
+ {
29
+ ...attributes,
30
+ ref,
31
+ type: attributes.type ?? "button",
32
+ className: joinClassNames("nstc-icon-button", background && "nstc-icon-button--background", className),
33
+ style: svgStyle,
34
+ },
35
+ svg,
36
+ );
37
+ });
@@ -0,0 +1,13 @@
1
+ import type * as React from "react";
2
+
3
+ export interface IconCommonProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ }
8
+ export type IconSvgProps = IconCommonProps & { button?: false; background?: never } & React.SVGProps<SVGSVGElement>;
9
+ export type IconButtonProps = IconCommonProps & { button: true; background?: boolean } & React.ButtonHTMLAttributes<HTMLButtonElement>;
10
+ export declare const IconTwitterCircleFill: {
11
+ (props: IconSvgProps & React.RefAttributes<SVGSVGElement>): React.ReactElement | null;
12
+ (props: IconButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactElement | null;
13
+ };
@@ -0,0 +1,37 @@
1
+ import { createElement, forwardRef } from "react";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconTwitterCircleFill = forwardRef(function IconTwitterCircleFill(props, ref) {
6
+ const {
7
+ size = "1em",
8
+ color,
9
+ originColor = false,
10
+ button = false,
11
+ background = true,
12
+ className,
13
+ style,
14
+ ...attributes
15
+ } = props;
16
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "strokeWidth": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
17
+ const svgStyle = color === undefined ? style : { color, ...style };
18
+ const svg = createElement(
19
+ "svg",
20
+ button
21
+ ? { ...svgAttributes, width: toSize(size), height: toSize(size), "aria-hidden": true }
22
+ : { ...attributes, ...svgAttributes, ref, width: toSize(size), height: toSize(size), className, style: svgStyle },
23
+ createElement("path", { "d": "M24 1C11.297 1 1 11.297 1 24s10.297 23 23 23 23-10.297 23-23S36.703 1 24 1m11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }),
24
+ );
25
+ if (!button) return svg;
26
+ return createElement(
27
+ "button",
28
+ {
29
+ ...attributes,
30
+ ref,
31
+ type: attributes.type ?? "button",
32
+ className: joinClassNames("nstc-icon-button", background && "nstc-icon-button--background", className),
33
+ style: svgStyle,
34
+ },
35
+ svg,
36
+ );
37
+ });
@@ -0,0 +1,13 @@
1
+ import type * as React from "react";
2
+
3
+ export interface IconCommonProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ }
8
+ export type IconSvgProps = IconCommonProps & { button?: false; background?: never } & React.SVGProps<SVGSVGElement>;
9
+ export type IconButtonProps = IconCommonProps & { button: true; background?: boolean } & React.ButtonHTMLAttributes<HTMLButtonElement>;
10
+ export declare const IconWeiboCircleFill: {
11
+ (props: IconSvgProps & React.RefAttributes<SVGSVGElement>): React.ReactElement | null;
12
+ (props: IconButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactElement | null;
13
+ };
@@ -0,0 +1,37 @@
1
+ import { createElement, forwardRef } from "react";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconWeiboCircleFill = forwardRef(function IconWeiboCircleFill(props, ref) {
6
+ const {
7
+ size = "1em",
8
+ color,
9
+ originColor = false,
10
+ button = false,
11
+ background = true,
12
+ className,
13
+ style,
14
+ ...attributes
15
+ } = props;
16
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "strokeWidth": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
17
+ const svgStyle = color === undefined ? style : { color, ...style };
18
+ const svg = createElement(
19
+ "svg",
20
+ button
21
+ ? { ...svgAttributes, width: toSize(size), height: toSize(size), "aria-hidden": true }
22
+ : { ...attributes, ...svgAttributes, ref, width: toSize(size), height: toSize(size), className, style: svgStyle },
23
+ createElement("path", { "d": "M24 47a23 23 0 1 1 23-23 22.99 22.99 0 0 1-23 23m1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.78 23.78 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2 2 0 0 0-.335-.042 12.5 12.5 0 0 0-4.62.752m7.004-3.889a2.33 2.33 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652q.688.032 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.65 1.65 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063m7.423.084a8.41 8.41 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022q.786.03 1.568-.063a6.48 6.48 0 0 1 6.524 6.44q0 .45-.063.9c-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151zM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756s10.245 1.672 10.705 5.269c.46 3.596-3.617 7.088-9.074 7.757zm-1.484-10.266a5.18 5.18 0 0 0-5.353 4.913 4.66 4.66 0 0 0 4.935 4.391q.21-.005.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.47 4.47 0 0 0-4.746-4.182zm1.003 4.244a.67.67 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.64.64 0 0 1 .731.544.08.08 0 0 1 .021.062.81.81 0 0 1-.753.732m-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.3.3 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.56 1.56 0 0 1 1.819 1.297.5.5 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }),
24
+ );
25
+ if (!button) return svg;
26
+ return createElement(
27
+ "button",
28
+ {
29
+ ...attributes,
30
+ ref,
31
+ type: attributes.type ?? "button",
32
+ className: joinClassNames("nstc-icon-button", background && "nstc-icon-button--background", className),
33
+ style: svgStyle,
34
+ },
35
+ svg,
36
+ );
37
+ });
@@ -0,0 +1,13 @@
1
+ import type * as React from "react";
2
+
3
+ export interface IconCommonProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ }
8
+ export type IconSvgProps = IconCommonProps & { button?: false; background?: never } & React.SVGProps<SVGSVGElement>;
9
+ export type IconButtonProps = IconCommonProps & { button: true; background?: boolean } & React.ButtonHTMLAttributes<HTMLButtonElement>;
10
+ export declare const IconXiguaColor: {
11
+ (props: IconSvgProps & React.RefAttributes<SVGSVGElement>): React.ReactElement | null;
12
+ (props: IconButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactElement | null;
13
+ };
@@ -0,0 +1,37 @@
1
+ import { createElement, forwardRef } from "react";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconXiguaColor = forwardRef(function IconXiguaColor(props, ref) {
6
+ const {
7
+ size = "1em",
8
+ color,
9
+ originColor = true,
10
+ button = false,
11
+ background = true,
12
+ className,
13
+ style,
14
+ ...attributes
15
+ } = props;
16
+ const svgAttributes = { "viewBox": "0 0 1024 1024", "xmlns": "http://www.w3.org/2000/svg" };
17
+ const svgStyle = color === undefined ? style : { color, ...style };
18
+ const svg = createElement(
19
+ "svg",
20
+ button
21
+ ? { ...svgAttributes, width: toSize(size), height: toSize(size), "aria-hidden": true }
22
+ : { ...attributes, ...svgAttributes, ref, width: toSize(size), height: toSize(size), className, style: svgStyle },
23
+ createElement("path", { "d": "M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684m176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901", "fill": originColor ? "#fe163e" : "currentColor" }),
24
+ );
25
+ if (!button) return svg;
26
+ return createElement(
27
+ "button",
28
+ {
29
+ ...attributes,
30
+ ref,
31
+ type: attributes.type ?? "button",
32
+ className: joinClassNames("nstc-icon-button", background && "nstc-icon-button--background", className),
33
+ style: svgStyle,
34
+ },
35
+ svg,
36
+ );
37
+ });
@@ -0,0 +1,40 @@
1
+ export { IconBytedanceColor } from "./icons/IconBytedanceColor.js";
2
+ export { IconCheck } from "./icons/IconCheck.js";
3
+ export { IconCheckCircle } from "./icons/IconCheckCircle.js";
4
+ export { IconCheckSquare } from "./icons/IconCheckSquare.js";
5
+ export { IconClockCircle } from "./icons/IconClockCircle.js";
6
+ export { IconClose } from "./icons/IconClose.js";
7
+ export { IconCloseCircle } from "./icons/IconCloseCircle.js";
8
+ /** @deprecated */
9
+ export { IconDemoDownload } from "./icons/IconDemoDownload.js";
10
+ export { IconDemoHome } from "./icons/IconDemoHome.js";
11
+ export { IconDemoSearch } from "./icons/IconDemoSearch.js";
12
+ export { IconDemoSettings } from "./icons/IconDemoSettings.js";
13
+ export { IconDemoUpload } from "./icons/IconDemoUpload.js";
14
+ export { IconDemoUser } from "./icons/IconDemoUser.js";
15
+ export { IconExclamation } from "./icons/IconExclamation.js";
16
+ export { IconExclamationCircle } from "./icons/IconExclamationCircle.js";
17
+ export { IconFaceBookCircleFill } from "./icons/IconFaceBookCircleFill.js";
18
+ export { IconFacebookSquareFill } from "./icons/IconFacebookSquareFill.js";
19
+ export { IconFileExcelColor } from "./icons/IconFileExcelColor.js";
20
+ export { IconFileImageColor } from "./icons/IconFileImageColor.js";
21
+ export { IconFilePdfColor } from "./icons/IconFilePdfColor.js";
22
+ export { IconFileUnknownColor } from "./icons/IconFileUnknownColor.js";
23
+ export { IconFileWordColor } from "./icons/IconFileWordColor.js";
24
+ export { IconFileZipColor } from "./icons/IconFileZipColor.js";
25
+ export { IconGoogleCircleFill } from "./icons/IconGoogleCircleFill.js";
26
+ export { IconInfo } from "./icons/IconInfo.js";
27
+ export { IconInfoCircle } from "./icons/IconInfoCircle.js";
28
+ export { IconLarkColor } from "./icons/IconLarkColor.js";
29
+ export { IconMinus } from "./icons/IconMinus.js";
30
+ export { IconMinusCircle } from "./icons/IconMinusCircle.js";
31
+ export { IconPlus } from "./icons/IconPlus.js";
32
+ export { IconPlusCircle } from "./icons/IconPlusCircle.js";
33
+ export { IconQqCircleFill } from "./icons/IconQqCircleFill.js";
34
+ export { IconQuestion } from "./icons/IconQuestion.js";
35
+ export { IconQuestionCircle } from "./icons/IconQuestionCircle.js";
36
+ export { IconStop } from "./icons/IconStop.js";
37
+ export { IconTiktokColor } from "./icons/IconTiktokColor.js";
38
+ export { IconTwitterCircleFill } from "./icons/IconTwitterCircleFill.js";
39
+ export { IconWeiboCircleFill } from "./icons/IconWeiboCircleFill.js";
40
+ export { IconXiguaColor } from "./icons/IconXiguaColor.js";
@@ -0,0 +1,41 @@
1
+ import "../style.css";
2
+ export { IconBytedanceColor } from "./icons/IconBytedanceColor.js";
3
+ export { IconCheck } from "./icons/IconCheck.js";
4
+ export { IconCheckCircle } from "./icons/IconCheckCircle.js";
5
+ export { IconCheckSquare } from "./icons/IconCheckSquare.js";
6
+ export { IconClockCircle } from "./icons/IconClockCircle.js";
7
+ export { IconClose } from "./icons/IconClose.js";
8
+ export { IconCloseCircle } from "./icons/IconCloseCircle.js";
9
+ /** @deprecated */
10
+ export { IconDemoDownload } from "./icons/IconDemoDownload.js";
11
+ export { IconDemoHome } from "./icons/IconDemoHome.js";
12
+ export { IconDemoSearch } from "./icons/IconDemoSearch.js";
13
+ export { IconDemoSettings } from "./icons/IconDemoSettings.js";
14
+ export { IconDemoUpload } from "./icons/IconDemoUpload.js";
15
+ export { IconDemoUser } from "./icons/IconDemoUser.js";
16
+ export { IconExclamation } from "./icons/IconExclamation.js";
17
+ export { IconExclamationCircle } from "./icons/IconExclamationCircle.js";
18
+ export { IconFaceBookCircleFill } from "./icons/IconFaceBookCircleFill.js";
19
+ export { IconFacebookSquareFill } from "./icons/IconFacebookSquareFill.js";
20
+ export { IconFileExcelColor } from "./icons/IconFileExcelColor.js";
21
+ export { IconFileImageColor } from "./icons/IconFileImageColor.js";
22
+ export { IconFilePdfColor } from "./icons/IconFilePdfColor.js";
23
+ export { IconFileUnknownColor } from "./icons/IconFileUnknownColor.js";
24
+ export { IconFileWordColor } from "./icons/IconFileWordColor.js";
25
+ export { IconFileZipColor } from "./icons/IconFileZipColor.js";
26
+ export { IconGoogleCircleFill } from "./icons/IconGoogleCircleFill.js";
27
+ export { IconInfo } from "./icons/IconInfo.js";
28
+ export { IconInfoCircle } from "./icons/IconInfoCircle.js";
29
+ export { IconLarkColor } from "./icons/IconLarkColor.js";
30
+ export { IconMinus } from "./icons/IconMinus.js";
31
+ export { IconMinusCircle } from "./icons/IconMinusCircle.js";
32
+ export { IconPlus } from "./icons/IconPlus.js";
33
+ export { IconPlusCircle } from "./icons/IconPlusCircle.js";
34
+ export { IconQqCircleFill } from "./icons/IconQqCircleFill.js";
35
+ export { IconQuestion } from "./icons/IconQuestion.js";
36
+ export { IconQuestionCircle } from "./icons/IconQuestionCircle.js";
37
+ export { IconStop } from "./icons/IconStop.js";
38
+ export { IconTiktokColor } from "./icons/IconTiktokColor.js";
39
+ export { IconTwitterCircleFill } from "./icons/IconTwitterCircleFill.js";
40
+ export { IconWeiboCircleFill } from "./icons/IconWeiboCircleFill.js";
41
+ export { IconXiguaColor } from "./icons/IconXiguaColor.js";
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .nstc-icon-button{appearance:none;border:0;margin:0;padding:var(--nstc-icon-button-padding,6px);min-width:32px;min-height:32px;border-radius:var(--nstc-icon-button-radius,6px);background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background var(--nstc-icon-button-duration,150ms),color var(--nstc-icon-button-duration,150ms)}.nstc-icon-button:hover>svg{opacity:var(--nstc-icon-button-hover-opacity,.8)}.nstc-icon-button:active>svg{opacity:var(--nstc-icon-button-active-opacity,.65)}.nstc-icon-button--background:hover{background:var(--nstc-icon-button-hover-background,color-mix(in srgb,currentColor 8%,transparent))}.nstc-icon-button--background:active{background:var(--nstc-icon-button-active-background,color-mix(in srgb,currentColor 14%,transparent))}.nstc-icon-button:focus-visible{outline:var(--nstc-icon-button-focus-ring-width,2px) solid var(--nstc-icon-button-focus-ring,currentColor);outline-offset:2px}.nstc-icon-button:disabled{cursor:default;opacity:.5}.nstc-icon-button:disabled>svg{opacity:1}
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconBytedanceColor: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconBytedanceColor = defineComponent({
6
+ name: "IconBytedanceColor",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: true },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "viewBox": "0 0 1024 1024", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M280.416 794.112 128 829.952v-636.32l152.416 35.84z", "fill": originColor ? "#325ab4" : "currentColor" }), h("path", { "d": "M928 828.48 800 864V160l128 35.52z", "fill": originColor ? "#78e6dc" : "currentColor" }), h("path", { "d": "M480 798.304 352 832V480l128 33.696z", "fill": originColor ? "#3c8cff" : "currentColor" }), h("path", { "d": "M576 449.696 704 416v352l-128-33.696z", "fill": originColor ? "#00c8d2" : "currentColor" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconCheck: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconCheck = defineComponent({
6
+ name: "IconCheck",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M41.678 11.05 19.05 33.678 6.322 20.95" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconCheckCircle: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconCheckCircle = defineComponent({
6
+ name: "IconCheckCircle",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconCheckSquare: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconCheckSquare = defineComponent({
6
+ name: "IconCheckSquare",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconClockCircle: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconClockCircle = defineComponent({
6
+ name: "IconClockCircle",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconClose: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconClose = defineComponent({
6
+ name: "IconClose",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,10 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ export declare const IconCloseCircle: DefineComponent<IconProps>;
@@ -0,0 +1,35 @@
1
+ import { defineComponent, h, ref } from "vue";
2
+
3
+ const toSize = (size) => typeof size === "number" ? `${size}px` : size;
4
+ const joinClassNames = (...values) => values.filter(Boolean).join(" ");
5
+ export const IconCloseCircle = defineComponent({
6
+ name: "IconCloseCircle",
7
+ inheritAttrs: false,
8
+ props: {
9
+ size: { type: [String, Number], default: "1em" },
10
+ color: { type: String, default: undefined },
11
+ originColor: { type: Boolean, default: false },
12
+ button: { type: Boolean, default: false },
13
+ background: { type: Boolean, default: true },
14
+ },
15
+ setup(props, { attrs, expose }) {
16
+ const root = ref(null);
17
+ expose({ el: root });
18
+ return () => {
19
+ const originColor = props.originColor;
20
+ const svgAttributes = { "fill": "none", "stroke": originColor ? "currentColor" : "currentColor", "stroke-width": "4", "viewBox": "0 0 48 48", "xmlns": "http://www.w3.org/2000/svg" };
21
+ const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
22
+ const svg = h("svg", props.button
23
+ ? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
24
+ : { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" })]);
25
+ if (!props.button) return svg;
26
+ return h("button", {
27
+ ...attrs,
28
+ ref: root,
29
+ type: attrs.type ?? "button",
30
+ class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
31
+ style,
32
+ }, [svg]);
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,11 @@
1
+ import type { DefineComponent } from "vue";
2
+
3
+ export interface IconProps {
4
+ size?: number | string;
5
+ color?: string;
6
+ originColor?: boolean;
7
+ button?: boolean;
8
+ background?: boolean;
9
+ }
10
+ /** @deprecated */
11
+ export declare const IconDemoDownload: DefineComponent<IconProps>;