@sidekickicons/svelte 0.1.0 → 0.12.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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Svelte package that combines [Heroicons](https://github.com/tailwindlabs/heroicons) and [Sidekickicons](https://github.com/ndrik/sidekickicons).
4
4
 
5
+ This package requires Svelte 5.19.0 or later.
6
+
5
7
  ## Usage
6
8
 
7
9
  First, install `@sidekickicons/svelte` from npm:
@@ -33,7 +35,7 @@ Import the icons from their respective directory:
33
35
 
34
36
  Icons use an upper camel case naming convention and are always suffixed with the word `Icon`.
35
37
 
36
- [Browse the full list of icon names on UNPKG →](https://unpkg.com/browse/@sidekickicons/react/24/outline/)
38
+ [Browse the full list of icon names on UNPKG →](https://unpkg.com/browse/@sidekickicons/svelte/24/outline/)
37
39
 
38
40
  The imported components are simple Svelte components that accept the `class` prop.
39
41
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- declare const proxy: any;
2
- export default proxy;
3
- export declare const __useProxy = true;
4
- export declare function __catch(): void;
1
+ declare const _default: {};
2
+ export default _default;
package/dist/index.js CHANGED
@@ -1,20 +1,16 @@
1
- // This file exists to handle incorrect imports from the root package.
2
- // Create a proxy handler for ES modules
3
- const handler = {
4
- get: (target, prop) => {
5
- if (prop === "default" || prop === "__esModule") {
6
- return target;
7
- }
8
- throw new Error(`Importing from '@sidekickicons/svelte' directly is not supported. Please import from '@sidekickicons/svelte/16/solid', '@sidekickicons/svelte/20/solid', '@sidekickicons/svelte/24/solid', or '@sidekickicons/svelte/24/outline' instead.`);
1
+ // The only reason this file exists is to appease Vite's optimizeDeps feature which requires a root-level import.
2
+
3
+ export default new Proxy(
4
+ {},
5
+ {
6
+ get: (_, property) => {
7
+ if (property === "__esModule") {
8
+ return {};
9
+ }
10
+
11
+ throw new Error(
12
+ `Importing from \`@sidekickicons/svelte\` directly is not supported. Please import from either \`@sidekickicons/svelte/16/solid\`, \`@sidekickicons/svelte/20/solid\`, \`@sidekickicons/svelte/24/solid\`, or \`@sidekickicons/svelte/24/outline\` instead.`
13
+ );
9
14
  },
10
- };
11
- // Create the proxy object
12
- const proxy = new Proxy({}, handler);
13
- // Export default and named exports through the proxy
14
- export default proxy;
15
- // Handle named exports using the same proxy
16
- export const __useProxy = true;
17
- // This will catch any attempt to import anything from this file
18
- export function __catch() {
19
- throw new Error(`Importing from '@sidekickicons/svelte' directly is not supported. Please import from '@sidekickicons/svelte/16/solid', '@sidekickicons/svelte/20/solid', '@sidekickicons/svelte/24/solid', or '@sidekickicons/svelte/24/outline' instead.`);
20
- }
15
+ }
16
+ );
package/package.json CHANGED
@@ -1,23 +1,26 @@
1
1
  {
2
2
  "name": "@sidekickicons/svelte",
3
3
  "license": "MIT",
4
- "version": "0.1.0",
5
- "scripts": {
6
- "dev": "vite dev",
7
- "build": "pnpm download-icons && pnpm build-icons && vite build && pnpm prepack",
8
- "download-icons": "node scripts/download-icons.js",
9
- "build-icons": "node scripts/build-icons.js",
10
- "preview": "vite preview",
11
- "prepare": "svelte-kit sync || echo ''",
12
- "prepack": "svelte-kit sync && svelte-package && publint",
13
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
14
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
4
+ "version": "0.12.0",
5
+ "description": "",
6
+ "keywords": [
7
+ "svelte",
8
+ "icons",
9
+ "heroicons",
10
+ "sidekickicons",
11
+ "svg"
12
+ ],
13
+ "homepage": "https://github.com/ndri/sidekickicons-svelte#readme",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/ndri/sidekickicons-svelte.git"
15
17
  },
16
18
  "files": [
17
19
  "dist",
18
20
  "!dist/**/*.test.*",
19
21
  "!dist/**/*.spec.*"
20
22
  ],
23
+ "sideEffects": false,
21
24
  "svelte": "./dist/index.js",
22
25
  "types": "./dist/index.d.ts",
23
26
  "type": "module",
@@ -25,6 +28,54 @@
25
28
  ".": {
26
29
  "types": "./dist/index.d.ts",
27
30
  "svelte": "./dist/index.js"
31
+ },
32
+ "./16/solid": {
33
+ "types": "./dist/16/solid/index.d.ts",
34
+ "svelte": "./dist/16/solid/index.js"
35
+ },
36
+ "./16/solid/*": {
37
+ "types": "./dist/16/solid/*.d.ts",
38
+ "svelte": "./dist/16/solid/*.svelte"
39
+ },
40
+ "./16/solid/*.svelte": {
41
+ "types": "./dist/16/solid/*.d.ts",
42
+ "svelte": "./dist/16/solid/*.svelte"
43
+ },
44
+ "./20/solid": {
45
+ "types": "./dist/20/solid/index.d.ts",
46
+ "svelte": "./dist/20/solid/index.js"
47
+ },
48
+ "./20/solid/*": {
49
+ "types": "./dist/20/solid/*.d.ts",
50
+ "svelte": "./dist/20/solid/*.svelte"
51
+ },
52
+ "./20/solid/*.svelte": {
53
+ "types": "./dist/20/solid/*.d.ts",
54
+ "svelte": "./dist/20/solid/*.svelte"
55
+ },
56
+ "./24/outline": {
57
+ "types": "./dist/24/outline/index.d.ts",
58
+ "svelte": "./dist/24/outline/index.js"
59
+ },
60
+ "./24/outline/*": {
61
+ "types": "./dist/24/outline/*.d.ts",
62
+ "svelte": "./dist/24/outline/*.svelte"
63
+ },
64
+ "./24/outline/*.svelte": {
65
+ "types": "./dist/24/outline/*.d.ts",
66
+ "svelte": "./dist/24/outline/*.svelte"
67
+ },
68
+ "./24/solid": {
69
+ "types": "./dist/24/solid/index.d.ts",
70
+ "svelte": "./dist/24/solid/index.js"
71
+ },
72
+ "./24/solid/*": {
73
+ "types": "./dist/24/solid/*.d.ts",
74
+ "svelte": "./dist/24/solid/*.svelte"
75
+ },
76
+ "./24/solid/*.svelte": {
77
+ "types": "./dist/24/solid/*.d.ts",
78
+ "svelte": "./dist/24/solid/*.svelte"
28
79
  }
29
80
  },
30
81
  "devDependencies": {
@@ -41,12 +92,16 @@
41
92
  "typescript": "^5.8.3",
42
93
  "vite": "^6.3.4"
43
94
  },
44
- "keywords": [
45
- "svelte"
46
- ],
47
- "pnpm": {
48
- "onlyBuiltDependencies": [
49
- "esbuild"
50
- ]
95
+ "publishConfig": {
96
+ "access": "public"
97
+ },
98
+ "scripts": {
99
+ "dev": "vite dev",
100
+ "build": "pnpm download-icons && pnpm build-icons && vite build && pnpm prepack",
101
+ "download-icons": "node scripts/download-icons.js",
102
+ "build-icons": "node scripts/build-icons.js",
103
+ "preview": "vite preview",
104
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
105
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
51
106
  }
52
- }
107
+ }