@tpitre/story-ui 2.7.1 → 2.8.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.
Files changed (292) hide show
  1. package/README.md +40 -9
  2. package/dist/cli/deploy.d.ts +1 -1
  3. package/dist/cli/deploy.d.ts.map +1 -1
  4. package/dist/cli/deploy.js +5 -115
  5. package/dist/cli/index.js +0 -0
  6. package/dist/cli/setup.js +3 -3
  7. package/dist/templates/StoryUI/StoryUIPanel.d.ts.map +1 -1
  8. package/dist/templates/StoryUI/StoryUIPanel.js +30 -2
  9. package/package.json +1 -1
  10. package/templates/StoryUI/StoryUIPanel.tsx +35 -2
  11. package/dist/cli/index.js.map +0 -1
  12. package/dist/cli/setup.js.map +0 -1
  13. package/dist/cloudflare-edge/src/mcp-session.js +0 -462
  14. package/dist/cloudflare-edge/src/types.js +0 -4
  15. package/dist/cloudflare-edge/src/worker.js +0 -106
  16. package/dist/cloudflare-pages/vite.config.js +0 -14
  17. package/dist/index.d.ts +0 -13
  18. package/dist/index.d.ts.map +0 -1
  19. package/dist/index.js +0 -12
  20. package/dist/index.js.map +0 -1
  21. package/dist/mcp-server/index.js.map +0 -1
  22. package/dist/mcp-server/mcp-stdio-server.js.map +0 -1
  23. package/dist/mcp-server/routes/claude.js.map +0 -1
  24. package/dist/mcp-server/routes/components.js.map +0 -1
  25. package/dist/mcp-server/routes/generateStory.js.map +0 -1
  26. package/dist/mcp-server/routes/hybridStories.js.map +0 -1
  27. package/dist/mcp-server/routes/memoryStories.js.map +0 -1
  28. package/dist/mcp-server/routes/storySync.js.map +0 -1
  29. package/dist/mcp-server/routes/updateStory.js +0 -246
  30. package/dist/mcp-server/sessionManager.js.map +0 -1
  31. package/dist/playground/components/AIAssistant/AIAssistant.d.ts +0 -6
  32. package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +0 -1
  33. package/dist/playground/components/AIAssistant/AIAssistant.js +0 -109
  34. package/dist/playground/components/AIAssistant/AIAssistant.js.map +0 -1
  35. package/dist/playground/components/AIAssistant/AIAssistant.module.css +0 -166
  36. package/dist/playground/components/Canvas/Canvas.d.ts +0 -9
  37. package/dist/playground/components/Canvas/Canvas.d.ts.map +0 -1
  38. package/dist/playground/components/Canvas/Canvas.js +0 -58
  39. package/dist/playground/components/Canvas/Canvas.js.map +0 -1
  40. package/dist/playground/components/Canvas/Canvas.module.css +0 -189
  41. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +0 -9
  42. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +0 -1
  43. package/dist/playground/components/Canvas/CanvasWithDnd.js +0 -158
  44. package/dist/playground/components/Canvas/CanvasWithDnd.js.map +0 -1
  45. package/dist/playground/components/Canvas/ComponentRenderer.d.ts +0 -15
  46. package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +0 -1
  47. package/dist/playground/components/Canvas/ComponentRenderer.js +0 -177
  48. package/dist/playground/components/Canvas/ComponentRenderer.js.map +0 -1
  49. package/dist/playground/components/Canvas/DraggableComponent.d.ts +0 -15
  50. package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +0 -1
  51. package/dist/playground/components/Canvas/DraggableComponent.js +0 -49
  52. package/dist/playground/components/Canvas/DraggableComponent.js.map +0 -1
  53. package/dist/playground/components/Canvas/index.d.ts +0 -9
  54. package/dist/playground/components/Canvas/index.d.ts.map +0 -1
  55. package/dist/playground/components/Canvas/index.js +0 -5
  56. package/dist/playground/components/Canvas/index.js.map +0 -1
  57. package/dist/playground/components/CodeView/CodeView.d.ts +0 -12
  58. package/dist/playground/components/CodeView/CodeView.d.ts.map +0 -1
  59. package/dist/playground/components/CodeView/CodeView.js +0 -77
  60. package/dist/playground/components/CodeView/CodeView.js.map +0 -1
  61. package/dist/playground/components/CodeView/CodeView.module.css +0 -178
  62. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +0 -17
  63. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +0 -1
  64. package/dist/playground/components/ComponentPalette/ComponentPalette.js +0 -138
  65. package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +0 -1
  66. package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +0 -217
  67. package/dist/playground/components/ComponentPalette/index.d.ts +0 -3
  68. package/dist/playground/components/ComponentPalette/index.d.ts.map +0 -1
  69. package/dist/playground/components/ComponentPalette/index.js +0 -2
  70. package/dist/playground/components/ComponentPalette/index.js.map +0 -1
  71. package/dist/playground/components/DropZone/DropZone.d.ts +0 -17
  72. package/dist/playground/components/DropZone/DropZone.d.ts.map +0 -1
  73. package/dist/playground/components/DropZone/DropZone.js +0 -73
  74. package/dist/playground/components/DropZone/DropZone.js.map +0 -1
  75. package/dist/playground/components/DropZone/DropZone.module.css +0 -86
  76. package/dist/playground/components/ExportDialog/ExportDialog.d.ts +0 -10
  77. package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +0 -1
  78. package/dist/playground/components/ExportDialog/ExportDialog.js +0 -57
  79. package/dist/playground/components/ExportDialog/ExportDialog.js.map +0 -1
  80. package/dist/playground/components/ExportDialog/ExportDialog.module.css +0 -328
  81. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +0 -134
  82. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +0 -1
  83. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +0 -254
  84. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +0 -1
  85. package/dist/playground/components/LayoutHelpers/index.d.ts +0 -3
  86. package/dist/playground/components/LayoutHelpers/index.d.ts.map +0 -1
  87. package/dist/playground/components/LayoutHelpers/index.js +0 -2
  88. package/dist/playground/components/LayoutHelpers/index.js.map +0 -1
  89. package/dist/playground/components/Playground/Playground.d.ts +0 -10
  90. package/dist/playground/components/Playground/Playground.d.ts.map +0 -1
  91. package/dist/playground/components/Playground/Playground.js +0 -128
  92. package/dist/playground/components/Playground/Playground.js.map +0 -1
  93. package/dist/playground/components/Playground/Playground.module.css +0 -308
  94. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +0 -10
  95. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +0 -1
  96. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +0 -150
  97. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +0 -1
  98. package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +0 -155
  99. package/dist/playground/components/PropertiesPanel/index.d.ts +0 -3
  100. package/dist/playground/components/PropertiesPanel/index.d.ts.map +0 -1
  101. package/dist/playground/components/PropertiesPanel/index.js +0 -2
  102. package/dist/playground/components/PropertiesPanel/index.js.map +0 -1
  103. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +0 -12
  104. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +0 -1
  105. package/dist/playground/components/PropertyEditors/BooleanEditor.js +0 -14
  106. package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +0 -1
  107. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +0 -12
  108. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +0 -1
  109. package/dist/playground/components/PropertyEditors/ColorEditor.js +0 -62
  110. package/dist/playground/components/PropertyEditors/ColorEditor.js.map +0 -1
  111. package/dist/playground/components/PropertyEditors/IconEditor.d.ts +0 -12
  112. package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +0 -1
  113. package/dist/playground/components/PropertyEditors/IconEditor.js +0 -123
  114. package/dist/playground/components/PropertyEditors/IconEditor.js.map +0 -1
  115. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +0 -15
  116. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +0 -1
  117. package/dist/playground/components/PropertyEditors/NumberEditor.js +0 -46
  118. package/dist/playground/components/PropertyEditors/NumberEditor.js.map +0 -1
  119. package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +0 -432
  120. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +0 -19
  121. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +0 -1
  122. package/dist/playground/components/PropertyEditors/SelectEditor.js +0 -17
  123. package/dist/playground/components/PropertyEditors/SelectEditor.js.map +0 -1
  124. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +0 -19
  125. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +0 -1
  126. package/dist/playground/components/PropertyEditors/SpacingEditor.js +0 -162
  127. package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +0 -1
  128. package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +0 -214
  129. package/dist/playground/components/PropertyEditors/TextEditor.d.ts +0 -14
  130. package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +0 -1
  131. package/dist/playground/components/PropertyEditors/TextEditor.js +0 -38
  132. package/dist/playground/components/PropertyEditors/TextEditor.js.map +0 -1
  133. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +0 -23
  134. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +0 -1
  135. package/dist/playground/components/PropertyEditors/TokenEditor.js +0 -50
  136. package/dist/playground/components/PropertyEditors/TokenEditor.js.map +0 -1
  137. package/dist/playground/components/PropertyEditors/index.d.ts +0 -20
  138. package/dist/playground/components/PropertyEditors/index.d.ts.map +0 -1
  139. package/dist/playground/components/PropertyEditors/index.js +0 -12
  140. package/dist/playground/components/PropertyEditors/index.js.map +0 -1
  141. package/dist/playground/components/TreeView/TreeView.d.ts +0 -10
  142. package/dist/playground/components/TreeView/TreeView.d.ts.map +0 -1
  143. package/dist/playground/components/TreeView/TreeView.js +0 -146
  144. package/dist/playground/components/TreeView/TreeView.js.map +0 -1
  145. package/dist/playground/components/TreeView/TreeView.module.css +0 -214
  146. package/dist/playground/components/TreeView/index.d.ts +0 -3
  147. package/dist/playground/components/TreeView/index.d.ts.map +0 -1
  148. package/dist/playground/components/TreeView/index.js +0 -2
  149. package/dist/playground/components/TreeView/index.js.map +0 -1
  150. package/dist/playground/config/propertyDefinitions.d.ts +0 -73
  151. package/dist/playground/config/propertyDefinitions.d.ts.map +0 -1
  152. package/dist/playground/config/propertyDefinitions.js +0 -809
  153. package/dist/playground/config/propertyDefinitions.js.map +0 -1
  154. package/dist/playground/hooks/useKeyboardShortcuts.d.ts +0 -38
  155. package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  156. package/dist/playground/hooks/useKeyboardShortcuts.js +0 -191
  157. package/dist/playground/hooks/useKeyboardShortcuts.js.map +0 -1
  158. package/dist/playground/index.d.ts +0 -21
  159. package/dist/playground/index.d.ts.map +0 -1
  160. package/dist/playground/index.js +0 -23
  161. package/dist/playground/index.js.map +0 -1
  162. package/dist/playground/services/CodeGenerator.d.ts +0 -73
  163. package/dist/playground/services/CodeGenerator.d.ts.map +0 -1
  164. package/dist/playground/services/CodeGenerator.js +0 -359
  165. package/dist/playground/services/CodeGenerator.js.map +0 -1
  166. package/dist/playground/services/DragDropManager.d.ts +0 -95
  167. package/dist/playground/services/DragDropManager.d.ts.map +0 -1
  168. package/dist/playground/services/DragDropManager.js +0 -408
  169. package/dist/playground/services/DragDropManager.js.map +0 -1
  170. package/dist/playground/services/StoryParser.d.ts +0 -73
  171. package/dist/playground/services/StoryParser.d.ts.map +0 -1
  172. package/dist/playground/services/StoryParser.js +0 -419
  173. package/dist/playground/services/StoryParser.js.map +0 -1
  174. package/dist/playground/store/playgroundStore.d.ts +0 -86
  175. package/dist/playground/store/playgroundStore.d.ts.map +0 -1
  176. package/dist/playground/store/playgroundStore.js +0 -337
  177. package/dist/playground/store/playgroundStore.js.map +0 -1
  178. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +0 -13
  179. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +0 -1
  180. package/dist/playground/stories/PlaygroundDragDrop.stories.js +0 -227
  181. package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +0 -1
  182. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +0 -13
  183. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +0 -1
  184. package/dist/playground/stories/PlaygroundPhase4.stories.js +0 -334
  185. package/dist/playground/stories/PlaygroundPhase4.stories.js.map +0 -1
  186. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +0 -14
  187. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +0 -1
  188. package/dist/playground/stories/PlaygroundPhase5.stories.js +0 -512
  189. package/dist/playground/stories/PlaygroundPhase5.stories.js.map +0 -1
  190. package/dist/playground/stories/PlaygroundProperties.stories.d.ts +0 -13
  191. package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +0 -1
  192. package/dist/playground/stories/PlaygroundProperties.stories.js +0 -342
  193. package/dist/playground/stories/PlaygroundProperties.stories.js.map +0 -1
  194. package/dist/playground/types/index.d.ts +0 -251
  195. package/dist/playground/types/index.d.ts.map +0 -1
  196. package/dist/playground/types/index.js +0 -5
  197. package/dist/playground/types/index.js.map +0 -1
  198. package/dist/scripts/verify-framework-adapters.js +0 -105
  199. package/dist/story-generator/componentBlacklist.js.map +0 -1
  200. package/dist/story-generator/componentDiscovery.js.map +0 -1
  201. package/dist/story-generator/configLoader.js.map +0 -1
  202. package/dist/story-generator/considerationsLoader.js.map +0 -1
  203. package/dist/story-generator/documentation-sources.js.map +0 -1
  204. package/dist/story-generator/documentationLoader.js.map +0 -1
  205. package/dist/story-generator/dynamicPackageDiscovery.js.map +0 -1
  206. package/dist/story-generator/enhancedComponentDiscovery.js.map +0 -1
  207. package/dist/story-generator/generateStory.js.map +0 -1
  208. package/dist/story-generator/gitignoreManager.js.map +0 -1
  209. package/dist/story-generator/inMemoryStoryService.js.map +0 -1
  210. package/dist/story-generator/logger.js.map +0 -1
  211. package/dist/story-generator/postProcessStory.js.map +0 -1
  212. package/dist/story-generator/productionGitignoreManager.js.map +0 -1
  213. package/dist/story-generator/promptGenerator.js.map +0 -1
  214. package/dist/story-generator/providerPresets.d.ts +0 -54
  215. package/dist/story-generator/providerPresets.d.ts.map +0 -1
  216. package/dist/story-generator/providerPresets.js +0 -214
  217. package/dist/story-generator/storyHistory.js.map +0 -1
  218. package/dist/story-generator/storySync.js.map +0 -1
  219. package/dist/story-generator/storyTracker.js.map +0 -1
  220. package/dist/story-generator/storyValidator.js.map +0 -1
  221. package/dist/story-generator/test_validation.d.ts +0 -2
  222. package/dist/story-generator/test_validation.d.ts.map +0 -1
  223. package/dist/story-generator/test_validation.js +0 -51
  224. package/dist/story-generator/universalDesignSystemAdapter.js.map +0 -1
  225. package/dist/story-generator/urlRedirectService.js.map +0 -1
  226. package/dist/story-generator/validateStory.js.map +0 -1
  227. package/dist/story-ui.config.js.map +0 -1
  228. package/dist/story-ui.config.loader.d.ts +0 -36
  229. package/dist/story-ui.config.loader.d.ts.map +0 -1
  230. package/dist/story-ui.config.loader.js +0 -205
  231. package/dist/story-ui.config.loader.js.map +0 -1
  232. package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +0 -807
  233. package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +0 -37
  234. package/dist/temp/package/templates/StoryUI/index.js +0 -2
  235. package/dist/templates/StoryUI/StoryUIPanel.js.map +0 -1
  236. package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +0 -1
  237. package/dist/templates/StoryUI/index.js.map +0 -1
  238. package/dist/templates/StoryUI/manager.d.ts +0 -14
  239. package/dist/templates/StoryUI/manager.d.ts.map +0 -1
  240. package/dist/templates/production-app/src/App.d.ts +0 -10
  241. package/dist/templates/production-app/src/App.d.ts.map +0 -1
  242. package/dist/templates/production-app/src/App.js +0 -653
  243. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +0 -24
  244. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +0 -1
  245. package/dist/templates/production-app/src/LivePreviewRenderer.js +0 -199
  246. package/dist/templates/production-app/src/componentRegistry.d.ts +0 -20
  247. package/dist/templates/production-app/src/componentRegistry.d.ts.map +0 -1
  248. package/dist/templates/production-app/src/componentRegistry.js +0 -316
  249. package/dist/templates/production-app/src/main.d.ts +0 -9
  250. package/dist/templates/production-app/src/main.d.ts.map +0 -1
  251. package/dist/templates/production-app/src/main.js +0 -18
  252. package/dist/templates/production-app/vite.config.d.ts +0 -3
  253. package/dist/templates/production-app/vite.config.d.ts.map +0 -1
  254. package/dist/templates/production-app/vite.config.js +0 -71
  255. package/dist/test-storybooks/angular-material-storybook/src/main.js +0 -66
  256. package/dist/test-storybooks/chakra-storybook/vite.config.js +0 -6
  257. package/dist/test-storybooks/mantine-storybook/vite.config.js +0 -93
  258. package/dist/test-storybooks/web-components-shoelace/vite.config.js +0 -9
  259. package/dist/tsconfig.tsbuildinfo +0 -1
  260. package/dist/visual-builder/components/Canvas/Canvas.js +0 -70
  261. package/dist/visual-builder/components/Canvas/ComponentRenderer.js +0 -545
  262. package/dist/visual-builder/components/CodeExporter/CodeExporter.js +0 -25
  263. package/dist/visual-builder/components/CodeExporter/codeGenerator.js +0 -99
  264. package/dist/visual-builder/components/ComponentPalette/ComponentPalette.js +0 -8
  265. package/dist/visual-builder/components/ComponentPalette/ComponentPaletteItem.js +0 -51
  266. package/dist/visual-builder/components/EmbeddedVisualBuilder.js +0 -107
  267. package/dist/visual-builder/components/PropertyEditor/PropertyEditor.js +0 -16
  268. package/dist/visual-builder/components/PropertyEditor/PropertyForm.js +0 -88
  269. package/dist/visual-builder/components/PropertyEditor/SpacingControl.js +0 -145
  270. package/dist/visual-builder/components/PropertyEditor/SpacingEditor.js +0 -32
  271. package/dist/visual-builder/components/StoryManager/SaveOnlyManager.js +0 -94
  272. package/dist/visual-builder/components/StoryManager/StoryManager.js +0 -68
  273. package/dist/visual-builder/components/StoryManager/index.js +0 -1
  274. package/dist/visual-builder/components/VisualBuilder.js +0 -256
  275. package/dist/visual-builder/config/componentRegistry.js +0 -1758
  276. package/dist/visual-builder/decorators/VisualBuilderDecorator.js +0 -184
  277. package/dist/visual-builder/example-integration.js +0 -59
  278. package/dist/visual-builder/example.js +0 -23
  279. package/dist/visual-builder/hooks/useDragAndDrop.js +0 -137
  280. package/dist/visual-builder/hooks/useSelection.js +0 -27
  281. package/dist/visual-builder/index.js +0 -7
  282. package/dist/visual-builder/store/visualBuilderStore.js +0 -305
  283. package/dist/visual-builder/types/index.js +0 -1
  284. package/dist/visual-builder/utils/__tests__/storyFileUpdater.test.js +0 -145
  285. package/dist/visual-builder/utils/aiParser.js +0 -336
  286. package/dist/visual-builder/utils/componentTreeUtils.js +0 -111
  287. package/dist/visual-builder/utils/parserValidation.js +0 -122
  288. package/dist/visual-builder/utils/storyFileManager.js +0 -73
  289. package/dist/visual-builder/utils/storyFileUpdater.js +0 -326
  290. package/dist/visual-builder/utils/storyNameExtraction.test.js +0 -211
  291. package/dist/visual-builder/utils/storyPersistence.js +0 -180
  292. package/dist/visual-builder/utils/storyToBuilder.js +0 -813
@@ -1,57 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * ExportDialog - Dialog for exporting generated story code
4
- */
5
- import { useState, useMemo } from 'react';
6
- import { usePlaygroundStore } from '../../store/playgroundStore';
7
- import { CodeGenerator } from '../../services/CodeGenerator';
8
- import styles from './ExportDialog.module.css';
9
- export const ExportDialog = ({ isOpen, onClose }) => {
10
- const { components, rootId } = usePlaygroundStore();
11
- const [storyName, setStoryName] = useState('MyStory');
12
- const [framework, setFramework] = useState('react');
13
- const [includeImports, setIncludeImports] = useState(true);
14
- const [includeHelpers, setIncludeHelpers] = useState(true);
15
- const [useTypeScript, setUseTypeScript] = useState(true);
16
- const [copied, setCopied] = useState(false);
17
- // Generate code based on current settings
18
- const generatedCode = useMemo(() => {
19
- try {
20
- const generator = new CodeGenerator({
21
- framework,
22
- includeImports,
23
- includeHelpers,
24
- prettier: true,
25
- indentSize: 2,
26
- useTypeScript
27
- });
28
- return generator.generateStoryCode(components, rootId, storyName);
29
- }
30
- catch (error) {
31
- console.error('Code generation error:', error);
32
- return '// Error generating code\n// ' + error.message;
33
- }
34
- }, [components, rootId, storyName, framework, includeImports, includeHelpers, useTypeScript]);
35
- if (!isOpen)
36
- return null;
37
- const handleCopy = () => {
38
- navigator.clipboard.writeText(generatedCode).then(() => {
39
- setCopied(true);
40
- setTimeout(() => setCopied(false), 2000);
41
- });
42
- };
43
- const handleExport = () => {
44
- const extension = framework === 'react' && useTypeScript ? 'tsx' : 'js';
45
- const blob = new Blob([generatedCode], { type: 'text/javascript' });
46
- const url = URL.createObjectURL(blob);
47
- const a = document.createElement('a');
48
- a.href = url;
49
- a.download = `${storyName}.stories.${extension}`;
50
- document.body.appendChild(a);
51
- a.click();
52
- document.body.removeChild(a);
53
- URL.revokeObjectURL(url);
54
- };
55
- return (_jsx("div", { className: styles.dialogOverlay, onClick: onClose, children: _jsxs("div", { className: styles.dialog, onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: styles.header, children: [_jsx("h2", { className: styles.title, children: "Export Story" }), _jsx("button", { className: styles.closeButton, onClick: onClose, children: "\u2715" })] }), _jsxs("div", { className: styles.content, children: [_jsxs("div", { className: styles.settings, children: [_jsx("div", { className: styles.settingGroup, children: _jsxs("label", { className: styles.label, children: ["Story Name", _jsx("input", { type: "text", className: styles.input, value: storyName, onChange: (e) => setStoryName(e.target.value), placeholder: "Enter story name" })] }) }), _jsx("div", { className: styles.settingGroup, children: _jsxs("label", { className: styles.label, children: ["Framework", _jsxs("select", { className: styles.select, value: framework, onChange: (e) => setFramework(e.target.value), children: [_jsx("option", { value: "react", children: "React" }), _jsx("option", { value: "vue", children: "Vue" }), _jsx("option", { value: "angular", children: "Angular" })] })] }) }), _jsxs("div", { className: styles.checkboxGroup, children: [_jsxs("label", { className: styles.checkbox, children: [_jsx("input", { type: "checkbox", checked: includeImports, onChange: (e) => setIncludeImports(e.target.checked) }), "Include imports"] }), _jsxs("label", { className: styles.checkbox, children: [_jsx("input", { type: "checkbox", checked: includeHelpers, onChange: (e) => setIncludeHelpers(e.target.checked) }), "Include layout helpers"] }), _jsxs("label", { className: styles.checkbox, children: [_jsx("input", { type: "checkbox", checked: useTypeScript, onChange: (e) => setUseTypeScript(e.target.checked), disabled: framework !== 'react' }), "Use TypeScript"] })] })] }), _jsxs("div", { className: styles.preview, children: [_jsxs("div", { className: styles.previewHeader, children: [_jsx("span", { className: styles.previewTitle, children: "Preview" }), _jsx("button", { className: `${styles.copyButton} ${copied ? styles.copied : ''}`, onClick: handleCopy, children: copied ? '✓ Copied' : '📋 Copy' })] }), _jsx("pre", { className: styles.code, children: _jsx("code", { children: generatedCode }) })] })] }), _jsxs("div", { className: styles.footer, children: [_jsx("button", { className: styles.cancelButton, onClick: onClose, children: "Cancel" }), _jsx("button", { className: styles.exportButton, onClick: handleExport, children: "\uD83D\uDCBE Export as File" })] })] }) }));
56
- };
57
- //# sourceMappingURL=ExportDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExportDialog.js","sourceRoot":"","sources":["../../../../playground/components/ExportDialog/ExportDialog.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAO/C,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;IACpD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAA8B,OAAO,CAAC,CAAC;IACjF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,MAAM,CAAC,cAAc,EAAE,iBAA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CAAC,EACnD,QAAQ,EAAE,SAAS,KAAK,OAAO,GAC/B,sBAEI,IACJ,IACF,EAEN,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,eAAK,SAAS,EAAE,MAAM,CAAC,aAAa,aAClC,eAAM,SAAS,EAAE,MAAM,CAAC,YAAY,wBAAgB,EACpD,iBACE,SAAS,EAAE,GAAG,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAChE,OAAO,EAAE,UAAU,YAElB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,GACzB,IACL,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,yBAAO,aAAa,GAAQ,GACxB,IACF,IACF,EAEN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,iBAAQ,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,uBAE/C,EACT,iBAAQ,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,YAAY,4CAEpD,IACL,IACF,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,328 +0,0 @@
1
- /**
2
- * ExportDialog - Styles for the export dialog
3
- */
4
-
5
- .dialogOverlay {
6
- position: fixed;
7
- top: 0;
8
- left: 0;
9
- right: 0;
10
- bottom: 0;
11
- background: rgba(0, 0, 0, 0.5);
12
- display: flex;
13
- align-items: center;
14
- justify-content: center;
15
- z-index: 1000;
16
- animation: fadeIn 0.2s ease-out;
17
- }
18
-
19
- @keyframes fadeIn {
20
- from {
21
- opacity: 0;
22
- }
23
- to {
24
- opacity: 1;
25
- }
26
- }
27
-
28
- .dialog {
29
- background: white;
30
- border-radius: 12px;
31
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
32
- width: 90%;
33
- max-width: 900px;
34
- height: 80vh;
35
- display: flex;
36
- flex-direction: column;
37
- animation: slideUp 0.3s ease-out;
38
- }
39
-
40
- @keyframes slideUp {
41
- from {
42
- transform: translateY(20px);
43
- opacity: 0;
44
- }
45
- to {
46
- transform: translateY(0);
47
- opacity: 1;
48
- }
49
- }
50
-
51
- .header {
52
- display: flex;
53
- justify-content: space-between;
54
- align-items: center;
55
- padding: 20px 24px;
56
- border-bottom: 1px solid #e2e8f0;
57
- }
58
-
59
- .title {
60
- font-size: 20px;
61
- font-weight: 600;
62
- color: #1a202c;
63
- margin: 0;
64
- }
65
-
66
- .closeButton {
67
- background: transparent;
68
- border: none;
69
- font-size: 24px;
70
- color: #718096;
71
- cursor: pointer;
72
- padding: 4px 8px;
73
- transition: color 0.2s;
74
- }
75
-
76
- .closeButton:hover {
77
- color: #2d3748;
78
- }
79
-
80
- .content {
81
- flex: 1;
82
- display: flex;
83
- overflow: hidden;
84
- }
85
-
86
- .settings {
87
- width: 280px;
88
- padding: 24px;
89
- border-right: 1px solid #e2e8f0;
90
- overflow-y: auto;
91
- }
92
-
93
- .settingGroup {
94
- margin-bottom: 24px;
95
- }
96
-
97
- .label {
98
- display: flex;
99
- flex-direction: column;
100
- gap: 8px;
101
- font-size: 14px;
102
- font-weight: 500;
103
- color: #4a5568;
104
- }
105
-
106
- .input,
107
- .select {
108
- padding: 8px 12px;
109
- border: 1px solid #cbd5e0;
110
- border-radius: 6px;
111
- font-size: 14px;
112
- background: white;
113
- transition: all 0.2s;
114
- }
115
-
116
- .input:focus,
117
- .select:focus {
118
- outline: none;
119
- border-color: #4299e1;
120
- box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
121
- }
122
-
123
- .checkboxGroup {
124
- display: flex;
125
- flex-direction: column;
126
- gap: 12px;
127
- }
128
-
129
- .checkbox {
130
- display: flex;
131
- align-items: center;
132
- gap: 8px;
133
- font-size: 14px;
134
- color: #4a5568;
135
- cursor: pointer;
136
- }
137
-
138
- .checkbox input[type="checkbox"] {
139
- cursor: pointer;
140
- }
141
-
142
- .checkbox input[type="checkbox"]:disabled {
143
- opacity: 0.5;
144
- cursor: not-allowed;
145
- }
146
-
147
- .preview {
148
- flex: 1;
149
- display: flex;
150
- flex-direction: column;
151
- overflow: hidden;
152
- }
153
-
154
- .previewHeader {
155
- display: flex;
156
- justify-content: space-between;
157
- align-items: center;
158
- padding: 16px 24px;
159
- background: #f7fafc;
160
- border-bottom: 1px solid #e2e8f0;
161
- }
162
-
163
- .previewTitle {
164
- font-size: 14px;
165
- font-weight: 500;
166
- color: #4a5568;
167
- }
168
-
169
- .copyButton {
170
- padding: 6px 12px;
171
- background: white;
172
- border: 1px solid #cbd5e0;
173
- border-radius: 6px;
174
- font-size: 13px;
175
- color: #4a5568;
176
- cursor: pointer;
177
- transition: all 0.2s;
178
- }
179
-
180
- .copyButton:hover {
181
- background: #f7fafc;
182
- border-color: #a0aec0;
183
- }
184
-
185
- .copyButton.copied {
186
- background: #48bb78;
187
- border-color: #48bb78;
188
- color: white;
189
- }
190
-
191
- .code {
192
- flex: 1;
193
- margin: 0;
194
- padding: 24px;
195
- overflow: auto;
196
- font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
197
- font-size: 13px;
198
- line-height: 1.6;
199
- color: #2d3748;
200
- background: #f7fafc;
201
- }
202
-
203
- .footer {
204
- display: flex;
205
- justify-content: flex-end;
206
- gap: 12px;
207
- padding: 16px 24px;
208
- border-top: 1px solid #e2e8f0;
209
- }
210
-
211
- .cancelButton,
212
- .exportButton {
213
- padding: 8px 16px;
214
- border-radius: 6px;
215
- font-size: 14px;
216
- font-weight: 500;
217
- cursor: pointer;
218
- transition: all 0.2s;
219
- }
220
-
221
- .cancelButton {
222
- background: white;
223
- border: 1px solid #cbd5e0;
224
- color: #4a5568;
225
- }
226
-
227
- .cancelButton:hover {
228
- background: #f7fafc;
229
- border-color: #a0aec0;
230
- }
231
-
232
- .exportButton {
233
- background: #4299e1;
234
- border: 1px solid #4299e1;
235
- color: white;
236
- }
237
-
238
- .exportButton:hover {
239
- background: #3182ce;
240
- border-color: #3182ce;
241
- }
242
-
243
- /* Dark mode support */
244
- @media (prefers-color-scheme: dark) {
245
- .dialog {
246
- background: #1a202c;
247
- }
248
-
249
- .header {
250
- border-bottom-color: #2d3748;
251
- }
252
-
253
- .title {
254
- color: #f7fafc;
255
- }
256
-
257
- .closeButton {
258
- color: #a0aec0;
259
- }
260
-
261
- .closeButton:hover {
262
- color: #e2e8f0;
263
- }
264
-
265
- .settings {
266
- border-right-color: #2d3748;
267
- }
268
-
269
- .label {
270
- color: #cbd5e0;
271
- }
272
-
273
- .input,
274
- .select {
275
- background: #2d3748;
276
- border-color: #4a5568;
277
- color: #f7fafc;
278
- }
279
-
280
- .input:focus,
281
- .select:focus {
282
- border-color: #63b3ed;
283
- }
284
-
285
- .checkbox {
286
- color: #cbd5e0;
287
- }
288
-
289
- .previewHeader {
290
- background: #2d3748;
291
- border-bottom-color: #4a5568;
292
- }
293
-
294
- .previewTitle {
295
- color: #cbd5e0;
296
- }
297
-
298
- .copyButton {
299
- background: #2d3748;
300
- border-color: #4a5568;
301
- color: #cbd5e0;
302
- }
303
-
304
- .copyButton:hover {
305
- background: #4a5568;
306
- border-color: #718096;
307
- }
308
-
309
- .code {
310
- background: #2d3748;
311
- color: #e2e8f0;
312
- }
313
-
314
- .footer {
315
- border-top-color: #2d3748;
316
- }
317
-
318
- .cancelButton {
319
- background: #2d3748;
320
- border-color: #4a5568;
321
- color: #cbd5e0;
322
- }
323
-
324
- .cancelButton:hover {
325
- background: #4a5568;
326
- border-color: #718096;
327
- }
328
- }
@@ -1,134 +0,0 @@
1
- /**
2
- * LayoutHelpers - Helper components for design systems lacking native layout components
3
- * These provide consistent layout primitives across different design systems
4
- */
5
- import React from 'react';
6
- import type { CSSProperties, ReactNode } from 'react';
7
- interface BaseLayoutProps {
8
- children?: ReactNode;
9
- className?: string;
10
- style?: CSSProperties;
11
- as?: keyof React.JSX.IntrinsicElements;
12
- }
13
- interface SpacingProps {
14
- p?: string | number;
15
- pt?: string | number;
16
- pr?: string | number;
17
- pb?: string | number;
18
- pl?: string | number;
19
- px?: string | number;
20
- py?: string | number;
21
- m?: string | number;
22
- mt?: string | number;
23
- mr?: string | number;
24
- mb?: string | number;
25
- ml?: string | number;
26
- mx?: string | number;
27
- my?: string | number;
28
- }
29
- interface FlexStyleProps {
30
- direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
31
- justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
32
- align?: 'start' | 'end' | 'center' | 'stretch' | 'baseline';
33
- wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
34
- gap?: string | number;
35
- flex?: string | number;
36
- }
37
- interface GridProps {
38
- columns?: number | string;
39
- rows?: number | string;
40
- gap?: string | number;
41
- columnGap?: string | number;
42
- rowGap?: string | number;
43
- areas?: string;
44
- autoFlow?: 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
45
- }
46
- /**
47
- * Box - Basic container with spacing utilities
48
- */
49
- export interface BoxProps extends BaseLayoutProps, SpacingProps {
50
- display?: CSSProperties['display'];
51
- width?: string | number;
52
- height?: string | number;
53
- minWidth?: string | number;
54
- minHeight?: string | number;
55
- maxWidth?: string | number;
56
- maxHeight?: string | number;
57
- overflow?: CSSProperties['overflow'];
58
- position?: CSSProperties['position'];
59
- background?: string;
60
- border?: string;
61
- borderRadius?: string | number;
62
- boxShadow?: string;
63
- }
64
- export declare const Box: React.FC<BoxProps>;
65
- /**
66
- * Flex - Flexbox container
67
- */
68
- export interface FlexProps extends BaseLayoutProps, SpacingProps, FlexStyleProps {
69
- }
70
- export declare const Flex: React.FC<FlexProps>;
71
- /**
72
- * Stack - Vertical flex container
73
- */
74
- export interface StackProps extends Omit<FlexProps, 'direction'> {
75
- spacing?: string | number;
76
- }
77
- export declare const Stack: React.FC<StackProps>;
78
- /**
79
- * HStack - Horizontal flex container
80
- */
81
- export interface HStackProps extends Omit<FlexProps, 'direction'> {
82
- spacing?: string | number;
83
- }
84
- export declare const HStack: React.FC<HStackProps>;
85
- /**
86
- * Grid - CSS Grid container
87
- */
88
- export interface GridContainerProps extends BaseLayoutProps, SpacingProps, GridProps {
89
- }
90
- export declare const Grid: React.FC<GridContainerProps>;
91
- /**
92
- * Center - Centers content both horizontally and vertically
93
- */
94
- export interface CenterProps extends BaseLayoutProps, SpacingProps {
95
- inline?: boolean;
96
- }
97
- export declare const Center: React.FC<CenterProps>;
98
- /**
99
- * Container - Centered container with max width
100
- */
101
- export interface ContainerProps extends BaseLayoutProps, SpacingProps {
102
- maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | string | number;
103
- centerContent?: boolean;
104
- }
105
- export declare const Container: React.FC<ContainerProps>;
106
- /**
107
- * Spacer - Creates space between elements
108
- */
109
- export interface SpacerProps {
110
- size?: string | number;
111
- axis?: 'horizontal' | 'vertical';
112
- flex?: boolean;
113
- }
114
- export declare const Spacer: React.FC<SpacerProps>;
115
- /**
116
- * Divider - Visual separator
117
- */
118
- export interface DividerProps {
119
- orientation?: 'horizontal' | 'vertical';
120
- color?: string;
121
- thickness?: string | number;
122
- spacing?: string | number;
123
- style?: CSSProperties;
124
- }
125
- export declare const Divider: React.FC<DividerProps>;
126
- /**
127
- * AspectRatio - Maintains aspect ratio for content
128
- */
129
- export interface AspectRatioProps extends BaseLayoutProps {
130
- ratio?: number | string;
131
- }
132
- export declare const AspectRatio: React.FC<AspectRatioProps>;
133
- export {};
134
- //# sourceMappingURL=LayoutHelpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LayoutHelpers.d.ts","sourceRoot":"","sources":["../../../../playground/components/LayoutHelpers/LayoutHelpers.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,E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