@nstc-design/icons 0.0.1 → 0.0.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.
- package/README.md +57 -0
- package/package.json +8 -8
- package/packages/react/icons/IconMuteFill.d.ts +13 -0
- package/packages/react/icons/IconMuteFill.js +37 -0
- package/packages/react/icons/IconPauseCircleFill.d.ts +13 -0
- package/packages/react/icons/IconPauseCircleFill.js +37 -0
- package/packages/react/icons/IconPlayArrowFill.d.ts +13 -0
- package/packages/react/icons/IconPlayArrowFill.js +37 -0
- package/packages/react/icons/IconPlayCircleFill.d.ts +13 -0
- package/packages/react/icons/IconPlayCircleFill.js +37 -0
- package/packages/react/icons/IconSkipNextFill.d.ts +13 -0
- package/packages/react/icons/IconSkipNextFill.js +37 -0
- package/packages/react/icons/IconSkipPreviousFill.d.ts +13 -0
- package/packages/react/icons/IconSkipPreviousFill.js +37 -0
- package/packages/react/icons/IconSoundFill.d.ts +13 -0
- package/packages/react/icons/IconSoundFill.js +37 -0
- package/{dist → packages}/react/index.d.ts +7 -0
- package/{dist → packages}/react/index.js +7 -0
- package/packages/vue/icons/IconMuteFill.d.ts +10 -0
- package/packages/vue/icons/IconMuteFill.js +35 -0
- package/packages/vue/icons/IconPauseCircleFill.d.ts +10 -0
- package/packages/vue/icons/IconPauseCircleFill.js +35 -0
- package/packages/vue/icons/IconPlayArrowFill.d.ts +10 -0
- package/packages/vue/icons/IconPlayArrowFill.js +35 -0
- package/packages/vue/icons/IconPlayCircleFill.d.ts +10 -0
- package/packages/vue/icons/IconPlayCircleFill.js +35 -0
- package/packages/vue/icons/IconSkipNextFill.d.ts +10 -0
- package/packages/vue/icons/IconSkipNextFill.js +35 -0
- package/packages/vue/icons/IconSkipPreviousFill.d.ts +10 -0
- package/packages/vue/icons/IconSkipPreviousFill.js +35 -0
- package/packages/vue/icons/IconSoundFill.d.ts +10 -0
- package/packages/vue/icons/IconSoundFill.js +35 -0
- package/{dist → packages}/vue/index.d.ts +8 -1
- package/{dist → packages}/vue/index.js +7 -0
- package/{dist → packages}/vue/plugin.js +8 -1
- /package/{dist → packages}/react/icons/IconBytedanceColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconBytedanceColor.js +0 -0
- /package/{dist → packages}/react/icons/IconCheck.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconCheck.js +0 -0
- /package/{dist → packages}/react/icons/IconCheckCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconCheckCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconCheckSquare.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconCheckSquare.js +0 -0
- /package/{dist → packages}/react/icons/IconClockCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconClockCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconClose.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconClose.js +0 -0
- /package/{dist → packages}/react/icons/IconCloseCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconCloseCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoDownload.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoDownload.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoHome.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoHome.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoSearch.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoSearch.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoSettings.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoSettings.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoUpload.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoUpload.js +0 -0
- /package/{dist → packages}/react/icons/IconDemoUser.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconDemoUser.js +0 -0
- /package/{dist → packages}/react/icons/IconExclamation.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconExclamation.js +0 -0
- /package/{dist → packages}/react/icons/IconExclamationCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconExclamationCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconFaceBookCircleFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFaceBookCircleFill.js +0 -0
- /package/{dist → packages}/react/icons/IconFacebookSquareFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFacebookSquareFill.js +0 -0
- /package/{dist → packages}/react/icons/IconFileExcelColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFileExcelColor.js +0 -0
- /package/{dist → packages}/react/icons/IconFileImageColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFileImageColor.js +0 -0
- /package/{dist → packages}/react/icons/IconFilePdfColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFilePdfColor.js +0 -0
- /package/{dist → packages}/react/icons/IconFileUnknownColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFileUnknownColor.js +0 -0
- /package/{dist → packages}/react/icons/IconFileWordColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFileWordColor.js +0 -0
- /package/{dist → packages}/react/icons/IconFileZipColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconFileZipColor.js +0 -0
- /package/{dist → packages}/react/icons/IconGoogleCircleFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconGoogleCircleFill.js +0 -0
- /package/{dist → packages}/react/icons/IconInfo.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconInfo.js +0 -0
- /package/{dist → packages}/react/icons/IconInfoCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconInfoCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconLarkColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconLarkColor.js +0 -0
- /package/{dist → packages}/react/icons/IconMinus.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconMinus.js +0 -0
- /package/{dist → packages}/react/icons/IconMinusCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconMinusCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconPlus.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconPlus.js +0 -0
- /package/{dist → packages}/react/icons/IconPlusCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconPlusCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconQqCircleFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconQqCircleFill.js +0 -0
- /package/{dist → packages}/react/icons/IconQuestion.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconQuestion.js +0 -0
- /package/{dist → packages}/react/icons/IconQuestionCircle.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconQuestionCircle.js +0 -0
- /package/{dist → packages}/react/icons/IconStop.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconStop.js +0 -0
- /package/{dist → packages}/react/icons/IconTiktokColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconTiktokColor.js +0 -0
- /package/{dist → packages}/react/icons/IconTwitterCircleFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconTwitterCircleFill.js +0 -0
- /package/{dist → packages}/react/icons/IconWeiboCircleFill.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconWeiboCircleFill.js +0 -0
- /package/{dist → packages}/react/icons/IconXiguaColor.d.ts +0 -0
- /package/{dist → packages}/react/icons/IconXiguaColor.js +0 -0
- /package/{dist → packages}/style.css +0 -0
- /package/{dist → packages}/vue/icons/IconBytedanceColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconBytedanceColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconCheck.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconCheck.js +0 -0
- /package/{dist → packages}/vue/icons/IconCheckCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconCheckCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconCheckSquare.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconCheckSquare.js +0 -0
- /package/{dist → packages}/vue/icons/IconClockCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconClockCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconClose.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconClose.js +0 -0
- /package/{dist → packages}/vue/icons/IconCloseCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconCloseCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoDownload.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoDownload.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoHome.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoHome.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoSearch.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoSearch.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoSettings.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoSettings.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoUpload.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoUpload.js +0 -0
- /package/{dist → packages}/vue/icons/IconDemoUser.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconDemoUser.js +0 -0
- /package/{dist → packages}/vue/icons/IconExclamation.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconExclamation.js +0 -0
- /package/{dist → packages}/vue/icons/IconExclamationCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconExclamationCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconFaceBookCircleFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFaceBookCircleFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconFacebookSquareFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFacebookSquareFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconFileExcelColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFileExcelColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconFileImageColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFileImageColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconFilePdfColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFilePdfColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconFileUnknownColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFileUnknownColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconFileWordColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFileWordColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconFileZipColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconFileZipColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconGoogleCircleFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconGoogleCircleFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconInfo.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconInfo.js +0 -0
- /package/{dist → packages}/vue/icons/IconInfoCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconInfoCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconLarkColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconLarkColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconMinus.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconMinus.js +0 -0
- /package/{dist → packages}/vue/icons/IconMinusCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconMinusCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconPlus.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconPlus.js +0 -0
- /package/{dist → packages}/vue/icons/IconPlusCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconPlusCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconQqCircleFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconQqCircleFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconQuestion.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconQuestion.js +0 -0
- /package/{dist → packages}/vue/icons/IconQuestionCircle.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconQuestionCircle.js +0 -0
- /package/{dist → packages}/vue/icons/IconStop.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconStop.js +0 -0
- /package/{dist → packages}/vue/icons/IconTiktokColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconTiktokColor.js +0 -0
- /package/{dist → packages}/vue/icons/IconTwitterCircleFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconTwitterCircleFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconWeiboCircleFill.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconWeiboCircleFill.js +0 -0
- /package/{dist → packages}/vue/icons/IconXiguaColor.d.ts +0 -0
- /package/{dist → packages}/vue/icons/IconXiguaColor.js +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @nstc-design/icons
|
|
2
|
+
|
|
3
|
+
Generated Vue 3 and React icon components from the NSTC Design Icons library.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
~~~bash
|
|
8
|
+
npm install @nstc-design/icons
|
|
9
|
+
pnpm add @nstc-design/icons
|
|
10
|
+
yarn add @nstc-design/icons
|
|
11
|
+
~~~
|
|
12
|
+
|
|
13
|
+
Install the peer dependency for the framework entry you use: Vue 3 for @nstc-design/icons/vue, or React 19 for @nstc-design/icons/react.
|
|
14
|
+
|
|
15
|
+
## Vue 3
|
|
16
|
+
|
|
17
|
+
Register all icons as a Vue plugin:
|
|
18
|
+
|
|
19
|
+
~~~ts
|
|
20
|
+
import { createApp } from "vue";
|
|
21
|
+
import NstcIcons from "@nstc-design/icons/vue";
|
|
22
|
+
import App from "./App.vue";
|
|
23
|
+
|
|
24
|
+
createApp(App).use(NstcIcons).mount("#app");
|
|
25
|
+
~~~
|
|
26
|
+
|
|
27
|
+
~~~vue
|
|
28
|
+
<icon-name :size="24" />
|
|
29
|
+
~~~
|
|
30
|
+
|
|
31
|
+
You can also import one icon by its generated name (for example, IconAdd):
|
|
32
|
+
|
|
33
|
+
~~~ts
|
|
34
|
+
import { IconAdd } from "@nstc-design/icons/vue";
|
|
35
|
+
~~~
|
|
36
|
+
|
|
37
|
+
## React
|
|
38
|
+
|
|
39
|
+
~~~tsx
|
|
40
|
+
import { IconAdd } from "@nstc-design/icons/react";
|
|
41
|
+
|
|
42
|
+
export function Example() {
|
|
43
|
+
return <IconAdd size={24} />;
|
|
44
|
+
}
|
|
45
|
+
~~~
|
|
46
|
+
|
|
47
|
+
Replace IconAdd with any icon exported by this package.
|
|
48
|
+
|
|
49
|
+
## Component props
|
|
50
|
+
|
|
51
|
+
- **size**: number or CSS size string. Defaults to 1em.
|
|
52
|
+
- **color**: CSS color. Defaults to the current text color.
|
|
53
|
+
- **originColor**: use the icon's original colors instead of a single current color.
|
|
54
|
+
- **button**: render the icon as an accessible button. Defaults to false.
|
|
55
|
+
- **background**: show the button hover/active background. Defaults to true when button is enabled.
|
|
56
|
+
|
|
57
|
+
The Vue and React entry points include the shared icon button styles automatically.
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nstc-design/icons",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./vue": {
|
|
7
|
-
"types": "./
|
|
8
|
-
"import": "./
|
|
7
|
+
"types": "./packages/vue/index.d.ts",
|
|
8
|
+
"import": "./packages/vue/index.js"
|
|
9
9
|
},
|
|
10
10
|
"./react": {
|
|
11
|
-
"types": "./
|
|
12
|
-
"import": "./
|
|
11
|
+
"types": "./packages/react/index.d.ts",
|
|
12
|
+
"import": "./packages/react/index.js"
|
|
13
13
|
},
|
|
14
|
-
"./style.css": "./
|
|
14
|
+
"./style.css": "./packages/style.css",
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
-
"
|
|
18
|
+
"packages"
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": [
|
|
21
|
-
"./
|
|
21
|
+
"./packages/style.css"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^19.0.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 IconMuteFill: {
|
|
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 IconMuteFill = forwardRef(function IconMuteFill(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": "M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93zM35.27 28.199l-3.311-3.312a7.99 7.99 0 0 0-1.96-6.108.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252M41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.49.49 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114M26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), createElement("path", { "clipRule": "evenodd", "d": "m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012z", "fill": originColor ? "currentColor" : "currentColor", "fillRule": "evenodd", "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 IconPauseCircleFill: {
|
|
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 IconPauseCircleFill = forwardRef(function IconPauseCircleFill(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", { "clipRule": "evenodd", "d": "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20m-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1z", "fill": originColor ? "currentColor" : "currentColor", "fillRule": "evenodd", "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 IconPlayArrowFill: {
|
|
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 IconPlayArrowFill = forwardRef(function IconPlayArrowFill(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.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688z", "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 IconPlayCircleFill: {
|
|
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 IconPlayCircleFill = forwardRef(function IconPlayCircleFill(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", { "clipRule": "evenodd", "d": "M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20m-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716z", "fill": originColor ? "currentColor" : "currentColor", "fillRule": "evenodd", "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 IconSkipNextFill: {
|
|
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 IconSkipNextFill = forwardRef(function IconSkipNextFill(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": "M13.586 12.145a1 1 0 0 0-1.586.81v22.09a1 1 0 0 0 1.585.81L28.879 24.81a1 1 0 0 0 0-1.622z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), createElement("path", { "clipRule": "evenodd", "d": "M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1z", "fill": originColor ? "currentColor" : "currentColor", "fillRule": "evenodd", "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 IconSkipPreviousFill: {
|
|
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 IconSkipPreviousFill = forwardRef(function IconSkipPreviousFill(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.415 35.855a1 1 0 0 0 1.585-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), createElement("path", { "clipRule": "evenodd", "d": "M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1z", "fill": originColor ? "currentColor" : "currentColor", "fillRule": "evenodd", "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 IconSoundFill: {
|
|
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 IconSoundFill = forwardRef(function IconSoundFill(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": "m14 15 10-7v32l-10-7H6V15z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), createElement("path", { "d": "M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136M35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), createElement("path", { "d": "M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97z", "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
|
+
});
|
|
@@ -28,11 +28,18 @@ export { IconInfoCircle } from "./icons/IconInfoCircle.js";
|
|
|
28
28
|
export { IconLarkColor } from "./icons/IconLarkColor.js";
|
|
29
29
|
export { IconMinus } from "./icons/IconMinus.js";
|
|
30
30
|
export { IconMinusCircle } from "./icons/IconMinusCircle.js";
|
|
31
|
+
export { IconMuteFill } from "./icons/IconMuteFill.js";
|
|
32
|
+
export { IconPauseCircleFill } from "./icons/IconPauseCircleFill.js";
|
|
33
|
+
export { IconPlayArrowFill } from "./icons/IconPlayArrowFill.js";
|
|
34
|
+
export { IconPlayCircleFill } from "./icons/IconPlayCircleFill.js";
|
|
31
35
|
export { IconPlus } from "./icons/IconPlus.js";
|
|
32
36
|
export { IconPlusCircle } from "./icons/IconPlusCircle.js";
|
|
33
37
|
export { IconQqCircleFill } from "./icons/IconQqCircleFill.js";
|
|
34
38
|
export { IconQuestion } from "./icons/IconQuestion.js";
|
|
35
39
|
export { IconQuestionCircle } from "./icons/IconQuestionCircle.js";
|
|
40
|
+
export { IconSkipNextFill } from "./icons/IconSkipNextFill.js";
|
|
41
|
+
export { IconSkipPreviousFill } from "./icons/IconSkipPreviousFill.js";
|
|
42
|
+
export { IconSoundFill } from "./icons/IconSoundFill.js";
|
|
36
43
|
export { IconStop } from "./icons/IconStop.js";
|
|
37
44
|
export { IconTiktokColor } from "./icons/IconTiktokColor.js";
|
|
38
45
|
export { IconTwitterCircleFill } from "./icons/IconTwitterCircleFill.js";
|
|
@@ -29,11 +29,18 @@ export { IconInfoCircle } from "./icons/IconInfoCircle.js";
|
|
|
29
29
|
export { IconLarkColor } from "./icons/IconLarkColor.js";
|
|
30
30
|
export { IconMinus } from "./icons/IconMinus.js";
|
|
31
31
|
export { IconMinusCircle } from "./icons/IconMinusCircle.js";
|
|
32
|
+
export { IconMuteFill } from "./icons/IconMuteFill.js";
|
|
33
|
+
export { IconPauseCircleFill } from "./icons/IconPauseCircleFill.js";
|
|
34
|
+
export { IconPlayArrowFill } from "./icons/IconPlayArrowFill.js";
|
|
35
|
+
export { IconPlayCircleFill } from "./icons/IconPlayCircleFill.js";
|
|
32
36
|
export { IconPlus } from "./icons/IconPlus.js";
|
|
33
37
|
export { IconPlusCircle } from "./icons/IconPlusCircle.js";
|
|
34
38
|
export { IconQqCircleFill } from "./icons/IconQqCircleFill.js";
|
|
35
39
|
export { IconQuestion } from "./icons/IconQuestion.js";
|
|
36
40
|
export { IconQuestionCircle } from "./icons/IconQuestionCircle.js";
|
|
41
|
+
export { IconSkipNextFill } from "./icons/IconSkipNextFill.js";
|
|
42
|
+
export { IconSkipPreviousFill } from "./icons/IconSkipPreviousFill.js";
|
|
43
|
+
export { IconSoundFill } from "./icons/IconSoundFill.js";
|
|
37
44
|
export { IconStop } from "./icons/IconStop.js";
|
|
38
45
|
export { IconTiktokColor } from "./icons/IconTiktokColor.js";
|
|
39
46
|
export { IconTwitterCircleFill } from "./icons/IconTwitterCircleFill.js";
|
|
@@ -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 IconMuteFill = defineComponent({
|
|
6
|
+
name: "IconMuteFill",
|
|
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": "M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93zM35.27 28.199l-3.311-3.312a7.99 7.99 0 0 0-1.96-6.108.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252M41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.49.49 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114M26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), h("path", { "clip-rule": "evenodd", "d": "m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012z", "fill": originColor ? "currentColor" : "currentColor", "fill-rule": "evenodd", "stroke": "none" })]);
|
|
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 IconPauseCircleFill: 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 IconPauseCircleFill = defineComponent({
|
|
6
|
+
name: "IconPauseCircleFill",
|
|
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", { "clip-rule": "evenodd", "d": "M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20m-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1z", "fill": originColor ? "currentColor" : "currentColor", "fill-rule": "evenodd", "stroke": "none" })]);
|
|
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 IconPlayArrowFill: 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 IconPlayArrowFill = defineComponent({
|
|
6
|
+
name: "IconPlayArrowFill",
|
|
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.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" })]);
|
|
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
|
+
});
|