@uipath/apollo-wind 0.10.0-pr257.ea2dc77 → 0.11.0-pr295.2546a80

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 (283) hide show
  1. package/dist/components/custom/canvas-studio.cjs +133 -0
  2. package/dist/components/custom/canvas-studio.d.ts +99 -0
  3. package/dist/components/custom/canvas-studio.js +93 -0
  4. package/dist/components/custom/canvas.cjs +44 -0
  5. package/dist/components/custom/canvas.d.ts +14 -0
  6. package/dist/components/custom/canvas.js +10 -0
  7. package/dist/components/custom/chat-composer.cjs +105 -0
  8. package/dist/components/custom/chat-composer.d.ts +15 -0
  9. package/dist/components/custom/chat-composer.js +71 -0
  10. package/dist/components/custom/chat-first-experience.cjs +87 -0
  11. package/dist/components/custom/chat-first-experience.d.ts +24 -0
  12. package/dist/components/custom/chat-first-experience.js +53 -0
  13. package/dist/components/custom/chat-prompt-suggestions.cjs +49 -0
  14. package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
  15. package/dist/components/custom/chat-prompt-suggestions.js +15 -0
  16. package/dist/components/custom/chat-steps-view.cjs +308 -0
  17. package/dist/components/custom/chat-steps-view.d.ts +38 -0
  18. package/dist/components/custom/chat-steps-view.js +274 -0
  19. package/dist/components/custom/flow-node.cjs +76 -0
  20. package/dist/components/custom/flow-node.d.ts +20 -0
  21. package/dist/components/custom/flow-node.js +42 -0
  22. package/dist/components/custom/flow-properties-bar.cjs +103 -0
  23. package/dist/components/custom/flow-properties-bar.d.ts +21 -0
  24. package/dist/components/custom/flow-properties-bar.js +69 -0
  25. package/dist/components/custom/flow-properties-expanded.cjs +328 -0
  26. package/dist/components/custom/flow-properties-expanded.d.ts +21 -0
  27. package/dist/components/custom/flow-properties-expanded.js +294 -0
  28. package/dist/components/custom/flow-properties-simple.cjs +364 -0
  29. package/dist/components/custom/flow-properties-simple.d.ts +62 -0
  30. package/dist/components/custom/flow-properties-simple.js +330 -0
  31. package/dist/components/custom/flow-properties.cjs +56 -0
  32. package/dist/components/custom/flow-properties.d.ts +28 -0
  33. package/dist/components/custom/flow-properties.js +22 -0
  34. package/dist/components/custom/global-header.cjs +422 -0
  35. package/dist/components/custom/global-header.d.ts +38 -0
  36. package/dist/components/custom/global-header.js +388 -0
  37. package/dist/components/custom/grid-maestro.cjs +62 -0
  38. package/dist/components/custom/grid-maestro.d.ts +19 -0
  39. package/dist/components/custom/grid-maestro.js +22 -0
  40. package/dist/components/custom/page-header.cjs +92 -0
  41. package/dist/components/custom/page-header.d.ts +43 -0
  42. package/dist/components/custom/page-header.js +58 -0
  43. package/dist/components/custom/panel-delegate.cjs +285 -0
  44. package/dist/components/custom/panel-delegate.d.ts +34 -0
  45. package/dist/components/custom/panel-delegate.js +251 -0
  46. package/dist/components/custom/panel-flow.cjs +262 -0
  47. package/dist/components/custom/panel-flow.d.ts +38 -0
  48. package/dist/components/custom/panel-flow.js +225 -0
  49. package/dist/components/custom/panel-maestro.cjs +74 -0
  50. package/dist/components/custom/panel-maestro.d.ts +30 -0
  51. package/dist/components/custom/panel-maestro.js +40 -0
  52. package/dist/components/custom/panel-studio.cjs +122 -0
  53. package/dist/components/custom/panel-studio.d.ts +48 -0
  54. package/dist/components/custom/panel-studio.js +85 -0
  55. package/dist/components/custom/toolbar-canvas.cjs +124 -0
  56. package/dist/components/custom/toolbar-canvas.d.ts +15 -0
  57. package/dist/components/custom/toolbar-canvas.js +90 -0
  58. package/dist/components/custom/toolbar-view.cjs +121 -0
  59. package/dist/components/custom/toolbar-view.d.ts +14 -0
  60. package/dist/components/custom/toolbar-view.js +87 -0
  61. package/dist/components/custom/viewport-guard.cjs +92 -0
  62. package/dist/components/custom/viewport-guard.d.ts +23 -0
  63. package/dist/components/custom/viewport-guard.js +55 -0
  64. package/dist/components/forms/field-renderer.cjs +71 -120
  65. package/dist/components/forms/field-renderer.js +71 -120
  66. package/dist/components/forms/form-designer.cjs +1496 -2349
  67. package/dist/components/forms/form-designer.js +1497 -2350
  68. package/dist/components/forms/form-examples.cjs +10 -10
  69. package/dist/components/forms/form-examples.js +10 -10
  70. package/dist/components/forms/form-state-viewer.cjs +433 -988
  71. package/dist/components/forms/form-state-viewer.js +433 -988
  72. package/dist/components/forms/metadata-form.cjs +185 -455
  73. package/dist/components/forms/metadata-form.js +185 -455
  74. package/dist/components/forms/rules-engine.d.ts +1 -1
  75. package/dist/components/forms/schema-viewer.cjs +80 -173
  76. package/dist/components/forms/schema-viewer.js +80 -173
  77. package/dist/components/ui/accordion.cjs +27 -131
  78. package/dist/components/ui/accordion.js +27 -131
  79. package/dist/components/ui/alert-dialog.cjs +45 -273
  80. package/dist/components/ui/alert-dialog.js +45 -273
  81. package/dist/components/ui/alert.cjs +17 -106
  82. package/dist/components/ui/alert.js +17 -106
  83. package/dist/components/ui/avatar.cjs +15 -100
  84. package/dist/components/ui/avatar.js +15 -100
  85. package/dist/components/ui/badge.cjs +6 -36
  86. package/dist/components/ui/badge.js +6 -36
  87. package/dist/components/ui/breadcrumb.cjs +51 -258
  88. package/dist/components/ui/breadcrumb.js +51 -258
  89. package/dist/components/ui/button-group.cjs +21 -119
  90. package/dist/components/ui/button-group.d.ts +2 -2
  91. package/dist/components/ui/button-group.js +21 -119
  92. package/dist/components/ui/button.cjs +11 -51
  93. package/dist/components/ui/button.js +11 -51
  94. package/dist/components/ui/calendar.cjs +30 -88
  95. package/dist/components/ui/calendar.js +30 -88
  96. package/dist/components/ui/card.cjs +30 -199
  97. package/dist/components/ui/card.js +30 -199
  98. package/dist/components/ui/chart.cjs +223 -0
  99. package/dist/components/ui/chart.d.ts +40 -0
  100. package/dist/components/ui/chart.js +174 -0
  101. package/dist/components/ui/checkbox.cjs +8 -42
  102. package/dist/components/ui/checkbox.js +8 -42
  103. package/dist/components/ui/code-block.cjs +258 -0
  104. package/dist/components/ui/code-block.d.ts +48 -0
  105. package/dist/components/ui/code-block.js +207 -0
  106. package/dist/components/ui/combobox.cjs +53 -150
  107. package/dist/components/ui/combobox.js +53 -150
  108. package/dist/components/ui/command.cjs +53 -291
  109. package/dist/components/ui/command.js +53 -291
  110. package/dist/components/ui/context-menu.cjs +72 -370
  111. package/dist/components/ui/context-menu.js +72 -370
  112. package/dist/components/ui/data-table.cjs +61 -80
  113. package/dist/components/ui/data-table.d.ts +5 -2
  114. package/dist/components/ui/data-table.js +62 -81
  115. package/dist/components/ui/date-picker.cjs +68 -179
  116. package/dist/components/ui/date-picker.js +68 -179
  117. package/dist/components/ui/datetime-picker.cjs +104 -225
  118. package/dist/components/ui/datetime-picker.js +104 -225
  119. package/dist/components/ui/dialog.cjs +78 -290
  120. package/dist/components/ui/dialog.js +78 -290
  121. package/dist/components/ui/drawer.cjs +39 -220
  122. package/dist/components/ui/drawer.js +39 -220
  123. package/dist/components/ui/dropdown-menu.cjs +73 -376
  124. package/dist/components/ui/dropdown-menu.js +73 -376
  125. package/dist/components/ui/editable-cell.cjs +42 -113
  126. package/dist/components/ui/editable-cell.js +42 -113
  127. package/dist/components/ui/empty-state.cjs +43 -105
  128. package/dist/components/ui/empty-state.d.ts +7 -0
  129. package/dist/components/ui/empty-state.js +43 -105
  130. package/dist/components/ui/file-upload.cjs +232 -402
  131. package/dist/components/ui/file-upload.js +232 -402
  132. package/dist/components/ui/hover-card.cjs +7 -46
  133. package/dist/components/ui/hover-card.js +7 -46
  134. package/dist/components/ui/index.cjs +298 -158
  135. package/dist/components/ui/index.d.ts +2 -3
  136. package/dist/components/ui/index.js +2 -3
  137. package/dist/components/ui/input.cjs +6 -39
  138. package/dist/components/ui/input.js +6 -39
  139. package/dist/components/ui/label.cjs +5 -34
  140. package/dist/components/ui/label.js +5 -34
  141. package/dist/components/ui/layout/column.cjs +41 -209
  142. package/dist/components/ui/layout/column.js +41 -209
  143. package/dist/components/ui/layout/grid.cjs +60 -275
  144. package/dist/components/ui/layout/grid.js +60 -275
  145. package/dist/components/ui/layout/row.cjs +41 -209
  146. package/dist/components/ui/layout/row.js +41 -209
  147. package/dist/components/ui/multi-select.cjs +128 -289
  148. package/dist/components/ui/multi-select.js +128 -289
  149. package/dist/components/ui/pagination.cjs +64 -301
  150. package/dist/components/ui/pagination.js +64 -301
  151. package/dist/components/ui/popover.cjs +9 -48
  152. package/dist/components/ui/popover.js +9 -48
  153. package/dist/components/ui/progress.cjs +8 -48
  154. package/dist/components/ui/progress.js +8 -48
  155. package/dist/components/ui/radio-group.cjs +12 -74
  156. package/dist/components/ui/radio-group.js +12 -74
  157. package/dist/components/ui/resizable.cjs +10 -75
  158. package/dist/components/ui/resizable.d.ts +1 -1
  159. package/dist/components/ui/resizable.js +10 -75
  160. package/dist/components/ui/scroll-area.cjs +21 -113
  161. package/dist/components/ui/scroll-area.js +21 -113
  162. package/dist/components/ui/search.cjs +98 -280
  163. package/dist/components/ui/search.js +98 -280
  164. package/dist/components/ui/select.cjs +68 -334
  165. package/dist/components/ui/select.js +68 -334
  166. package/dist/components/ui/separator.cjs +7 -48
  167. package/dist/components/ui/separator.js +7 -48
  168. package/dist/components/ui/sheet.cjs +50 -236
  169. package/dist/components/ui/sheet.js +50 -236
  170. package/dist/components/ui/skeleton.cjs +5 -31
  171. package/dist/components/ui/skeleton.js +5 -31
  172. package/dist/components/ui/slider.cjs +21 -71
  173. package/dist/components/ui/slider.js +21 -71
  174. package/dist/components/ui/sonner.cjs +15 -43
  175. package/dist/components/ui/sonner.js +15 -43
  176. package/dist/components/ui/spinner.cjs +21 -83
  177. package/dist/components/ui/spinner.js +21 -83
  178. package/dist/components/ui/stats-card.cjs +60 -169
  179. package/dist/components/ui/stats-card.js +60 -169
  180. package/dist/components/ui/stepper.cjs +57 -126
  181. package/dist/components/ui/stepper.js +57 -126
  182. package/dist/components/ui/switch.cjs +8 -42
  183. package/dist/components/ui/switch.js +8 -42
  184. package/dist/components/ui/table.cjs +42 -267
  185. package/dist/components/ui/table.js +42 -267
  186. package/dist/components/ui/tabs.cjs +15 -100
  187. package/dist/components/ui/tabs.js +15 -100
  188. package/dist/components/ui/textarea.cjs +5 -34
  189. package/dist/components/ui/textarea.js +5 -34
  190. package/dist/components/ui/toggle-group.cjs +19 -112
  191. package/dist/components/ui/toggle-group.js +19 -112
  192. package/dist/components/ui/toggle.cjs +6 -43
  193. package/dist/components/ui/toggle.js +6 -43
  194. package/dist/components/ui/tooltip.cjs +6 -40
  195. package/dist/components/ui/tooltip.js +6 -40
  196. package/dist/components/ui/tree-view.cjs +1117 -0
  197. package/dist/components/ui/tree-view.d.ts +95 -0
  198. package/dist/components/ui/tree-view.js +1083 -0
  199. package/dist/foundation/Future/colors.cjs +92 -0
  200. package/dist/foundation/Future/colors.d.ts +132 -0
  201. package/dist/foundation/Future/colors.js +43 -0
  202. package/dist/foundation/Future/radius.cjs +46 -0
  203. package/dist/foundation/Future/radius.d.ts +33 -0
  204. package/dist/foundation/Future/radius.js +12 -0
  205. package/dist/foundation/Future/responsive.cjs +49 -0
  206. package/dist/foundation/Future/responsive.d.ts +40 -0
  207. package/dist/foundation/Future/responsive.js +12 -0
  208. package/dist/foundation/Future/shadows.cjs +48 -0
  209. package/dist/foundation/Future/shadows.d.ts +29 -0
  210. package/dist/foundation/Future/shadows.js +11 -0
  211. package/dist/foundation/Future/spacing.cjs +71 -0
  212. package/dist/foundation/Future/spacing.d.ts +80 -0
  213. package/dist/foundation/Future/spacing.js +31 -0
  214. package/dist/foundation/Future/strokes.cjs +59 -0
  215. package/dist/foundation/Future/strokes.d.ts +49 -0
  216. package/dist/foundation/Future/strokes.js +19 -0
  217. package/dist/foundation/Future/types.cjs +18 -0
  218. package/dist/foundation/Future/types.d.ts +25 -0
  219. package/dist/foundation/Future/types.js +0 -0
  220. package/dist/foundation/Future/typography.cjs +79 -0
  221. package/dist/foundation/Future/typography.d.ts +86 -0
  222. package/dist/foundation/Future/typography.js +33 -0
  223. package/dist/index.cjs +131 -221
  224. package/dist/index.d.ts +4 -3
  225. package/dist/index.js +3 -4
  226. package/dist/src/foundation/Future/themes.css +279 -0
  227. package/dist/styles.css +1941 -605
  228. package/dist/tailwind.css +874 -87
  229. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  230. package/dist/templates/Admin/template-admin.d.ts +86 -0
  231. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  232. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  233. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  234. package/dist/templates/Flow/template-flow.d.ts +57 -0
  235. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  236. package/dist/templates/Studio/template-studio.d.ts +102 -0
  237. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  238. package/package.json +12 -5
  239. package/dist/components/ui/menubar.cjs +0 -644
  240. package/dist/components/ui/menubar.d.ts +0 -28
  241. package/dist/components/ui/menubar.js +0 -565
  242. package/dist/components/ui/navigation-menu.cjs +0 -319
  243. package/dist/components/ui/navigation-menu.d.ts +0 -12
  244. package/dist/components/ui/navigation-menu.js +0 -261
  245. package/dist/examples/admin-layout-example.cjs +0 -1022
  246. package/dist/examples/admin-layout-example.d.ts +0 -92
  247. package/dist/examples/admin-layout-example.js +0 -943
  248. package/dist/examples/app-shell-example.cjs +0 -452
  249. package/dist/examples/app-shell-example.d.ts +0 -52
  250. package/dist/examples/app-shell-example.js +0 -418
  251. package/dist/examples/dashboard-example.cjs +0 -751
  252. package/dist/examples/dashboard-example.d.ts +0 -11
  253. package/dist/examples/dashboard-example.js +0 -717
  254. package/dist/examples/data-management-example.cjs +0 -782
  255. package/dist/examples/data-management-example.d.ts +0 -1
  256. package/dist/examples/data-management-example.js +0 -748
  257. package/dist/examples/flow-editor-layout-example.cjs +0 -513
  258. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  259. package/dist/examples/flow-editor-layout-example.js +0 -473
  260. package/dist/examples/flow-start-example.cjs +0 -724
  261. package/dist/examples/flow-start-example.d.ts +0 -30
  262. package/dist/examples/flow-start-example.js +0 -690
  263. package/dist/examples/form-builder-example.cjs +0 -1078
  264. package/dist/examples/form-builder-example.js +0 -1044
  265. package/dist/examples/new-project-example.cjs +0 -882
  266. package/dist/examples/new-project-example.d.ts +0 -30
  267. package/dist/examples/new-project-example.js +0 -848
  268. package/dist/examples/settings-example.cjs +0 -952
  269. package/dist/examples/settings-example.d.ts +0 -1
  270. package/dist/examples/settings-example.js +0 -918
  271. package/dist/examples/vscode-example.cjs +0 -835
  272. package/dist/examples/vscode-example.d.ts +0 -80
  273. package/dist/examples/vscode-example.js +0 -765
  274. package/dist/templates/admin-layout-example.d.ts +0 -92
  275. package/dist/templates/app-shell-example.d.ts +0 -52
  276. package/dist/templates/dashboard-example.d.ts +0 -11
  277. package/dist/templates/data-management-example.d.ts +0 -1
  278. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  279. package/dist/templates/flow-start-example.d.ts +0 -30
  280. package/dist/templates/form-builder-example.d.ts +0 -1
  281. package/dist/templates/new-project-example.d.ts +0 -30
  282. package/dist/templates/settings-example.d.ts +0 -1
  283. /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ StudioGrid: ()=>StudioGrid,
28
+ StudioCanvas: ()=>StudioCanvas,
29
+ StudioGridItem: ()=>StudioGridItem
30
+ });
31
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
+ const external_react_namespaceObject = require("react");
33
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
34
+ const paddingClasses = {
35
+ none: '',
36
+ sm: 'p-4',
37
+ md: 'p-6',
38
+ lg: 'p-8'
39
+ };
40
+ const canvasBackgroundClasses = {
41
+ raised: 'bg-surface-raised',
42
+ surface: 'bg-surface',
43
+ transparent: 'bg-transparent'
44
+ };
45
+ function StudioCanvas({ children, className, padding = 'md', background = 'raised', fullWidth = false }) {
46
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
47
+ className: (0, index_cjs_namespaceObject.cn)('relative flex-1', canvasBackgroundClasses[background], className),
48
+ "data-canvas": true,
49
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
50
+ className: (0, index_cjs_namespaceObject.cn)('absolute inset-0 overflow-y-auto', paddingClasses[padding]),
51
+ children: fullWidth ? children : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
52
+ className: "flex justify-center",
53
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
54
+ className: "w-[760px] max-w-full",
55
+ children: children
56
+ })
57
+ })
58
+ })
59
+ });
60
+ }
61
+ const gridColsClasses = {
62
+ 1: 'grid-cols-1',
63
+ 2: 'grid-cols-2',
64
+ 3: 'grid-cols-3',
65
+ 4: 'grid-cols-4',
66
+ 6: 'grid-cols-6',
67
+ 12: 'grid-cols-12'
68
+ };
69
+ const gridGapClasses = {
70
+ none: '',
71
+ sm: 'gap-2',
72
+ md: 'gap-4',
73
+ lg: 'gap-6'
74
+ };
75
+ function StudioGrid({ children, cols = 12, gap = 'md', className }) {
76
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
77
+ className: (0, index_cjs_namespaceObject.cn)('grid', gridColsClasses[cols], gridGapClasses[gap], className),
78
+ children: children
79
+ });
80
+ }
81
+ const itemColSpanClasses = {
82
+ 1: 'col-span-1',
83
+ 2: 'col-span-2',
84
+ 3: 'col-span-3',
85
+ 4: 'col-span-4',
86
+ 6: 'col-span-6',
87
+ 12: 'col-span-12'
88
+ };
89
+ const itemBackgroundClasses = {
90
+ surface: 'bg-surface',
91
+ raised: 'bg-surface-raised',
92
+ transparent: 'bg-transparent'
93
+ };
94
+ function StudioGridItem({ children, cols = 12, className, background = 'surface', padding = 'md', border = true, canvasResponsive = false }) {
95
+ const [canvasWidth, setCanvasWidth] = external_react_namespaceObject.useState(0);
96
+ const itemRef = external_react_namespaceObject.useRef(null);
97
+ external_react_namespaceObject.useEffect(()=>{
98
+ if (!canvasResponsive) return;
99
+ const update = ()=>{
100
+ const canvas = itemRef.current?.closest('[data-canvas]');
101
+ if (canvas) setCanvasWidth(canvas.offsetWidth);
102
+ };
103
+ update();
104
+ window.addEventListener('resize', update);
105
+ const ro = new ResizeObserver(update);
106
+ const canvas = itemRef.current?.closest('[data-canvas]');
107
+ if (canvas) ro.observe(canvas);
108
+ return ()=>{
109
+ window.removeEventListener('resize', update);
110
+ ro.disconnect();
111
+ };
112
+ }, [
113
+ canvasResponsive
114
+ ]);
115
+ const responsiveColClass = canvasResponsive ? canvasWidth < 768 ? 'col-span-12' : canvasWidth < 1024 ? 'col-span-6' : 'col-span-3' : itemColSpanClasses[cols];
116
+ const hasExplicitColSpan = className?.includes('col-span-');
117
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
118
+ ref: itemRef,
119
+ className: (0, index_cjs_namespaceObject.cn)(!hasExplicitColSpan && responsiveColClass, itemBackgroundClasses[background], paddingClasses[padding], border && 'rounded-lg border border-border-subtle', className),
120
+ children: children
121
+ });
122
+ }
123
+ exports.StudioCanvas = __webpack_exports__.StudioCanvas;
124
+ exports.StudioGrid = __webpack_exports__.StudioGrid;
125
+ exports.StudioGridItem = __webpack_exports__.StudioGridItem;
126
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
127
+ "StudioCanvas",
128
+ "StudioGrid",
129
+ "StudioGridItem"
130
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
131
+ Object.defineProperty(exports, '__esModule', {
132
+ value: true
133
+ });
@@ -0,0 +1,99 @@
1
+ import * as React from 'react';
2
+ declare const paddingClasses: {
3
+ readonly none: "";
4
+ readonly sm: "p-4";
5
+ readonly md: "p-6";
6
+ readonly lg: "p-8";
7
+ };
8
+ type PaddingSize = keyof typeof paddingClasses;
9
+ export interface StudioCanvasProps {
10
+ children?: React.ReactNode;
11
+ className?: string;
12
+ /**
13
+ * Outer padding applied to the scrollable area.
14
+ * @default 'md' (1.5rem / 24px)
15
+ */
16
+ padding?: PaddingSize;
17
+ /**
18
+ * Background of the canvas workspace.
19
+ * - `'raised'` — slightly elevated surface (default, differentiates from panels)
20
+ * - `'surface'` — base surface color
21
+ * - `'transparent'` — no background
22
+ */
23
+ background?: 'raised' | 'surface' | 'transparent';
24
+ /**
25
+ * When true, content fills the full canvas width instead of being
26
+ * centered in a 760px column. Use for data-dense layouts like tables.
27
+ */
28
+ fullWidth?: boolean;
29
+ }
30
+ /**
31
+ * Center canvas for the Studio template.
32
+ *
33
+ * - Fills remaining horizontal space between panels (`flex-1 relative`)
34
+ * - Scrolls independently via `absolute inset-0 overflow-y-auto`
35
+ * - Centers content in a `w-[760px] max-w-full` column
36
+ * - `data-canvas` attribute allows `StudioGridItem` canvasResponsive tracking
37
+ *
38
+ * Usage:
39
+ * ```tsx
40
+ * <StudioCanvas>
41
+ * <StudioGrid>
42
+ * <StudioGridItem>...</StudioGridItem>
43
+ * </StudioGrid>
44
+ * </StudioCanvas>
45
+ * ```
46
+ */
47
+ export declare function StudioCanvas({ children, className, padding, background, fullWidth, }: StudioCanvasProps): import("react/jsx-runtime").JSX.Element;
48
+ export interface StudioGridProps {
49
+ children: React.ReactNode;
50
+ /** Number of columns in the grid. Default 12. */
51
+ cols?: 1 | 2 | 3 | 4 | 6 | 12;
52
+ /** Gap between grid cells. Default 'md'. */
53
+ gap?: 'none' | 'sm' | 'md' | 'lg';
54
+ className?: string;
55
+ }
56
+ /**
57
+ * Grid wrapper for use inside `StudioCanvas`.
58
+ *
59
+ * Defaults to a 12-column grid with md gap. Pair with `StudioGridItem`.
60
+ */
61
+ export declare function StudioGrid({ children, cols, gap, className }: StudioGridProps): import("react/jsx-runtime").JSX.Element;
62
+ export interface StudioGridItemProps {
63
+ children: React.ReactNode;
64
+ /**
65
+ * Column span within the parent `StudioGrid`.
66
+ * Ignored if `className` already contains a `col-span-*` class,
67
+ * or if `canvasResponsive` is true (canvas width drives the span).
68
+ * @default 12
69
+ */
70
+ cols?: 1 | 2 | 3 | 4 | 6 | 12;
71
+ className?: string;
72
+ /**
73
+ * Background of the grid item card.
74
+ * - `'surface'` — base surface color (default, card-like)
75
+ * - `'raised'` — elevated surface
76
+ * - `'transparent'` — no background
77
+ */
78
+ background?: 'surface' | 'raised' | 'transparent';
79
+ /** Padding inside the card. Default 'md'. */
80
+ padding?: PaddingSize;
81
+ /** Render a border and rounded corners around the card. Default true. */
82
+ border?: boolean;
83
+ /**
84
+ * When true, the item measures the nearest `[data-canvas]` ancestor width
85
+ * and overrides `cols` with a responsive span:
86
+ * - < 768px → col-span-12 (full width)
87
+ * - < 1024px → col-span-6 (half width)
88
+ * - ≥ 1024px → col-span-3 (quarter width)
89
+ */
90
+ canvasResponsive?: boolean;
91
+ }
92
+ /**
93
+ * Grid cell for use inside `StudioGrid`.
94
+ *
95
+ * Renders a card-like container with configurable background, padding, and border.
96
+ * Set `canvasResponsive` to automatically resize based on the canvas width.
97
+ */
98
+ export declare function StudioGridItem({ children, cols, className, background, padding, border, canvasResponsive, }: StudioGridItemProps): import("react/jsx-runtime").JSX.Element;
99
+ export {};
@@ -0,0 +1,93 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { cn } from "../../lib/index.js";
4
+ const paddingClasses = {
5
+ none: '',
6
+ sm: 'p-4',
7
+ md: 'p-6',
8
+ lg: 'p-8'
9
+ };
10
+ const canvasBackgroundClasses = {
11
+ raised: 'bg-surface-raised',
12
+ surface: 'bg-surface',
13
+ transparent: 'bg-transparent'
14
+ };
15
+ function StudioCanvas({ children, className, padding = 'md', background = 'raised', fullWidth = false }) {
16
+ return /*#__PURE__*/ jsx("div", {
17
+ className: cn('relative flex-1', canvasBackgroundClasses[background], className),
18
+ "data-canvas": true,
19
+ children: /*#__PURE__*/ jsx("div", {
20
+ className: cn('absolute inset-0 overflow-y-auto', paddingClasses[padding]),
21
+ children: fullWidth ? children : /*#__PURE__*/ jsx("div", {
22
+ className: "flex justify-center",
23
+ children: /*#__PURE__*/ jsx("div", {
24
+ className: "w-[760px] max-w-full",
25
+ children: children
26
+ })
27
+ })
28
+ })
29
+ });
30
+ }
31
+ const gridColsClasses = {
32
+ 1: 'grid-cols-1',
33
+ 2: 'grid-cols-2',
34
+ 3: 'grid-cols-3',
35
+ 4: 'grid-cols-4',
36
+ 6: 'grid-cols-6',
37
+ 12: 'grid-cols-12'
38
+ };
39
+ const gridGapClasses = {
40
+ none: '',
41
+ sm: 'gap-2',
42
+ md: 'gap-4',
43
+ lg: 'gap-6'
44
+ };
45
+ function StudioGrid({ children, cols = 12, gap = 'md', className }) {
46
+ return /*#__PURE__*/ jsx("div", {
47
+ className: cn('grid', gridColsClasses[cols], gridGapClasses[gap], className),
48
+ children: children
49
+ });
50
+ }
51
+ const itemColSpanClasses = {
52
+ 1: 'col-span-1',
53
+ 2: 'col-span-2',
54
+ 3: 'col-span-3',
55
+ 4: 'col-span-4',
56
+ 6: 'col-span-6',
57
+ 12: 'col-span-12'
58
+ };
59
+ const itemBackgroundClasses = {
60
+ surface: 'bg-surface',
61
+ raised: 'bg-surface-raised',
62
+ transparent: 'bg-transparent'
63
+ };
64
+ function StudioGridItem({ children, cols = 12, className, background = 'surface', padding = 'md', border = true, canvasResponsive = false }) {
65
+ const [canvasWidth, setCanvasWidth] = useState(0);
66
+ const itemRef = useRef(null);
67
+ useEffect(()=>{
68
+ if (!canvasResponsive) return;
69
+ const update = ()=>{
70
+ const canvas = itemRef.current?.closest('[data-canvas]');
71
+ if (canvas) setCanvasWidth(canvas.offsetWidth);
72
+ };
73
+ update();
74
+ window.addEventListener('resize', update);
75
+ const ro = new ResizeObserver(update);
76
+ const canvas = itemRef.current?.closest('[data-canvas]');
77
+ if (canvas) ro.observe(canvas);
78
+ return ()=>{
79
+ window.removeEventListener('resize', update);
80
+ ro.disconnect();
81
+ };
82
+ }, [
83
+ canvasResponsive
84
+ ]);
85
+ const responsiveColClass = canvasResponsive ? canvasWidth < 768 ? 'col-span-12' : canvasWidth < 1024 ? 'col-span-6' : 'col-span-3' : itemColSpanClasses[cols];
86
+ const hasExplicitColSpan = className?.includes('col-span-');
87
+ return /*#__PURE__*/ jsx("div", {
88
+ ref: itemRef,
89
+ className: cn(!hasExplicitColSpan && responsiveColClass, itemBackgroundClasses[background], paddingClasses[padding], border && 'rounded-lg border border-border-subtle', className),
90
+ children: children
91
+ });
92
+ }
93
+ export { StudioCanvas, StudioGrid, StudioGridItem };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ Canvas: ()=>Canvas
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ require("react");
31
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
32
+ function Canvas({ className, children }) {
33
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
34
+ className: (0, index_cjs_namespaceObject.cn)('flex flex-1 flex-col overflow-auto bg-surface', className),
35
+ children: children
36
+ });
37
+ }
38
+ exports.Canvas = __webpack_exports__.Canvas;
39
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
40
+ "Canvas"
41
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
42
+ Object.defineProperty(exports, '__esModule', {
43
+ value: true
44
+ });
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface CanvasProps {
3
+ className?: string;
4
+ children?: React.ReactNode;
5
+ }
6
+ /**
7
+ * Main content canvas for Delegate templates.
8
+ *
9
+ * Provides the dark background surface that sits alongside the DelegatePanel.
10
+ * Content placed inside the Canvas can be laid out freely — future iterations
11
+ * will add optional layout guidelines (max-width constraints, centered
12
+ * content zones, padding presets, etc.).
13
+ */
14
+ export declare function Canvas({ className, children }: CanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cn } from "../../lib/index.js";
4
+ function Canvas({ className, children }) {
5
+ return /*#__PURE__*/ jsx("div", {
6
+ className: cn('flex flex-1 flex-col overflow-auto bg-surface', className),
7
+ children: children
8
+ });
9
+ }
10
+ export { Canvas };
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ ChatComposer: ()=>ChatComposer
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const external_lucide_react_namespaceObject = require("lucide-react");
31
+ const external_react_namespaceObject = require("react");
32
+ const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
+ function ChatComposer({ className, placeholder = 'I would like you to automate my', onSubmit }) {
34
+ const [value, setValue] = external_react_namespaceObject.useState('');
35
+ const handleSubmit = ()=>{
36
+ if (value.trim()) {
37
+ onSubmit?.(value.trim());
38
+ setValue('');
39
+ }
40
+ };
41
+ const handleKeyDown = (e)=>{
42
+ if ('Enter' === e.key && !e.shiftKey) {
43
+ e.preventDefault();
44
+ handleSubmit();
45
+ }
46
+ };
47
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
48
+ className: (0, index_cjs_namespaceObject.cn)('w-full max-w-[800px] rounded-[32px] bg-gradient-to-b from-surface to-surface-raised p-2', className),
49
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
50
+ className: "flex min-h-[124px] flex-col justify-between rounded-3xl border border-border bg-surface-overlay pb-3 pl-4 pr-3 pt-4",
51
+ children: [
52
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
53
+ className: "w-full resize-none bg-transparent text-base font-medium leading-5 text-foreground placeholder:text-foreground-subtle focus:outline-none",
54
+ placeholder: placeholder,
55
+ rows: 2,
56
+ value: value,
57
+ onChange: (e)=>setValue(e.target.value),
58
+ onKeyDown: handleKeyDown
59
+ }),
60
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
61
+ className: "flex items-center justify-between",
62
+ children: [
63
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
64
+ className: "flex items-center gap-1",
65
+ children: [
66
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
67
+ type: "button",
68
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl border border-border-inverse bg-surface-inverse transition-opacity hover:opacity-80",
69
+ "aria-label": "Add attachment",
70
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
71
+ className: "h-5 w-5 text-foreground-inverse"
72
+ })
73
+ }),
74
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
75
+ type: "button",
76
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl border border-border-inverse bg-surface-inverse transition-opacity hover:opacity-80",
77
+ "aria-label": "Add workflow",
78
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Workflow, {
79
+ className: "h-5 w-5 text-foreground-inverse"
80
+ })
81
+ })
82
+ ]
83
+ }),
84
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
85
+ type: "button",
86
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl bg-brand transition-opacity hover:opacity-90",
87
+ onClick: handleSubmit,
88
+ "aria-label": "Submit message",
89
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CornerDownLeft, {
90
+ className: "h-5 w-5 -scale-y-100 rotate-90 text-foreground-on-accent"
91
+ })
92
+ })
93
+ ]
94
+ })
95
+ ]
96
+ })
97
+ });
98
+ }
99
+ exports.ChatComposer = __webpack_exports__.ChatComposer;
100
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
101
+ "ChatComposer"
102
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
103
+ Object.defineProperty(exports, '__esModule', {
104
+ value: true
105
+ });
@@ -0,0 +1,15 @@
1
+ export interface ChatComposerProps {
2
+ className?: string;
3
+ /** Placeholder text displayed when the input is empty */
4
+ placeholder?: string;
5
+ /** Callback when the user submits a message */
6
+ onSubmit?: (value: string) => void;
7
+ }
8
+ /**
9
+ * Reusable chat composer input with action buttons.
10
+ *
11
+ * Features a text area, left-side action buttons (add, workflow),
12
+ * and a cyan submit button. Fixed at 800px max-width to match the
13
+ * Delegate design spec.
14
+ */
15
+ export declare function ChatComposer({ className, placeholder, onSubmit, }: ChatComposerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,71 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CornerDownLeft, Plus, Workflow } from "lucide-react";
3
+ import { useState } from "react";
4
+ import { cn } from "../../lib/index.js";
5
+ function ChatComposer({ className, placeholder = 'I would like you to automate my', onSubmit }) {
6
+ const [value, setValue] = useState('');
7
+ const handleSubmit = ()=>{
8
+ if (value.trim()) {
9
+ onSubmit?.(value.trim());
10
+ setValue('');
11
+ }
12
+ };
13
+ const handleKeyDown = (e)=>{
14
+ if ('Enter' === e.key && !e.shiftKey) {
15
+ e.preventDefault();
16
+ handleSubmit();
17
+ }
18
+ };
19
+ return /*#__PURE__*/ jsx("div", {
20
+ className: cn('w-full max-w-[800px] rounded-[32px] bg-gradient-to-b from-surface to-surface-raised p-2', className),
21
+ children: /*#__PURE__*/ jsxs("div", {
22
+ className: "flex min-h-[124px] flex-col justify-between rounded-3xl border border-border bg-surface-overlay pb-3 pl-4 pr-3 pt-4",
23
+ children: [
24
+ /*#__PURE__*/ jsx("textarea", {
25
+ className: "w-full resize-none bg-transparent text-base font-medium leading-5 text-foreground placeholder:text-foreground-subtle focus:outline-none",
26
+ placeholder: placeholder,
27
+ rows: 2,
28
+ value: value,
29
+ onChange: (e)=>setValue(e.target.value),
30
+ onKeyDown: handleKeyDown
31
+ }),
32
+ /*#__PURE__*/ jsxs("div", {
33
+ className: "flex items-center justify-between",
34
+ children: [
35
+ /*#__PURE__*/ jsxs("div", {
36
+ className: "flex items-center gap-1",
37
+ children: [
38
+ /*#__PURE__*/ jsx("button", {
39
+ type: "button",
40
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl border border-border-inverse bg-surface-inverse transition-opacity hover:opacity-80",
41
+ "aria-label": "Add attachment",
42
+ children: /*#__PURE__*/ jsx(Plus, {
43
+ className: "h-5 w-5 text-foreground-inverse"
44
+ })
45
+ }),
46
+ /*#__PURE__*/ jsx("button", {
47
+ type: "button",
48
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl border border-border-inverse bg-surface-inverse transition-opacity hover:opacity-80",
49
+ "aria-label": "Add workflow",
50
+ children: /*#__PURE__*/ jsx(Workflow, {
51
+ className: "h-5 w-5 text-foreground-inverse"
52
+ })
53
+ })
54
+ ]
55
+ }),
56
+ /*#__PURE__*/ jsx("button", {
57
+ type: "button",
58
+ className: "flex h-8 w-8 items-center justify-center rounded-2xl bg-brand transition-opacity hover:opacity-90",
59
+ onClick: handleSubmit,
60
+ "aria-label": "Submit message",
61
+ children: /*#__PURE__*/ jsx(CornerDownLeft, {
62
+ className: "h-5 w-5 -scale-y-100 rotate-90 text-foreground-on-accent"
63
+ })
64
+ })
65
+ ]
66
+ })
67
+ ]
68
+ })
69
+ });
70
+ }
71
+ export { ChatComposer };