@powerhousedao/vetra 6.1.0-dev.13 → 6.1.0-dev.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{editor-C7Bq7QAH.js → editor-BQxk6LrL.js} +15 -14
- package/dist/editor-BQxk6LrL.js.map +1 -0
- package/dist/{editor-BA4wcz-O.js → editor-ClvvgHg3.js} +7 -6
- package/dist/editor-ClvvgHg3.js.map +1 -0
- package/dist/{editor-DoSkOXqJ.js → editor-DLluDQKM.js} +27 -27
- package/dist/editor-DLluDQKM.js.map +1 -0
- package/dist/{editor-Blb3oLVi.js → editor-Dw-NohMb.js} +16 -14
- package/dist/editor-Dw-NohMb.js.map +1 -0
- package/dist/{editor-3TL5Vdsn.js → editor-UWE1ab9Y.js} +11 -10
- package/dist/editor-UWE1ab9Y.js.map +1 -0
- package/dist/{editor-CLERZjRS.js → editor-fvDig5Bd.js} +83 -83
- package/dist/editor-fvDig5Bd.js.map +1 -0
- package/dist/editors/components/index.d.ts.map +1 -1
- package/dist/editors/components/index.js +2 -1
- package/dist/editors/components/index.js.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/module-1hr_ne9w.js.map +1 -1
- package/dist/{module-U9sHsThJ.js → module-BTlKlxoV.js} +7 -7
- package/dist/{module-U9sHsThJ.js.map → module-BTlKlxoV.js.map} +1 -1
- package/package.json +13 -12
- package/style.css +12 -0
- package/dist/editor-3TL5Vdsn.js.map +0 -1
- package/dist/editor-BA4wcz-O.js.map +0 -1
- package/dist/editor-Blb3oLVi.js.map +0 -1
- package/dist/editor-C7Bq7QAH.js.map +0 -1
- package/dist/editor-CLERZjRS.js.map +0 -1
- package/dist/editor-DoSkOXqJ.js.map +0 -1
- package/dist/style.css +0 -1038
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { addDocument, setSelectedNode, showCreateDocumentModal, showDeleteNodeModal, useDocumentModelModules, useEditorModuleById, usePHToast, useSelectedDrive, useSetPHAppConfig } from "@powerhousedao/reactor-browser";
|
|
2
2
|
import { Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { twMerge } from "tailwind-merge";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { ConnectDropdownMenu, DefaultEditorLoader, fileNodeDropdownOptions } from "@powerhousedao/design-system/connect";
|
|
5
|
-
import { Icon
|
|
6
|
+
import { Icon } from "@powerhousedao/design-system";
|
|
6
7
|
//#region editors/vetra-drive-app/config.ts
|
|
7
8
|
const editorConfig = {
|
|
8
9
|
allowedDocumentTypes: [
|
|
@@ -68,7 +69,7 @@ const DriveInfoItem = ({ label, value }) => {
|
|
|
68
69
|
};
|
|
69
70
|
return /* @__PURE__ */ jsxs("button", {
|
|
70
71
|
"aria-label": `Copy ${label}`,
|
|
71
|
-
className: "flex h-8 items-center gap-1 rounded-lg bg-
|
|
72
|
+
className: "flex h-8 items-center gap-1 rounded-lg bg-gray-50 pr-2 pl-1 text-xs whitespace-nowrap text-stone-300 dark:bg-slate-800",
|
|
72
73
|
onClick: handleCopy,
|
|
73
74
|
children: [
|
|
74
75
|
/* @__PURE__ */ jsx(LinkIcon, {
|
|
@@ -77,7 +78,7 @@ const DriveInfoItem = ({ label, value }) => {
|
|
|
77
78
|
}),
|
|
78
79
|
label,
|
|
79
80
|
/* @__PURE__ */ jsx("span", {
|
|
80
|
-
className: "text-gray-900",
|
|
81
|
+
className: "text-gray-900 dark:text-slate-50",
|
|
81
82
|
children: value
|
|
82
83
|
})
|
|
83
84
|
]
|
|
@@ -119,7 +120,7 @@ const ShareMenuItem = ({ label, url }) => {
|
|
|
119
120
|
return /* @__PURE__ */ jsxs("div", {
|
|
120
121
|
className: "flex flex-col gap-1",
|
|
121
122
|
children: [/* @__PURE__ */ jsx("span", {
|
|
122
|
-
className: "text-xs text-gray-500",
|
|
123
|
+
className: "text-xs text-gray-500 dark:text-slate-400",
|
|
123
124
|
children: label
|
|
124
125
|
}), /* @__PURE__ */ jsxs("div", {
|
|
125
126
|
className: "flex items-center gap-2",
|
|
@@ -131,14 +132,14 @@ const ShareMenuItem = ({ label, url }) => {
|
|
|
131
132
|
type: "text",
|
|
132
133
|
readOnly: true,
|
|
133
134
|
value: url,
|
|
134
|
-
className: "w-[300px] truncate rounded-lg border border-gray-200 bg-
|
|
135
|
+
className: "w-[300px] truncate rounded-lg border border-gray-200 bg-gray-50 px-3 py-2 text-xs text-gray-900 underline outline-none placeholder:text-gray-700 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100 dark:placeholder:text-slate-200"
|
|
135
136
|
}), showTooltip && /* @__PURE__ */ jsx("div", {
|
|
136
|
-
className: "absolute top-full left-0 z-20 mt-1 max-w-md rounded-lg bg-gray-800 px-3 py-2 text-xs break-all text-white shadow-lg",
|
|
137
|
+
className: "absolute top-full left-0 z-20 mt-1 max-w-md rounded-lg bg-gray-800 px-3 py-2 text-xs break-all text-white shadow-lg dark:bg-slate-100 dark:text-slate-900",
|
|
137
138
|
children: url
|
|
138
139
|
})]
|
|
139
140
|
}), /* @__PURE__ */ jsx("button", {
|
|
140
141
|
"aria-label": "Copy URL",
|
|
141
|
-
className: "rounded-sm p-1 transition-colors hover:bg-gray-100",
|
|
142
|
+
className: "rounded-sm p-1 transition-colors hover:bg-gray-100 dark:hover:bg-slate-700",
|
|
142
143
|
onClick: handleCopy,
|
|
143
144
|
children: /* @__PURE__ */ jsx(CopyIcon, {
|
|
144
145
|
width: 16,
|
|
@@ -151,12 +152,12 @@ const ShareMenuItem = ({ label, url }) => {
|
|
|
151
152
|
};
|
|
152
153
|
//#endregion
|
|
153
154
|
//#region editors/vetra-drive-app/icons/InfoIcon.tsx
|
|
154
|
-
const InfoIcon = ({ width = 16, height = 16, className = ""
|
|
155
|
+
const InfoIcon = ({ width = 16, height = 16, className = "" }) => {
|
|
155
156
|
return /* @__PURE__ */ jsxs("svg", {
|
|
156
157
|
width,
|
|
157
158
|
height,
|
|
158
159
|
viewBox: "0 0 16 16",
|
|
159
|
-
fill,
|
|
160
|
+
fill: "none",
|
|
160
161
|
className,
|
|
161
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
162
163
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
@@ -164,21 +165,21 @@ const InfoIcon = ({ width = 16, height = 16, className = "", fill = "none", stro
|
|
|
164
165
|
children: [
|
|
165
166
|
/* @__PURE__ */ jsx("path", {
|
|
166
167
|
d: "M7.99999 14.6673C11.6819 14.6673 14.6667 11.6825 14.6667 8.00065C14.6667 4.31875 11.6819 1.33398 7.99999 1.33398C4.3181 1.33398 1.33333 4.31875 1.33333 8.00065C1.33333 11.6825 4.3181 14.6673 7.99999 14.6673Z",
|
|
167
|
-
stroke,
|
|
168
|
+
stroke: "currentColor",
|
|
168
169
|
strokeWidth: "2",
|
|
169
170
|
strokeLinecap: "round",
|
|
170
171
|
strokeLinejoin: "round"
|
|
171
172
|
}),
|
|
172
173
|
/* @__PURE__ */ jsx("path", {
|
|
173
174
|
d: "M8 10.6667V8",
|
|
174
|
-
stroke,
|
|
175
|
+
stroke: "currentColor",
|
|
175
176
|
strokeWidth: "2",
|
|
176
177
|
strokeLinecap: "round",
|
|
177
178
|
strokeLinejoin: "round"
|
|
178
179
|
}),
|
|
179
180
|
/* @__PURE__ */ jsx("path", {
|
|
180
181
|
d: "M8 5.33398H8.00833",
|
|
181
|
-
stroke,
|
|
182
|
+
stroke: "currentColor",
|
|
182
183
|
strokeWidth: "2",
|
|
183
184
|
strokeLinecap: "round",
|
|
184
185
|
strokeLinejoin: "round"
|
|
@@ -196,7 +197,7 @@ const InfoIcon = ({ width = 16, height = 16, className = "", fill = "none", stro
|
|
|
196
197
|
};
|
|
197
198
|
//#endregion
|
|
198
199
|
//#region editors/vetra-drive-app/icons/ExternalLinkIcon.tsx
|
|
199
|
-
const ExternalLinkIcon = ({ width = 16, height = 16, className = ""
|
|
200
|
+
const ExternalLinkIcon = ({ width = 16, height = 16, className = "" }) => {
|
|
200
201
|
return /* @__PURE__ */ jsx("svg", {
|
|
201
202
|
width,
|
|
202
203
|
height,
|
|
@@ -206,7 +207,7 @@ const ExternalLinkIcon = ({ width = 16, height = 16, className = "", fill = "#83
|
|
|
206
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
207
208
|
children: /* @__PURE__ */ jsx("path", {
|
|
208
209
|
d: "M8.73535 4L7.28711 5.53809H4.05469C3.6549 5.53813 3.33109 5.88285 3.33105 6.30762V11.6924C3.33109 12.1172 3.6549 12.4619 4.05469 12.4619H9.12305C9.52269 12.4617 9.84664 12.117 9.84668 11.6924V8.25781L11.2949 6.71973V11.6924C11.2949 12.9667 10.3224 13.9998 9.12305 14H4.05469C2.85521 14 1.88285 12.9669 1.88281 11.6924V6.30762C1.88285 5.03318 2.85521 4.00004 4.05469 4H8.73535ZM13.7266 2C13.9431 2 14.1191 2.16789 14.1191 2.375V5.59473C14.1191 5.92879 13.6963 6.0956 13.4492 5.85938L12.3203 4.78027L6.0459 10.7803C5.7396 11.0731 5.24282 11.0731 4.93652 10.7803C4.63043 10.4874 4.63042 10.0126 4.93652 9.71973L11.2109 3.71973L10.082 2.64062C9.83504 2.40445 10.0102 2.00022 10.3594 2H13.7266Z",
|
|
209
|
-
fill
|
|
210
|
+
fill: "currentColor"
|
|
210
211
|
})
|
|
211
212
|
});
|
|
212
213
|
};
|
|
@@ -261,30 +262,30 @@ const ShareIcon = ({ width = 16, height = 16, className = "", stroke = "currentC
|
|
|
261
262
|
};
|
|
262
263
|
//#endregion
|
|
263
264
|
//#region editors/vetra-drive-app/icons/VetraIcon.tsx
|
|
264
|
-
const VetraIcon = ({ width = 23, height = 22, className = ""
|
|
265
|
+
const VetraIcon = ({ width = 23, height = 22, className = "" }) => {
|
|
265
266
|
return /* @__PURE__ */ jsxs("svg", {
|
|
266
267
|
width,
|
|
267
268
|
height,
|
|
268
269
|
viewBox: "0 0 23 22",
|
|
269
270
|
fill: "none",
|
|
270
|
-
className,
|
|
271
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
271
272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
272
273
|
children: [
|
|
273
274
|
/* @__PURE__ */ jsx("path", {
|
|
274
275
|
d: "M23 8.75169C23 9.6137 22.2916 10.3125 21.4177 10.3125L20.457 10.3125C16.0876 10.3125 12.5455 6.8185 12.5455 2.50844L12.5455 1.56081C12.5455 0.698798 13.2539 1.13218e-07 14.1278 1.88577e-07L21.4177 8.17224e-07C22.2916 8.92583e-07 23 0.6988 23 1.56081L23 8.75169Z",
|
|
275
|
-
fill
|
|
276
|
+
fill: "currentColor"
|
|
276
277
|
}),
|
|
277
278
|
/* @__PURE__ */ jsx("path", {
|
|
278
279
|
d: "M14.1278 22C13.2539 22 12.5455 21.3012 12.5455 20.4392L12.5455 19.4916C12.5455 15.1815 16.0876 11.6875 20.457 11.6875L21.4177 11.6875C22.2916 11.6875 23 12.3863 23 13.2483L23 20.4392C23 21.3012 22.2916 22 21.4177 22L14.1278 22Z",
|
|
279
|
-
fill
|
|
280
|
+
fill: "currentColor"
|
|
280
281
|
}),
|
|
281
282
|
/* @__PURE__ */ jsx("path", {
|
|
282
283
|
d: "M0 13.2483C0 12.3863 0.708424 11.6875 1.58231 11.6875H2.543C6.91243 11.6875 10.4545 15.1815 10.4545 19.4916V20.4392C10.4545 21.3012 9.74612 22 8.87224 22H1.58231C0.708423 22 0 21.3012 0 20.4392L0 13.2483Z",
|
|
283
|
-
fill
|
|
284
|
+
fill: "currentColor"
|
|
284
285
|
}),
|
|
285
286
|
/* @__PURE__ */ jsx("path", {
|
|
286
287
|
d: "M8.87224 -6.82252e-08C9.74612 -3.05454e-08 10.4545 0.698799 10.4545 1.56081L10.4545 2.50845C10.4545 6.81851 6.91242 10.3125 2.543 10.3125L1.58231 10.3125C0.708423 10.3125 5.27658e-07 9.6137 5.65857e-07 8.75169L8.84509e-07 1.56081C9.22708e-07 0.698798 0.708425 -4.20228e-07 1.58231 -3.82548e-07L8.87224 -6.82252e-08Z",
|
|
287
|
-
fill
|
|
288
|
+
fill: "currentColor"
|
|
288
289
|
})
|
|
289
290
|
]
|
|
290
291
|
});
|
|
@@ -333,18 +334,18 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
333
334
|
}
|
|
334
335
|
}, [driveUrl]);
|
|
335
336
|
return /* @__PURE__ */ jsx("div", {
|
|
336
|
-
className: "bg-gray-50 px-6 py-4",
|
|
337
|
+
className: "bg-gray-50 px-6 py-4 dark:bg-slate-800",
|
|
337
338
|
children: /* @__PURE__ */ jsxs("div", {
|
|
338
339
|
className: "flex items-center justify-between",
|
|
339
340
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
340
|
-
className: "flex items-center gap-2",
|
|
341
|
+
className: "flex items-center gap-2 text-gray-900 dark:text-slate-50",
|
|
341
342
|
children: [
|
|
342
343
|
/* @__PURE__ */ jsx(VetraIcon, {
|
|
343
344
|
width: 20,
|
|
344
345
|
height: 20
|
|
345
346
|
}),
|
|
346
347
|
/* @__PURE__ */ jsx("h1", {
|
|
347
|
-
className: "text-lg font-semibold text-gray-900",
|
|
348
|
+
className: "text-lg font-semibold text-gray-900 dark:text-slate-50",
|
|
348
349
|
children: "Vetra Studio Drive"
|
|
349
350
|
}),
|
|
350
351
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -353,12 +354,12 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
353
354
|
children: [/* @__PURE__ */ jsx("button", {
|
|
354
355
|
"aria-label": "Drive information",
|
|
355
356
|
"aria-expanded": isInfoMenuOpen,
|
|
356
|
-
className: "rounded-full p-1 transition-colors hover:bg-gray-100",
|
|
357
|
+
className: "rounded-full p-1 text-gray-500 transition-colors hover:bg-gray-100 dark:text-slate-400 dark:hover:bg-slate-700",
|
|
357
358
|
onClick: toggleInfoMenu,
|
|
358
|
-
children: /* @__PURE__ */ jsx(InfoIcon, { className: "
|
|
359
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { className: "" })
|
|
359
360
|
}), isInfoMenuOpen && /* @__PURE__ */ jsxs("div", {
|
|
360
361
|
role: "menu",
|
|
361
|
-
className: "absolute top-full left-0 z-10 mt-2 flex flex-col items-start gap-2 rounded-lg bg-
|
|
362
|
+
className: "absolute top-full left-0 z-10 mt-2 flex flex-col items-start gap-2 rounded-lg bg-gray-50 p-3 shadow-lg dark:bg-slate-700",
|
|
362
363
|
children: [/* @__PURE__ */ jsx(DriveInfoItem, {
|
|
363
364
|
label: "Name",
|
|
364
365
|
value: driveName
|
|
@@ -374,16 +375,15 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
374
375
|
children: [/* @__PURE__ */ jsx("button", {
|
|
375
376
|
"aria-label": "Share drive",
|
|
376
377
|
"aria-expanded": isShareMenuOpen,
|
|
377
|
-
className: "rounded-full p-1 transition-colors hover:bg-gray-100",
|
|
378
|
+
className: "rounded-full p-1 text-gray-900 transition-colors hover:bg-gray-100 dark:text-slate-50 dark:hover:bg-slate-700",
|
|
378
379
|
onClick: toggleShareMenu,
|
|
379
380
|
children: /* @__PURE__ */ jsx(ShareIcon, {
|
|
380
381
|
width: 16,
|
|
381
|
-
height: 16
|
|
382
|
-
stroke: "#343839"
|
|
382
|
+
height: 16
|
|
383
383
|
})
|
|
384
384
|
}), isShareMenuOpen && /* @__PURE__ */ jsxs("div", {
|
|
385
385
|
role: "menu",
|
|
386
|
-
className: "absolute top-full left-0 z-10 mt-2 flex w-max flex-col gap-4 rounded-lg bg-
|
|
386
|
+
className: "absolute top-full left-0 z-10 mt-2 flex w-max flex-col gap-4 rounded-lg bg-gray-50 p-4 shadow-lg dark:bg-slate-800",
|
|
387
387
|
children: [/* @__PURE__ */ jsx(ShareMenuItem, {
|
|
388
388
|
label: "Copy the Drive URL",
|
|
389
389
|
url: driveUrl
|
|
@@ -398,8 +398,8 @@ const DriveHeader = ({ driveId, driveName, driveUrl }) => {
|
|
|
398
398
|
href: "https://academy.vetra.io/",
|
|
399
399
|
target: "_blank",
|
|
400
400
|
rel: "noopener noreferrer",
|
|
401
|
-
className: "flex items-center gap-2 text-sm text-gray-900 underline transition-colors hover:text-gray-700",
|
|
402
|
-
children: [/* @__PURE__ */ jsx(ExternalLinkIcon, {
|
|
401
|
+
className: "flex items-center gap-2 text-sm text-gray-900 underline transition-colors hover:text-gray-700 dark:text-slate-50 dark:hover:text-slate-200",
|
|
402
|
+
children: [/* @__PURE__ */ jsx(ExternalLinkIcon, {}), "Vetra Academy"]
|
|
403
403
|
})]
|
|
404
404
|
})
|
|
405
405
|
});
|
|
@@ -495,21 +495,21 @@ const Accordion = ({ isOpen, onToggle, header, children, className = "" }) => {
|
|
|
495
495
|
const ModuleAccordion = ({ title, count, onAdd, children, defaultOpen = false, className = "", headerClassName = "" }) => {
|
|
496
496
|
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
497
497
|
const header = /* @__PURE__ */ jsxs("div", {
|
|
498
|
-
className:
|
|
498
|
+
className: twMerge("flex items-center justify-between rounded-md bg-gray-50 px-3 py-2 text-gray-900 transition-colors hover:bg-gray-50 dark:bg-slate-800 dark:text-slate-50 dark:hover:bg-slate-800", headerClassName),
|
|
499
499
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
500
500
|
className: "flex items-center gap-2",
|
|
501
501
|
children: [
|
|
502
502
|
/* @__PURE__ */ jsx(ChevronIcon, {
|
|
503
503
|
width: 12,
|
|
504
504
|
height: 12,
|
|
505
|
-
className:
|
|
505
|
+
className: twMerge("text-gray-700 transition-transform duration-300 dark:text-slate-200", isOpen ? "rotate-90" : "")
|
|
506
506
|
}),
|
|
507
507
|
/* @__PURE__ */ jsx("span", {
|
|
508
|
-
className: "text-sm font-medium text-gray-700",
|
|
508
|
+
className: "text-sm font-medium text-gray-700 dark:text-slate-200",
|
|
509
509
|
children: title
|
|
510
510
|
}),
|
|
511
511
|
/* @__PURE__ */ jsx("span", {
|
|
512
|
-
className: "rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-
|
|
512
|
+
className: "rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-700 dark:bg-slate-700 dark:text-slate-200",
|
|
513
513
|
children: count
|
|
514
514
|
})
|
|
515
515
|
]
|
|
@@ -518,16 +518,16 @@ const ModuleAccordion = ({ title, count, onAdd, children, defaultOpen = false, c
|
|
|
518
518
|
e.stopPropagation();
|
|
519
519
|
onAdd?.();
|
|
520
520
|
},
|
|
521
|
-
className: "rounded-sm p-1 transition-colors hover:bg-gray-200",
|
|
521
|
+
className: "rounded-sm p-1 transition-colors hover:bg-gray-200 dark:hover:bg-slate-600 dark:hover:text-slate-100",
|
|
522
522
|
children: /* @__PURE__ */ jsx(PlusIcon, {
|
|
523
523
|
width: 16,
|
|
524
524
|
height: 16,
|
|
525
|
-
className: "text-gray-
|
|
525
|
+
className: "text-gray-700 dark:text-slate-200"
|
|
526
526
|
})
|
|
527
527
|
})]
|
|
528
528
|
});
|
|
529
529
|
return /* @__PURE__ */ jsx("div", {
|
|
530
|
-
className:
|
|
530
|
+
className: twMerge("mb-2", className),
|
|
531
531
|
children: /* @__PURE__ */ jsx(Accordion, {
|
|
532
532
|
isOpen,
|
|
533
533
|
onToggle: () => setIsOpen(!isOpen),
|
|
@@ -547,26 +547,26 @@ const AddNewIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
547
547
|
height,
|
|
548
548
|
viewBox: "0 0 40 42",
|
|
549
549
|
fill: "none",
|
|
550
|
-
className,
|
|
550
|
+
className: twMerge(className, "text-gray-900 dark:text-slate-100"),
|
|
551
551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
552
552
|
children: [
|
|
553
553
|
/* @__PURE__ */ jsx("g", {
|
|
554
554
|
filter: "url(#filter0_di_2184_4955)",
|
|
555
555
|
children: /* @__PURE__ */ jsx("path", {
|
|
556
556
|
d: "M4.7384 6.83572C4.7384 3.48006 7.38337 0.759766 10.6461 0.759766H29.3538C32.6165 0.759766 35.2615 3.48006 35.2615 6.83572V33.1648C35.2615 36.5205 32.6165 39.2408 29.3538 39.2408H10.6461C7.38337 39.2408 4.7384 36.5205 4.7384 33.1648V6.83572Z",
|
|
557
|
-
fill: "
|
|
557
|
+
fill: "none"
|
|
558
558
|
})
|
|
559
559
|
}),
|
|
560
560
|
/* @__PURE__ */ jsx("g", {
|
|
561
561
|
filter: "url(#filter1_di_2184_4955)",
|
|
562
562
|
children: /* @__PURE__ */ jsx("path", {
|
|
563
563
|
d: "M9.97019 38.4365C10.1911 38.4661 10.4167 38.481 10.6462 38.481H11.426C11.8337 38.4812 12.1644 38.8212 12.1644 39.2405C12.1644 39.6599 11.8337 39.9998 11.426 40H10.6462C10.3526 40 10.063 39.9808 9.77885 39.9426C9.37459 39.8883 9.08971 39.507 9.14231 39.0912C9.19506 38.6752 9.56578 38.3823 9.97019 38.4365ZM16.1029 38.481C16.5106 38.4812 16.8413 38.8212 16.8413 39.2405C16.8413 39.6599 16.5106 39.9998 16.1029 40H14.5433C14.1356 39.9998 13.8048 39.6599 13.8048 39.2405C13.8048 38.8212 14.1356 38.4812 14.5433 38.481H16.1029ZM20.7798 38.481C21.1875 38.4812 21.5183 38.8212 21.5183 39.2405C21.5183 39.6599 21.1875 39.9998 20.7798 40H19.2202C18.8125 39.9998 18.4817 39.6599 18.4817 39.2405C18.4817 38.8212 18.8125 38.4812 19.2202 38.481H20.7798ZM25.4567 38.481C25.8644 38.4812 26.1952 38.8212 26.1952 39.2405C26.1952 39.6599 25.8644 39.9998 25.4567 40H23.8971C23.4894 39.9998 23.1587 39.6599 23.1587 39.2405C23.1587 38.8212 23.4894 38.4812 23.8971 38.481H25.4567ZM30.0298 38.4365C30.4342 38.3823 30.8049 38.6752 30.8577 39.0912C30.9103 39.507 30.6254 39.8883 30.2212 39.9426C29.937 39.9808 29.6474 40 29.3538 40H28.574C28.1663 39.9998 27.8356 39.6599 27.8356 39.2405C27.8356 38.8212 28.1663 38.4812 28.574 38.481H29.3538C29.5833 38.481 29.8089 38.4661 30.0298 38.4365ZM5.50865 36.2609C5.83191 36.0054 6.29565 36.0681 6.54423 36.4003C6.81962 36.7689 7.14163 37.1001 7.5 37.3833C7.82304 37.639 7.88398 38.1159 7.63558 38.4484C7.38716 38.7808 6.92335 38.843 6.6 38.5878C6.13985 38.2241 5.72668 37.7992 5.37308 37.326C5.12492 36.9934 5.18544 36.5164 5.50865 36.2609ZM33.4558 36.4003C33.7044 36.0681 34.1681 36.0054 34.4913 36.2609C34.8146 36.5164 34.8751 36.9934 34.6269 37.326C34.2733 37.7992 33.8601 38.2241 33.4 38.5878C33.0766 38.843 32.6128 38.7808 32.3644 38.4484C32.116 38.1159 32.177 37.639 32.5 37.3833C32.8584 37.1001 33.1804 36.7689 33.4558 36.4003ZM4 33.1646V32.4328C4.00023 32.0135 4.33076 31.6733 4.73846 31.6733C5.14616 31.6733 5.47669 32.0135 5.47692 32.4328V33.1646C5.47692 33.4005 5.49139 33.6326 5.52019 33.8598C5.57294 34.2757 5.28807 34.657 4.88365 34.7112C4.47938 34.7653 4.10858 34.4723 4.05577 34.0566C4.01871 33.7644 4 33.4665 4 33.1646ZM34.5231 33.1646V32.4328C34.5233 32.0135 34.8538 31.6733 35.2615 31.6733C35.6692 31.6733 35.9998 32.0135 36 32.4328V33.1646C36 33.4665 35.9813 33.7644 35.9442 34.0566C35.8914 34.4723 35.5206 34.7653 35.1163 34.7112C34.7119 34.657 34.4271 34.2757 34.4798 33.8598C34.5086 33.6326 34.5231 33.4005 34.5231 33.1646ZM4 29.5075V28.0449C4.00006 27.6255 4.33066 27.2854 4.73846 27.2854C5.14627 27.2854 5.47686 27.6255 5.47692 28.0449V29.5075C5.47692 29.927 5.1463 30.267 4.73846 30.267C4.33062 30.267 4 29.927 4 29.5075ZM34.5231 29.5075V28.0449C34.5231 27.6255 34.8537 27.2854 35.2615 27.2854C35.6693 27.2854 35.9999 27.6255 36 28.0449V29.5075C36 29.927 35.6694 30.267 35.2615 30.267C34.8537 30.267 34.5231 29.927 34.5231 29.5075ZM4 25.1197V23.657C4 23.2376 4.33062 22.8975 4.73846 22.8975C5.1463 22.8975 5.47692 23.2376 5.47692 23.657V25.1197C5.47686 25.5391 5.14627 25.8792 4.73846 25.8792C4.33066 25.8792 4.00006 25.5391 4 25.1197ZM34.5231 25.1197V23.657C34.5231 23.2376 34.8537 22.8975 35.2615 22.8975C35.6694 22.8975 36 23.2376 36 23.657V25.1197C35.9999 25.5391 35.6693 25.8792 35.2615 25.8792C34.8537 25.8792 34.5231 25.5391 34.5231 25.1197ZM4 20.7318V19.2682C4.00023 18.8489 4.33076 18.5087 4.73846 18.5087C5.14616 18.5087 5.47669 18.8489 5.47692 19.2682V20.7318C5.47669 21.1511 5.14616 21.4913 4.73846 21.4913C4.33076 21.4913 4.00023 21.1511 4 20.7318ZM34.5231 20.7318V19.2682C34.5233 18.8489 34.8538 18.5087 35.2615 18.5087C35.6692 18.5087 35.9998 18.8489 36 19.2682V20.7318C35.9998 21.1511 35.6692 21.4913 35.2615 21.4913C34.8538 21.4913 34.5233 21.1511 34.5231 20.7318ZM4 16.343V14.8803C4.00006 14.4609 4.33066 14.1208 4.73846 14.1208C5.14627 14.1208 5.47687 14.4609 5.47692 14.8803V16.343C5.47692 16.7624 5.1463 17.1025 4.73846 17.1025C4.33062 17.1025 4 16.7624 4 16.343ZM34.5231 16.343V14.8803C34.5231 14.4609 34.8537 14.1208 35.2615 14.1208C35.6693 14.1208 35.9999 14.4609 36 14.8803V16.343C36 16.7624 35.6694 17.1025 35.2615 17.1025C34.8537 17.1025 34.5231 16.7624 34.5231 16.343ZM4 11.9551V10.4925C4 10.073 4.33062 9.73299 4.73846 9.73299C5.1463 9.73299 5.47692 10.073 5.47692 10.4925V11.9551C5.47687 12.3745 5.14627 12.7146 4.73846 12.7146C4.33066 12.7146 4.00006 12.3745 4 11.9551ZM34.5231 11.9551V10.4925C34.5231 10.073 34.8537 9.73299 35.2615 9.73299C35.6694 9.73299 36 10.073 36 10.4925V11.9551C35.9999 12.3745 35.6693 12.7146 35.2615 12.7146C34.8537 12.7146 34.5231 12.3745 34.5231 11.9551ZM4 7.56725V6.83544C4 6.53354 4.01871 6.23565 4.05577 5.94343C4.10858 5.52766 4.47938 5.23467 4.88365 5.28877C5.28807 5.34302 5.57294 5.7243 5.52019 6.14023C5.49139 6.36741 5.47692 6.59948 5.47692 6.83544V7.56725C5.47669 7.9865 5.14616 8.32674 4.73846 8.32674C4.33076 8.32674 4.00023 7.9865 4 7.56725ZM34.5231 7.56725V6.83544C34.5231 6.59948 34.5086 6.36741 34.4798 6.14023C34.4271 5.7243 34.7119 5.34302 35.1163 5.28877C35.5206 5.23467 35.8914 5.52766 35.9442 5.94343C35.9813 6.23565 36 6.53354 36 6.83544V7.56725C35.9998 7.9865 35.6692 8.32674 35.2615 8.32674C34.8538 8.32674 34.5233 7.9865 34.5231 7.56725ZM6.6 1.41218C6.92335 1.15696 7.38716 1.2192 7.63558 1.55162C7.88398 1.88408 7.82304 2.36103 7.5 2.61669C7.14163 2.89993 6.81962 3.23111 6.54423 3.59968C6.29565 3.93193 5.83191 3.9946 5.50865 3.73912C5.18544 3.48363 5.12492 3.00661 5.37308 2.67405C5.72668 2.2008 6.13985 1.77586 6.6 1.41218ZM32.3644 1.55162C32.6128 1.2192 33.0766 1.15696 33.4 1.41218C33.8601 1.77586 34.2733 2.2008 34.6269 2.67405C34.8751 3.00661 34.8146 3.48363 34.4913 3.73912C34.1681 3.9946 33.7044 3.93193 33.4558 3.59968C33.1804 3.23111 32.8584 2.89993 32.5 2.61669C32.177 2.36103 32.116 1.88408 32.3644 1.55162ZM11.426 0C11.8337 0.000178509 12.1644 0.340147 12.1644 0.759494C12.1644 1.17884 11.8337 1.51881 11.426 1.51899H10.6462C10.4167 1.51899 10.1911 1.53386 9.97019 1.56349C9.56578 1.61774 9.19506 1.32475 9.14231 0.908821C9.08971 0.493037 9.37459 0.111671 9.77885 0.0573576C10.063 0.0192405 10.3526 0 10.6462 0H11.426ZM29.3538 0C29.6474 0 29.937 0.0192406 30.2212 0.0573576C30.6254 0.111671 30.9103 0.493038 30.8577 0.908821C30.8049 1.32475 30.4342 1.61774 30.0298 1.56349C29.8089 1.53386 29.5833 1.51899 29.3538 1.51899H28.574C28.1663 1.51881 27.8356 1.17884 27.8356 0.759494C27.8356 0.340147 28.1663 0.000178083 28.574 0H29.3538ZM16.1029 0C16.5106 0.000178509 16.8413 0.340147 16.8413 0.759494C16.8413 1.17884 16.5106 1.51881 16.1029 1.51899H14.5433C14.1356 1.51881 13.8048 1.17884 13.8048 0.759494C13.8048 0.340147 14.1356 0.000177889 14.5433 0H16.1029ZM20.7798 0C21.1875 0.000178509 21.5183 0.340147 21.5183 0.759494C21.5183 1.17884 21.1875 1.51881 20.7798 1.51899H19.2202C18.8125 1.51881 18.4817 1.17884 18.4817 0.759494C18.4817 0.340147 18.8125 0.000177889 19.2202 0H20.7798ZM25.4567 0C25.8644 0.000178199 26.1952 0.340147 26.1952 0.759494C26.1952 1.17884 25.8644 1.51881 25.4567 1.51899H23.8971C23.4894 1.51881 23.1587 1.17884 23.1587 0.759494C23.1587 0.340147 23.4894 0.000177889 23.8971 0H25.4567Z",
|
|
564
|
-
fill: "
|
|
564
|
+
fill: "currentColor"
|
|
565
565
|
})
|
|
566
566
|
}),
|
|
567
567
|
/* @__PURE__ */ jsx("path", {
|
|
568
568
|
d: "M14.5846 18.9851H24.4307M19.5079 13.9238V24.0504",
|
|
569
|
-
stroke: "
|
|
569
|
+
stroke: "currentColor",
|
|
570
570
|
strokeWidth: "1.5",
|
|
571
571
|
strokeLinecap: "round",
|
|
572
572
|
strokeLinejoin: "round"
|
|
@@ -715,14 +715,14 @@ const AppIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
715
715
|
height,
|
|
716
716
|
viewBox: "0 0 40 42",
|
|
717
717
|
fill: "none",
|
|
718
|
-
className,
|
|
718
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
719
719
|
xmlns: "http://www.w3.org/2000/svg",
|
|
720
720
|
children: [
|
|
721
721
|
/* @__PURE__ */ jsxs("g", {
|
|
722
722
|
filter: "url(#filter0_di_2184_4446)",
|
|
723
723
|
children: [/* @__PURE__ */ jsx("path", {
|
|
724
724
|
d: "M0 6C0 2.68629 2.68629 0 6 0L24 0L32 8V34C32 37.3137 29.3137 40 26 40H6C2.68629 40 0 37.3137 0 34V6Z",
|
|
725
|
-
fill: "
|
|
725
|
+
fill: "currentColor"
|
|
726
726
|
}), /* @__PURE__ */ jsx("path", {
|
|
727
727
|
d: "M6 0.75H23.6895L31.25 8.31055V34C31.25 36.8995 28.8995 39.25 26 39.25H6C3.10051 39.25 0.75 36.8995 0.75 34V6C0.75 3.10051 3.10051 0.75 6 0.75Z",
|
|
728
728
|
stroke: "#FF891D",
|
|
@@ -827,14 +827,14 @@ const DocModelIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
827
827
|
height,
|
|
828
828
|
viewBox: "0 0 40 42",
|
|
829
829
|
fill: "none",
|
|
830
|
-
className,
|
|
830
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
831
831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
832
832
|
children: [
|
|
833
833
|
/* @__PURE__ */ jsxs("g", {
|
|
834
834
|
filter: "url(#filter0_di_2102_4407)",
|
|
835
835
|
children: [/* @__PURE__ */ jsx("path", {
|
|
836
836
|
d: "M4 6C4 2.68629 6.68629 0 10 0L28 0L36 8V34C36 37.3137 33.3137 40 30 40H10C6.68629 40 4 37.3137 4 34V6Z",
|
|
837
|
-
fill: "
|
|
837
|
+
fill: "currentColor"
|
|
838
838
|
}), /* @__PURE__ */ jsx("path", {
|
|
839
839
|
d: "M10 0.75H27.6895L35.25 8.31055V34C35.25 36.8995 32.8995 39.25 30 39.25H10C7.10051 39.25 4.75 36.8995 4.75 34V6C4.75 3.10051 7.10051 0.75 10 0.75Z",
|
|
840
840
|
stroke: "#FF6A55",
|
|
@@ -939,14 +939,14 @@ const EditorIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
939
939
|
height,
|
|
940
940
|
viewBox: "0 0 40 42",
|
|
941
941
|
fill: "none",
|
|
942
|
-
className,
|
|
942
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
943
943
|
xmlns: "http://www.w3.org/2000/svg",
|
|
944
944
|
children: [
|
|
945
945
|
/* @__PURE__ */ jsxs("g", {
|
|
946
946
|
filter: "url(#filter0_di_2102_4406)",
|
|
947
947
|
children: [/* @__PURE__ */ jsx("path", {
|
|
948
948
|
d: "M4 6C4 2.68629 6.68629 0 10 0L28 0L36 8V34C36 37.3137 33.3137 40 30 40H10C6.68629 40 4 37.3137 4 34V6Z",
|
|
949
|
-
fill: "
|
|
949
|
+
fill: "currentColor"
|
|
950
950
|
}), /* @__PURE__ */ jsx("path", {
|
|
951
951
|
d: "M10 0.75H27.6895L35.25 8.31055V34C35.25 36.8995 32.8995 39.25 30 39.25H10C7.10051 39.25 4.75 36.8995 4.75 34V6C4.75 3.10051 7.10051 0.75 10 0.75Z",
|
|
952
952
|
stroke: "#FF891D",
|
|
@@ -1072,14 +1072,14 @@ const ProcessorIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
1072
1072
|
height,
|
|
1073
1073
|
viewBox: "0 0 40 42",
|
|
1074
1074
|
fill: "none",
|
|
1075
|
-
className,
|
|
1075
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
1076
1076
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1077
1077
|
children: [
|
|
1078
1078
|
/* @__PURE__ */ jsxs("g", {
|
|
1079
1079
|
filter: "url(#filter0_di_2184_4836)",
|
|
1080
1080
|
children: [/* @__PURE__ */ jsx("path", {
|
|
1081
1081
|
d: "M0 6C0 2.68629 2.68629 0 6 0L24 0L32 8V34C32 37.3137 29.3137 40 26 40H6C2.68629 40 0 37.3137 0 34V6Z",
|
|
1082
|
-
fill: "
|
|
1082
|
+
fill: "currentColor"
|
|
1083
1083
|
}), /* @__PURE__ */ jsx("path", {
|
|
1084
1084
|
d: "M6 0.75H23.6895L31.25 8.31055V34C31.25 36.8995 28.8995 39.25 26 39.25H6C3.10051 39.25 0.75 36.8995 0.75 34V6C0.75 3.10051 3.10051 0.75 6 0.75Z",
|
|
1085
1085
|
stroke: "#3292ED",
|
|
@@ -1180,14 +1180,14 @@ const SubgraphIcon = ({ width = 40, height = 48, className = "" }) => {
|
|
|
1180
1180
|
height,
|
|
1181
1181
|
viewBox: "0 0 40 42",
|
|
1182
1182
|
fill: "none",
|
|
1183
|
-
className,
|
|
1183
|
+
className: twMerge(className, "text-gray-50 dark:text-slate-800"),
|
|
1184
1184
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1185
1185
|
children: [
|
|
1186
1186
|
/* @__PURE__ */ jsxs("g", {
|
|
1187
1187
|
filter: "url(#filter0_di_2184_4816)",
|
|
1188
1188
|
children: [/* @__PURE__ */ jsx("path", {
|
|
1189
1189
|
d: "M0 6C0 2.68629 2.68629 0 6 0L24 0L32 8V34C32 37.3137 29.3137 40 26 40H6C2.68629 40 0 37.3137 0 34V6Z",
|
|
1190
|
-
fill: "
|
|
1190
|
+
fill: "currentColor"
|
|
1191
1191
|
}), /* @__PURE__ */ jsx("path", {
|
|
1192
1192
|
d: "M6 0.75H23.6895L31.25 8.31055V34C31.25 36.8995 28.8995 39.25 26 39.25H6C3.10051 39.25 0.75 36.8995 0.75 34V6C0.75 3.10051 3.10051 0.75 6 0.75Z",
|
|
1193
1193
|
stroke: "#3292ED",
|
|
@@ -1355,7 +1355,7 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
return /* @__PURE__ */ jsxs("div", {
|
|
1357
1357
|
onClick: () => onClick(fileNode),
|
|
1358
|
-
className:
|
|
1358
|
+
className: twMerge("group flex w-full cursor-pointer items-center gap-3 rounded-md bg-gray-100 p-1 text-left transition-colors hover:bg-gray-200 dark:bg-slate-700 dark:hover:bg-slate-600 dark:hover:text-slate-100", className),
|
|
1359
1359
|
children: [
|
|
1360
1360
|
/* @__PURE__ */ jsx("div", {
|
|
1361
1361
|
className: "shrink-0",
|
|
@@ -1364,10 +1364,10 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1364
1364
|
/* @__PURE__ */ jsxs("div", {
|
|
1365
1365
|
className: "min-w-0 flex-1",
|
|
1366
1366
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
1367
|
-
className: "truncate text-sm font-medium text-gray-900",
|
|
1367
|
+
className: "truncate text-sm font-medium text-gray-900 dark:text-slate-50",
|
|
1368
1368
|
children: fileNode.name
|
|
1369
1369
|
}), /* @__PURE__ */ jsx("p", {
|
|
1370
|
-
className: "truncate text-xs text-gray-500",
|
|
1370
|
+
className: "truncate text-xs text-gray-500 dark:text-slate-400",
|
|
1371
1371
|
children: fileNode.documentType
|
|
1372
1372
|
})]
|
|
1373
1373
|
}),
|
|
@@ -1376,15 +1376,15 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1376
1376
|
onItemClick: onDropdownMenuOptionClick,
|
|
1377
1377
|
onOpenChange: setIsDropdownMenuOpen,
|
|
1378
1378
|
open: isDropdownMenuOpen,
|
|
1379
|
-
menuClassName: "border-
|
|
1379
|
+
menuClassName: "border-gray-200 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
|
|
1380
1380
|
children: /* @__PURE__ */ jsx("button", {
|
|
1381
|
-
className:
|
|
1381
|
+
className: twMerge("hidden group-hover:block", isDropdownMenuOpen && "block"),
|
|
1382
1382
|
onClick: (e) => {
|
|
1383
1383
|
e.stopPropagation();
|
|
1384
1384
|
setIsDropdownMenuOpen(true);
|
|
1385
1385
|
},
|
|
1386
1386
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
1387
|
-
className: "text-gray-
|
|
1387
|
+
className: "text-gray-700 dark:text-slate-200",
|
|
1388
1388
|
name: "VerticalDots"
|
|
1389
1389
|
})
|
|
1390
1390
|
})
|
|
@@ -1397,17 +1397,17 @@ const ModuleItem = ({ fileNode, onClick, onDelete, className = "" }) => {
|
|
|
1397
1397
|
const NewModuleItem = ({ title, subtitle, onClick, className = "" }) => {
|
|
1398
1398
|
return /* @__PURE__ */ jsxs("button", {
|
|
1399
1399
|
onClick,
|
|
1400
|
-
className:
|
|
1400
|
+
className: twMerge("flex w-full items-center gap-3 rounded-md bg-gray-100 p-1 text-left transition-colors hover:bg-gray-200 dark:bg-slate-700 dark:hover:bg-slate-600 dark:hover:text-slate-100", className),
|
|
1401
1401
|
children: [/* @__PURE__ */ jsx("div", {
|
|
1402
1402
|
className: "shrink-0",
|
|
1403
1403
|
children: /* @__PURE__ */ jsx(AddNewIcon, {})
|
|
1404
1404
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1405
1405
|
className: "min-w-0 flex-1",
|
|
1406
1406
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
1407
|
-
className: "truncate text-sm font-medium text-gray-900",
|
|
1407
|
+
className: "truncate text-sm font-medium text-gray-900 dark:text-slate-50",
|
|
1408
1408
|
children: title
|
|
1409
1409
|
}), /* @__PURE__ */ jsx("p", {
|
|
1410
|
-
className: "truncate text-xs text-gray-500",
|
|
1410
|
+
className: "truncate text-xs text-gray-500 dark:text-slate-400",
|
|
1411
1411
|
children: subtitle
|
|
1412
1412
|
})]
|
|
1413
1413
|
})]
|
|
@@ -1419,14 +1419,14 @@ const ModuleList = ({ items, documentType, onAddNewSpec = () => {}, onClickItem
|
|
|
1419
1419
|
return /* @__PURE__ */ jsxs("div", {
|
|
1420
1420
|
className: "space-y-2",
|
|
1421
1421
|
children: [items.map((item, index) => /* @__PURE__ */ jsx("div", {
|
|
1422
|
-
className: "px-2 py-1 text-sm text-gray-
|
|
1422
|
+
className: "px-2 py-1 text-sm text-gray-700 dark:text-slate-200",
|
|
1423
1423
|
children: /* @__PURE__ */ jsx(ModuleItem, {
|
|
1424
1424
|
fileNode: item,
|
|
1425
1425
|
onClick: onClickItem,
|
|
1426
1426
|
onDelete
|
|
1427
1427
|
})
|
|
1428
1428
|
}, index)), /* @__PURE__ */ jsx("div", {
|
|
1429
|
-
className: "px-2 py-1 text-sm text-gray-
|
|
1429
|
+
className: "px-2 py-1 text-sm text-gray-700 dark:text-slate-200",
|
|
1430
1430
|
children: /* @__PURE__ */ jsx(NewModuleItem, {
|
|
1431
1431
|
title: "Add new specification",
|
|
1432
1432
|
subtitle: documentType,
|
|
@@ -1439,17 +1439,17 @@ const ModuleList = ({ items, documentType, onAddNewSpec = () => {}, onClickItem
|
|
|
1439
1439
|
//#region editors/vetra-drive-app/components/DataIntegrationsColumn.tsx
|
|
1440
1440
|
const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAddSubgraph, onAddProcessor, onAddCodegenProcessor, onOpenDocument, onDelete }) => {
|
|
1441
1441
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1442
|
-
className: "mb-4 text-sm font-normal text-gray-700",
|
|
1442
|
+
className: "mb-4 text-sm font-normal text-gray-700 dark:text-slate-200",
|
|
1443
1443
|
children: "3. Data Integrations"
|
|
1444
1444
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1445
|
-
className: "rounded-md border border-
|
|
1445
|
+
className: "rounded-md border border-gray-200 bg-gray-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
|
|
1446
1446
|
children: [
|
|
1447
1447
|
/* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1448
1448
|
title: "Subgraphs",
|
|
1449
1449
|
count: subgraphs.length,
|
|
1450
1450
|
onAdd: onAddSubgraph || (() => console.log("Add subgraph clicked")),
|
|
1451
1451
|
defaultOpen: true,
|
|
1452
|
-
headerClassName: "m-4 bg-
|
|
1452
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1453
1453
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1454
1454
|
items: subgraphs,
|
|
1455
1455
|
documentType: DOCUMENT_TYPES.documentSubgraph,
|
|
@@ -1463,7 +1463,7 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1463
1463
|
count: processors.length,
|
|
1464
1464
|
onAdd: onAddProcessor || (() => console.log("Add processor clicked")),
|
|
1465
1465
|
defaultOpen: true,
|
|
1466
|
-
headerClassName: "m-4 bg-
|
|
1466
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1467
1467
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1468
1468
|
items: processors,
|
|
1469
1469
|
documentType: DOCUMENT_TYPES.documentProcessor,
|
|
@@ -1477,7 +1477,7 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1477
1477
|
count: codegenProcessors.length,
|
|
1478
1478
|
onAdd: onAddCodegenProcessor || (() => console.log("Add codegen processor clicked")),
|
|
1479
1479
|
defaultOpen: true,
|
|
1480
|
-
headerClassName: "m-4 bg-
|
|
1480
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1481
1481
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1482
1482
|
items: codegenProcessors,
|
|
1483
1483
|
documentType: DOCUMENT_TYPES.documentCodegenProcessor,
|
|
@@ -1493,16 +1493,16 @@ const DataIntegrationsColumn = ({ subgraphs, processors, codegenProcessors, onAd
|
|
|
1493
1493
|
//#region editors/vetra-drive-app/components/DocumentModelsColumn.tsx
|
|
1494
1494
|
const DocumentModelsColumn = ({ documentModels, onAddDocumentModel, onOpenDocument, onDelete }) => {
|
|
1495
1495
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1496
|
-
className: "mb-4 text-sm font-normal text-gray-700",
|
|
1496
|
+
className: "mb-4 text-sm font-normal text-gray-700 dark:text-slate-200",
|
|
1497
1497
|
children: "1. Document Models"
|
|
1498
1498
|
}), /* @__PURE__ */ jsx("div", {
|
|
1499
|
-
className: "rounded-md border border-
|
|
1499
|
+
className: "rounded-md border border-gray-200 bg-gray-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
|
|
1500
1500
|
children: /* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1501
1501
|
title: "Document Models",
|
|
1502
1502
|
count: documentModels.length,
|
|
1503
1503
|
onAdd: onAddDocumentModel || (() => console.log("Add document model clicked")),
|
|
1504
1504
|
defaultOpen: true,
|
|
1505
|
-
headerClassName: "m-4 bg-
|
|
1505
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1506
1506
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1507
1507
|
items: documentModels,
|
|
1508
1508
|
documentType: DOCUMENT_TYPES.documentModel,
|
|
@@ -1523,15 +1523,15 @@ const SectionAccordion = ({ title, children, defaultOpen = false, className = ""
|
|
|
1523
1523
|
isOpen,
|
|
1524
1524
|
onToggle: () => setIsOpen(!isOpen),
|
|
1525
1525
|
header: /* @__PURE__ */ jsxs("div", {
|
|
1526
|
-
className: "flex items-center gap-2 rounded-md border border-
|
|
1526
|
+
className: "flex items-center gap-2 rounded-md border border-gray-200 bg-gray-50 px-4 py-2 transition-colors hover:bg-gray-100 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100 dark:hover:bg-slate-700",
|
|
1527
1527
|
children: [
|
|
1528
1528
|
/* @__PURE__ */ jsx(ChevronIcon, {
|
|
1529
1529
|
width: 16,
|
|
1530
1530
|
height: 16,
|
|
1531
|
-
className:
|
|
1531
|
+
className: twMerge("text-gray-700 transition-transform duration-300 dark:text-slate-200", isOpen ? "rotate-90" : "")
|
|
1532
1532
|
}),
|
|
1533
1533
|
/* @__PURE__ */ jsx("h2", {
|
|
1534
|
-
className: "text-base font-semibold text-gray-
|
|
1534
|
+
className: "text-base font-semibold text-gray-900 dark:text-slate-100",
|
|
1535
1535
|
children: title
|
|
1536
1536
|
}),
|
|
1537
1537
|
actionButton && /* @__PURE__ */ jsx("div", {
|
|
@@ -1551,16 +1551,16 @@ const SectionAccordion = ({ title, children, defaultOpen = false, className = ""
|
|
|
1551
1551
|
//#region editors/vetra-drive-app/components/UserExperiencesColumn.tsx
|
|
1552
1552
|
const UserExperiencesColumn = ({ editors, apps, onAddEditor, onAddApp, onOpenDocument, onDelete }) => {
|
|
1553
1553
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
1554
|
-
className: "mb-4 text-sm font-normal text-gray-700",
|
|
1554
|
+
className: "mb-4 text-sm font-normal text-gray-700 dark:text-slate-200",
|
|
1555
1555
|
children: "2. User Experiences"
|
|
1556
1556
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1557
|
-
className: "rounded-md border border-
|
|
1557
|
+
className: "rounded-md border border-gray-200 bg-gray-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
|
|
1558
1558
|
children: [/* @__PURE__ */ jsx(ModuleAccordion, {
|
|
1559
1559
|
title: "Editors",
|
|
1560
1560
|
count: editors.length,
|
|
1561
1561
|
onAdd: onAddEditor || (() => console.log("Add editor clicked")),
|
|
1562
1562
|
defaultOpen: true,
|
|
1563
|
-
headerClassName: "m-4 bg-
|
|
1563
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1564
1564
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1565
1565
|
items: editors,
|
|
1566
1566
|
documentType: DOCUMENT_TYPES.documentEditor,
|
|
@@ -1573,7 +1573,7 @@ const UserExperiencesColumn = ({ editors, apps, onAddEditor, onAddApp, onOpenDoc
|
|
|
1573
1573
|
count: apps.length,
|
|
1574
1574
|
onAdd: onAddApp || (() => console.log("Add app clicked")),
|
|
1575
1575
|
defaultOpen: true,
|
|
1576
|
-
headerClassName: "m-4 bg-
|
|
1576
|
+
headerClassName: "m-4 bg-gray-100 hover:bg-gray-200 border border-gray-200 rounded-md dark:hover:bg-slate-600 dark:border-slate-500 dark:bg-slate-600 dark:hover:text-slate-100 dark:text-slate-100",
|
|
1577
1577
|
children: /* @__PURE__ */ jsx(ModuleList, {
|
|
1578
1578
|
items: apps,
|
|
1579
1579
|
documentType: DOCUMENT_TYPES.documentApp,
|
|
@@ -1644,7 +1644,7 @@ const EditorContainer = (props) => {
|
|
|
1644
1644
|
//#region editors/vetra-drive-app/components/PackageInformationSection.tsx
|
|
1645
1645
|
const PackageInformationSection = ({ className, packageDocumentId, onAddPackageDocument, onOpenPackageDocument }) => {
|
|
1646
1646
|
const createpackageContent = /* @__PURE__ */ jsx("button", {
|
|
1647
|
-
className: "my-2 h-
|
|
1647
|
+
className: "my-2 h-50 w-full rounded-md border border-dashed border-gray-200 bg-gray-50 dark:border-slate-500 dark:bg-slate-600 dark:text-slate-100",
|
|
1648
1648
|
onClick: onAddPackageDocument,
|
|
1649
1649
|
children: "Click to create package manifest"
|
|
1650
1650
|
});
|
|
@@ -1657,7 +1657,7 @@ const PackageInformationSection = ({ className, packageDocumentId, onAddPackageD
|
|
|
1657
1657
|
e.stopPropagation();
|
|
1658
1658
|
onOpenPackageDocument();
|
|
1659
1659
|
},
|
|
1660
|
-
className: "flex items-center justify-center rounded-sm p-1 text-gray-
|
|
1660
|
+
className: "flex items-center justify-center rounded-sm bg-gray-50 p-1 text-gray-700 transition-colors hover:bg-gray-200 hover:text-gray-800 dark:bg-slate-800 dark:text-slate-200 dark:hover:bg-slate-600 dark:hover:text-slate-100",
|
|
1661
1661
|
"aria-label": "Open package document",
|
|
1662
1662
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
1663
1663
|
name: "Moved",
|
|
@@ -1737,7 +1737,7 @@ function BaseEditor(props) {
|
|
|
1737
1737
|
}, [packageNode]);
|
|
1738
1738
|
return !!children ? children : /* @__PURE__ */ jsx("div", {
|
|
1739
1739
|
style: { height: "100%" },
|
|
1740
|
-
className: "bg-gray-50 p-6 after:pointer-events-none after:absolute after:inset-0 after:bg-blue-500 after:opacity-0 after:transition after:content-['']",
|
|
1740
|
+
className: "bg-gray-50 p-6 after:pointer-events-none after:absolute after:inset-0 after:bg-blue-500 after:opacity-0 after:transition after:content-[''] dark:bg-slate-800 dark:after:bg-blue-400",
|
|
1741
1741
|
children: /* @__PURE__ */ jsx(DriveExplorer, {
|
|
1742
1742
|
driveId,
|
|
1743
1743
|
driveName,
|
|
@@ -1769,4 +1769,4 @@ function Editor(props) {
|
|
|
1769
1769
|
//#endregion
|
|
1770
1770
|
export { BaseEditor, Editor as default };
|
|
1771
1771
|
|
|
1772
|
-
//# sourceMappingURL=editor-
|
|
1772
|
+
//# sourceMappingURL=editor-fvDig5Bd.js.map
|