@ladder-ui/manifests 0.10.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/dist/data/inventory.d.ts +1 -0
- package/dist/data/manifests.d.ts +2 -0
- package/dist/data/recipes.d.ts +1 -0
- package/dist/index.d.ts +125 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/types.d.ts +96 -0
- package/package.json +57 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export type TokenType = "color" | "dimension" | "shadow" | "font" | "number" | "timing" | "other";
|
|
2
|
+
export type PropType = "string" | "boolean" | "number" | "enum" | "union" | "function" | "ReactNode" | "CSSProperties" | "ElementType" | string;
|
|
3
|
+
export interface ComponentEntry {
|
|
4
|
+
element: string;
|
|
5
|
+
description: string;
|
|
6
|
+
slot?: string;
|
|
7
|
+
isRoot?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PropEntry {
|
|
10
|
+
type: PropType;
|
|
11
|
+
default: string | number | boolean | null;
|
|
12
|
+
required: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
values?: string[];
|
|
15
|
+
signature?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SlotEntry {
|
|
18
|
+
accepts: string[];
|
|
19
|
+
required: boolean;
|
|
20
|
+
description: string;
|
|
21
|
+
}
|
|
22
|
+
export interface TokenEntry {
|
|
23
|
+
default: string;
|
|
24
|
+
type: TokenType;
|
|
25
|
+
description: string;
|
|
26
|
+
inherits: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface EventPayloadField {
|
|
29
|
+
type: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface EventEntry {
|
|
33
|
+
event: string;
|
|
34
|
+
description: string;
|
|
35
|
+
payload: Record<string, EventPayloadField>;
|
|
36
|
+
}
|
|
37
|
+
export interface EventsBlock {
|
|
38
|
+
emits: EventEntry[];
|
|
39
|
+
listens: EventEntry[];
|
|
40
|
+
}
|
|
41
|
+
export interface CssImports {
|
|
42
|
+
tokens?: string;
|
|
43
|
+
styles?: string;
|
|
44
|
+
}
|
|
45
|
+
export type ComponentCategory = "layout" | "form" | "action" | "display" | "navigation" | "overlay" | "data" | "feedback" | "utility";
|
|
46
|
+
export interface ComponentManifest {
|
|
47
|
+
$schema: string;
|
|
48
|
+
name: string;
|
|
49
|
+
version: string;
|
|
50
|
+
category: ComponentCategory;
|
|
51
|
+
description: string;
|
|
52
|
+
components: Record<string, ComponentEntry>;
|
|
53
|
+
props: Record<string, Record<string, PropEntry>>;
|
|
54
|
+
slots?: Record<string, SlotEntry>;
|
|
55
|
+
composesInside?: string[];
|
|
56
|
+
dependencies?: string[];
|
|
57
|
+
peerComponents?: string[];
|
|
58
|
+
events?: EventsBlock;
|
|
59
|
+
tokens: Record<string, TokenEntry>;
|
|
60
|
+
css: CssImports;
|
|
61
|
+
import: string;
|
|
62
|
+
}
|
|
63
|
+
export interface PackageIndexEntry {
|
|
64
|
+
manifest: string;
|
|
65
|
+
category: ComponentCategory;
|
|
66
|
+
exports: number;
|
|
67
|
+
}
|
|
68
|
+
export interface RecipeEntry {
|
|
69
|
+
description: string;
|
|
70
|
+
components: string[];
|
|
71
|
+
template: string;
|
|
72
|
+
tags: string[];
|
|
73
|
+
}
|
|
74
|
+
export interface RecipeNode {
|
|
75
|
+
component: string;
|
|
76
|
+
props?: Record<string, unknown>;
|
|
77
|
+
children?: RecipeNode[] | string;
|
|
78
|
+
}
|
|
79
|
+
export interface Recipe {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
tags: string[];
|
|
84
|
+
tree: RecipeNode;
|
|
85
|
+
}
|
|
86
|
+
export interface Inventory {
|
|
87
|
+
$schema: string;
|
|
88
|
+
version: string;
|
|
89
|
+
generated: string;
|
|
90
|
+
totalComponents: number;
|
|
91
|
+
totalPackages: number;
|
|
92
|
+
categories: Record<ComponentCategory, string[]>;
|
|
93
|
+
compositionGraph: Record<string, string[]>;
|
|
94
|
+
recipes: Record<string, RecipeEntry>;
|
|
95
|
+
packages: Record<string, PackageIndexEntry>;
|
|
96
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ladder-ui/manifests",
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"ladder-ui",
|
|
20
|
+
"manifests",
|
|
21
|
+
"component-registry",
|
|
22
|
+
"ai",
|
|
23
|
+
"builder"
|
|
24
|
+
],
|
|
25
|
+
"author": "Ivan Avila <ivelaval@gmail.com> - https://www.vennet.dev",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/ivelaval/ladder-ui.git",
|
|
30
|
+
"directory": "packages/manifests"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/ivelaval/ladder-ui/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/ivelaval/ladder-ui#readme",
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
41
|
+
"rollup": "^4.59.0",
|
|
42
|
+
"typescript": "^5.3.3",
|
|
43
|
+
"tslib": "^2.6.2"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=18.0.0"
|
|
47
|
+
},
|
|
48
|
+
"sideEffects": false,
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "pnpm clean && rollup -c",
|
|
51
|
+
"dev": "rollup -c -w",
|
|
52
|
+
"test": "vitest run --passWithNoTests",
|
|
53
|
+
"test:watch": "vitest",
|
|
54
|
+
"type-check": "tsc --noEmit",
|
|
55
|
+
"clean": "rm -rf dist"
|
|
56
|
+
}
|
|
57
|
+
}
|