@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.
- package/dist/react/icons/IconBytedanceColor.d.ts +13 -0
- package/dist/react/icons/IconBytedanceColor.js +37 -0
- package/dist/react/icons/IconCheck.d.ts +13 -0
- package/dist/react/icons/IconCheck.js +37 -0
- package/dist/react/icons/IconCheckCircle.d.ts +13 -0
- package/dist/react/icons/IconCheckCircle.js +37 -0
- package/dist/react/icons/IconCheckSquare.d.ts +13 -0
- package/dist/react/icons/IconCheckSquare.js +37 -0
- package/dist/react/icons/IconClockCircle.d.ts +13 -0
- package/dist/react/icons/IconClockCircle.js +37 -0
- package/dist/react/icons/IconClose.d.ts +13 -0
- package/dist/react/icons/IconClose.js +37 -0
- package/dist/react/icons/IconCloseCircle.d.ts +13 -0
- package/dist/react/icons/IconCloseCircle.js +37 -0
- package/dist/react/icons/IconDemoDownload.d.ts +14 -0
- package/dist/react/icons/IconDemoDownload.js +38 -0
- package/dist/react/icons/IconDemoHome.d.ts +13 -0
- package/dist/react/icons/IconDemoHome.js +37 -0
- package/dist/react/icons/IconDemoSearch.d.ts +13 -0
- package/dist/react/icons/IconDemoSearch.js +37 -0
- package/dist/react/icons/IconDemoSettings.d.ts +13 -0
- package/dist/react/icons/IconDemoSettings.js +37 -0
- package/dist/react/icons/IconDemoUpload.d.ts +13 -0
- package/dist/react/icons/IconDemoUpload.js +37 -0
- package/dist/react/icons/IconDemoUser.d.ts +13 -0
- package/dist/react/icons/IconDemoUser.js +37 -0
- package/dist/react/icons/IconExclamation.d.ts +13 -0
- package/dist/react/icons/IconExclamation.js +37 -0
- package/dist/react/icons/IconExclamationCircle.d.ts +13 -0
- package/dist/react/icons/IconExclamationCircle.js +37 -0
- package/dist/react/icons/IconFaceBookCircleFill.d.ts +13 -0
- package/dist/react/icons/IconFaceBookCircleFill.js +37 -0
- package/dist/react/icons/IconFacebookSquareFill.d.ts +13 -0
- package/dist/react/icons/IconFacebookSquareFill.js +37 -0
- package/dist/react/icons/IconFileExcelColor.d.ts +13 -0
- package/dist/react/icons/IconFileExcelColor.js +37 -0
- package/dist/react/icons/IconFileImageColor.d.ts +13 -0
- package/dist/react/icons/IconFileImageColor.js +37 -0
- package/dist/react/icons/IconFilePdfColor.d.ts +13 -0
- package/dist/react/icons/IconFilePdfColor.js +37 -0
- package/dist/react/icons/IconFileUnknownColor.d.ts +13 -0
- package/dist/react/icons/IconFileUnknownColor.js +37 -0
- package/dist/react/icons/IconFileWordColor.d.ts +13 -0
- package/dist/react/icons/IconFileWordColor.js +37 -0
- package/dist/react/icons/IconFileZipColor.d.ts +13 -0
- package/dist/react/icons/IconFileZipColor.js +37 -0
- package/dist/react/icons/IconGoogleCircleFill.d.ts +13 -0
- package/dist/react/icons/IconGoogleCircleFill.js +37 -0
- package/dist/react/icons/IconInfo.d.ts +13 -0
- package/dist/react/icons/IconInfo.js +37 -0
- package/dist/react/icons/IconInfoCircle.d.ts +13 -0
- package/dist/react/icons/IconInfoCircle.js +37 -0
- package/dist/react/icons/IconLarkColor.d.ts +13 -0
- package/dist/react/icons/IconLarkColor.js +37 -0
- package/dist/react/icons/IconMinus.d.ts +13 -0
- package/dist/react/icons/IconMinus.js +37 -0
- package/dist/react/icons/IconMinusCircle.d.ts +13 -0
- package/dist/react/icons/IconMinusCircle.js +37 -0
- package/dist/react/icons/IconPlus.d.ts +13 -0
- package/dist/react/icons/IconPlus.js +37 -0
- package/dist/react/icons/IconPlusCircle.d.ts +13 -0
- package/dist/react/icons/IconPlusCircle.js +37 -0
- package/dist/react/icons/IconQqCircleFill.d.ts +13 -0
- package/dist/react/icons/IconQqCircleFill.js +37 -0
- package/dist/react/icons/IconQuestion.d.ts +13 -0
- package/dist/react/icons/IconQuestion.js +37 -0
- package/dist/react/icons/IconQuestionCircle.d.ts +13 -0
- package/dist/react/icons/IconQuestionCircle.js +37 -0
- package/dist/react/icons/IconStop.d.ts +13 -0
- package/dist/react/icons/IconStop.js +37 -0
- package/dist/react/icons/IconTiktokColor.d.ts +13 -0
- package/dist/react/icons/IconTiktokColor.js +37 -0
- package/dist/react/icons/IconTwitterCircleFill.d.ts +13 -0
- package/dist/react/icons/IconTwitterCircleFill.js +37 -0
- package/dist/react/icons/IconWeiboCircleFill.d.ts +13 -0
- package/dist/react/icons/IconWeiboCircleFill.js +37 -0
- package/dist/react/icons/IconXiguaColor.d.ts +13 -0
- package/dist/react/icons/IconXiguaColor.js +37 -0
- package/dist/react/index.d.ts +40 -0
- package/dist/react/index.js +41 -0
- package/dist/style.css +1 -0
- package/dist/vue/icons/IconBytedanceColor.d.ts +10 -0
- package/dist/vue/icons/IconBytedanceColor.js +35 -0
- package/dist/vue/icons/IconCheck.d.ts +10 -0
- package/dist/vue/icons/IconCheck.js +35 -0
- package/dist/vue/icons/IconCheckCircle.d.ts +10 -0
- package/dist/vue/icons/IconCheckCircle.js +35 -0
- package/dist/vue/icons/IconCheckSquare.d.ts +10 -0
- package/dist/vue/icons/IconCheckSquare.js +35 -0
- package/dist/vue/icons/IconClockCircle.d.ts +10 -0
- package/dist/vue/icons/IconClockCircle.js +35 -0
- package/dist/vue/icons/IconClose.d.ts +10 -0
- package/dist/vue/icons/IconClose.js +35 -0
- package/dist/vue/icons/IconCloseCircle.d.ts +10 -0
- package/dist/vue/icons/IconCloseCircle.js +35 -0
- package/dist/vue/icons/IconDemoDownload.d.ts +11 -0
- package/dist/vue/icons/IconDemoDownload.js +36 -0
- package/dist/vue/icons/IconDemoHome.d.ts +10 -0
- package/dist/vue/icons/IconDemoHome.js +35 -0
- package/dist/vue/icons/IconDemoSearch.d.ts +10 -0
- package/dist/vue/icons/IconDemoSearch.js +35 -0
- package/dist/vue/icons/IconDemoSettings.d.ts +10 -0
- package/dist/vue/icons/IconDemoSettings.js +35 -0
- package/dist/vue/icons/IconDemoUpload.d.ts +10 -0
- package/dist/vue/icons/IconDemoUpload.js +35 -0
- package/dist/vue/icons/IconDemoUser.d.ts +10 -0
- package/dist/vue/icons/IconDemoUser.js +35 -0
- package/dist/vue/icons/IconExclamation.d.ts +10 -0
- package/dist/vue/icons/IconExclamation.js +35 -0
- package/dist/vue/icons/IconExclamationCircle.d.ts +10 -0
- package/dist/vue/icons/IconExclamationCircle.js +35 -0
- package/dist/vue/icons/IconFaceBookCircleFill.d.ts +10 -0
- package/dist/vue/icons/IconFaceBookCircleFill.js +35 -0
- package/dist/vue/icons/IconFacebookSquareFill.d.ts +10 -0
- package/dist/vue/icons/IconFacebookSquareFill.js +35 -0
- package/dist/vue/icons/IconFileExcelColor.d.ts +10 -0
- package/dist/vue/icons/IconFileExcelColor.js +35 -0
- package/dist/vue/icons/IconFileImageColor.d.ts +10 -0
- package/dist/vue/icons/IconFileImageColor.js +35 -0
- package/dist/vue/icons/IconFilePdfColor.d.ts +10 -0
- package/dist/vue/icons/IconFilePdfColor.js +35 -0
- package/dist/vue/icons/IconFileUnknownColor.d.ts +10 -0
- package/dist/vue/icons/IconFileUnknownColor.js +35 -0
- package/dist/vue/icons/IconFileWordColor.d.ts +10 -0
- package/dist/vue/icons/IconFileWordColor.js +35 -0
- package/dist/vue/icons/IconFileZipColor.d.ts +10 -0
- package/dist/vue/icons/IconFileZipColor.js +35 -0
- package/dist/vue/icons/IconGoogleCircleFill.d.ts +10 -0
- package/dist/vue/icons/IconGoogleCircleFill.js +35 -0
- package/dist/vue/icons/IconInfo.d.ts +10 -0
- package/dist/vue/icons/IconInfo.js +35 -0
- package/dist/vue/icons/IconInfoCircle.d.ts +10 -0
- package/dist/vue/icons/IconInfoCircle.js +35 -0
- package/dist/vue/icons/IconLarkColor.d.ts +10 -0
- package/dist/vue/icons/IconLarkColor.js +35 -0
- package/dist/vue/icons/IconMinus.d.ts +10 -0
- package/dist/vue/icons/IconMinus.js +35 -0
- package/dist/vue/icons/IconMinusCircle.d.ts +10 -0
- package/dist/vue/icons/IconMinusCircle.js +35 -0
- package/dist/vue/icons/IconPlus.d.ts +10 -0
- package/dist/vue/icons/IconPlus.js +35 -0
- package/dist/vue/icons/IconPlusCircle.d.ts +10 -0
- package/dist/vue/icons/IconPlusCircle.js +35 -0
- package/dist/vue/icons/IconQqCircleFill.d.ts +10 -0
- package/dist/vue/icons/IconQqCircleFill.js +35 -0
- package/dist/vue/icons/IconQuestion.d.ts +10 -0
- package/dist/vue/icons/IconQuestion.js +35 -0
- package/dist/vue/icons/IconQuestionCircle.d.ts +10 -0
- package/dist/vue/icons/IconQuestionCircle.js +35 -0
- package/dist/vue/icons/IconStop.d.ts +10 -0
- package/dist/vue/icons/IconStop.js +35 -0
- package/dist/vue/icons/IconTiktokColor.d.ts +10 -0
- package/dist/vue/icons/IconTiktokColor.js +35 -0
- package/dist/vue/icons/IconTwitterCircleFill.d.ts +10 -0
- package/dist/vue/icons/IconTwitterCircleFill.js +35 -0
- package/dist/vue/icons/IconWeiboCircleFill.d.ts +10 -0
- package/dist/vue/icons/IconWeiboCircleFill.js +35 -0
- package/dist/vue/icons/IconXiguaColor.d.ts +10 -0
- package/dist/vue/icons/IconXiguaColor.js +35 -0
- package/dist/vue/index.d.ts +45 -0
- package/dist/vue/index.js +42 -0
- package/dist/vue/plugin.js +42 -0
- package/package.json +35 -0
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/** @deprecated */
|
|
6
|
+
export const IconDemoDownload = defineComponent({
|
|
7
|
+
name: "IconDemoDownload",
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
props: {
|
|
10
|
+
size: { type: [String, Number], default: "1em" },
|
|
11
|
+
color: { type: String, default: undefined },
|
|
12
|
+
originColor: { type: Boolean, default: false },
|
|
13
|
+
button: { type: Boolean, default: false },
|
|
14
|
+
background: { type: Boolean, default: true },
|
|
15
|
+
},
|
|
16
|
+
setup(props, { attrs, expose }) {
|
|
17
|
+
const root = ref(null);
|
|
18
|
+
expose({ el: root });
|
|
19
|
+
return () => {
|
|
20
|
+
const originColor = props.originColor;
|
|
21
|
+
const svgAttributes = { "viewBox": "0 0 24 24" };
|
|
22
|
+
const style = props.color === undefined ? attrs.style : [{ color: props.color }, attrs.style];
|
|
23
|
+
const svg = h("svg", props.button
|
|
24
|
+
? { ...svgAttributes, width: toSize(props.size), height: toSize(props.size), "aria-hidden": true }
|
|
25
|
+
: { ...attrs, ...svgAttributes, ref: root, width: toSize(props.size), height: toSize(props.size), style }, [h("path", { "d": "M12 3v12m-5-5 5 5 5-5M4 21h16" })]);
|
|
26
|
+
if (!props.button) return svg;
|
|
27
|
+
return h("button", {
|
|
28
|
+
...attrs,
|
|
29
|
+
ref: root,
|
|
30
|
+
type: attrs.type ?? "button",
|
|
31
|
+
class: joinClassNames("nstc-icon-button", props.background && "nstc-icon-button--background", attrs.class),
|
|
32
|
+
style,
|
|
33
|
+
}, [svg]);
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
});
|
|
@@ -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 IconDemoHome = defineComponent({
|
|
6
|
+
name: "IconDemoHome",
|
|
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 = { "viewBox": "0 0 24 24" };
|
|
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": "m3 11 9-8 9 8v10h-6v-6H9v6H3Z" })]);
|
|
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 IconDemoSearch: 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 IconDemoSearch = defineComponent({
|
|
6
|
+
name: "IconDemoSearch",
|
|
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 = { "viewBox": "0 0 24 24" };
|
|
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("circle", { "cx": "10", "cy": "10", "r": "6" }), h("path", { "d": "m15 15 6 6" })]);
|
|
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 IconDemoSettings: 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 IconDemoSettings = defineComponent({
|
|
6
|
+
name: "IconDemoSettings",
|
|
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 = { "viewBox": "0 0 24 24" };
|
|
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("circle", { "cx": "12", "cy": "12", "r": "3" }), h("path", { "d": "M12 2v4m0 12v4M2 12h4m12 0h4M5 5l3 3m8 8 3 3m0-14-3 3m-8 8-3 3" })]);
|
|
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 IconDemoUpload: 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 IconDemoUpload = defineComponent({
|
|
6
|
+
name: "IconDemoUpload",
|
|
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 = { "viewBox": "0 0 24 24" };
|
|
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": "M12 17V5m-5 5 5-5 5 5M4 21h16" })]);
|
|
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,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 IconDemoUser = defineComponent({
|
|
6
|
+
name: "IconDemoUser",
|
|
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 = { "viewBox": "0 0 24 24" };
|
|
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("circle", { "cx": "12", "cy": "8", "r": "4" }), h("path", { "d": "M4 22a8 8 0 0 1 16 0" })]);
|
|
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 IconExclamation: 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 IconExclamation = defineComponent({
|
|
6
|
+
name: "IconExclamation",
|
|
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": "M23 9h2v21h-2z" }), h("path", { "d": "M23 9h2v21h-2z", "fill": originColor ? "currentColor" : "currentColor", "stroke": "none" }), h("path", { "d": "M23 37h2v2h-2z" }), h("path", { "d": "M23 37h2v2h-2z", "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
|
+
});
|
|
@@ -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 IconExclamationCircle: 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 IconExclamationCircle = defineComponent({
|
|
6
|
+
name: "IconExclamationCircle",
|
|
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 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z" })]);
|
|
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 IconFaceBookCircleFill: 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 IconFaceBookCircleFill = defineComponent({
|
|
6
|
+
name: "IconFaceBookCircleFill",
|
|
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 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1m6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084z", "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
|
+
});
|
|
@@ -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 IconFacebookSquareFill: 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 IconFacebookSquareFill = defineComponent({
|
|
6
|
+
name: "IconFacebookSquareFill",
|
|
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": "M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25s-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713z", "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
|
+
});
|
|
@@ -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 IconFileExcelColor: 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 IconFileExcelColor = defineComponent({
|
|
6
|
+
name: "IconFileExcelColor",
|
|
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 = { "fill": "none", "viewBox": "0 0 36 36", "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("g", { "clip-path": "url(#file-excel-color_svg__a)" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": originColor ? "#00a98b" : "currentColor" }), h("mask", { "height": "34", "id": "file-excel-color_svg__b", "maskUnits": "userSpaceOnUse", "width": "32", "x": "2", "y": "1" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": "#fff" })]), h("g", { "mask": "url(#file-excel-color_svg__b)" }, [h("g", { "filter": "url(#file-excel-color_svg__c)" }, [h("path", { "d": "M26.329 6.107V1.8L34.2 9.707H29.93a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#000" : "currentColor" })]), h("path", { "d": "M26.329 6.107V1.8L34.2 9.707H29.93a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#10ceac" : "currentColor" })]), h("path", { "d": "M24.3 22.677 22.677 24.3 11.7 13.324l1.623-1.624zm-8.438-4.168 1.628 1.628-4.162 4.163-1.628-1.628zm8.438-5.181L20.126 17.5 18.5 15.874l4.174-4.174z", "fill": originColor ? "#fff" : "currentColor" })]), h("defs", { }, [h("clipPath", { "id": "file-excel-color_svg__a" }, [h("path", { "d": "M0 0h36v36H0z", "fill": "#fff" })]), h("filter", { "color-interpolation-filters": "sRGB", "filterUnits": "userSpaceOnUse", "height": "20.867", "id": "file-excel-color_svg__c", "width": "20.831", "x": "19.849", "y": "-5.76" }, [h("feFlood", { "flood-opacity": "0", "result": "BackgroundImageFix" }), h("feColorMatrix", { "in": "SourceAlpha", "result": "hardAlpha", "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), h("feOffset", { "dy": "-1.08" }), h("feGaussianBlur", { "stdDeviation": "3.24" }), h("feColorMatrix", { "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0" }), h("feBlend", { "in2": "BackgroundImageFix", "result": "effect1_dropShadow_1743_1071" }), h("feBlend", { "in": "SourceGraphic", "in2": "effect1_dropShadow_1743_1071", "result": "shape" })])])]);
|
|
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 IconFileImageColor: 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 IconFileImageColor = defineComponent({
|
|
6
|
+
name: "IconFileImageColor",
|
|
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 = { "fill": "none", "viewBox": "0 0 36 36", "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("g", { "clip-path": "url(#file-image-color_svg__a)" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": originColor ? "#f1c44b" : "currentColor" }), h("mask", { "height": "34", "id": "file-image-color_svg__b", "maskUnits": "userSpaceOnUse", "width": "32", "x": "2", "y": "1" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": "#fff" })]), h("g", { "mask": "url(#file-image-color_svg__b)" }, [h("g", { "filter": "url(#file-image-color_svg__c)" }, [h("path", { "d": "M25.654 5.881V1.8L33.3 9.481h-4.046a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#000" : "currentColor" })]), h("path", { "d": "M25.654 5.881V1.8L33.3 9.481h-4.046a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#ffd973" : "currentColor" })]), h("mask", { "height": "34", "id": "file-image-color_svg__d", "maskUnits": "userSpaceOnUse", "width": "32", "x": "2", "y": "1" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": "#fff" })]), h("g", { "mask": "url(#file-image-color_svg__d)" }, [h("path", { "d": "M22.641 22.648H11.54c-.053 0-.096-.046-.096-.103v-2.312q0-.03.014-.054l3.305-5.954a.092.092 0 0 1 .157-.012l4.5 5.917c.032.042.088.05.13.02l3.042-2.277c.063-.048.15.001.15.085l-.003 4.587c0 .057-.044.103-.097.103m1.042-8.473c0 1.476-1.7 2.556-3.25 1.388a.1.1 0 0 1-.022-.022c-1.168-1.55-.088-3.25 1.389-3.25a1.884 1.884 0 0 1 1.883 1.885z", "fill": originColor ? "#fff" : "currentColor" })])]), h("defs", { }, [h("clipPath", { "id": "file-image-color_svg__a" }, [h("path", { "d": "M0 0h36v36H0z", "fill": "#fff" })]), h("filter", { "color-interpolation-filters": "sRGB", "filterUnits": "userSpaceOnUse", "height": "20.641", "id": "file-image-color_svg__c", "width": "20.606", "x": "19.174", "y": "-5.76" }, [h("feFlood", { "flood-opacity": "0", "result": "BackgroundImageFix" }), h("feColorMatrix", { "in": "SourceAlpha", "result": "hardAlpha", "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), h("feOffset", { "dy": "-1.08" }), h("feGaussianBlur", { "stdDeviation": "3.24" }), h("feColorMatrix", { "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0" }), h("feBlend", { "in2": "BackgroundImageFix", "result": "effect1_dropShadow_1743_1073" }), h("feBlend", { "in": "SourceGraphic", "in2": "effect1_dropShadow_1743_1073", "result": "shape" })])])]);
|
|
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 IconFilePdfColor: 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 IconFilePdfColor = defineComponent({
|
|
6
|
+
name: "IconFilePdfColor",
|
|
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 = { "fill": "none", "viewBox": "0 0 36 36", "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("g", { "clip-path": "url(#file-pdf-color_svg__a)" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": originColor ? "#ff662c" : "currentColor" }), h("mask", { "height": "34", "id": "file-pdf-color_svg__b", "maskUnits": "userSpaceOnUse", "width": "32", "x": "2", "y": "1" }, [h("path", { "d": "M6.3 1.8h19.381L33.3 9.483V30.6a3.6 3.6 0 0 1-3.6 3.6H6.3a3.6 3.6 0 0 1-3.6-3.6V5.4a3.6 3.6 0 0 1 3.6-3.6", "fill": "#fff" })]), h("g", { "mask": "url(#file-pdf-color_svg__b)" }, [h("g", { "filter": "url(#file-pdf-color_svg__c)" }, [h("path", { "d": "M25.654 5.881V1.8L33.3 9.481h-4.046a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#000" : "currentColor" })]), h("path", { "d": "M25.654 5.881V1.8L33.3 9.481h-4.046a3.6 3.6 0 0 1-3.6-3.6", "fill": originColor ? "#ff7f4e" : "currentColor" })]), h("path", { "d": "M16.805 11.417v2.32l-.004 3.537h.004v2.32l-.004 4.063h-2.945v-12.24zm1.345 0c2.698 0 4.92.954 4.92 3.982 0 2.912-2.255 4.195-4.837 4.195h-.554v-2.32h.405c1.398 0 2.09-.643 2.122-1.79v-.085c0-1.234-.789-1.662-2.204-1.662h-.323v-2.32z", "fill": originColor ? "#fff" : "currentColor" })]), h("defs", { }, [h("clipPath", { "id": "file-pdf-color_svg__a" }, [h("path", { "d": "M0 0h36v36H0z", "fill": "#fff" })]), h("filter", { "color-interpolation-filters": "sRGB", "filterUnits": "userSpaceOnUse", "height": "20.641", "id": "file-pdf-color_svg__c", "width": "20.606", "x": "19.174", "y": "-5.76" }, [h("feFlood", { "flood-opacity": "0", "result": "BackgroundImageFix" }), h("feColorMatrix", { "in": "SourceAlpha", "result": "hardAlpha", "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" }), h("feOffset", { "dy": "-1.08" }), h("feGaussianBlur", { "stdDeviation": "3.24" }), h("feColorMatrix", { "values": "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0" }), h("feBlend", { "in2": "BackgroundImageFix", "result": "effect1_dropShadow_1743_1074" }), h("feBlend", { "in": "SourceGraphic", "in2": "effect1_dropShadow_1743_1074", "result": "shape" })])])]);
|
|
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 IconFileUnknownColor: DefineComponent<IconProps>;
|