@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,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 IconBytedanceColor: {
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 IconBytedanceColor = forwardRef(function IconBytedanceColor(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": "M280.416 794.112 128 829.952v-636.32l152.416 35.84z", "fill": originColor ? "#325ab4" : "currentColor" }), createElement("path", { "d": "M928 828.48 800 864V160l128 35.52z", "fill": originColor ? "#78e6dc" : "currentColor" }), createElement("path", { "d": "M480 798.304 352 832V480l128 33.696z", "fill": originColor ? "#3c8cff" : "currentColor" }), createElement("path", { "d": "M576 449.696 704 416v352l-128-33.696z", "fill": originColor ? "#00c8d2" : "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 IconCheck: {
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 IconCheck = forwardRef(function IconCheck(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": "M41.678 11.05 19.05 33.678 6.322 20.95" }),
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 IconCheckCircle: {
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 IconCheckCircle = forwardRef(function IconCheckCircle(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": "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" }),
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 IconCheckSquare: {
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 IconCheckSquare = forwardRef(function IconCheckSquare(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": "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" }),
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 IconClockCircle: {
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 IconClockCircle = forwardRef(function IconClockCircle(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 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z" }),
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 IconClose: {
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 IconClose = forwardRef(function IconClose(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": "M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142" }),
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 IconCloseCircle: {
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 IconCloseCircle = forwardRef(function IconCloseCircle(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": "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" }),
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,14 @@
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
+ /** @deprecated */
11
+ export declare const IconDemoDownload: {
12
+ (props: IconSvgProps & React.RefAttributes<SVGSVGElement>): React.ReactElement | null;
13
+ (props: IconButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactElement | null;
14
+ };
@@ -0,0 +1,38 @@
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
+ /** @deprecated */
6
+ export const IconDemoDownload = forwardRef(function IconDemoDownload(props, ref) {
7
+ const {
8
+ size = "1em",
9
+ color,
10
+ originColor = false,
11
+ button = false,
12
+ background = true,
13
+ className,
14
+ style,
15
+ ...attributes
16
+ } = props;
17
+ const svgAttributes = { "viewBox": "0 0 24 24" };
18
+ const svgStyle = color === undefined ? style : { color, ...style };
19
+ const svg = createElement(
20
+ "svg",
21
+ button
22
+ ? { ...svgAttributes, width: toSize(size), height: toSize(size), "aria-hidden": true }
23
+ : { ...attributes, ...svgAttributes, ref, width: toSize(size), height: toSize(size), className, style: svgStyle },
24
+ createElement("path", { "d": "M12 3v12m-5-5 5 5 5-5M4 21h16" }),
25
+ );
26
+ if (!button) return svg;
27
+ return createElement(
28
+ "button",
29
+ {
30
+ ...attributes,
31
+ ref,
32
+ type: attributes.type ?? "button",
33
+ className: joinClassNames("nstc-icon-button", background && "nstc-icon-button--background", className),
34
+ style: svgStyle,
35
+ },
36
+ svg,
37
+ );
38
+ });
@@ -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 IconDemoHome: {
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 IconDemoHome = forwardRef(function IconDemoHome(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 = { "viewBox": "0 0 24 24" };
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": "m3 11 9-8 9 8v10h-6v-6H9v6H3Z" }),
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 IconDemoSearch: {
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 IconDemoSearch = forwardRef(function IconDemoSearch(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 = { "viewBox": "0 0 24 24" };
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("circle", { "cx": "10", "cy": "10", "r": "6" }), createElement("path", { "d": "m15 15 6 6" }),
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 IconDemoSettings: {
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 IconDemoSettings = forwardRef(function IconDemoSettings(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 = { "viewBox": "0 0 24 24" };
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("circle", { "cx": "12", "cy": "12", "r": "3" }), createElement("path", { "d": "M12 2v4m0 12v4M2 12h4m12 0h4M5 5l3 3m8 8 3 3m0-14-3 3m-8 8-3 3" }),
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 IconDemoUpload: {
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 IconDemoUpload = forwardRef(function IconDemoUpload(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 = { "viewBox": "0 0 24 24" };
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": "M12 17V5m-5 5 5-5 5 5M4 21h16" }),
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 IconDemoUser: {
11
+ (props: IconSvgProps & React.RefAttributes<SVGSVGElement>): React.ReactElement | null;
12
+ (props: IconButtonProps & React.RefAttributes<HTMLButtonElement>): React.ReactElement | null;
13
+ };