@nudge-icons/vue 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,117 @@
1
+ import { VNode } from "vue";
2
+ declare const createIcon: (name: string, displayName: string, node: IconNode, css?: string) => import("vue").DefineComponent<{
3
+ readonly animate: Animate;
4
+ readonly active?: boolean | undefined | undefined;
5
+ readonly size: number | string;
6
+ readonly strokeWidth: number | string;
7
+ readonly color: string;
8
+ readonly absoluteStrokeWidth: boolean;
9
+ readonly title: string | undefined;
10
+ }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
+ [key: string]: any;
12
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
13
+ readonly animate: Animate;
14
+ readonly active?: boolean | undefined | undefined;
15
+ readonly size: number | string;
16
+ readonly strokeWidth: number | string;
17
+ readonly color: string;
18
+ readonly absoluteStrokeWidth: boolean;
19
+ readonly title: string | undefined;
20
+ }> & Readonly<{}>, {
21
+ size: string | number;
22
+ strokeWidth: string | number;
23
+ color: string;
24
+ absoluteStrokeWidth: boolean;
25
+ title: string;
26
+ animate: Animate;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ declare const createToggleIcon: (name: string, displayName: string, node: IconNode, css?: string) => import("vue").DefineComponent<{
29
+ readonly animate: Animate;
30
+ readonly active?: boolean | undefined | undefined;
31
+ readonly size: number | string;
32
+ readonly strokeWidth: number | string;
33
+ readonly color: string;
34
+ readonly absoluteStrokeWidth: boolean;
35
+ readonly title: string | undefined;
36
+ }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
37
+ [key: string]: any;
38
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
39
+ readonly animate: Animate;
40
+ readonly active?: boolean | undefined | undefined;
41
+ readonly size: number | string;
42
+ readonly strokeWidth: number | string;
43
+ readonly color: string;
44
+ readonly absoluteStrokeWidth: boolean;
45
+ readonly title: string | undefined;
46
+ }> & Readonly<{}>, {
47
+ size: string | number;
48
+ strokeWidth: string | number;
49
+ color: string;
50
+ absoluteStrokeWidth: boolean;
51
+ title: string;
52
+ animate: Animate;
53
+ active: boolean;
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
+ /** An icon without motion CSS: imports nothing from the animated code. */
56
+ declare const createStaticIcon: (name: string, displayName: string, node: IconNode) => import("vue").DefineComponent<import("vue").ExtractPropTypes<{
57
+ size: {
58
+ type: import("vue").PropType<number | string>;
59
+ default: number;
60
+ };
61
+ strokeWidth: {
62
+ type: import("vue").PropType<number | string>;
63
+ default: number;
64
+ };
65
+ color: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ absoluteStrokeWidth: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ title: {
74
+ type: StringConstructor;
75
+ default: undefined;
76
+ };
77
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
78
+ [key: string]: any;
79
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
+ size: {
81
+ type: import("vue").PropType<number | string>;
82
+ default: number;
83
+ };
84
+ strokeWidth: {
85
+ type: import("vue").PropType<number | string>;
86
+ default: number;
87
+ };
88
+ color: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ absoluteStrokeWidth: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ title: {
97
+ type: StringConstructor;
98
+ default: undefined;
99
+ };
100
+ }>> & Readonly<{}>, {
101
+ size: string | number;
102
+ strokeWidth: string | number;
103
+ color: string;
104
+ absoluteStrokeWidth: boolean;
105
+ title: string;
106
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
107
+ /** Icon drawing as data: `[tag, attributes, children]`, generated from icons/*.svg. */
108
+ type IconNode = ReadonlyArray<readonly [tag: string, attrs: Readonly<Record<string, string>>, children?: IconNode]>;
109
+ /**
110
+ * When the motion plays: on hover or focus (also of an interactive parent), in a loop,
111
+ * once on mount, a number of times (`3`), or never.
112
+ */
113
+ type Animate = "hover" | "loop" | "once" | number | false;
114
+ type IconComponent = ReturnType<typeof createIcon>;
115
+ type ToggleIconComponent = ReturnType<typeof createToggleIcon>;
116
+ type StaticIconComponent = ReturnType<typeof createStaticIcon>;
117
+ export { ToggleIconComponent as i, IconComponent as n, StaticIconComponent as r, Animate as t };
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
1
  {
2
2
  "name": "@nudge-icons/vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Animated line icons for Vue",
5
+ "keywords": [
6
+ "vue",
7
+ "icons",
8
+ "animated-icons",
9
+ "svg",
10
+ "css-animation",
11
+ "lucide"
12
+ ],
13
+ "homepage": "https://nudge-icons.github.io/nudge-icons/docs/getting-started",
14
+ "bugs": {
15
+ "url": "https://github.com/nudge-icons/nudge-icons/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/nudge-icons/nudge-icons.git",
20
+ "directory": "packages/vue"
21
+ },
22
+ "license": "MIT",
23
+ "author": "Dmytro Shyshko (https://github.com/dimon85)",
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "files": [
27
+ "dist",
28
+ "LICENSE",
29
+ "README.md"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./static": {
37
+ "types": "./dist/static.d.ts",
38
+ "import": "./dist/static.js"
39
+ }
40
+ },
41
+ "peerDependencies": {
42
+ "vue": ">=3.3"
43
+ },
44
+ "devDependencies": {
45
+ "@vue/test-utils": "2.5.1",
46
+ "tsdown": "0.23.7",
47
+ "vue": "3.5.45"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "scripts": {
53
+ "build": "tsdown",
54
+ "typecheck": "tsc --noEmit"
55
+ }
6
56
  }