@tpitre/story-ui 3.4.0 → 3.4.1
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/cli/index.js +0 -0
- package/dist/mcp-server/index.js +32 -0
- package/package.json +2 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/setup.js.map +0 -1
- package/dist/cloudflare-edge/src/mcp-session.js +0 -462
- package/dist/cloudflare-edge/src/types.js +0 -4
- package/dist/cloudflare-edge/src/worker.js +0 -106
- package/dist/cloudflare-pages/vite.config.js +0 -14
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
- package/dist/mcp-server/index.js.map +0 -1
- package/dist/mcp-server/mcp-stdio-server.js.map +0 -1
- package/dist/mcp-server/routes/claude.js.map +0 -1
- package/dist/mcp-server/routes/components.js.map +0 -1
- package/dist/mcp-server/routes/generateStory.js.map +0 -1
- package/dist/mcp-server/routes/hybridStories.d.ts +0 -18
- package/dist/mcp-server/routes/hybridStories.d.ts.map +0 -1
- package/dist/mcp-server/routes/hybridStories.js +0 -216
- package/dist/mcp-server/routes/hybridStories.js.map +0 -1
- package/dist/mcp-server/routes/memoryStories.d.ts +0 -26
- package/dist/mcp-server/routes/memoryStories.d.ts.map +0 -1
- package/dist/mcp-server/routes/memoryStories.js +0 -158
- package/dist/mcp-server/routes/memoryStories.js.map +0 -1
- package/dist/mcp-server/routes/storySync.d.ts +0 -26
- package/dist/mcp-server/routes/storySync.d.ts.map +0 -1
- package/dist/mcp-server/routes/storySync.js +0 -147
- package/dist/mcp-server/routes/storySync.js.map +0 -1
- package/dist/mcp-server/routes/updateStory.js +0 -246
- package/dist/mcp-server/sessionManager.d.ts +0 -50
- package/dist/mcp-server/sessionManager.d.ts.map +0 -1
- package/dist/mcp-server/sessionManager.js +0 -125
- package/dist/mcp-server/sessionManager.js.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts +0 -6
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.js +0 -109
- package/dist/playground/components/AIAssistant/AIAssistant.js.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.module.css +0 -166
- package/dist/playground/components/Canvas/Canvas.d.ts +0 -9
- package/dist/playground/components/Canvas/Canvas.d.ts.map +0 -1
- package/dist/playground/components/Canvas/Canvas.js +0 -58
- package/dist/playground/components/Canvas/Canvas.js.map +0 -1
- package/dist/playground/components/Canvas/Canvas.module.css +0 -189
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +0 -9
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +0 -1
- package/dist/playground/components/Canvas/CanvasWithDnd.js +0 -158
- package/dist/playground/components/Canvas/CanvasWithDnd.js.map +0 -1
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts +0 -15
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +0 -1
- package/dist/playground/components/Canvas/ComponentRenderer.js +0 -177
- package/dist/playground/components/Canvas/ComponentRenderer.js.map +0 -1
- package/dist/playground/components/Canvas/DraggableComponent.d.ts +0 -15
- package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +0 -1
- package/dist/playground/components/Canvas/DraggableComponent.js +0 -49
- package/dist/playground/components/Canvas/DraggableComponent.js.map +0 -1
- package/dist/playground/components/Canvas/index.d.ts +0 -9
- package/dist/playground/components/Canvas/index.d.ts.map +0 -1
- package/dist/playground/components/Canvas/index.js +0 -5
- package/dist/playground/components/Canvas/index.js.map +0 -1
- package/dist/playground/components/CodeView/CodeView.d.ts +0 -12
- package/dist/playground/components/CodeView/CodeView.d.ts.map +0 -1
- package/dist/playground/components/CodeView/CodeView.js +0 -77
- package/dist/playground/components/CodeView/CodeView.js.map +0 -1
- package/dist/playground/components/CodeView/CodeView.module.css +0 -178
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +0 -17
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +0 -1
- package/dist/playground/components/ComponentPalette/ComponentPalette.js +0 -138
- package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +0 -1
- package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +0 -217
- package/dist/playground/components/ComponentPalette/index.d.ts +0 -3
- package/dist/playground/components/ComponentPalette/index.d.ts.map +0 -1
- package/dist/playground/components/ComponentPalette/index.js +0 -2
- package/dist/playground/components/ComponentPalette/index.js.map +0 -1
- package/dist/playground/components/DropZone/DropZone.d.ts +0 -17
- package/dist/playground/components/DropZone/DropZone.d.ts.map +0 -1
- package/dist/playground/components/DropZone/DropZone.js +0 -73
- package/dist/playground/components/DropZone/DropZone.js.map +0 -1
- package/dist/playground/components/DropZone/DropZone.module.css +0 -86
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts +0 -10
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +0 -1
- package/dist/playground/components/ExportDialog/ExportDialog.js +0 -57
- package/dist/playground/components/ExportDialog/ExportDialog.js.map +0 -1
- package/dist/playground/components/ExportDialog/ExportDialog.module.css +0 -328
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +0 -134
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +0 -1
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +0 -254
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +0 -1
- package/dist/playground/components/LayoutHelpers/index.d.ts +0 -3
- package/dist/playground/components/LayoutHelpers/index.d.ts.map +0 -1
- package/dist/playground/components/LayoutHelpers/index.js +0 -2
- package/dist/playground/components/LayoutHelpers/index.js.map +0 -1
- package/dist/playground/components/Playground/Playground.d.ts +0 -10
- package/dist/playground/components/Playground/Playground.d.ts.map +0 -1
- package/dist/playground/components/Playground/Playground.js +0 -128
- package/dist/playground/components/Playground/Playground.js.map +0 -1
- package/dist/playground/components/Playground/Playground.module.css +0 -308
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +0 -10
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +0 -1
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +0 -150
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +0 -1
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +0 -155
- package/dist/playground/components/PropertiesPanel/index.d.ts +0 -3
- package/dist/playground/components/PropertiesPanel/index.d.ts.map +0 -1
- package/dist/playground/components/PropertiesPanel/index.js +0 -2
- package/dist/playground/components/PropertiesPanel/index.js.map +0 -1
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/BooleanEditor.js +0 -14
- package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/ColorEditor.js +0 -62
- package/dist/playground/components/PropertyEditors/ColorEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/IconEditor.js +0 -123
- package/dist/playground/components/PropertyEditors/IconEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +0 -15
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/NumberEditor.js +0 -46
- package/dist/playground/components/PropertyEditors/NumberEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +0 -432
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +0 -19
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/SelectEditor.js +0 -17
- package/dist/playground/components/PropertyEditors/SelectEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +0 -19
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.js +0 -162
- package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +0 -214
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts +0 -14
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/TextEditor.js +0 -38
- package/dist/playground/components/PropertyEditors/TextEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +0 -23
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/TokenEditor.js +0 -50
- package/dist/playground/components/PropertyEditors/TokenEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/index.d.ts +0 -20
- package/dist/playground/components/PropertyEditors/index.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/index.js +0 -12
- package/dist/playground/components/PropertyEditors/index.js.map +0 -1
- package/dist/playground/components/TreeView/TreeView.d.ts +0 -10
- package/dist/playground/components/TreeView/TreeView.d.ts.map +0 -1
- package/dist/playground/components/TreeView/TreeView.js +0 -146
- package/dist/playground/components/TreeView/TreeView.js.map +0 -1
- package/dist/playground/components/TreeView/TreeView.module.css +0 -214
- package/dist/playground/components/TreeView/index.d.ts +0 -3
- package/dist/playground/components/TreeView/index.d.ts.map +0 -1
- package/dist/playground/components/TreeView/index.js +0 -2
- package/dist/playground/components/TreeView/index.js.map +0 -1
- package/dist/playground/config/propertyDefinitions.d.ts +0 -73
- package/dist/playground/config/propertyDefinitions.d.ts.map +0 -1
- package/dist/playground/config/propertyDefinitions.js +0 -809
- package/dist/playground/config/propertyDefinitions.js.map +0 -1
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts +0 -38
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/playground/hooks/useKeyboardShortcuts.js +0 -191
- package/dist/playground/hooks/useKeyboardShortcuts.js.map +0 -1
- package/dist/playground/index.d.ts +0 -21
- package/dist/playground/index.d.ts.map +0 -1
- package/dist/playground/index.js +0 -23
- package/dist/playground/index.js.map +0 -1
- package/dist/playground/services/CodeGenerator.d.ts +0 -73
- package/dist/playground/services/CodeGenerator.d.ts.map +0 -1
- package/dist/playground/services/CodeGenerator.js +0 -359
- package/dist/playground/services/CodeGenerator.js.map +0 -1
- package/dist/playground/services/DragDropManager.d.ts +0 -95
- package/dist/playground/services/DragDropManager.d.ts.map +0 -1
- package/dist/playground/services/DragDropManager.js +0 -408
- package/dist/playground/services/DragDropManager.js.map +0 -1
- package/dist/playground/services/StoryParser.d.ts +0 -73
- package/dist/playground/services/StoryParser.d.ts.map +0 -1
- package/dist/playground/services/StoryParser.js +0 -419
- package/dist/playground/services/StoryParser.js.map +0 -1
- package/dist/playground/store/playgroundStore.d.ts +0 -86
- package/dist/playground/store/playgroundStore.d.ts.map +0 -1
- package/dist/playground/store/playgroundStore.js +0 -337
- package/dist/playground/store/playgroundStore.js.map +0 -1
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundDragDrop.stories.js +0 -227
- package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundPhase4.stories.js +0 -334
- package/dist/playground/stories/PlaygroundPhase4.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +0 -14
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundPhase5.stories.js +0 -512
- package/dist/playground/stories/PlaygroundPhase5.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundProperties.stories.js +0 -342
- package/dist/playground/stories/PlaygroundProperties.stories.js.map +0 -1
- package/dist/playground/types/index.d.ts +0 -251
- package/dist/playground/types/index.d.ts.map +0 -1
- package/dist/playground/types/index.js +0 -5
- package/dist/playground/types/index.js.map +0 -1
- package/dist/scripts/verify-framework-adapters.js +0 -105
- package/dist/story-generator/componentBlacklist.js.map +0 -1
- package/dist/story-generator/componentDiscovery.js.map +0 -1
- package/dist/story-generator/configLoader.js.map +0 -1
- package/dist/story-generator/considerationsLoader.js.map +0 -1
- package/dist/story-generator/documentation-sources.js.map +0 -1
- package/dist/story-generator/documentationLoader.js.map +0 -1
- package/dist/story-generator/dynamicPackageDiscovery.js.map +0 -1
- package/dist/story-generator/enhancedComponentDiscovery.js.map +0 -1
- package/dist/story-generator/generateStory.js.map +0 -1
- package/dist/story-generator/gitignoreManager.js.map +0 -1
- package/dist/story-generator/inMemoryStoryService.d.ts +0 -89
- package/dist/story-generator/inMemoryStoryService.d.ts.map +0 -1
- package/dist/story-generator/inMemoryStoryService.js +0 -128
- package/dist/story-generator/inMemoryStoryService.js.map +0 -1
- package/dist/story-generator/logger.js.map +0 -1
- package/dist/story-generator/postProcessStory.js.map +0 -1
- package/dist/story-generator/postgresStoryService.d.ts +0 -56
- package/dist/story-generator/postgresStoryService.d.ts.map +0 -1
- package/dist/story-generator/postgresStoryService.js +0 -240
- package/dist/story-generator/productionGitignoreManager.d.ts +0 -91
- package/dist/story-generator/productionGitignoreManager.d.ts.map +0 -1
- package/dist/story-generator/productionGitignoreManager.js +0 -340
- package/dist/story-generator/productionGitignoreManager.js.map +0 -1
- package/dist/story-generator/promptGenerator.js.map +0 -1
- package/dist/story-generator/providerPresets.d.ts +0 -54
- package/dist/story-generator/providerPresets.d.ts.map +0 -1
- package/dist/story-generator/providerPresets.js +0 -214
- package/dist/story-generator/storyHistory.js.map +0 -1
- package/dist/story-generator/storyServiceFactory.d.ts +0 -22
- package/dist/story-generator/storyServiceFactory.d.ts.map +0 -1
- package/dist/story-generator/storyServiceFactory.js +0 -97
- package/dist/story-generator/storyServiceInterface.d.ts +0 -85
- package/dist/story-generator/storyServiceInterface.d.ts.map +0 -1
- package/dist/story-generator/storyServiceInterface.js +0 -5
- package/dist/story-generator/storySync.d.ts +0 -68
- package/dist/story-generator/storySync.d.ts.map +0 -1
- package/dist/story-generator/storySync.js +0 -201
- package/dist/story-generator/storySync.js.map +0 -1
- package/dist/story-generator/storyTracker.js.map +0 -1
- package/dist/story-generator/storyValidator.js.map +0 -1
- package/dist/story-generator/test_validation.d.ts +0 -2
- package/dist/story-generator/test_validation.d.ts.map +0 -1
- package/dist/story-generator/test_validation.js +0 -51
- package/dist/story-generator/universalDesignSystemAdapter.js.map +0 -1
- package/dist/story-generator/urlRedirectService.js.map +0 -1
- package/dist/story-generator/validateStory.js.map +0 -1
- package/dist/story-ui.config.js.map +0 -1
- package/dist/story-ui.config.loader.d.ts +0 -36
- package/dist/story-ui.config.loader.d.ts.map +0 -1
- package/dist/story-ui.config.loader.js +0 -205
- package/dist/story-ui.config.loader.js.map +0 -1
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +0 -807
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +0 -37
- package/dist/temp/package/templates/StoryUI/index.js +0 -2
- package/dist/templates/StoryUI/StoryUIPanel.js.map +0 -1
- package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +0 -1
- package/dist/templates/StoryUI/index.js.map +0 -1
- package/dist/templates/StoryUI/manager.d.ts +0 -14
- package/dist/templates/StoryUI/manager.d.ts.map +0 -1
- package/dist/templates/production-app/src/App.d.ts +0 -10
- package/dist/templates/production-app/src/App.d.ts.map +0 -1
- package/dist/templates/production-app/src/App.js +0 -653
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +0 -24
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +0 -1
- package/dist/templates/production-app/src/LivePreviewRenderer.js +0 -199
- package/dist/templates/production-app/src/componentRegistry.d.ts +0 -20
- package/dist/templates/production-app/src/componentRegistry.d.ts.map +0 -1
- package/dist/templates/production-app/src/componentRegistry.js +0 -316
- package/dist/templates/production-app/src/main.d.ts +0 -9
- package/dist/templates/production-app/src/main.d.ts.map +0 -1
- package/dist/templates/production-app/src/main.js +0 -18
- package/dist/templates/production-app/vite.config.d.ts +0 -3
- package/dist/templates/production-app/vite.config.d.ts.map +0 -1
- package/dist/templates/production-app/vite.config.js +0 -71
- package/dist/test-storybooks/angular-material-storybook/src/main.js +0 -66
- package/dist/test-storybooks/chakra-storybook/vite.config.js +0 -6
- package/dist/test-storybooks/mantine-storybook/vite.config.js +0 -93
- package/dist/test-storybooks/web-components-shoelace/vite.config.js +0 -9
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/* SpacingEditor styles */
|
|
2
|
-
|
|
3
|
-
.spacingEditor {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 12px;
|
|
7
|
-
padding: 12px;
|
|
8
|
-
background: white;
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
border: 1px solid #e5e7eb;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.header {
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.label {
|
|
20
|
-
font-size: 13px;
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
color: #374151;
|
|
23
|
-
text-transform: capitalize;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.controls {
|
|
27
|
-
display: flex;
|
|
28
|
-
gap: 8px;
|
|
29
|
-
align-items: center;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.linkButton {
|
|
33
|
-
width: 28px;
|
|
34
|
-
height: 28px;
|
|
35
|
-
padding: 0;
|
|
36
|
-
background: white;
|
|
37
|
-
border: 1px solid #e5e7eb;
|
|
38
|
-
border-radius: 6px;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
transition: all 0.2s;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.linkButton:hover {
|
|
48
|
-
background: #f3f4f6;
|
|
49
|
-
border-color: #d1d5db;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.linkButton.linked {
|
|
53
|
-
background: #3b82f6;
|
|
54
|
-
border-color: #3b82f6;
|
|
55
|
-
filter: grayscale(0);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.linkButton:not(.linked) {
|
|
59
|
-
filter: grayscale(1);
|
|
60
|
-
opacity: 0.5;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.unitSelect {
|
|
64
|
-
padding: 4px 8px;
|
|
65
|
-
background: white;
|
|
66
|
-
border: 1px solid #e5e7eb;
|
|
67
|
-
border-radius: 6px;
|
|
68
|
-
font-size: 12px;
|
|
69
|
-
color: #374151;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
outline: none;
|
|
72
|
-
transition: all 0.2s;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.unitSelect:hover {
|
|
76
|
-
border-color: #d1d5db;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.unitSelect:focus {
|
|
80
|
-
border-color: #3b82f6;
|
|
81
|
-
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.visualEditor {
|
|
85
|
-
display: flex;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
padding: 20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.boxModel {
|
|
91
|
-
position: relative;
|
|
92
|
-
width: 200px;
|
|
93
|
-
height: 120px;
|
|
94
|
-
background: #f9fafb;
|
|
95
|
-
border: 2px dashed #d1d5db;
|
|
96
|
-
border-radius: 8px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.input {
|
|
100
|
-
position: absolute;
|
|
101
|
-
width: 50px;
|
|
102
|
-
padding: 4px;
|
|
103
|
-
background: white;
|
|
104
|
-
border: 1px solid #e5e7eb;
|
|
105
|
-
border-radius: 4px;
|
|
106
|
-
font-size: 12px;
|
|
107
|
-
text-align: center;
|
|
108
|
-
color: #374151;
|
|
109
|
-
outline: none;
|
|
110
|
-
transition: all 0.2s;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.input:hover:not(:disabled) {
|
|
114
|
-
border-color: #93c5fd;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.input:focus {
|
|
118
|
-
border-color: #3b82f6;
|
|
119
|
-
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.input:disabled {
|
|
123
|
-
background: #f3f4f6;
|
|
124
|
-
color: #9ca3af;
|
|
125
|
-
cursor: not-allowed;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.inputTop {
|
|
129
|
-
top: -14px;
|
|
130
|
-
left: 50%;
|
|
131
|
-
transform: translateX(-50%);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.inputRight {
|
|
135
|
-
right: -14px;
|
|
136
|
-
top: 50%;
|
|
137
|
-
transform: translateY(-50%);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.inputBottom {
|
|
141
|
-
bottom: -14px;
|
|
142
|
-
left: 50%;
|
|
143
|
-
transform: translateX(-50%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.inputLeft {
|
|
147
|
-
left: -14px;
|
|
148
|
-
top: 50%;
|
|
149
|
-
transform: translateY(-50%);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.centerBox {
|
|
153
|
-
position: absolute;
|
|
154
|
-
top: 50%;
|
|
155
|
-
left: 50%;
|
|
156
|
-
transform: translate(-50%, -50%);
|
|
157
|
-
padding: 8px 16px;
|
|
158
|
-
background: white;
|
|
159
|
-
border: 1px solid #e5e7eb;
|
|
160
|
-
border-radius: 6px;
|
|
161
|
-
display: flex;
|
|
162
|
-
align-items: center;
|
|
163
|
-
justify-content: center;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.propertyName {
|
|
167
|
-
font-size: 11px;
|
|
168
|
-
font-weight: 600;
|
|
169
|
-
color: #6b7280;
|
|
170
|
-
text-transform: uppercase;
|
|
171
|
-
letter-spacing: 0.5px;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.presets {
|
|
175
|
-
display: flex;
|
|
176
|
-
gap: 6px;
|
|
177
|
-
justify-content: center;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.preset {
|
|
181
|
-
flex: 1;
|
|
182
|
-
padding: 6px 8px;
|
|
183
|
-
background: white;
|
|
184
|
-
border: 1px solid #e5e7eb;
|
|
185
|
-
border-radius: 6px;
|
|
186
|
-
font-size: 11px;
|
|
187
|
-
font-weight: 500;
|
|
188
|
-
color: #6b7280;
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
transition: all 0.2s;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.preset:hover {
|
|
194
|
-
background: #f3f4f6;
|
|
195
|
-
border-color: #d1d5db;
|
|
196
|
-
color: #374151;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.preset:active {
|
|
200
|
-
background: #e5e7eb;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/* Responsive adjustments */
|
|
204
|
-
@media (max-width: 320px) {
|
|
205
|
-
.boxModel {
|
|
206
|
-
width: 160px;
|
|
207
|
-
height: 100px;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.input {
|
|
211
|
-
width: 40px;
|
|
212
|
-
font-size: 11px;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TextEditor - Simple text input for string properties using MUI
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface TextEditorProps {
|
|
6
|
-
value?: string;
|
|
7
|
-
onChange: (value: string) => void;
|
|
8
|
-
label?: string;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
multiline?: boolean;
|
|
11
|
-
rows?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const TextEditor: React.FC<TextEditorProps>;
|
|
14
|
-
//# sourceMappingURL=TextEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditor.d.ts","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/TextEditor.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyDhD,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* TextEditor - Simple text input for string properties using MUI
|
|
4
|
-
*/
|
|
5
|
-
import { useState, useCallback, useEffect, useRef } from 'react';
|
|
6
|
-
import { TextField } from '@mui/material';
|
|
7
|
-
import styles from './PropertyEditors.module.css';
|
|
8
|
-
export const TextEditor = ({ value = '', onChange, label, placeholder, multiline = false, rows = 3 }) => {
|
|
9
|
-
const [localValue, setLocalValue] = useState(value);
|
|
10
|
-
const inputRef = useRef(null);
|
|
11
|
-
const isUpdatingRef = useRef(false);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!isUpdatingRef.current) {
|
|
14
|
-
setLocalValue(value);
|
|
15
|
-
}
|
|
16
|
-
}, [value]);
|
|
17
|
-
const handleChange = useCallback((e) => {
|
|
18
|
-
const newValue = e.target.value;
|
|
19
|
-
isUpdatingRef.current = true;
|
|
20
|
-
setLocalValue(newValue);
|
|
21
|
-
onChange(newValue);
|
|
22
|
-
// Reset flag after a brief delay to allow for external updates
|
|
23
|
-
setTimeout(() => {
|
|
24
|
-
isUpdatingRef.current = false;
|
|
25
|
-
}, 100);
|
|
26
|
-
}, [onChange]);
|
|
27
|
-
const handleBlur = useCallback(() => {
|
|
28
|
-
isUpdatingRef.current = false;
|
|
29
|
-
}, []);
|
|
30
|
-
return (_jsx("div", { className: styles.propertyEditor, children: _jsx(TextField, { label: label, value: localValue, onChange: handleChange, onBlur: handleBlur, placeholder: placeholder, multiline: multiline, rows: multiline ? rows : undefined, size: "small", fullWidth: true, inputProps: {
|
|
31
|
-
style: { fontSize: '13px' }
|
|
32
|
-
}, sx: {
|
|
33
|
-
'& .MuiInputLabel-root': {
|
|
34
|
-
fontSize: '12px'
|
|
35
|
-
}
|
|
36
|
-
} }) }));
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=TextEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditor.js","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/TextEditor.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,MAAM,MAAM,8BAA8B,CAA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E,UAAU,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAClC,IAAI,EAAC,OAAO,EACZ,SAAS,QACT,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;aAC5B,EACD,EAAE,EAAE;gBACF,uBAAuB,EAAE;oBACvB,QAAQ,EAAE,MAAM;iBACjB;aACF,GACD,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TokenEditor - Design token selector for spacing, sizing, and other design system values
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface TokenOption {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string | number;
|
|
8
|
-
description?: string;
|
|
9
|
-
preview?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TokenEditorProps {
|
|
12
|
-
value?: string | number;
|
|
13
|
-
onChange: (value: string | number) => void;
|
|
14
|
-
label?: string;
|
|
15
|
-
tokens: TokenOption[];
|
|
16
|
-
allowCustom?: boolean;
|
|
17
|
-
unit?: string;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const SPACING_TOKENS: TokenOption[];
|
|
21
|
-
export declare const SIZE_TOKENS: TokenOption[];
|
|
22
|
-
export declare const TokenEditor: React.FC<TokenEditorProps>;
|
|
23
|
-
//# sourceMappingURL=TokenEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TokenEditor.d.ts","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/TokenEditor.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,eAAO,MAAM,cAAc,EAAE,WAAW,EAavC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,EAIpC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2FlD,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* TokenEditor - Design token selector for spacing, sizing, and other design system values
|
|
4
|
-
*/
|
|
5
|
-
import { useCallback, useMemo } from 'react';
|
|
6
|
-
import styles from './PropertyEditors.module.css';
|
|
7
|
-
// Common design tokens
|
|
8
|
-
export const SPACING_TOKENS = [
|
|
9
|
-
{ label: 'None', value: 0, description: '0px' },
|
|
10
|
-
{ label: 'XS', value: 2, description: '2px' },
|
|
11
|
-
{ label: 'SM', value: 4, description: '4px' },
|
|
12
|
-
{ label: 'MD', value: 8, description: '8px' },
|
|
13
|
-
{ label: 'LG', value: 12, description: '12px' },
|
|
14
|
-
{ label: 'XL', value: 16, description: '16px' },
|
|
15
|
-
{ label: '2XL', value: 20, description: '20px' },
|
|
16
|
-
{ label: '3XL', value: 24, description: '24px' },
|
|
17
|
-
{ label: '4XL', value: 32, description: '32px' },
|
|
18
|
-
{ label: '5XL', value: 40, description: '40px' },
|
|
19
|
-
{ label: '6XL', value: 48, description: '48px' },
|
|
20
|
-
{ label: '7XL', value: 64, description: '64px' }
|
|
21
|
-
];
|
|
22
|
-
export const SIZE_TOKENS = [
|
|
23
|
-
{ label: 'Small', value: 'small', description: 'Compact size' },
|
|
24
|
-
{ label: 'Medium', value: 'medium', description: 'Default size' },
|
|
25
|
-
{ label: 'Large', value: 'large', description: 'Larger size' }
|
|
26
|
-
];
|
|
27
|
-
export const TokenEditor = ({ value, onChange, label, tokens, allowCustom = true, unit = 'px', placeholder = 'Select token...' }) => {
|
|
28
|
-
const currentToken = useMemo(() => {
|
|
29
|
-
return tokens.find(token => token.value === value);
|
|
30
|
-
}, [tokens, value]);
|
|
31
|
-
const handleTokenSelect = useCallback((selectedValue) => {
|
|
32
|
-
onChange(selectedValue);
|
|
33
|
-
}, [onChange]);
|
|
34
|
-
const handleCustomChange = useCallback((e) => {
|
|
35
|
-
const newValue = e.target.value;
|
|
36
|
-
// Try to parse as number if it looks like one
|
|
37
|
-
const numValue = Number(newValue);
|
|
38
|
-
onChange(!isNaN(numValue) && newValue !== '' ? numValue : newValue);
|
|
39
|
-
}, [onChange]);
|
|
40
|
-
const renderTokenButton = (token) => {
|
|
41
|
-
const isSelected = token.value === value;
|
|
42
|
-
return (_jsxs("button", { className: `${styles.tokenButton} ${isSelected ? styles.tokenSelected : ''}`, onClick: () => handleTokenSelect(token.value), title: token.description, type: "button", children: [_jsx("span", { className: styles.tokenLabel, children: token.label }), token.preview && (_jsx("span", { className: styles.tokenPreview, style: {
|
|
43
|
-
width: typeof token.value === 'number' ? `${Math.min(token.value, 32)}px` : '16px',
|
|
44
|
-
height: '2px',
|
|
45
|
-
backgroundColor: 'var(--color-primary)'
|
|
46
|
-
} })), token.description && (_jsx("span", { className: styles.tokenDescription, children: token.description }))] }, token.value));
|
|
47
|
-
};
|
|
48
|
-
return (_jsxs("div", { className: styles.propertyEditor, children: [label && _jsx("label", { className: styles.label, children: label }), _jsxs("div", { className: styles.tokenEditor, children: [_jsx("div", { className: styles.tokenGrid, children: tokens.map(renderTokenButton) }), allowCustom && (_jsxs("div", { className: styles.customTokenInput, children: [_jsx("input", { type: "text", className: styles.input, value: currentToken ? '' : value || '', onChange: handleCustomChange, placeholder: placeholder }), unit && typeof value === 'number' && (_jsx("span", { className: styles.unit, children: unit }))] })), currentToken && (_jsxs("div", { className: styles.selectedToken, children: [_jsx("span", { className: styles.selectedLabel, children: "Selected:" }), _jsxs("span", { className: styles.selectedValue, children: [currentToken.label, " (", currentToken.description || currentToken.value, ")"] })] }))] })] }));
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=TokenEditor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TokenEditor.js","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/TokenEditor.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAmBlD,uBAAuB;AACvB,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC/C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC7C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC7C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;IAC7C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;IAC/C,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,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
1
|
-
/**
|
|
2
|
-
* Property Editors - Intelligent form controls for different data types
|
|
3
|
-
*/
|
|
4
|
-
export { BooleanEditor } from './BooleanEditor.js';
|
|
5
|
-
export { ColorEditor } from './ColorEditor.js';
|
|
6
|
-
export { IconEditor } from './IconEditor.js';
|
|
7
|
-
export { NumberEditor } from './NumberEditor.js';
|
|
8
|
-
export { SelectEditor } from './SelectEditor.js';
|
|
9
|
-
export { SpacingEditor } from './SpacingEditor.js';
|
|
10
|
-
export { TextEditor } from './TextEditor.js';
|
|
11
|
-
export { TokenEditor, SPACING_TOKENS, SIZE_TOKENS } from './TokenEditor.js';
|
|
12
|
-
export type { BooleanEditorProps } from './BooleanEditor.js';
|
|
13
|
-
export type { ColorEditorProps } from './ColorEditor.js';
|
|
14
|
-
export type { IconEditorProps } from './IconEditor.js';
|
|
15
|
-
export type { NumberEditorProps } from './NumberEditor.js';
|
|
16
|
-
export type { SelectEditorProps, SelectOption } from './SelectEditor.js';
|
|
17
|
-
export type { SpacingEditorProps, SpacingValue } from './SpacingEditor.js';
|
|
18
|
-
export type { TextEditorProps } from './TextEditor.js';
|
|
19
|
-
export type { TokenEditorProps, TokenOption } from './TokenEditor.js';
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5E,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Property Editors - Intelligent form controls for different data types
|
|
3
|
-
*/
|
|
4
|
-
export { BooleanEditor } from './BooleanEditor.js';
|
|
5
|
-
export { ColorEditor } from './ColorEditor.js';
|
|
6
|
-
export { IconEditor } from './IconEditor.js';
|
|
7
|
-
export { NumberEditor } from './NumberEditor.js';
|
|
8
|
-
export { SelectEditor } from './SelectEditor.js';
|
|
9
|
-
export { SpacingEditor } from './SpacingEditor.js';
|
|
10
|
-
export { TextEditor } from './TextEditor.js';
|
|
11
|
-
export { TokenEditor, SPACING_TOKENS, SIZE_TOKENS } from './TokenEditor.js';
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../playground/components/PropertyEditors/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TreeView - Hierarchical component structure viewer
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface TreeViewProps {
|
|
6
|
-
onComponentDoubleClick?: (id: string) => void;
|
|
7
|
-
searchQuery?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TreeView: React.FC<TreeViewProps>;
|
|
10
|
-
//# sourceMappingURL=TreeView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../../playground/components/TreeView/TreeView.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AA+J9D,MAAM,WAAW,aAAa;IAC5B,sBAAsB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsJ5C,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* TreeView - Hierarchical component structure viewer
|
|
4
|
-
*/
|
|
5
|
-
import { useState, useCallback, useMemo } from 'react';
|
|
6
|
-
import { usePlaygroundStore } from '../../store/playgroundStore';
|
|
7
|
-
import styles from './TreeView.module.css';
|
|
8
|
-
const TreeNode = ({ component, level, isSelected, isHovered, expandedNodes, onToggleExpand, onSelect, onHover, onDoubleClick }) => {
|
|
9
|
-
const { components } = usePlaygroundStore();
|
|
10
|
-
const hasChildren = component.children && component.children.length > 0;
|
|
11
|
-
const isExpanded = expandedNodes.has(component.id);
|
|
12
|
-
const handleClick = useCallback((e) => {
|
|
13
|
-
e.stopPropagation();
|
|
14
|
-
onSelect(component.id, e.metaKey || e.ctrlKey);
|
|
15
|
-
}, [component.id, onSelect]);
|
|
16
|
-
const handleToggle = useCallback((e) => {
|
|
17
|
-
e.stopPropagation();
|
|
18
|
-
onToggleExpand(component.id);
|
|
19
|
-
}, [component.id, onToggleExpand]);
|
|
20
|
-
const handleDoubleClick = useCallback((e) => {
|
|
21
|
-
e.stopPropagation();
|
|
22
|
-
onDoubleClick?.(component.id);
|
|
23
|
-
}, [component.id, onDoubleClick]);
|
|
24
|
-
const handleMouseEnter = useCallback(() => {
|
|
25
|
-
onHover(component.id);
|
|
26
|
-
}, [component.id, onHover]);
|
|
27
|
-
const handleMouseLeave = useCallback(() => {
|
|
28
|
-
onHover(null);
|
|
29
|
-
}, [onHover]);
|
|
30
|
-
// Get component icon based on type
|
|
31
|
-
const getComponentIcon = (type) => {
|
|
32
|
-
const iconMap = {
|
|
33
|
-
// Layout
|
|
34
|
-
'Box': '📦',
|
|
35
|
-
'Container': '🔲',
|
|
36
|
-
'Stack': '📚',
|
|
37
|
-
'HStack': '🔗',
|
|
38
|
-
'Grid': '⚏',
|
|
39
|
-
'Flex': '↔️',
|
|
40
|
-
'Center': '⊡',
|
|
41
|
-
// Form
|
|
42
|
-
'Button': '🔘',
|
|
43
|
-
'Input': '✏️',
|
|
44
|
-
'Select': '📝',
|
|
45
|
-
'Checkbox': '☑️',
|
|
46
|
-
'Radio': '⭕',
|
|
47
|
-
// Display
|
|
48
|
-
'Text': '📝',
|
|
49
|
-
'Heading': '📰',
|
|
50
|
-
'Image': '🖼️',
|
|
51
|
-
'Card': '🎴',
|
|
52
|
-
'Badge': '🏷️',
|
|
53
|
-
// Data
|
|
54
|
-
'Table': '📊',
|
|
55
|
-
'List': '📋',
|
|
56
|
-
'Avatar': '👤',
|
|
57
|
-
// Default
|
|
58
|
-
'default': '🧩'
|
|
59
|
-
};
|
|
60
|
-
return iconMap[type] || iconMap.default;
|
|
61
|
-
};
|
|
62
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `
|
|
63
|
-
${styles.treeNode}
|
|
64
|
-
${isSelected ? styles.selected : ''}
|
|
65
|
-
${isHovered ? styles.hovered : ''}
|
|
66
|
-
`, style: { paddingLeft: `${level * 20 + 8}px` }, onClick: handleClick, onDoubleClick: handleDoubleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [hasChildren && (_jsx("button", { className: `${styles.expandButton} ${isExpanded ? styles.expanded : ''}`, onClick: handleToggle, "aria-label": isExpanded ? 'Collapse' : 'Expand', children: "\u25B6" })), !hasChildren && _jsx("span", { className: styles.noExpand }), _jsx("span", { className: styles.icon, children: getComponentIcon(component.type) }), _jsxs("span", { className: styles.label, children: [_jsx("span", { className: styles.type, children: component.type }), component.displayName && component.displayName !== component.type && (_jsx("span", { className: styles.name, children: component.displayName }))] }), component.hidden && (_jsx("span", { className: styles.badge, title: "Hidden", children: "\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8\uFE0F" })), component.locked && (_jsx("span", { className: styles.badge, title: "Locked", children: "\uD83D\uDD12" }))] }), hasChildren && isExpanded && (_jsx("div", { className: styles.children, children: component.children.map((childId) => {
|
|
67
|
-
const child = components.get(childId);
|
|
68
|
-
if (!child)
|
|
69
|
-
return null;
|
|
70
|
-
// Selection/hover come from top-level props to ensure reactivity
|
|
71
|
-
return (_jsx(TreeNode, { component: child, level: level + 1, isSelected: usePlaygroundStore.getState().selectedIds.has(child.id), isHovered: usePlaygroundStore.getState().hoveredId === child.id, expandedNodes: expandedNodes, onToggleExpand: onToggleExpand, onSelect: onSelect, onHover: onHover, onDoubleClick: onDoubleClick }, child.id));
|
|
72
|
-
}) }))] }));
|
|
73
|
-
};
|
|
74
|
-
export const TreeView = ({ onComponentDoubleClick, searchQuery = '' }) => {
|
|
75
|
-
const { components, rootId, selectedIds, hoveredId, selectComponent, setHoveredComponent } = usePlaygroundStore();
|
|
76
|
-
const [expandedNodes, setExpandedNodes] = useState(new Set([rootId]));
|
|
77
|
-
const [localSearchQuery, setLocalSearchQuery] = useState('');
|
|
78
|
-
const effectiveSearchQuery = searchQuery || localSearchQuery;
|
|
79
|
-
const rootComponent = components.get(rootId);
|
|
80
|
-
const handleToggleExpand = useCallback((id) => {
|
|
81
|
-
setExpandedNodes((prev) => {
|
|
82
|
-
const next = new Set(prev);
|
|
83
|
-
if (next.has(id)) {
|
|
84
|
-
next.delete(id);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
next.add(id);
|
|
88
|
-
}
|
|
89
|
-
return next;
|
|
90
|
-
});
|
|
91
|
-
}, []);
|
|
92
|
-
const handleExpandAll = useCallback(() => {
|
|
93
|
-
const allIds = new Set();
|
|
94
|
-
const addIds = (comp) => {
|
|
95
|
-
allIds.add(comp.id);
|
|
96
|
-
comp.children?.forEach(childId => {
|
|
97
|
-
const child = components.get(childId);
|
|
98
|
-
if (child)
|
|
99
|
-
addIds(child);
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
if (rootComponent) {
|
|
103
|
-
addIds(rootComponent);
|
|
104
|
-
}
|
|
105
|
-
setExpandedNodes(allIds);
|
|
106
|
-
}, [rootComponent, components]);
|
|
107
|
-
const handleCollapseAll = useCallback(() => {
|
|
108
|
-
setExpandedNodes(new Set([rootId]));
|
|
109
|
-
}, [rootId]);
|
|
110
|
-
const handleDoubleClick = useCallback((id) => {
|
|
111
|
-
// Focus on the component in the canvas
|
|
112
|
-
selectComponent(id);
|
|
113
|
-
onComponentDoubleClick?.(id);
|
|
114
|
-
}, [selectComponent, onComponentDoubleClick]);
|
|
115
|
-
// Filter components based on search
|
|
116
|
-
const filterComponents = useCallback((component, query) => {
|
|
117
|
-
if (!query)
|
|
118
|
-
return component;
|
|
119
|
-
const matchesQuery = component.type.toLowerCase().includes(query.toLowerCase()) ||
|
|
120
|
-
component.displayName?.toLowerCase().includes(query.toLowerCase()) ||
|
|
121
|
-
component.id.toLowerCase().includes(query.toLowerCase());
|
|
122
|
-
const filteredChildren = component.children
|
|
123
|
-
?.map(childId => {
|
|
124
|
-
const child = components.get(childId);
|
|
125
|
-
return child ? filterComponents(child, query) : null;
|
|
126
|
-
})
|
|
127
|
-
.filter(Boolean);
|
|
128
|
-
if (matchesQuery || (filteredChildren && filteredChildren.length > 0)) {
|
|
129
|
-
return {
|
|
130
|
-
...component,
|
|
131
|
-
children: filteredChildren?.map(c => c.id)
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
return null;
|
|
135
|
-
}, [components]);
|
|
136
|
-
const filteredRoot = useMemo(() => {
|
|
137
|
-
if (!rootComponent)
|
|
138
|
-
return null;
|
|
139
|
-
return filterComponents(rootComponent, effectiveSearchQuery);
|
|
140
|
-
}, [rootComponent, effectiveSearchQuery, filterComponents]);
|
|
141
|
-
if (!filteredRoot) {
|
|
142
|
-
return (_jsx("div", { className: styles.treeView, children: _jsx("div", { className: styles.emptyState, children: effectiveSearchQuery ? (_jsxs("p", { children: ["No components match \"", effectiveSearchQuery, "\""] })) : (_jsx("p", { children: "No components to display" })) }) }));
|
|
143
|
-
}
|
|
144
|
-
return (_jsxs("div", { className: styles.treeView, children: [_jsxs("div", { className: styles.toolbar, children: [_jsx("input", { type: "text", className: styles.searchInput, placeholder: "Search components...", value: localSearchQuery, onChange: (e) => setLocalSearchQuery(e.target.value) }), _jsxs("div", { className: styles.actions, children: [_jsx("button", { className: styles.actionButton, onClick: handleExpandAll, title: "Expand all", children: "\u229E" }), _jsx("button", { className: styles.actionButton, onClick: handleCollapseAll, title: "Collapse all", children: "\u229F" })] })] }), _jsx("div", { className: styles.treeContent, children: _jsx(TreeNode, { component: filteredRoot, level: 0, isSelected: selectedIds.has(filteredRoot.id), isHovered: hoveredId === filteredRoot.id, expandedNodes: expandedNodes, onToggleExpand: handleToggleExpand, onSelect: selectComponent, onHover: setHoveredComponent, onDoubleClick: handleDoubleClick }) })] }));
|
|
145
|
-
};
|
|
146
|
-
//# sourceMappingURL=TreeView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../../playground/components/TreeView/TreeView.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAc3C,MAAM,QAAQ,GAA4B,CAAC,EACzC,SAAS,EACT,KAAK,EACL,UAAU,EACV,SAAS,EACT,aAAa,EACb,cAAc,EACd,QAAQ,EACR,OAAO,EACP,aAAa,EACd,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAC5C,MAAM,WAAW,GAAG,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAEnD,MAAM,WAAW,GAAG,WAAW,CAAC,CAAC,CAAmB,EAAE,EAAE;QACtD,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IA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