@reopt-ai/opt-ui 1.4.1 → 1.6.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 (89) hide show
  1. package/COMPONENT_CATALOG.md +374 -84
  2. package/README.md +28 -7
  3. package/dist/app.css +146 -0
  4. package/dist/core/index.cjs +164 -324
  5. package/dist/core/index.d.cts +3 -5
  6. package/dist/core/index.d.ts +3 -5
  7. package/dist/core/index.js +3 -323
  8. package/dist/docs/01-getting-started.md +25 -5
  9. package/dist/docs/02-components/01-core.md +192 -46
  10. package/dist/docs/02-components/02-visuals.md +1 -1
  11. package/dist/docs/02-components/03-shells.md +177 -42
  12. package/dist/docs/02-components/04-surfaces.md +1 -1
  13. package/dist/docs/02-components/index.md +1 -1
  14. package/dist/docs/03-recipes/03-layouts.md +20 -12
  15. package/dist/docs/04-theming.md +3 -1
  16. package/dist/docs/05-migration/01-breaking-changes.md +28 -0
  17. package/dist/id-registry.cjs +1899 -1872
  18. package/dist/id-registry.d.cts +13 -10
  19. package/dist/id-registry.d.cts.map +1 -0
  20. package/dist/id-registry.d.ts +13 -10
  21. package/dist/id-registry.d.ts.map +1 -0
  22. package/dist/id-registry.js +1897 -1871
  23. package/dist/id-registry.js.map +1 -0
  24. package/dist/id-registry.json +44 -44
  25. package/dist/index.cjs +8294 -9613
  26. package/dist/index.d.cts +1486 -1438
  27. package/dist/index.d.cts.map +1 -0
  28. package/dist/index.d.ts +1486 -1438
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +7933 -9600
  31. package/dist/index.js.map +1 -0
  32. package/dist/meta.cjs +7461 -6765
  33. package/dist/meta.d.cts.map +1 -0
  34. package/dist/meta.d.ts.map +1 -0
  35. package/dist/meta.js +7460 -6736
  36. package/dist/meta.js.map +1 -0
  37. package/dist/pagination-By7Ozv3U.js +3788 -0
  38. package/dist/pagination-By7Ozv3U.js.map +1 -0
  39. package/dist/pagination-Uv3CnGJz.cjs +4677 -0
  40. package/dist/shader-surface-BK1GMt5_.d.cts +1788 -0
  41. package/dist/shader-surface-BK1GMt5_.d.cts.map +1 -0
  42. package/dist/shader-surface-BWhO2xkk.js +3715 -0
  43. package/dist/shader-surface-BWhO2xkk.js.map +1 -0
  44. package/dist/shader-surface-DIVWtpFl.d.ts +1788 -0
  45. package/dist/shader-surface-DIVWtpFl.d.ts.map +1 -0
  46. package/dist/shader-surface-DxLLfrE6.cjs +4108 -0
  47. package/dist/shells/index.cjs +51 -65
  48. package/dist/shells/index.d.cts +4 -5
  49. package/dist/shells/index.d.ts +4 -5
  50. package/dist/shells/index.js +3 -64
  51. package/dist/tailwind.css +54 -5
  52. package/dist/theme/presets/default.css +12 -12
  53. package/dist/theme/server.cjs +310 -0
  54. package/dist/theme/server.d.cts +117 -0
  55. package/dist/theme/server.d.cts.map +1 -0
  56. package/dist/theme/server.d.ts +117 -0
  57. package/dist/theme/server.d.ts.map +1 -0
  58. package/dist/theme/server.js +287 -0
  59. package/dist/theme/server.js.map +1 -0
  60. package/dist/types-D0FlcYnM.d.cts +301 -0
  61. package/dist/types-D0FlcYnM.d.cts.map +1 -0
  62. package/dist/types-D0FlcYnM.d.ts +301 -0
  63. package/dist/types-D0FlcYnM.d.ts.map +1 -0
  64. package/dist/visuals/index.cjs +10 -4
  65. package/dist/visuals/index.d.cts +2 -1
  66. package/dist/visuals/index.d.ts +2 -1
  67. package/dist/visuals/index.js +1 -2
  68. package/dist/workflow-canvas-3Jeevkgy.cjs +2599 -0
  69. package/dist/workflow-canvas-BGBAcjf-.js +2403 -0
  70. package/dist/workflow-canvas-BGBAcjf-.js.map +1 -0
  71. package/dist/workflow-canvas-Bar_O2SQ.d.ts +494 -0
  72. package/dist/workflow-canvas-Bar_O2SQ.d.ts.map +1 -0
  73. package/dist/workflow-canvas-DghDRtHn.d.cts +494 -0
  74. package/dist/workflow-canvas-DghDRtHn.d.cts.map +1 -0
  75. package/package.json +24 -8
  76. package/dist/chunk-3GWWZKX7.js +0 -38
  77. package/dist/chunk-AFF2HPE5.cjs +0 -5008
  78. package/dist/chunk-ELWICXYY.js +0 -4745
  79. package/dist/chunk-N4NDU5ET.cjs +0 -4745
  80. package/dist/chunk-ONE3C5RV.cjs +0 -38
  81. package/dist/chunk-QWBHD54V.js +0 -3218
  82. package/dist/chunk-RBM2RNC2.js +0 -5008
  83. package/dist/chunk-X5WCXJAF.cjs +0 -3218
  84. package/dist/index-BZ_lBlO1.d.ts +0 -474
  85. package/dist/index-BuvxoWHf.d.cts +0 -474
  86. package/dist/index-DlAcuvQp.d.cts +0 -1686
  87. package/dist/index-Slu5hOj1.d.ts +0 -1686
  88. package/dist/types-D4-0lwaE.d.cts +0 -298
  89. package/dist/types-D4-0lwaE.d.ts +0 -298
@@ -0,0 +1,301 @@
1
+
2
+ //#region src/lib/types.d.ts
3
+ /** Defines the command shape (data for command palettes / menus). */
4
+ interface CommandDef {
5
+ id: string;
6
+ label: string;
7
+ group: string;
8
+ shortcut?: string;
9
+ action: () => void;
10
+ }
11
+ /** Defines the stat card shape. */
12
+ interface StatCard {
13
+ id: string;
14
+ title: string;
15
+ value: string;
16
+ change: string;
17
+ trend: "up" | "down" | "neutral";
18
+ rawValue?: number;
19
+ format?: "text" | "duration" | "percentage";
20
+ durationUnit?: "ms" | "s";
21
+ }
22
+ /** Defines the nav item shape. */
23
+ interface NavItem {
24
+ id: string;
25
+ label: string;
26
+ href: string;
27
+ }
28
+ /** Defines the faq item shape. */
29
+ interface FaqItem {
30
+ id: string;
31
+ question: string;
32
+ answer: string;
33
+ }
34
+ /** Defines the select option shape. */
35
+ interface SelectOption {
36
+ value: string;
37
+ label: string;
38
+ color?: string;
39
+ }
40
+ /** Defines the menu item shape. */
41
+ interface MenuItemDef {
42
+ id: string;
43
+ label: string;
44
+ type?: "item" | "separator" | "checkbox" | "radio";
45
+ shortcut?: string;
46
+ name?: string;
47
+ value?: string;
48
+ checked?: boolean;
49
+ onChange?: (checked: boolean) => void;
50
+ onClick?: () => void;
51
+ }
52
+ /** Defines the menu shape. */
53
+ interface MenuDef {
54
+ id: string;
55
+ label: string;
56
+ items: MenuItemDef[];
57
+ }
58
+ /** Defines the nav item shape. */
59
+ interface NavItemDef {
60
+ id: string;
61
+ label: string;
62
+ href: string;
63
+ separator?: boolean;
64
+ sectionLabel?: string;
65
+ }
66
+ /** Defines the toolbar button shape. */
67
+ interface ToolbarButtonDef {
68
+ id: string;
69
+ label: string;
70
+ icon: React.ReactNode;
71
+ separator?: boolean;
72
+ }
73
+ /** Defines the tab shape. */
74
+ interface TabDef {
75
+ id: string;
76
+ label: string;
77
+ content: React.ReactNode;
78
+ }
79
+ /** Defines the form field shape. */
80
+ interface FormFieldDef {
81
+ name: string;
82
+ label: string;
83
+ type?: "text" | "email" | "password" | "number" | "checkbox" | "radio" | "textarea" | "select" | "switch" | "tags";
84
+ placeholder?: string;
85
+ defaultValue?: unknown;
86
+ required?: boolean;
87
+ requiredMessage?: string;
88
+ validate?: (value: unknown) => string | undefined;
89
+ options?: {
90
+ value: string;
91
+ label: string;
92
+ }[];
93
+ /** textarea 전용: 표시 줄 수 */
94
+ rows?: number;
95
+ /** textarea 전용: 크기 조절 방향 */
96
+ resize?: "none" | "vertical" | "horizontal" | "both";
97
+ /** textarea 전용: 폰트 스타일 */
98
+ font?: "default" | "mono";
99
+ /** switch 전용: 설명 텍스트 */
100
+ description?: string;
101
+ /** 조건부 필드 표시 — false 또는 함수가 false를 반환하면 필드 숨김 */
102
+ visible?: boolean | ((values: Record<string, unknown>) => boolean);
103
+ }
104
+ /** Defines the deployment step shape. */
105
+ interface DeploymentStep {
106
+ id: string;
107
+ name: string;
108
+ status: "pending" | "running" | "success" | "error" | "skipped";
109
+ duration?: string;
110
+ detail?: string;
111
+ }
112
+ /** Defines the project shape. */
113
+ interface ProjectDef {
114
+ id: string;
115
+ name: string;
116
+ framework: string;
117
+ status: "active" | "paused" | "error";
118
+ domain?: string;
119
+ }
120
+ /** Defines the env var shape. */
121
+ interface EnvVarDef {
122
+ key: string;
123
+ value: string;
124
+ isSecret?: boolean;
125
+ }
126
+ /** Defines the env group shape. */
127
+ interface EnvGroupDef {
128
+ env: string;
129
+ vars: EnvVarDef[];
130
+ }
131
+ /** Defines the branch shape. */
132
+ interface BranchDef {
133
+ name: string;
134
+ isDefault?: boolean;
135
+ lastCommit?: string;
136
+ author?: string;
137
+ }
138
+ /** Defines the domain shape. */
139
+ interface DomainDef {
140
+ domain: string;
141
+ status: "active" | "pending" | "error";
142
+ ssl: "valid" | "expired" | "pending";
143
+ redirect?: string;
144
+ addedAt?: string;
145
+ }
146
+ /** Defines the table column shape. */
147
+ interface TableColumn<T> {
148
+ id: string;
149
+ header: string;
150
+ accessor: keyof T | ((row: T) => React.ReactNode);
151
+ width?: string;
152
+ align?: "left" | "center" | "right";
153
+ }
154
+ /** Defines the toast options shape. */
155
+ interface ToastOptions {
156
+ variant: "info" | "success" | "warning" | "error";
157
+ title?: string;
158
+ message: string;
159
+ duration?: number;
160
+ }
161
+ /** Defines the task shape. */
162
+ interface TaskDef {
163
+ id: string;
164
+ title: string;
165
+ description?: string;
166
+ status: "todo" | "in-progress" | "review" | "done";
167
+ priority: "low" | "medium" | "high" | "urgent";
168
+ assignee?: TeamMemberDef;
169
+ dueDate?: string;
170
+ tags?: string[];
171
+ subtasks?: {
172
+ id: string;
173
+ title: string;
174
+ completed: boolean;
175
+ }[];
176
+ }
177
+ /** Defines the team member shape. */
178
+ interface TeamMemberDef {
179
+ id: string;
180
+ name: string;
181
+ email: string;
182
+ avatar?: string;
183
+ role?: string;
184
+ status?: "online" | "away" | "busy" | "offline";
185
+ }
186
+ /** Defines the activity shape. */
187
+ interface ActivityDef {
188
+ id: string;
189
+ type: "created" | "updated" | "completed" | "commented" | "assigned" | "deployed" | "merged";
190
+ title: string;
191
+ description?: string;
192
+ actor: TeamMemberDef;
193
+ timestamp: string;
194
+ metadata?: Record<string, unknown>;
195
+ variant?: "default" | "error" | "warning";
196
+ }
197
+ /** Defines the filter option shape. */
198
+ interface FilterOption {
199
+ id: string;
200
+ label: string;
201
+ value: string;
202
+ }
203
+ /** Defines the filter group shape. */
204
+ interface FilterGroupDef {
205
+ id: string;
206
+ label: string;
207
+ type: "select" | "multi-select" | "search" | "date-range" | "tag" | "toggle";
208
+ options?: FilterOption[];
209
+ value?: string | string[] | boolean;
210
+ }
211
+ /** Defines the quick action shape. */
212
+ interface QuickActionDef {
213
+ id: string;
214
+ label: string;
215
+ description?: string;
216
+ icon?: React.ReactNode;
217
+ shortcut?: string;
218
+ onClick: () => void;
219
+ disabled?: boolean;
220
+ }
221
+ /** Defines the time preset shape. */
222
+ interface TimePreset {
223
+ label: string;
224
+ days: number;
225
+ }
226
+ /** Type definition for export format. */
227
+ type ExportFormat = "csv" | "json" | "pdf";
228
+ /** Defines the export column shape. */
229
+ interface ExportColumn {
230
+ key: string;
231
+ header: string;
232
+ }
233
+ /** Defines the failure item shape. */
234
+ interface FailureItem {
235
+ id: string;
236
+ title: string;
237
+ message?: string;
238
+ severity: "critical" | "error" | "warning";
239
+ timestamp: string;
240
+ group?: string;
241
+ metadata?: Record<string, unknown>;
242
+ }
243
+ /** Defines the chart data point shape. */
244
+ interface ChartDataPoint {
245
+ name: string;
246
+ [key: string]: string | number;
247
+ }
248
+ /** Defines the chart series shape. */
249
+ interface ChartSeriesDef {
250
+ dataKey: string;
251
+ name: string;
252
+ color?: string;
253
+ type?: "line" | "bar" | "area";
254
+ stackId?: string;
255
+ }
256
+ /** Configuration for chart. */
257
+ interface ChartConfig {
258
+ series: ChartSeriesDef[];
259
+ xAxisKey?: string;
260
+ showGrid?: boolean;
261
+ showTooltip?: boolean;
262
+ showLegend?: boolean;
263
+ animate?: boolean;
264
+ }
265
+ /** Defines the chart margin shape. */
266
+ interface ChartMargin {
267
+ top?: number;
268
+ right?: number;
269
+ bottom?: number;
270
+ left?: number;
271
+ }
272
+ /** Defines the chat conversation shape. */
273
+ interface ChatConversationDef {
274
+ id: string;
275
+ title: string;
276
+ lastMessage?: string;
277
+ timestamp: string;
278
+ unread?: boolean;
279
+ }
280
+ /** Defines the chat message shape. */
281
+ interface ChatMessageDef {
282
+ id: string;
283
+ role: "user" | "assistant";
284
+ content: string;
285
+ timestamp: string;
286
+ }
287
+ /** Defines the chat model shape. */
288
+ interface ChatModelDef {
289
+ id: string;
290
+ label: string;
291
+ description?: string;
292
+ }
293
+ /** Defines the chat style preset shape. */
294
+ interface ChatStylePresetDef {
295
+ id: string;
296
+ label: string;
297
+ systemPrompt?: string;
298
+ }
299
+ //#endregion
300
+ export { StatCard as A, MenuDef as C, ProjectDef as D, NavItemDef as E, TimePreset as F, ToastOptions as I, ToolbarButtonDef as L, TableColumn as M, TaskDef as N, QuickActionDef as O, TeamMemberDef as P, FormFieldDef as S, NavItem as T, ExportFormat as _, ChartMargin as a, FilterGroupDef as b, ChatMessageDef as c, CommandDef as d, DeploymentStep as f, ExportColumn as g, EnvVarDef as h, ChartDataPoint as i, TabDef as j, SelectOption as k, ChatModelDef as l, EnvGroupDef as m, BranchDef as n, ChartSeriesDef as o, DomainDef as p, ChartConfig as r, ChatConversationDef as s, ActivityDef as t, ChatStylePresetDef as u, FailureItem as v, MenuItemDef as w, FilterOption as x, FaqItem as y };
301
+ //# sourceMappingURL=types-D0FlcYnM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-D0FlcYnM.d.cts","names":[],"sources":["../src/lib/types.ts"],"mappings":";;;UACiB;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ;;;UAIe;EACf;EACA;EACA,OAAO;;;UAIQ;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA,MAAM,MAAM;EACZ;;;UAIe;EACf;EACA;EACA,SAAS,MAAM;;;UAIA;EACf;EACA;EACA;EAWA;EACA;EACA;EACA;EACA,YAAY;EACZ;IAAY;IAAe;;;EAE3B;;EAEA;;EAEA;;EAEA;;EAEA,sBAAsB,QAAQ;;;UAMf;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA,MAAM;;;UAIS;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAMe,YAAY;EAC3B;EACA;EACA,gBAAgB,MAAM,KAAK,MAAM,MAAM;EACvC;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA;EACA;IAAa;IAAY;IAAe;;;;UAIzB;EACf;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EAQA;EACA;EACA,OAAO;EACP;EACA,WAAW;EACX;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA,UAAU;EACV;;;UAIe;EACf;EACA;EACA;EACA,OAAO,MAAM;EACb;EACA;EACA;;;UAMe;EACf;EACA;;;KAIU;;UAGK;EACf;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;;;UAMI;EACf;GACC;;;UAIc;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,QAAQ;EACR;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA"}
@@ -0,0 +1,301 @@
1
+
2
+ //#region src/lib/types.d.ts
3
+ /** Defines the command shape (data for command palettes / menus). */
4
+ interface CommandDef {
5
+ id: string;
6
+ label: string;
7
+ group: string;
8
+ shortcut?: string;
9
+ action: () => void;
10
+ }
11
+ /** Defines the stat card shape. */
12
+ interface StatCard {
13
+ id: string;
14
+ title: string;
15
+ value: string;
16
+ change: string;
17
+ trend: "up" | "down" | "neutral";
18
+ rawValue?: number;
19
+ format?: "text" | "duration" | "percentage";
20
+ durationUnit?: "ms" | "s";
21
+ }
22
+ /** Defines the nav item shape. */
23
+ interface NavItem {
24
+ id: string;
25
+ label: string;
26
+ href: string;
27
+ }
28
+ /** Defines the faq item shape. */
29
+ interface FaqItem {
30
+ id: string;
31
+ question: string;
32
+ answer: string;
33
+ }
34
+ /** Defines the select option shape. */
35
+ interface SelectOption {
36
+ value: string;
37
+ label: string;
38
+ color?: string;
39
+ }
40
+ /** Defines the menu item shape. */
41
+ interface MenuItemDef {
42
+ id: string;
43
+ label: string;
44
+ type?: "item" | "separator" | "checkbox" | "radio";
45
+ shortcut?: string;
46
+ name?: string;
47
+ value?: string;
48
+ checked?: boolean;
49
+ onChange?: (checked: boolean) => void;
50
+ onClick?: () => void;
51
+ }
52
+ /** Defines the menu shape. */
53
+ interface MenuDef {
54
+ id: string;
55
+ label: string;
56
+ items: MenuItemDef[];
57
+ }
58
+ /** Defines the nav item shape. */
59
+ interface NavItemDef {
60
+ id: string;
61
+ label: string;
62
+ href: string;
63
+ separator?: boolean;
64
+ sectionLabel?: string;
65
+ }
66
+ /** Defines the toolbar button shape. */
67
+ interface ToolbarButtonDef {
68
+ id: string;
69
+ label: string;
70
+ icon: React.ReactNode;
71
+ separator?: boolean;
72
+ }
73
+ /** Defines the tab shape. */
74
+ interface TabDef {
75
+ id: string;
76
+ label: string;
77
+ content: React.ReactNode;
78
+ }
79
+ /** Defines the form field shape. */
80
+ interface FormFieldDef {
81
+ name: string;
82
+ label: string;
83
+ type?: "text" | "email" | "password" | "number" | "checkbox" | "radio" | "textarea" | "select" | "switch" | "tags";
84
+ placeholder?: string;
85
+ defaultValue?: unknown;
86
+ required?: boolean;
87
+ requiredMessage?: string;
88
+ validate?: (value: unknown) => string | undefined;
89
+ options?: {
90
+ value: string;
91
+ label: string;
92
+ }[];
93
+ /** textarea 전용: 표시 줄 수 */
94
+ rows?: number;
95
+ /** textarea 전용: 크기 조절 방향 */
96
+ resize?: "none" | "vertical" | "horizontal" | "both";
97
+ /** textarea 전용: 폰트 스타일 */
98
+ font?: "default" | "mono";
99
+ /** switch 전용: 설명 텍스트 */
100
+ description?: string;
101
+ /** 조건부 필드 표시 — false 또는 함수가 false를 반환하면 필드 숨김 */
102
+ visible?: boolean | ((values: Record<string, unknown>) => boolean);
103
+ }
104
+ /** Defines the deployment step shape. */
105
+ interface DeploymentStep {
106
+ id: string;
107
+ name: string;
108
+ status: "pending" | "running" | "success" | "error" | "skipped";
109
+ duration?: string;
110
+ detail?: string;
111
+ }
112
+ /** Defines the project shape. */
113
+ interface ProjectDef {
114
+ id: string;
115
+ name: string;
116
+ framework: string;
117
+ status: "active" | "paused" | "error";
118
+ domain?: string;
119
+ }
120
+ /** Defines the env var shape. */
121
+ interface EnvVarDef {
122
+ key: string;
123
+ value: string;
124
+ isSecret?: boolean;
125
+ }
126
+ /** Defines the env group shape. */
127
+ interface EnvGroupDef {
128
+ env: string;
129
+ vars: EnvVarDef[];
130
+ }
131
+ /** Defines the branch shape. */
132
+ interface BranchDef {
133
+ name: string;
134
+ isDefault?: boolean;
135
+ lastCommit?: string;
136
+ author?: string;
137
+ }
138
+ /** Defines the domain shape. */
139
+ interface DomainDef {
140
+ domain: string;
141
+ status: "active" | "pending" | "error";
142
+ ssl: "valid" | "expired" | "pending";
143
+ redirect?: string;
144
+ addedAt?: string;
145
+ }
146
+ /** Defines the table column shape. */
147
+ interface TableColumn<T> {
148
+ id: string;
149
+ header: string;
150
+ accessor: keyof T | ((row: T) => React.ReactNode);
151
+ width?: string;
152
+ align?: "left" | "center" | "right";
153
+ }
154
+ /** Defines the toast options shape. */
155
+ interface ToastOptions {
156
+ variant: "info" | "success" | "warning" | "error";
157
+ title?: string;
158
+ message: string;
159
+ duration?: number;
160
+ }
161
+ /** Defines the task shape. */
162
+ interface TaskDef {
163
+ id: string;
164
+ title: string;
165
+ description?: string;
166
+ status: "todo" | "in-progress" | "review" | "done";
167
+ priority: "low" | "medium" | "high" | "urgent";
168
+ assignee?: TeamMemberDef;
169
+ dueDate?: string;
170
+ tags?: string[];
171
+ subtasks?: {
172
+ id: string;
173
+ title: string;
174
+ completed: boolean;
175
+ }[];
176
+ }
177
+ /** Defines the team member shape. */
178
+ interface TeamMemberDef {
179
+ id: string;
180
+ name: string;
181
+ email: string;
182
+ avatar?: string;
183
+ role?: string;
184
+ status?: "online" | "away" | "busy" | "offline";
185
+ }
186
+ /** Defines the activity shape. */
187
+ interface ActivityDef {
188
+ id: string;
189
+ type: "created" | "updated" | "completed" | "commented" | "assigned" | "deployed" | "merged";
190
+ title: string;
191
+ description?: string;
192
+ actor: TeamMemberDef;
193
+ timestamp: string;
194
+ metadata?: Record<string, unknown>;
195
+ variant?: "default" | "error" | "warning";
196
+ }
197
+ /** Defines the filter option shape. */
198
+ interface FilterOption {
199
+ id: string;
200
+ label: string;
201
+ value: string;
202
+ }
203
+ /** Defines the filter group shape. */
204
+ interface FilterGroupDef {
205
+ id: string;
206
+ label: string;
207
+ type: "select" | "multi-select" | "search" | "date-range" | "tag" | "toggle";
208
+ options?: FilterOption[];
209
+ value?: string | string[] | boolean;
210
+ }
211
+ /** Defines the quick action shape. */
212
+ interface QuickActionDef {
213
+ id: string;
214
+ label: string;
215
+ description?: string;
216
+ icon?: React.ReactNode;
217
+ shortcut?: string;
218
+ onClick: () => void;
219
+ disabled?: boolean;
220
+ }
221
+ /** Defines the time preset shape. */
222
+ interface TimePreset {
223
+ label: string;
224
+ days: number;
225
+ }
226
+ /** Type definition for export format. */
227
+ type ExportFormat = "csv" | "json" | "pdf";
228
+ /** Defines the export column shape. */
229
+ interface ExportColumn {
230
+ key: string;
231
+ header: string;
232
+ }
233
+ /** Defines the failure item shape. */
234
+ interface FailureItem {
235
+ id: string;
236
+ title: string;
237
+ message?: string;
238
+ severity: "critical" | "error" | "warning";
239
+ timestamp: string;
240
+ group?: string;
241
+ metadata?: Record<string, unknown>;
242
+ }
243
+ /** Defines the chart data point shape. */
244
+ interface ChartDataPoint {
245
+ name: string;
246
+ [key: string]: string | number;
247
+ }
248
+ /** Defines the chart series shape. */
249
+ interface ChartSeriesDef {
250
+ dataKey: string;
251
+ name: string;
252
+ color?: string;
253
+ type?: "line" | "bar" | "area";
254
+ stackId?: string;
255
+ }
256
+ /** Configuration for chart. */
257
+ interface ChartConfig {
258
+ series: ChartSeriesDef[];
259
+ xAxisKey?: string;
260
+ showGrid?: boolean;
261
+ showTooltip?: boolean;
262
+ showLegend?: boolean;
263
+ animate?: boolean;
264
+ }
265
+ /** Defines the chart margin shape. */
266
+ interface ChartMargin {
267
+ top?: number;
268
+ right?: number;
269
+ bottom?: number;
270
+ left?: number;
271
+ }
272
+ /** Defines the chat conversation shape. */
273
+ interface ChatConversationDef {
274
+ id: string;
275
+ title: string;
276
+ lastMessage?: string;
277
+ timestamp: string;
278
+ unread?: boolean;
279
+ }
280
+ /** Defines the chat message shape. */
281
+ interface ChatMessageDef {
282
+ id: string;
283
+ role: "user" | "assistant";
284
+ content: string;
285
+ timestamp: string;
286
+ }
287
+ /** Defines the chat model shape. */
288
+ interface ChatModelDef {
289
+ id: string;
290
+ label: string;
291
+ description?: string;
292
+ }
293
+ /** Defines the chat style preset shape. */
294
+ interface ChatStylePresetDef {
295
+ id: string;
296
+ label: string;
297
+ systemPrompt?: string;
298
+ }
299
+ //#endregion
300
+ export { StatCard as A, MenuDef as C, ProjectDef as D, NavItemDef as E, TimePreset as F, ToastOptions as I, ToolbarButtonDef as L, TableColumn as M, TaskDef as N, QuickActionDef as O, TeamMemberDef as P, FormFieldDef as S, NavItem as T, ExportFormat as _, ChartMargin as a, FilterGroupDef as b, ChatMessageDef as c, CommandDef as d, DeploymentStep as f, ExportColumn as g, EnvVarDef as h, ChartDataPoint as i, TabDef as j, SelectOption as k, ChatModelDef as l, EnvGroupDef as m, BranchDef as n, ChartSeriesDef as o, DomainDef as p, ChartConfig as r, ChatConversationDef as s, ActivityDef as t, ChatStylePresetDef as u, FailureItem as v, MenuItemDef as w, FilterOption as x, FaqItem as y };
301
+ //# sourceMappingURL=types-D0FlcYnM.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-D0FlcYnM.d.ts","names":[],"sources":["../src/lib/types.ts"],"mappings":";;;UACiB;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ;;;UAIe;EACf;EACA;EACA,OAAO;;;UAIQ;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA,MAAM,MAAM;EACZ;;;UAIe;EACf;EACA;EACA,SAAS,MAAM;;;UAIA;EACf;EACA;EACA;EAWA;EACA;EACA;EACA;EACA,YAAY;EACZ;IAAY;IAAe;;;EAE3B;;EAEA;;EAEA;;EAEA;;EAEA,sBAAsB,QAAQ;;;UAMf;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA,MAAM;;;UAIS;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAMe,YAAY;EAC3B;EACA;EACA,gBAAgB,MAAM,KAAK,MAAM,MAAM;EACvC;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA;EACA;IAAa;IAAY;IAAe;;;;UAIzB;EACf;EACA;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EAQA;EACA;EACA,OAAO;EACP;EACA,WAAW;EACX;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA,UAAU;EACV;;;UAIe;EACf;EACA;EACA;EACA,OAAO,MAAM;EACb;EACA;EACA;;;UAMe;EACf;EACA;;;KAIU;;UAGK;EACf;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;;;UAMI;EACf;GACC;;;UAIc;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf,QAAQ;EACR;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAMe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA"}
@@ -1,4 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _createStarExport(obj) { Object.keys(obj) .filter((key) => key !== "default" && key !== "__esModule") .forEach((key) => { if (exports.hasOwnProperty(key)) { return; } Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]}); }); }"use client";
2
-
3
- // src/visuals/index.ts
4
- var _optcharts = require('@reopt-ai/opt-charts'); _createStarExport(_optcharts);
1
+ "use client";
2
+ var _reopt_ai_opt_charts = require("@reopt-ai/opt-charts");
3
+ Object.keys(_reopt_ai_opt_charts).forEach(function(k) {
4
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
5
+ enumerable: true,
6
+ get: function() {
7
+ return _reopt_ai_opt_charts[k];
8
+ }
9
+ });
10
+ });
@@ -1 +1,2 @@
1
- export * from '@reopt-ai/opt-charts';
1
+
2
+ export * from "@reopt-ai/opt-charts";
@@ -1 +1,2 @@
1
- export * from '@reopt-ai/opt-charts';
1
+
2
+ export * from "@reopt-ai/opt-charts";
@@ -1,4 +1,3 @@
1
1
  "use client";
2
-
3
- // src/visuals/index.ts
4
2
  export * from "@reopt-ai/opt-charts";
3
+ export {};