@vuonweb/vue 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.
- package/LICENSE +21 -0
- package/package.json +32 -0
- package/src/Home.vue +14 -0
- package/src/HomeSolid.vue +14 -0
- package/src/Icon.vue +29 -0
- package/src/Search.vue +14 -0
- package/src/Trashed.vue +16 -0
- package/src/User.vue +14 -0
- package/src/icon-map.ts +18 -0
- package/src/index.ts +11 -0
- package/src/types.ts +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 icon-builder contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vuonweb/vue",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Icon components sinh tự động từ icons/ cho Vue 3 (phân phối dạng SFC source, chưa bundle).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"main": "./src/index.ts",
|
|
13
|
+
"types": "./src/index.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./src/index.ts"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"src"
|
|
19
|
+
],
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"vue": ">=3.3"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"typescript": "^5.6.2",
|
|
25
|
+
"vue": "^3.4.38",
|
|
26
|
+
"vue-tsc": "^2.1.6"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "echo '[@vuonweb/vue] ships as .vue SFC source, no bundling step needed'",
|
|
30
|
+
"typecheck": "vue-tsc --noEmit"
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/Home.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
@generated
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import BaseIcon from "./Icon.vue";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<BaseIcon viewBox="0 0 24 24" fill="none">
|
|
12
|
+
<path d="M3 10.5 12 3l9 7.5" /><path d="M5 9.5V21h14V9.5" /><path d="M9 21v-6h6v6" />
|
|
13
|
+
</BaseIcon>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
@generated
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import BaseIcon from "./Icon.vue";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<BaseIcon viewBox="0 0 24 24" stroke="none">
|
|
12
|
+
<path d="m12 3-9 7.5V21h6v-6h6v6h6V10.5z" />
|
|
13
|
+
</BaseIcon>
|
|
14
|
+
</template>
|
package/src/Icon.vue
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
withDefaults(
|
|
3
|
+
defineProps<{
|
|
4
|
+
size?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
}>(),
|
|
8
|
+
{
|
|
9
|
+
size: 24,
|
|
10
|
+
color: "currentColor",
|
|
11
|
+
strokeWidth: 2,
|
|
12
|
+
},
|
|
13
|
+
);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<svg
|
|
18
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
19
|
+
:width="size"
|
|
20
|
+
:height="size"
|
|
21
|
+
:fill="color"
|
|
22
|
+
:stroke="color"
|
|
23
|
+
:stroke-width="strokeWidth"
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</svg>
|
|
29
|
+
</template>
|
package/src/Search.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
@generated
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import BaseIcon from "./Icon.vue";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<BaseIcon viewBox="0 0 24 24" fill="none">
|
|
12
|
+
<circle cx="11" cy="11" r="7" /><path d="m21 21-4.35-4.35" />
|
|
13
|
+
</BaseIcon>
|
|
14
|
+
</template>
|
package/src/Trashed.vue
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
@generated
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import BaseIcon from "./Icon.vue";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<BaseIcon viewBox="0 0 24 24" fill="none">
|
|
12
|
+
<path
|
|
13
|
+
d="M21 5.98c-3.33-.33-6.68-.5-10.02-.5q-2.97 0-5.94.3L3 5.98m5.5-1.01.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3m3.35 4.17-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14m5.18 7.36h3.33m-4.16-4h5"
|
|
14
|
+
/>
|
|
15
|
+
</BaseIcon>
|
|
16
|
+
</template>
|
package/src/User.vue
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
@generated
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import BaseIcon from "./Icon.vue";
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<BaseIcon viewBox="0 0 24 24" fill="none">
|
|
12
|
+
<circle cx="12" cy="8" r="4" /><path d="M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8" />
|
|
13
|
+
</BaseIcon>
|
|
14
|
+
</template>
|
package/src/icon-map.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
* @generated
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import Home from "./Home.vue";
|
|
7
|
+
import Search from "./Search.vue";
|
|
8
|
+
import Trashed from "./Trashed.vue";
|
|
9
|
+
import User from "./User.vue";
|
|
10
|
+
import HomeSolid from "./HomeSolid.vue";
|
|
11
|
+
|
|
12
|
+
export const iconMap = {
|
|
13
|
+
Home,
|
|
14
|
+
Search,
|
|
15
|
+
Trashed,
|
|
16
|
+
User,
|
|
17
|
+
HomeSolid,
|
|
18
|
+
} as const;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File này được sinh tự động bởi icon-builder. Không sửa tay.
|
|
3
|
+
* @generated
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export { default as Icon } from "./Icon.vue";
|
|
7
|
+
export { default as Home } from "./Home.vue";
|
|
8
|
+
export { default as Search } from "./Search.vue";
|
|
9
|
+
export { default as Trashed } from "./Trashed.vue";
|
|
10
|
+
export { default as User } from "./User.vue";
|
|
11
|
+
export { default as HomeSolid } from "./HomeSolid.vue";
|