@reforma/types 0.1.2 → 0.1.3
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/package.json +1 -1
- package/src/component-catalog.ts +21 -0
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ComponentCatalogEntry {
|
|
2
|
+
/** Index path, such as `ui/button`. */
|
|
3
|
+
key: string;
|
|
4
|
+
/** Component label. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** Variant key. Absent when the story has no `variants` array. */
|
|
7
|
+
variant?: string;
|
|
8
|
+
/** Variant label. Present together with `variant`. */
|
|
9
|
+
variantName?: string;
|
|
10
|
+
file: string;
|
|
11
|
+
from: string;
|
|
12
|
+
exportName: string;
|
|
13
|
+
props: Record<string, unknown>;
|
|
14
|
+
/** Present only when the story's `children` is a string. */
|
|
15
|
+
children?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ComponentCatalog {
|
|
19
|
+
components: ComponentCatalogEntry[];
|
|
20
|
+
errors: string[];
|
|
21
|
+
}
|