@genfeedai/workflow-ui 0.1.3 → 0.1.4
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/dist/canvas.d.mts +16 -2
- package/dist/canvas.mjs +10 -8
- package/dist/chunk-6PSJTBNV.mjs +638 -0
- package/dist/chunk-7H3WJJYS.mjs +52 -0
- package/dist/{chunk-HCXI63ME.mjs → chunk-AUQGOJOQ.mjs} +27 -4
- package/dist/{chunk-AOTUCJMA.mjs → chunk-GWBGK3KL.mjs} +2 -2
- package/dist/chunk-JTPADIUO.mjs +130 -0
- package/dist/{chunk-SQK4JDYY.mjs → chunk-LT3ZJJL6.mjs} +9 -2
- package/dist/{chunk-7P2JWDC7.mjs → chunk-O5II6BOJ.mjs} +1198 -254
- package/dist/{chunk-AUZR6REQ.mjs → chunk-OQREHJXK.mjs} +1 -1
- package/dist/chunk-OY7BRSGG.mjs +60 -0
- package/dist/{chunk-E3YBVMYZ.mjs → chunk-PANZDSP6.mjs} +274 -305
- package/dist/chunk-PCIWWD37.mjs +90 -0
- package/dist/{chunk-RIGVIEYB.mjs → chunk-R727OFBR.mjs} +11 -1
- package/dist/chunk-ZD2BADZO.mjs +1294 -0
- package/dist/contextMenuStore-DMg0hJQ1.d.mts +22 -0
- package/dist/hooks.d.mts +53 -244
- package/dist/hooks.mjs +6 -6
- package/dist/index.d.mts +11 -7
- package/dist/index.mjs +13 -11
- package/dist/lib.d.mts +250 -4
- package/dist/lib.mjs +562 -2
- package/dist/nodes.d.mts +3 -1
- package/dist/nodes.mjs +6 -6
- package/dist/panels.mjs +3 -4
- package/dist/{promptLibraryStore-zqb59nsu.d.mts → promptLibraryStore-Bgw5LzvD.d.mts} +33 -5
- package/dist/provider.d.mts +2 -2
- package/dist/provider.mjs +0 -1
- package/dist/stores.d.mts +4 -3
- package/dist/stores.mjs +3 -40
- package/dist/toolbar.d.mts +3 -1
- package/dist/toolbar.mjs +5 -4
- package/dist/{types-ipAnBzAJ.d.mts → types-CF6DPx0P.d.mts} +8 -3
- package/dist/ui.d.mts +1 -1
- package/dist/ui.mjs +0 -1
- package/dist/{hooks.d.ts → useCommentNavigation-NzJjkaj2.d.mts} +15 -2
- package/dist/workflowStore-UAAKOOIK.mjs +2 -0
- package/package.json +30 -24
- package/dist/canvas.d.ts +0 -27
- package/dist/canvas.js +0 -45
- package/dist/chunk-3SPPKCWR.js +0 -458
- package/dist/chunk-3TMV3K34.js +0 -534
- package/dist/chunk-3YFFDHC5.js +0 -300
- package/dist/chunk-4MZ62VMF.js +0 -37
- package/dist/chunk-5HJFQVUR.js +0 -61
- package/dist/chunk-5LQ4QBR5.js +0 -2
- package/dist/chunk-6DOEUDD5.js +0 -254
- package/dist/chunk-AXFOCPPP.js +0 -998
- package/dist/chunk-BMFRA6GK.js +0 -1546
- package/dist/chunk-E323WAZG.mjs +0 -272
- package/dist/chunk-ECD5J2BA.js +0 -6022
- package/dist/chunk-EMGXUNBL.js +0 -120
- package/dist/chunk-EMUMKW5C.js +0 -107
- package/dist/chunk-FOMOOERN.js +0 -2
- package/dist/chunk-IASLG6IA.mjs +0 -118
- package/dist/chunk-IHF35QZD.js +0 -1095
- package/dist/chunk-JLWKW3G5.js +0 -2
- package/dist/chunk-KDIWRSYV.js +0 -375
- package/dist/chunk-L5TF4EHW.mjs +0 -1
- package/dist/chunk-RJ262NXS.js +0 -24
- package/dist/chunk-RXNEDWK2.js +0 -141
- package/dist/chunk-SEV2DWKF.js +0 -744
- package/dist/chunk-ZJWP5KGZ.mjs +0 -33
- package/dist/hooks.js +0 -56
- package/dist/index.d.ts +0 -29
- package/dist/index.js +0 -180
- package/dist/lib.d.ts +0 -164
- package/dist/lib.js +0 -144
- package/dist/nodes.d.ts +0 -128
- package/dist/nodes.js +0 -151
- package/dist/panels.d.ts +0 -22
- package/dist/panels.js +0 -21
- package/dist/promptLibraryStore-BZnfmEkc.d.ts +0 -464
- package/dist/provider.d.ts +0 -29
- package/dist/provider.js +0 -17
- package/dist/stores.d.ts +0 -96
- package/dist/stores.js +0 -113
- package/dist/toolbar.d.ts +0 -73
- package/dist/toolbar.js +0 -34
- package/dist/types-ipAnBzAJ.d.ts +0 -46
- package/dist/ui.d.ts +0 -67
- package/dist/ui.js +0 -84
- package/dist/workflowStore-7SDJC4UR.mjs +0 -3
- package/dist/workflowStore-LNJQ5RZG.js +0 -12
package/dist/stores.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk6DOEUDD5_js = require('./chunk-6DOEUDD5.js');
|
|
4
|
-
require('./chunk-JLWKW3G5.js');
|
|
5
|
-
var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
|
|
6
|
-
var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
|
|
7
|
-
var chunkRXNEDWK2_js = require('./chunk-RXNEDWK2.js');
|
|
8
|
-
require('./chunk-4MZ62VMF.js');
|
|
9
|
-
|
|
10
|
-
// src/stores/workflow/selectors.ts
|
|
11
|
-
var selectNodes = (state) => state.nodes;
|
|
12
|
-
var selectEdges = (state) => state.edges;
|
|
13
|
-
var selectGroups = (state) => state.groups;
|
|
14
|
-
var selectSelectedNodeIds = (state) => state.selectedNodeIds;
|
|
15
|
-
var selectWorkflowName = (state) => state.workflowName;
|
|
16
|
-
var selectWorkflowId = (state) => state.workflowId;
|
|
17
|
-
var selectIsDirty = (state) => state.isDirty;
|
|
18
|
-
var selectIsSaving = (state) => state.isSaving;
|
|
19
|
-
var selectIsLoading = (state) => state.isLoading;
|
|
20
|
-
var selectEdgeStyle = (state) => state.edgeStyle;
|
|
21
|
-
var selectNavigationTargetId = (state) => state.navigationTargetId;
|
|
22
|
-
var selectUpdateNodeData = (state) => state.updateNodeData;
|
|
23
|
-
var selectAddNode = (state) => state.addNode;
|
|
24
|
-
var selectRemoveNode = (state) => state.removeNode;
|
|
25
|
-
var selectDuplicateNode = (state) => state.duplicateNode;
|
|
26
|
-
var selectOnNodesChange = (state) => state.onNodesChange;
|
|
27
|
-
var selectOnEdgesChange = (state) => state.onEdgesChange;
|
|
28
|
-
var selectOnConnect = (state) => state.onConnect;
|
|
29
|
-
var selectSetSelectedNodeIds = (state) => state.setSelectedNodeIds;
|
|
30
|
-
var selectToggleNodeLock = (state) => state.toggleNodeLock;
|
|
31
|
-
var selectCreateGroup = (state) => state.createGroup;
|
|
32
|
-
var selectDeleteGroup = (state) => state.deleteGroup;
|
|
33
|
-
var selectUnlockAllNodes = (state) => state.unlockAllNodes;
|
|
34
|
-
var selectSetDirty = (state) => state.setDirty;
|
|
35
|
-
var selectRemoveEdge = (state) => state.removeEdge;
|
|
36
|
-
var selectAddNodesAndEdges = (state) => state.addNodesAndEdges;
|
|
37
|
-
var selectGetNodeById = (state) => state.getNodeById;
|
|
38
|
-
var selectGetConnectedNodeIds = (state) => state.getConnectedNodeIds;
|
|
39
|
-
var selectIsValidConnection = (state) => state.isValidConnection;
|
|
40
|
-
var selectFindCompatibleHandle = (state) => state.findCompatibleHandle;
|
|
41
|
-
var createSelectNodeById = (id) => (state) => state.nodes.find((n) => n.id === id);
|
|
42
|
-
var createSelectIsNodeSelected = (id) => (state) => state.selectedNodeIds.includes(id);
|
|
43
|
-
var createSelectGroupByNodeId = (nodeId) => (state) => state.groups.find((g) => g.nodeIds.includes(nodeId));
|
|
44
|
-
|
|
45
|
-
Object.defineProperty(exports, "useAnnotationStore", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunk6DOEUDD5_js.useAnnotationStore; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "usePromptEditorStore", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return chunk6DOEUDD5_js.usePromptEditorStore; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "PROVIDER_INFO", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return chunkAXFOCPPP_js.PROVIDER_INFO; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "useExecutionStore", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return chunkAXFOCPPP_js.useExecutionStore; }
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "useSettingsStore", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return chunkAXFOCPPP_js.useSettingsStore; }
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "useUIStore", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () { return chunkAXFOCPPP_js.useUIStore; }
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "useWorkflowStore", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return chunkIHF35QZD_js.useWorkflowStore; }
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "configurePromptLibrary", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () { return chunkRXNEDWK2_js.configurePromptLibrary; }
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "usePromptLibraryStore", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return chunkRXNEDWK2_js.usePromptLibraryStore; }
|
|
80
|
-
});
|
|
81
|
-
exports.createSelectGroupByNodeId = createSelectGroupByNodeId;
|
|
82
|
-
exports.createSelectIsNodeSelected = createSelectIsNodeSelected;
|
|
83
|
-
exports.createSelectNodeById = createSelectNodeById;
|
|
84
|
-
exports.selectAddNode = selectAddNode;
|
|
85
|
-
exports.selectAddNodesAndEdges = selectAddNodesAndEdges;
|
|
86
|
-
exports.selectCreateGroup = selectCreateGroup;
|
|
87
|
-
exports.selectDeleteGroup = selectDeleteGroup;
|
|
88
|
-
exports.selectDuplicateNode = selectDuplicateNode;
|
|
89
|
-
exports.selectEdgeStyle = selectEdgeStyle;
|
|
90
|
-
exports.selectEdges = selectEdges;
|
|
91
|
-
exports.selectFindCompatibleHandle = selectFindCompatibleHandle;
|
|
92
|
-
exports.selectGetConnectedNodeIds = selectGetConnectedNodeIds;
|
|
93
|
-
exports.selectGetNodeById = selectGetNodeById;
|
|
94
|
-
exports.selectGroups = selectGroups;
|
|
95
|
-
exports.selectIsDirty = selectIsDirty;
|
|
96
|
-
exports.selectIsLoading = selectIsLoading;
|
|
97
|
-
exports.selectIsSaving = selectIsSaving;
|
|
98
|
-
exports.selectIsValidConnection = selectIsValidConnection;
|
|
99
|
-
exports.selectNavigationTargetId = selectNavigationTargetId;
|
|
100
|
-
exports.selectNodes = selectNodes;
|
|
101
|
-
exports.selectOnConnect = selectOnConnect;
|
|
102
|
-
exports.selectOnEdgesChange = selectOnEdgesChange;
|
|
103
|
-
exports.selectOnNodesChange = selectOnNodesChange;
|
|
104
|
-
exports.selectRemoveEdge = selectRemoveEdge;
|
|
105
|
-
exports.selectRemoveNode = selectRemoveNode;
|
|
106
|
-
exports.selectSelectedNodeIds = selectSelectedNodeIds;
|
|
107
|
-
exports.selectSetDirty = selectSetDirty;
|
|
108
|
-
exports.selectSetSelectedNodeIds = selectSetSelectedNodeIds;
|
|
109
|
-
exports.selectToggleNodeLock = selectToggleNodeLock;
|
|
110
|
-
exports.selectUnlockAllNodes = selectUnlockAllNodes;
|
|
111
|
-
exports.selectUpdateNodeData = selectUpdateNodeData;
|
|
112
|
-
exports.selectWorkflowId = selectWorkflowId;
|
|
113
|
-
exports.selectWorkflowName = selectWorkflowName;
|
package/dist/toolbar.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Toolbar Component Types
|
|
5
|
-
*/
|
|
6
|
-
interface DropdownItem {
|
|
7
|
-
id: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
external?: boolean;
|
|
12
|
-
separator?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface ToolbarDropdownProps {
|
|
16
|
-
label: string;
|
|
17
|
-
items: DropdownItem[];
|
|
18
|
-
}
|
|
19
|
-
interface OverflowMenuProps {
|
|
20
|
-
items: DropdownItem[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ToolbarProps {
|
|
24
|
-
/** Optional callback for auto-layout functionality */
|
|
25
|
-
onAutoLayout?: (direction: 'LR' | 'TB') => void;
|
|
26
|
-
/** Optional callback for "Save As" action */
|
|
27
|
-
onSaveAs?: (newName: string) => void;
|
|
28
|
-
/** Additional file menu items to prepend */
|
|
29
|
-
fileMenuItemsPrepend?: DropdownItem[];
|
|
30
|
-
/** Additional file menu items to append */
|
|
31
|
-
fileMenuItemsAppend?: DropdownItem[];
|
|
32
|
-
/** Additional menu dropdowns to render after File */
|
|
33
|
-
additionalMenus?: Array<{
|
|
34
|
-
label: string;
|
|
35
|
-
items: DropdownItem[];
|
|
36
|
-
}>;
|
|
37
|
-
/** Logo href (defaults to "/") */
|
|
38
|
-
logoHref?: string;
|
|
39
|
-
/** Logo image src */
|
|
40
|
-
logoSrc?: string;
|
|
41
|
-
/** Whether to show the settings button */
|
|
42
|
-
showSettings?: boolean;
|
|
43
|
-
/** Additional elements to render in the right side of the toolbar */
|
|
44
|
-
rightContent?: React.ReactNode;
|
|
45
|
-
}
|
|
46
|
-
declare function Toolbar({ onAutoLayout, onSaveAs, fileMenuItemsPrepend, fileMenuItemsAppend, additionalMenus, logoHref, logoSrc, showSettings, rightContent, }: ToolbarProps): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare function BottomBar(): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Auto-save status indicator
|
|
52
|
-
*/
|
|
53
|
-
declare function SaveIndicator(): react_jsx_runtime.JSX.Element;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Toolbar dropdown menu component
|
|
57
|
-
*/
|
|
58
|
-
declare function ToolbarDropdown({ label, items }: ToolbarDropdownProps): react_jsx_runtime.JSX.Element;
|
|
59
|
-
|
|
60
|
-
interface SaveAsDialogProps {
|
|
61
|
-
isOpen: boolean;
|
|
62
|
-
currentName: string;
|
|
63
|
-
onSave: (newName: string) => void;
|
|
64
|
-
onClose: () => void;
|
|
65
|
-
}
|
|
66
|
-
declare function SaveAsDialog({ isOpen, currentName, onSave, onClose }: SaveAsDialogProps): react_jsx_runtime.JSX.Element | null;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Overflow menu with icon trigger
|
|
70
|
-
*/
|
|
71
|
-
declare function OverflowMenu({ items }: OverflowMenuProps): react_jsx_runtime.JSX.Element;
|
|
72
|
-
|
|
73
|
-
export { BottomBar, type DropdownItem, OverflowMenu, type OverflowMenuProps, SaveAsDialog, SaveIndicator, Toolbar, ToolbarDropdown, type ToolbarDropdownProps };
|
package/dist/toolbar.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkSEV2DWKF_js = require('./chunk-SEV2DWKF.js');
|
|
4
|
-
require('./chunk-JLWKW3G5.js');
|
|
5
|
-
require('./chunk-AXFOCPPP.js');
|
|
6
|
-
require('./chunk-IHF35QZD.js');
|
|
7
|
-
require('./chunk-4MZ62VMF.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "BottomBar", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkSEV2DWKF_js.BottomBar; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "OverflowMenu", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkSEV2DWKF_js.OverflowMenu; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "SaveAsDialog", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkSEV2DWKF_js.SaveAsDialog; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "SaveIndicator", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkSEV2DWKF_js.SaveIndicator; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "Toolbar", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunkSEV2DWKF_js.Toolbar; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "ToolbarDropdown", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkSEV2DWKF_js.ToolbarDropdown; }
|
|
34
|
-
});
|
package/dist/types-ipAnBzAJ.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { IQueryPrompts, IPrompt, ICreatePrompt, ProviderModel } from '@genfeedai/types';
|
|
3
|
-
|
|
4
|
-
interface FileUploadService {
|
|
5
|
-
uploadFile: (path: string, file: File) => Promise<{
|
|
6
|
-
url: string;
|
|
7
|
-
filename: string;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
interface ModelSchemaService {
|
|
11
|
-
fetchModelSchema: (modelId: string, signal?: AbortSignal) => Promise<ProviderModel | null>;
|
|
12
|
-
}
|
|
13
|
-
interface PromptLibraryService {
|
|
14
|
-
getAll: (query?: IQueryPrompts, signal?: AbortSignal) => Promise<IPrompt[]>;
|
|
15
|
-
getFeatured: (limit?: number, signal?: AbortSignal) => Promise<IPrompt[]>;
|
|
16
|
-
create: (data: ICreatePrompt, signal?: AbortSignal) => Promise<IPrompt>;
|
|
17
|
-
update: (id: string, data: Partial<ICreatePrompt>, signal?: AbortSignal) => Promise<IPrompt>;
|
|
18
|
-
delete: (id: string, signal?: AbortSignal) => Promise<void>;
|
|
19
|
-
duplicate: (id: string, signal?: AbortSignal) => Promise<IPrompt>;
|
|
20
|
-
use: (id: string, signal?: AbortSignal) => Promise<IPrompt>;
|
|
21
|
-
}
|
|
22
|
-
interface ModelBrowserModalProps {
|
|
23
|
-
isOpen: boolean;
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
onSelect: (model: ProviderModel) => void;
|
|
26
|
-
capabilities?: string[];
|
|
27
|
-
title?: string;
|
|
28
|
-
}
|
|
29
|
-
interface PromptPickerProps {
|
|
30
|
-
onSelect: (item: IPrompt) => void;
|
|
31
|
-
label?: string;
|
|
32
|
-
}
|
|
33
|
-
interface WorkflowUIConfig {
|
|
34
|
-
/** For ImageInputNode, VideoInputNode — file upload */
|
|
35
|
-
fileUpload?: FileUploadService;
|
|
36
|
-
/** For AI gen nodes — model schema loading */
|
|
37
|
-
modelSchema?: ModelSchemaService;
|
|
38
|
-
/** For PromptNode — prompt library CRUD */
|
|
39
|
-
promptLibrary?: PromptLibraryService;
|
|
40
|
-
/** Injected ModelBrowserModal component (complex, app-specific) */
|
|
41
|
-
ModelBrowserModal?: ComponentType<ModelBrowserModalProps> | null;
|
|
42
|
-
/** Injected PromptPicker component (complex, app-specific) */
|
|
43
|
-
PromptPicker?: ComponentType<PromptPickerProps> | null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type { FileUploadService as F, ModelBrowserModalProps as M, PromptLibraryService as P, WorkflowUIConfig as W, PromptPickerProps as a, ModelSchemaService as b };
|
package/dist/ui.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as react from 'react';
|
|
5
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
6
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
7
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
8
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
9
|
-
import { ClassValue } from 'clsx';
|
|
10
|
-
|
|
11
|
-
declare const buttonVariants: (props?: ({
|
|
12
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
13
|
-
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
14
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
declare function Button({ className, variant, size, asChild, ...props }: react.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
16
|
-
asChild?: boolean;
|
|
17
|
-
}): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare function Checkbox({ className, ...props }: react.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
interface ComparisonSliderProps {
|
|
22
|
-
beforeSrc: string;
|
|
23
|
-
afterSrc: string;
|
|
24
|
-
beforeLabel?: string;
|
|
25
|
-
afterLabel?: string;
|
|
26
|
-
position: number;
|
|
27
|
-
onPositionChange: (position: number) => void;
|
|
28
|
-
height?: number;
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
declare function ComparisonSliderComponent({ beforeSrc, afterSrc, beforeLabel, afterLabel, position, onPositionChange, height, className, }: ComparisonSliderProps): react_jsx_runtime.JSX.Element;
|
|
32
|
-
declare const ComparisonSlider: react.MemoExoticComponent<typeof ComparisonSliderComponent>;
|
|
33
|
-
|
|
34
|
-
interface GridPosition {
|
|
35
|
-
x: number;
|
|
36
|
-
y: number;
|
|
37
|
-
}
|
|
38
|
-
interface GridPositionSelectorProps {
|
|
39
|
-
position: GridPosition;
|
|
40
|
-
onPositionChange: (position: GridPosition) => void;
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
declare function GridPositionSelectorComponent({ position, onPositionChange, className, }: GridPositionSelectorProps): react_jsx_runtime.JSX.Element;
|
|
44
|
-
declare const GridPositionSelector: react.MemoExoticComponent<typeof GridPositionSelectorComponent>;
|
|
45
|
-
|
|
46
|
-
declare function Input({ className, type, ...props }: react.ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare function Label({ className, ...props }: react.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
declare function Select({ ...props }: react.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
51
|
-
declare function SelectGroup({ ...props }: react.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
52
|
-
declare function SelectValue({ ...props }: react.ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
53
|
-
declare function SelectTrigger({ className, size, children, ...props }: react.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
54
|
-
size?: 'sm' | 'default';
|
|
55
|
-
}): react_jsx_runtime.JSX.Element;
|
|
56
|
-
declare function SelectContent({ className, children, position, align, ...props }: react.ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
57
|
-
declare function SelectLabel({ className, ...props }: react.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
58
|
-
declare function SelectItem({ className, children, ...props }: react.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
59
|
-
declare function SelectSeparator({ className, ...props }: react.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
60
|
-
declare function SelectScrollUpButton({ className, ...props }: react.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
61
|
-
declare function SelectScrollDownButton({ className, ...props }: react.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
62
|
-
|
|
63
|
-
declare function Slider({ className, defaultValue, value, min, max, ...props }: react.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
64
|
-
|
|
65
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
66
|
-
|
|
67
|
-
export { Button, Checkbox, ComparisonSlider, GridPositionSelector, Input, Label, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, buttonVariants, cn };
|
package/dist/ui.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk3SPPKCWR_js = require('./chunk-3SPPKCWR.js');
|
|
4
|
-
var chunk5HJFQVUR_js = require('./chunk-5HJFQVUR.js');
|
|
5
|
-
require('./chunk-4MZ62VMF.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "Checkbox", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunk3SPPKCWR_js.Checkbox; }
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ComparisonSlider", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunk3SPPKCWR_js.ComparisonSlider; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "GridPositionSelector", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunk3SPPKCWR_js.GridPositionSelector; }
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "Input", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return chunk3SPPKCWR_js.Input; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "Label", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return chunk3SPPKCWR_js.Label; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "Select", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return chunk3SPPKCWR_js.Select; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "SelectContent", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunk3SPPKCWR_js.SelectContent; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "SelectGroup", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunk3SPPKCWR_js.SelectGroup; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "SelectItem", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return chunk3SPPKCWR_js.SelectItem; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "SelectLabel", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunk3SPPKCWR_js.SelectLabel; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "SelectScrollDownButton", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return chunk3SPPKCWR_js.SelectScrollDownButton; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "SelectScrollUpButton", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return chunk3SPPKCWR_js.SelectScrollUpButton; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "SelectSeparator", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return chunk3SPPKCWR_js.SelectSeparator; }
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "SelectTrigger", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return chunk3SPPKCWR_js.SelectTrigger; }
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "SelectValue", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () { return chunk3SPPKCWR_js.SelectValue; }
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "Slider", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return chunk3SPPKCWR_js.Slider; }
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "Button", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () { return chunk5HJFQVUR_js.Button; }
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "buttonVariants", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return chunk5HJFQVUR_js.buttonVariants; }
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(exports, "cn", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
get: function () { return chunk5HJFQVUR_js.cn; }
|
|
84
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
require('./chunk-JLWKW3G5.js');
|
|
4
|
-
var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
|
|
5
|
-
require('./chunk-4MZ62VMF.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "useWorkflowStore", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkIHF35QZD_js.useWorkflowStore; }
|
|
12
|
-
});
|