@vuonweb/svelte 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 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,37 @@
1
+ {
2
+ "name": "@vuonweb/svelte",
3
+ "version": "0.1.0",
4
+ "description": "Icon components sinh tự động từ icons/ cho Svelte (phân phối dạng .svelte source, chưa bundle).",
5
+ "license": "MIT",
6
+ "private": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "type": "module",
11
+ "sideEffects": false,
12
+ "svelte": "./src/index.ts",
13
+ "main": "./src/index.ts",
14
+ "types": "./src/index.ts",
15
+ "exports": {
16
+ ".": {
17
+ "svelte": "./src/index.ts",
18
+ "default": "./src/index.ts"
19
+ }
20
+ },
21
+ "files": [
22
+ "src"
23
+ ],
24
+ "peerDependencies": {
25
+ "svelte": ">=4"
26
+ },
27
+ "devDependencies": {
28
+ "svelte": "^4.2.19",
29
+ "svelte-check": "^3.8.6",
30
+ "svelte-preprocess": "^6.0.3",
31
+ "typescript": "^5.6.2"
32
+ },
33
+ "scripts": {
34
+ "build": "echo '[@vuonweb/svelte] ships as .svelte source, no bundling step needed'",
35
+ "typecheck": "svelte-check --tsconfig ./tsconfig.json"
36
+ }
37
+ }
@@ -0,0 +1,12 @@
1
+ <!--
2
+ File này được sinh tự động bởi icon-builder. Không sửa tay.
3
+ @generated
4
+ -->
5
+
6
+ <script lang="ts">
7
+ import Icon from "./Icon.svelte";
8
+ </script>
9
+
10
+ <Icon viewBox="0 0 24 24" fill="none" {...$$restProps}>
11
+ <path d="M3 10.5 12 3l9 7.5" /><path d="M5 9.5V21h14V9.5" /><path d="M9 21v-6h6v6" />
12
+ </Icon>
@@ -0,0 +1,12 @@
1
+ <!--
2
+ File này được sinh tự động bởi icon-builder. Không sửa tay.
3
+ @generated
4
+ -->
5
+
6
+ <script lang="ts">
7
+ import Icon from "./Icon.svelte";
8
+ </script>
9
+
10
+ <Icon viewBox="0 0 24 24" stroke="none" {...$$restProps}>
11
+ <path d="m12 3-9 7.5V21h6v-6h6v6h6V10.5z" />
12
+ </Icon>
@@ -0,0 +1,19 @@
1
+ <script lang="ts">
2
+ export let size: number = 24;
3
+ export let color: string = "currentColor";
4
+ export let strokeWidth: number = 2;
5
+ </script>
6
+
7
+ <svg
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ width={size}
10
+ height={size}
11
+ fill={color}
12
+ stroke={color}
13
+ stroke-width={strokeWidth}
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ {...$$restProps}
17
+ >
18
+ <slot />
19
+ </svg>
@@ -0,0 +1,12 @@
1
+ <!--
2
+ File này được sinh tự động bởi icon-builder. Không sửa tay.
3
+ @generated
4
+ -->
5
+
6
+ <script lang="ts">
7
+ import Icon from "./Icon.svelte";
8
+ </script>
9
+
10
+ <Icon viewBox="0 0 24 24" fill="none" {...$$restProps}>
11
+ <circle cx="11" cy="11" r="7" /><path d="m21 21-4.35-4.35" />
12
+ </Icon>
@@ -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 lang="ts">
7
+ import Icon from "./Icon.svelte";
8
+ </script>
9
+
10
+ <Icon viewBox="0 0 24 24" fill="none" {...$$restProps}>
11
+ <path
12
+ 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"
13
+ />
14
+ </Icon>
@@ -0,0 +1,12 @@
1
+ <!--
2
+ File này được sinh tự động bởi icon-builder. Không sửa tay.
3
+ @generated
4
+ -->
5
+
6
+ <script lang="ts">
7
+ import Icon from "./Icon.svelte";
8
+ </script>
9
+
10
+ <Icon viewBox="0 0 24 24" fill="none" {...$$restProps}>
11
+ <circle cx="12" cy="8" r="4" /><path d="M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8" />
12
+ </Icon>
@@ -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.svelte";
7
+ import Search from "./Search.svelte";
8
+ import Trashed from "./Trashed.svelte";
9
+ import User from "./User.svelte";
10
+ import HomeSolid from "./HomeSolid.svelte";
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.svelte";
7
+ export { default as Home } from "./Home.svelte";
8
+ export { default as Search } from "./Search.svelte";
9
+ export { default as Trashed } from "./Trashed.svelte";
10
+ export { default as User } from "./User.svelte";
11
+ export { default as HomeSolid } from "./HomeSolid.svelte";
package/src/types.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * File này được sinh tự động bởi icon-builder. Không sửa tay.
3
+ * @generated
4
+ */
5
+
6
+ export type IconName = "home" | "search" | "trashed" | "user" | "home-solid";