@uipath/apollo-wind 0.10.0 → 0.11.0

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 (187) 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 +3 -1
  65. package/dist/components/forms/field-renderer.js +3 -1
  66. package/dist/components/forms/form-designer.cjs +13 -2
  67. package/dist/components/forms/form-designer.js +13 -2
  68. package/dist/components/forms/rules-engine.d.ts +1 -1
  69. package/dist/components/ui/breadcrumb.cjs +1 -2
  70. package/dist/components/ui/breadcrumb.js +1 -2
  71. package/dist/components/ui/button-group.cjs +5 -3
  72. package/dist/components/ui/button-group.d.ts +2 -2
  73. package/dist/components/ui/button-group.js +5 -3
  74. package/dist/components/ui/button.cjs +3 -3
  75. package/dist/components/ui/button.js +3 -3
  76. package/dist/components/ui/chart.cjs +223 -0
  77. package/dist/components/ui/chart.d.ts +40 -0
  78. package/dist/components/ui/chart.js +174 -0
  79. package/dist/components/ui/code-block.cjs +234 -0
  80. package/dist/components/ui/code-block.d.ts +48 -0
  81. package/dist/components/ui/code-block.js +200 -0
  82. package/dist/components/ui/data-table.cjs +22 -4
  83. package/dist/components/ui/data-table.d.ts +5 -2
  84. package/dist/components/ui/data-table.js +23 -5
  85. package/dist/components/ui/editable-cell.cjs +3 -10
  86. package/dist/components/ui/editable-cell.js +3 -10
  87. package/dist/components/ui/empty-state.cjs +17 -6
  88. package/dist/components/ui/empty-state.d.ts +7 -0
  89. package/dist/components/ui/empty-state.js +17 -6
  90. package/dist/components/ui/file-upload.cjs +8 -0
  91. package/dist/components/ui/file-upload.js +8 -0
  92. package/dist/components/ui/index.cjs +287 -147
  93. package/dist/components/ui/index.d.ts +2 -3
  94. package/dist/components/ui/index.js +2 -3
  95. package/dist/components/ui/multi-select.cjs +3 -10
  96. package/dist/components/ui/multi-select.js +3 -10
  97. package/dist/components/ui/pagination.cjs +0 -1
  98. package/dist/components/ui/pagination.js +0 -1
  99. package/dist/components/ui/resizable.d.ts +1 -1
  100. package/dist/components/ui/tree-view.cjs +1117 -0
  101. package/dist/components/ui/tree-view.d.ts +95 -0
  102. package/dist/components/ui/tree-view.js +1083 -0
  103. package/dist/foundation/Future/colors.cjs +92 -0
  104. package/dist/foundation/Future/colors.d.ts +132 -0
  105. package/dist/foundation/Future/colors.js +43 -0
  106. package/dist/foundation/Future/radius.cjs +46 -0
  107. package/dist/foundation/Future/radius.d.ts +33 -0
  108. package/dist/foundation/Future/radius.js +12 -0
  109. package/dist/foundation/Future/responsive.cjs +49 -0
  110. package/dist/foundation/Future/responsive.d.ts +40 -0
  111. package/dist/foundation/Future/responsive.js +12 -0
  112. package/dist/foundation/Future/shadows.cjs +48 -0
  113. package/dist/foundation/Future/shadows.d.ts +29 -0
  114. package/dist/foundation/Future/shadows.js +11 -0
  115. package/dist/foundation/Future/spacing.cjs +71 -0
  116. package/dist/foundation/Future/spacing.d.ts +80 -0
  117. package/dist/foundation/Future/spacing.js +31 -0
  118. package/dist/foundation/Future/strokes.cjs +59 -0
  119. package/dist/foundation/Future/strokes.d.ts +49 -0
  120. package/dist/foundation/Future/strokes.js +19 -0
  121. package/dist/foundation/Future/types.cjs +18 -0
  122. package/dist/foundation/Future/types.d.ts +25 -0
  123. package/dist/foundation/Future/types.js +0 -0
  124. package/dist/foundation/Future/typography.cjs +79 -0
  125. package/dist/foundation/Future/typography.d.ts +86 -0
  126. package/dist/foundation/Future/typography.js +33 -0
  127. package/dist/index.cjs +131 -221
  128. package/dist/index.d.ts +4 -3
  129. package/dist/index.js +3 -4
  130. package/dist/src/foundation/Future/themes.css +279 -0
  131. package/dist/styles.css +1941 -605
  132. package/dist/tailwind.css +874 -87
  133. package/dist/templates/Admin/settings-admin.d.ts +5 -0
  134. package/dist/templates/Admin/template-admin.d.ts +86 -0
  135. package/dist/templates/Delegate/template-delegate.d.ts +26 -0
  136. package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
  137. package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
  138. package/dist/templates/Flow/template-flow.d.ts +57 -0
  139. package/dist/templates/Maestro/template-maestro.d.ts +52 -0
  140. package/dist/templates/Studio/template-studio.d.ts +102 -0
  141. package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
  142. package/package.json +12 -1
  143. package/dist/components/ui/menubar.cjs +0 -210
  144. package/dist/components/ui/menubar.d.ts +0 -28
  145. package/dist/components/ui/menubar.js +0 -131
  146. package/dist/components/ui/navigation-menu.cjs +0 -122
  147. package/dist/components/ui/navigation-menu.d.ts +0 -12
  148. package/dist/components/ui/navigation-menu.js +0 -64
  149. package/dist/examples/admin-layout-example.cjs +0 -490
  150. package/dist/examples/admin-layout-example.d.ts +0 -92
  151. package/dist/examples/admin-layout-example.js +0 -411
  152. package/dist/examples/app-shell-example.cjs +0 -452
  153. package/dist/examples/app-shell-example.d.ts +0 -52
  154. package/dist/examples/app-shell-example.js +0 -418
  155. package/dist/examples/dashboard-example.cjs +0 -590
  156. package/dist/examples/dashboard-example.d.ts +0 -11
  157. package/dist/examples/dashboard-example.js +0 -556
  158. package/dist/examples/data-management-example.cjs +0 -584
  159. package/dist/examples/data-management-example.d.ts +0 -1
  160. package/dist/examples/data-management-example.js +0 -550
  161. package/dist/examples/flow-editor-layout-example.cjs +0 -309
  162. package/dist/examples/flow-editor-layout-example.d.ts +0 -22
  163. package/dist/examples/flow-editor-layout-example.js +0 -269
  164. package/dist/examples/flow-start-example.cjs +0 -467
  165. package/dist/examples/flow-start-example.d.ts +0 -30
  166. package/dist/examples/flow-start-example.js +0 -433
  167. package/dist/examples/form-builder-example.cjs +0 -674
  168. package/dist/examples/form-builder-example.js +0 -640
  169. package/dist/examples/new-project-example.cjs +0 -550
  170. package/dist/examples/new-project-example.d.ts +0 -30
  171. package/dist/examples/new-project-example.js +0 -516
  172. package/dist/examples/settings-example.cjs +0 -864
  173. package/dist/examples/settings-example.d.ts +0 -1
  174. package/dist/examples/settings-example.js +0 -830
  175. package/dist/examples/vscode-example.cjs +0 -340
  176. package/dist/examples/vscode-example.d.ts +0 -80
  177. package/dist/examples/vscode-example.js +0 -270
  178. package/dist/templates/admin-layout-example.d.ts +0 -92
  179. package/dist/templates/app-shell-example.d.ts +0 -52
  180. package/dist/templates/dashboard-example.d.ts +0 -11
  181. package/dist/templates/data-management-example.d.ts +0 -1
  182. package/dist/templates/flow-editor-layout-example.d.ts +0 -22
  183. package/dist/templates/flow-start-example.d.ts +0 -30
  184. package/dist/templates/form-builder-example.d.ts +0 -1
  185. package/dist/templates/new-project-example.d.ts +0 -30
  186. package/dist/templates/settings-example.d.ts +0 -1
  187. /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 };