@flux-ui/types 3.0.0-next.33 → 3.0.0-next.35
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/components.ts +25 -0
- package/src/form.ts +1 -0
- package/src/index.ts +3 -0
package/package.json
CHANGED
package/src/components.ts
CHANGED
|
@@ -60,3 +60,28 @@ export type FluxTreeViewOption = {
|
|
|
60
60
|
readonly icon?: FluxIconName;
|
|
61
61
|
readonly children?: FluxTreeViewOption[];
|
|
62
62
|
};
|
|
63
|
+
|
|
64
|
+
export type FluxCommandSubAction = {
|
|
65
|
+
readonly label: string;
|
|
66
|
+
readonly icon?: FluxIconName;
|
|
67
|
+
readonly onActivate: () => void;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export type FluxCommandSourceItem = {
|
|
71
|
+
readonly id: string | number;
|
|
72
|
+
readonly label: string;
|
|
73
|
+
readonly subLabel?: string;
|
|
74
|
+
readonly icon?: FluxIconName;
|
|
75
|
+
readonly command?: string;
|
|
76
|
+
readonly subActions?: FluxCommandSubAction[];
|
|
77
|
+
readonly onActivate: () => void;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type FluxCommandSource = {
|
|
81
|
+
readonly key: string;
|
|
82
|
+
readonly label: string;
|
|
83
|
+
readonly icon?: FluxIconName;
|
|
84
|
+
readonly tab?: boolean;
|
|
85
|
+
readonly items: FluxCommandSourceItem[];
|
|
86
|
+
readonly fetchSearch?: (query: string) => Promise<FluxCommandSourceItem[]>;
|
|
87
|
+
};
|
package/src/form.ts
CHANGED