@proto.ui/prototypes-lucide 0.0.1 → 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/README.md +80 -80
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
# @proto.ui/prototypes-lucide
|
|
2
|
-
|
|
3
|
-
Lucide-based icon prototype helpers for Proto UI.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
Provides:
|
|
8
|
-
|
|
9
|
-
- a standalone `lucide-icon` prototype (`asHook` + prototype form)
|
|
10
|
-
- per-icon static entrypoints for tree-shaking (`@proto.ui/prototypes-lucide/icons/*`)
|
|
11
|
-
- `renderLucideIcon()` helper for compatibility name-based rendering
|
|
12
|
-
- generated manifest/snippets/loaders for docs and lazy loading scenarios
|
|
13
|
-
|
|
14
|
-
## Source Attribution
|
|
15
|
-
|
|
16
|
-
- Icon visual definitions are derived from [Lucide](https://lucide.dev/).
|
|
17
|
-
- This package is a Proto UI-side consumption layer and is **not** an official Lucide package.
|
|
18
|
-
- Please keep upstream Lucide license/attribution in distribution and documentation workflows.
|
|
19
|
-
|
|
20
|
-
## Package Role
|
|
21
|
-
|
|
22
|
-
Prototype-oriented icon utilities for Proto UI render templates.
|
|
23
|
-
|
|
24
|
-
## Install
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm install @proto.ui/prototypes-lucide@0.0.1
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Internal Structure
|
|
31
|
-
|
|
32
|
-
- `src/icon/`
|
|
33
|
-
- `src/icons/` (generated single-icon modules)
|
|
34
|
-
- `src/shapes/` (generated shape-only modules for preview/lazy rendering)
|
|
35
|
-
- `src/index.ts`
|
|
36
|
-
- `src/manifest.generated.ts`
|
|
37
|
-
- `src/snippets.generated.ts`
|
|
38
|
-
- `src/loaders.generated.ts`
|
|
39
|
-
- `icons.config.json`
|
|
40
|
-
- `scripts/generate-icons.mjs`
|
|
41
|
-
|
|
42
|
-
## Generation
|
|
43
|
-
|
|
44
|
-
Generate icon modules from `lucide-static` using `icons.config.json`.
|
|
45
|
-
|
|
46
|
-
- `icons: "all"` means generate all upstream Lucide icons.
|
|
47
|
-
- `icons: [...]` means generate only the provided subset.
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
pnpm --filter @proto.ui/prototypes-lucide run generate:icons
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Generated outputs include:
|
|
54
|
-
|
|
55
|
-
- `src/icons/<icon-name>.ts`
|
|
56
|
-
- `src/shapes/<icon-name>.ts`
|
|
57
|
-
- `src/icons/index.generated.ts`
|
|
58
|
-
- `src/icon/icons.generated.ts` (compat registry)
|
|
59
|
-
- `src/manifest.generated.ts`
|
|
60
|
-
- `src/snippets.generated.ts`
|
|
61
|
-
- `src/loaders.generated.ts`
|
|
62
|
-
|
|
63
|
-
## Recommended Consumption
|
|
64
|
-
|
|
65
|
-
- Static, tree-shakable import:
|
|
66
|
-
- `import { renderLucideCheckIcon } from '@proto.ui/prototypes-lucide/icons/check'`
|
|
67
|
-
- Dynamic on-demand import by name:
|
|
68
|
-
- `import { loadLucideIcon } from '@proto.ui/prototypes-lucide/loaders'`
|
|
69
|
-
- `import { loadLucideIconShape } from '@proto.ui/prototypes-lucide/loaders'`
|
|
70
|
-
- Manifest/snippet for docs:
|
|
71
|
-
- `import { LUCIDE_ICON_MANIFEST } from '@proto.ui/prototypes-lucide/manifest'`
|
|
72
|
-
- `import { getLucideIconSnippet } from '@proto.ui/prototypes-lucide/snippets'`
|
|
73
|
-
|
|
74
|
-
## Related Internal Packages
|
|
75
|
-
|
|
76
|
-
- `@proto.ui/core`
|
|
77
|
-
|
|
78
|
-
## License
|
|
79
|
-
|
|
80
|
-
MIT
|
|
1
|
+
# @proto.ui/prototypes-lucide
|
|
2
|
+
|
|
3
|
+
Lucide-based icon prototype helpers for Proto UI.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Provides:
|
|
8
|
+
|
|
9
|
+
- a standalone `lucide-icon` prototype (`asHook` + prototype form)
|
|
10
|
+
- per-icon static entrypoints for tree-shaking (`@proto.ui/prototypes-lucide/icons/*`)
|
|
11
|
+
- `renderLucideIcon()` helper for compatibility name-based rendering
|
|
12
|
+
- generated manifest/snippets/loaders for docs and lazy loading scenarios
|
|
13
|
+
|
|
14
|
+
## Source Attribution
|
|
15
|
+
|
|
16
|
+
- Icon visual definitions are derived from [Lucide](https://lucide.dev/).
|
|
17
|
+
- This package is a Proto UI-side consumption layer and is **not** an official Lucide package.
|
|
18
|
+
- Please keep upstream Lucide license/attribution in distribution and documentation workflows.
|
|
19
|
+
|
|
20
|
+
## Package Role
|
|
21
|
+
|
|
22
|
+
Prototype-oriented icon utilities for Proto UI render templates.
|
|
23
|
+
|
|
24
|
+
## Install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @proto.ui/prototypes-lucide@0.0.1
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Internal Structure
|
|
31
|
+
|
|
32
|
+
- `src/icon/`
|
|
33
|
+
- `src/icons/` (generated single-icon modules)
|
|
34
|
+
- `src/shapes/` (generated shape-only modules for preview/lazy rendering)
|
|
35
|
+
- `src/index.ts`
|
|
36
|
+
- `src/manifest.generated.ts`
|
|
37
|
+
- `src/snippets.generated.ts`
|
|
38
|
+
- `src/loaders.generated.ts`
|
|
39
|
+
- `icons.config.json`
|
|
40
|
+
- `scripts/generate-icons.mjs`
|
|
41
|
+
|
|
42
|
+
## Generation
|
|
43
|
+
|
|
44
|
+
Generate icon modules from `lucide-static` using `icons.config.json`.
|
|
45
|
+
|
|
46
|
+
- `icons: "all"` means generate all upstream Lucide icons.
|
|
47
|
+
- `icons: [...]` means generate only the provided subset.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pnpm --filter @proto.ui/prototypes-lucide run generate:icons
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Generated outputs include:
|
|
54
|
+
|
|
55
|
+
- `src/icons/<icon-name>.ts`
|
|
56
|
+
- `src/shapes/<icon-name>.ts`
|
|
57
|
+
- `src/icons/index.generated.ts`
|
|
58
|
+
- `src/icon/icons.generated.ts` (compat registry)
|
|
59
|
+
- `src/manifest.generated.ts`
|
|
60
|
+
- `src/snippets.generated.ts`
|
|
61
|
+
- `src/loaders.generated.ts`
|
|
62
|
+
|
|
63
|
+
## Recommended Consumption
|
|
64
|
+
|
|
65
|
+
- Static, tree-shakable import:
|
|
66
|
+
- `import { renderLucideCheckIcon } from '@proto.ui/prototypes-lucide/icons/check'`
|
|
67
|
+
- Dynamic on-demand import by name:
|
|
68
|
+
- `import { loadLucideIcon } from '@proto.ui/prototypes-lucide/loaders'`
|
|
69
|
+
- `import { loadLucideIconShape } from '@proto.ui/prototypes-lucide/loaders'`
|
|
70
|
+
- Manifest/snippet for docs:
|
|
71
|
+
- `import { LUCIDE_ICON_MANIFEST } from '@proto.ui/prototypes-lucide/manifest'`
|
|
72
|
+
- `import { getLucideIconSnippet } from '@proto.ui/prototypes-lucide/snippets'`
|
|
73
|
+
|
|
74
|
+
## Related Internal Packages
|
|
75
|
+
|
|
76
|
+
- `@proto.ui/core`
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proto.ui/prototypes-lucide",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@proto.ui/core": "0.0
|
|
6
|
+
"@proto.ui/core": "0.1.0",
|
|
7
7
|
"lucide-static": "^1.8.0"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"description": "Lucide-based Proto UI icon prototype library and svg render helpers.",
|
|
40
40
|
"license": "MIT",
|
|
41
|
-
"homepage": "https://github.com/
|
|
41
|
+
"homepage": "https://github.com/Proto-UI/Proto-UI/tree/main/packages/prototypes/lucide",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": "git+https://github.com/
|
|
44
|
+
"url": "git+https://github.com/Proto-UI/Proto-UI.git",
|
|
45
45
|
"directory": "packages/prototypes/lucide"
|
|
46
46
|
},
|
|
47
47
|
"bugs": {
|
|
48
|
-
"url": "https://github.com/
|
|
48
|
+
"url": "https://github.com/Proto-UI/Proto-UI/issues"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|