@powerhousedao/design-system 6.0.0-dev.247 → 6.0.0-dev.249
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/button-49Walvwn.d.ts.map +1 -1
- package/dist/{command-CThXmS49.d.ts → command-CjupIOR8.d.ts} +8 -8
- package/dist/{command-CThXmS49.d.ts.map → command-CjupIOR8.d.ts.map} +1 -1
- package/dist/connect/components/toast/toast.js +1 -1
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +136 -136
- package/dist/connect/index.js.map +1 -1
- package/dist/{enum-field-8s8P6tjO.d.ts → enum-field-Db9I-jO3.d.ts} +2 -2
- package/dist/{enum-field-8s8P6tjO.d.ts.map → enum-field-Db9I-jO3.d.ts.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{radio-group-field-DNapUn2b.d.ts → radio-group-field-CY2UGZp_.d.ts} +2 -2
- package/dist/{radio-group-field-DNapUn2b.d.ts.map → radio-group-field-CY2UGZp_.d.ts.map} +1 -1
- package/dist/{src-D4e3Wkrz.js → src-BgCjYazJ.js} +6 -6
- package/dist/{src-D4e3Wkrz.js.map → src-BgCjYazJ.js.map} +1 -1
- package/dist/style.css +297 -200
- package/dist/ui/components/button/button.js +4 -4
- package/dist/ui/components/button/button.js.map +1 -1
- package/dist/ui/components/character-counter/character-counter.js +3 -3
- package/dist/ui/components/character-counter/character-counter.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox-base.js +2 -2
- package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox.js +1 -1
- package/dist/ui/components/command/command.d.ts +1 -1
- package/dist/ui/components/command/command.js +7 -7
- package/dist/ui/components/command/command.js.map +1 -1
- package/dist/ui/components/enum-field/enum-field.d.ts +1 -1
- package/dist/ui/components/form-description/form-description.js +2 -2
- package/dist/ui/components/form-description/form-description.js.map +1 -1
- package/dist/ui/components/form-label/form-label.js +3 -3
- package/dist/ui/components/form-label/form-label.js.map +1 -1
- package/dist/ui/components/form-message/form-message.js +1 -1
- package/dist/ui/components/form-message/message-list.js +2 -2
- package/dist/ui/components/form-message/message-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +9 -9
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/ui/components/index.d.ts +3 -3
- package/dist/ui/components/input/input.js +1 -1
- package/dist/ui/components/input/input.js.map +1 -1
- package/dist/ui/components/input/splitted-input-diff.js +2 -2
- package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js +2 -2
- package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js +1 -1
- package/dist/ui/components/popover/popover.js +3 -3
- package/dist/ui/components/popover/popover.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.d.ts +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.js +1 -1
- package/dist/ui/components/radio-group-field/radio.js +2 -2
- package/dist/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/ui/components/search-autocomplete/search-autocomplete.js +1 -1
- package/dist/ui/components/select-field/content.js +3 -3
- package/dist/ui/components/select-field/content.js.map +1 -1
- package/dist/ui/components/select-field/select-field.js +2 -2
- package/dist/ui/components/select-field/select-field.js.map +1 -1
- package/dist/ui/components/select-field/selected-content.js +4 -4
- package/dist/ui/components/select-field/selected-content.js.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js +4 -4
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
- package/dist/ui/components/text-input/text-input.js +1 -1
- package/dist/ui/components/tooltip/tooltip.js +2 -2
- package/dist/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.js +5 -10
- package/dist/ui/components/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/ui/index.d.ts +3 -3
- package/package.json +5 -5
- package/theme.css +2 -2
package/dist/connect/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DropdownMenuTrigger, b as DropdownMenuContent, c as SidebarFooter, d as Pagination, f as mergeClassNameProps, g as getDimensions, h as Icon, l as SidebarHeader, m as Modal, p as PackageAnimation, r as usePagination, s as Sidebar, t as cn, u as SidebarPanel, w as PowerhouseButton, x as DropdownMenuItem, y as DropdownMenu } from "../src-
|
|
1
|
+
import { C as DropdownMenuTrigger, b as DropdownMenuContent, c as SidebarFooter, d as Pagination, f as mergeClassNameProps, g as getDimensions, h as Icon, l as SidebarHeader, m as Modal, p as PackageAnimation, r as usePagination, s as Sidebar, t as cn, u as SidebarPanel, w as PowerhouseButton, x as DropdownMenuItem, y as DropdownMenu } from "../src-BgCjYazJ.js";
|
|
2
2
|
import { Popover, PopoverContent, PopoverTrigger } from "../ui/components/popover/popover.js";
|
|
3
3
|
import { SelectFieldRaw } from "../ui/components/select-field/select-field.js";
|
|
4
4
|
import { Input } from "../ui/components/input/input.js";
|
|
@@ -74,6 +74,9 @@ function NodeInput(props) {
|
|
|
74
74
|
const { onSubmit, onCancel, defaultValue, className, minLength = 1, ...inputProps } = props;
|
|
75
75
|
const [value, setValue] = useState(defaultValue ?? "");
|
|
76
76
|
const ref = useRef(null);
|
|
77
|
+
function handleSubmit() {
|
|
78
|
+
if (value.length >= minLength) onSubmit(value);
|
|
79
|
+
}
|
|
77
80
|
useOnClickOutside(ref, handleSubmit);
|
|
78
81
|
useEventListener("keyup", (e) => {
|
|
79
82
|
if (e.key === "Enter") handleSubmit();
|
|
@@ -86,9 +89,6 @@ function NodeInput(props) {
|
|
|
86
89
|
ref.current?.scroll({ left: 9999 });
|
|
87
90
|
}, 100);
|
|
88
91
|
}, []);
|
|
89
|
-
function handleSubmit() {
|
|
90
|
-
if (value.length >= minLength) onSubmit(value);
|
|
91
|
-
}
|
|
92
92
|
return /* @__PURE__ */ jsx("input", {
|
|
93
93
|
...inputProps,
|
|
94
94
|
autoFocus: true,
|
|
@@ -437,7 +437,7 @@ function TreeItem({ label, depth, expanded, selected, hasChildren, icon, onToggl
|
|
|
437
437
|
onClick,
|
|
438
438
|
children: [
|
|
439
439
|
hasChildren ? /* @__PURE__ */ jsx("button", {
|
|
440
|
-
className: "flex
|
|
440
|
+
className: "flex size-4 shrink-0 items-center justify-center text-gray-500 hover:text-gray-700",
|
|
441
441
|
onClick: handleChevronClick,
|
|
442
442
|
type: "button",
|
|
443
443
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
@@ -454,7 +454,7 @@ function TreeItem({ label, depth, expanded, selected, hasChildren, icon, onToggl
|
|
|
454
454
|
className: "min-w-0 flex-1 truncate text-gray-700",
|
|
455
455
|
children: label
|
|
456
456
|
}),
|
|
457
|
-
selected && /* @__PURE__ */ jsx("span", { className: "ml-auto
|
|
457
|
+
selected && /* @__PURE__ */ jsx("span", { className: "ml-auto size-2 shrink-0 rounded-full bg-blue-500" })
|
|
458
458
|
]
|
|
459
459
|
}), expanded && children] });
|
|
460
460
|
}
|
|
@@ -604,7 +604,7 @@ function ItemContainer(props) {
|
|
|
604
604
|
className: twMerge(disabled ? "cursor-not-allowed text-gray-500" : "text-gray-800", "flex size-full cursor-pointer items-center gap-2 bg-inherit py-3 pl-3 text-start outline-none", className),
|
|
605
605
|
onClick: onItemClick,
|
|
606
606
|
children: [icon, /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
607
|
-
className: "
|
|
607
|
+
className: "text-inherit capitalize",
|
|
608
608
|
children: displayValue ?? value.toLowerCase()
|
|
609
609
|
}), /* @__PURE__ */ jsx("p", {
|
|
610
610
|
className: "text-xs text-gray-600",
|
|
@@ -727,13 +727,13 @@ function FilterClauseComponent({ clause, columns, onUpdate, onRemove, showConnec
|
|
|
727
727
|
onChange: handleOperatorChange
|
|
728
728
|
}),
|
|
729
729
|
showValueInput && /* @__PURE__ */ jsx("input", {
|
|
730
|
-
className: "min-w-[150px] rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-900",
|
|
730
|
+
className: "min-w-[150px] rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-900",
|
|
731
731
|
type: inputType,
|
|
732
732
|
value: clause.value,
|
|
733
733
|
onChange: (e) => handleValueChange(e.target.value)
|
|
734
734
|
}),
|
|
735
735
|
/* @__PURE__ */ jsx("button", {
|
|
736
|
-
className: "flex items-center justify-center rounded p-1 text-gray-500 hover:bg-gray-200 hover:text-gray-700",
|
|
736
|
+
className: "flex items-center justify-center rounded-sm p-1 text-gray-500 hover:bg-gray-200 hover:text-gray-700",
|
|
737
737
|
onClick: onRemove,
|
|
738
738
|
title: "Remove filter",
|
|
739
739
|
type: "button",
|
|
@@ -813,12 +813,12 @@ function FilterBar({ columns, filters, onFiltersChange }) {
|
|
|
813
813
|
}),
|
|
814
814
|
/* @__PURE__ */ jsx("span", { children: "Filters" }),
|
|
815
815
|
hasFilters && /* @__PURE__ */ jsx("span", {
|
|
816
|
-
className: "rounded bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",
|
|
816
|
+
className: "rounded-sm bg-blue-100 px-1.5 py-0.5 text-xs text-blue-700",
|
|
817
817
|
children: filters.clauses.length
|
|
818
818
|
})
|
|
819
819
|
]
|
|
820
820
|
}), /* @__PURE__ */ jsxs("button", {
|
|
821
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100",
|
|
821
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100",
|
|
822
822
|
onClick: handleAddFilter,
|
|
823
823
|
type: "button",
|
|
824
824
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -943,7 +943,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
943
943
|
className: "text-gray-600",
|
|
944
944
|
children: loading ? "Loading..." : total !== null ? `Showing ${startItem.toLocaleString()}-${endItem.toLocaleString()} of ${total.toLocaleString()}` : `Showing ${rows.length.toLocaleString()} rows`
|
|
945
945
|
}), rows.length > 0 && /* @__PURE__ */ jsxs("button", {
|
|
946
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
946
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
947
947
|
disabled: loading || copying,
|
|
948
948
|
onClick: handleCopyAll,
|
|
949
949
|
title: "Copy all rows as CSV",
|
|
@@ -957,14 +957,14 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
957
957
|
className: "flex gap-1",
|
|
958
958
|
children: [
|
|
959
959
|
/* @__PURE__ */ jsx("button", {
|
|
960
|
-
className: "rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
960
|
+
className: "rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
961
961
|
disabled: currentPage === 0,
|
|
962
962
|
onClick: () => goToPage(0),
|
|
963
963
|
type: "button",
|
|
964
964
|
children: "First"
|
|
965
965
|
}),
|
|
966
966
|
/* @__PURE__ */ jsx("button", {
|
|
967
|
-
className: "rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
967
|
+
className: "rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
968
968
|
disabled: currentPage === 0,
|
|
969
969
|
onClick: () => goToPage(currentPage - 1),
|
|
970
970
|
type: "button",
|
|
@@ -979,7 +979,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
979
979
|
children: "..."
|
|
980
980
|
}),
|
|
981
981
|
visiblePages.map((page) => /* @__PURE__ */ jsx("button", {
|
|
982
|
-
className: twMerge("min-w-8 rounded border px-2 py-1 text-xs", page === currentPage ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-300 bg-white text-gray-700 hover:bg-gray-100"),
|
|
982
|
+
className: twMerge("min-w-8 rounded-sm border px-2 py-1 text-xs", page === currentPage ? "border-blue-500 bg-blue-50 text-blue-700" : "border-gray-300 bg-white text-gray-700 hover:bg-gray-100"),
|
|
983
983
|
onClick: () => goToPage(page),
|
|
984
984
|
type: "button",
|
|
985
985
|
children: page + 1
|
|
@@ -989,7 +989,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
989
989
|
children: "..."
|
|
990
990
|
}),
|
|
991
991
|
/* @__PURE__ */ jsx("button", {
|
|
992
|
-
className: "rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
992
|
+
className: "rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
993
993
|
disabled: currentPage >= totalPages - 1,
|
|
994
994
|
onClick: () => goToPage(currentPage + 1),
|
|
995
995
|
type: "button",
|
|
@@ -1000,7 +1000,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
1000
1000
|
})
|
|
1001
1001
|
}),
|
|
1002
1002
|
/* @__PURE__ */ jsx("button", {
|
|
1003
|
-
className: "rounded border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1003
|
+
className: "rounded-sm border border-gray-300 bg-white px-2 py-1 text-xs text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1004
1004
|
disabled: currentPage >= totalPages - 1,
|
|
1005
1005
|
onClick: () => goToPage(totalPages - 1),
|
|
1006
1006
|
type: "button",
|
|
@@ -1016,7 +1016,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
1016
1016
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
1017
1017
|
className: "sticky top-0 bg-gray-100",
|
|
1018
1018
|
children: /* @__PURE__ */ jsxs("tr", { children: [/* @__PURE__ */ jsx("th", {
|
|
1019
|
-
className: "w-12
|
|
1019
|
+
className: "w-12 p-2 text-center text-xs font-medium text-gray-600",
|
|
1020
1020
|
children: /* @__PURE__ */ jsx("span", {
|
|
1021
1021
|
className: "sr-only",
|
|
1022
1022
|
children: "Copy"
|
|
@@ -1046,9 +1046,9 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
1046
1046
|
}) }) : rows.map((row, rowIndex) => /* @__PURE__ */ jsxs("tr", {
|
|
1047
1047
|
className: "odd:bg-white even:bg-gray-50 hover:bg-blue-50",
|
|
1048
1048
|
children: [/* @__PURE__ */ jsx("td", {
|
|
1049
|
-
className: "
|
|
1049
|
+
className: "p-2 text-center",
|
|
1050
1050
|
children: /* @__PURE__ */ jsx("button", {
|
|
1051
|
-
className: "flex items-center justify-center rounded p-1 text-gray-500 hover:bg-gray-200 hover:text-gray-700",
|
|
1051
|
+
className: "flex items-center justify-center rounded-sm p-1 text-gray-500 hover:bg-gray-200 hover:text-gray-700",
|
|
1052
1052
|
onClick: () => void handleCopyRow(rowIndex),
|
|
1053
1053
|
title: "Copy row as CSV",
|
|
1054
1054
|
type: "button",
|
|
@@ -1060,7 +1060,7 @@ function TableView({ columns, rows, pagination, onPageChange, onSort, currentSor
|
|
|
1060
1060
|
}), columns.map((column, colIndex) => /* @__PURE__ */ jsx("td", {
|
|
1061
1061
|
className: twMerge("px-3 py-2 text-xs text-gray-900", colIndex > 0 && "border-l border-gray-300"),
|
|
1062
1062
|
children: /* @__PURE__ */ jsx("span", {
|
|
1063
|
-
className: twMerge("block truncate", row[column.name] === null && "
|
|
1063
|
+
className: twMerge("block truncate", row[column.name] === null && "text-gray-400 italic"),
|
|
1064
1064
|
title: formatCellValue(row[column.name]),
|
|
1065
1065
|
children: formatCellValue(row[column.name])
|
|
1066
1066
|
})
|
|
@@ -1278,13 +1278,13 @@ function DBExplorer({ schema, getTables, getTableRows, getDefaultSort, pageSize
|
|
|
1278
1278
|
className: "flex shrink-0 flex-col gap-2 border-t border-gray-200 p-2",
|
|
1279
1279
|
children: [
|
|
1280
1280
|
onImportDb && /* @__PURE__ */ jsx("button", {
|
|
1281
|
-
className: "rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
1281
|
+
className: "rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
1282
1282
|
onClick: handleImportClick,
|
|
1283
1283
|
type: "button",
|
|
1284
1284
|
children: "Import DB"
|
|
1285
1285
|
}),
|
|
1286
1286
|
onExportDb && /* @__PURE__ */ jsx("button", {
|
|
1287
|
-
className: "rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
1287
|
+
className: "rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
1288
1288
|
onClick: handleExportClick,
|
|
1289
1289
|
type: "button",
|
|
1290
1290
|
children: "Export DB"
|
|
@@ -1298,7 +1298,7 @@ function DBExplorer({ schema, getTables, getTableRows, getDefaultSort, pageSize
|
|
|
1298
1298
|
children: pgVersionControl.currentPgVersion === null ? "—" : `PG${pgVersionControl.currentPgVersion}`
|
|
1299
1299
|
})]
|
|
1300
1300
|
}), resetTargetMajor !== null && /* @__PURE__ */ jsx("button", {
|
|
1301
|
-
className: "rounded border border-red-300 bg-red-50 px-3 py-1.5 text-sm text-red-700 hover:bg-red-100 disabled:opacity-50",
|
|
1301
|
+
className: "rounded-sm border border-red-300 bg-red-50 px-3 py-1.5 text-sm text-red-700 hover:bg-red-100 disabled:opacity-50",
|
|
1302
1302
|
onClick: () => setPendingResetMajor(resetTargetMajor),
|
|
1303
1303
|
disabled: resetting,
|
|
1304
1304
|
type: "button",
|
|
@@ -1372,7 +1372,7 @@ function DebugInspector({ supportedPgVersions, currentPgVersion, onResetToPgVers
|
|
|
1372
1372
|
children: "Kill the reactor, delete the local IndexedDB, initialize a fresh Postgres cluster at the chosen major version, then reload. Useful for testing version-detection and migration flows."
|
|
1373
1373
|
}),
|
|
1374
1374
|
/* @__PURE__ */ jsxs("div", {
|
|
1375
|
-
className: "mt-2 inline-flex items-center gap-2 rounded bg-gray-100 px-3 py-1 text-sm",
|
|
1375
|
+
className: "mt-2 inline-flex items-center gap-2 rounded-sm bg-gray-100 px-3 py-1 text-sm",
|
|
1376
1376
|
children: [/* @__PURE__ */ jsx("span", {
|
|
1377
1377
|
className: "text-gray-600",
|
|
1378
1378
|
children: "Current version:"
|
|
@@ -1389,13 +1389,13 @@ function DebugInspector({ supportedPgVersions, currentPgVersion, onResetToPgVers
|
|
|
1389
1389
|
type: "button",
|
|
1390
1390
|
disabled: running,
|
|
1391
1391
|
onClick: () => setConfirmMajor(major),
|
|
1392
|
-
className: "flex items-center gap-1 rounded border border-red-300 bg-red-50 px-3 py-1.5 text-sm text-red-700 hover:bg-red-100 disabled:opacity-50",
|
|
1392
|
+
className: "flex items-center gap-1 rounded-sm border border-red-300 bg-red-50 px-3 py-1.5 text-sm text-red-700 hover:bg-red-100 disabled:opacity-50",
|
|
1393
1393
|
children: pendingMajor === major && running ? `Resetting to PG${major}…` : `Reset to PG${major}`
|
|
1394
1394
|
}, major);
|
|
1395
1395
|
})
|
|
1396
1396
|
}),
|
|
1397
1397
|
confirmMajor !== null && /* @__PURE__ */ jsxs("div", {
|
|
1398
|
-
className: "flex shrink-0 items-center gap-3 rounded border border-yellow-400 bg-yellow-50 px-3 py-2",
|
|
1398
|
+
className: "flex shrink-0 items-center gap-3 rounded-sm border border-yellow-400 bg-yellow-50 px-3 py-2",
|
|
1399
1399
|
children: [
|
|
1400
1400
|
/* @__PURE__ */ jsxs("span", {
|
|
1401
1401
|
className: "text-sm text-yellow-900",
|
|
@@ -1408,19 +1408,19 @@ function DebugInspector({ supportedPgVersions, currentPgVersion, onResetToPgVers
|
|
|
1408
1408
|
/* @__PURE__ */ jsxs("button", {
|
|
1409
1409
|
type: "button",
|
|
1410
1410
|
onClick: () => handleReset(confirmMajor),
|
|
1411
|
-
className: "rounded bg-yellow-600 px-3 py-1 text-sm text-white hover:bg-yellow-700",
|
|
1411
|
+
className: "rounded-sm bg-yellow-600 px-3 py-1 text-sm text-white hover:bg-yellow-700",
|
|
1412
1412
|
children: ["Confirm reset to PG", confirmMajor]
|
|
1413
1413
|
}),
|
|
1414
1414
|
/* @__PURE__ */ jsx("button", {
|
|
1415
1415
|
type: "button",
|
|
1416
1416
|
onClick: () => setConfirmMajor(null),
|
|
1417
|
-
className: "rounded border border-gray-300 bg-white px-3 py-1 text-sm text-gray-600 hover:bg-gray-50",
|
|
1417
|
+
className: "rounded-sm border border-gray-300 bg-white px-3 py-1 text-sm text-gray-600 hover:bg-gray-50",
|
|
1418
1418
|
children: "Cancel"
|
|
1419
1419
|
})
|
|
1420
1420
|
]
|
|
1421
1421
|
}),
|
|
1422
1422
|
error && /* @__PURE__ */ jsx("div", {
|
|
1423
|
-
className: "rounded border border-red-300 bg-red-50 px-3 py-2 text-sm text-red-800",
|
|
1423
|
+
className: "rounded-sm border border-red-300 bg-red-50 px-3 py-2 text-sm text-red-800",
|
|
1424
1424
|
children: error
|
|
1425
1425
|
})
|
|
1426
1426
|
]
|
|
@@ -1496,7 +1496,7 @@ function Tabs({ children, defaultValue }) {
|
|
|
1496
1496
|
if (!/* @__PURE__ */ React.isValidElement(child)) return;
|
|
1497
1497
|
const { label, disabled } = child.props;
|
|
1498
1498
|
return /* @__PURE__ */ jsx(Trigger$2, {
|
|
1499
|
-
className: "
|
|
1499
|
+
className: "flex h-7 flex-1 items-center justify-center rounded-lg transition duration-300 data-disabled:cursor-not-allowed data-disabled:text-gray-400 data-[state='active']:bg-gray-50 data-[state='active']:text-gray-900",
|
|
1500
1500
|
value: label,
|
|
1501
1501
|
disabled: disabled ?? false,
|
|
1502
1502
|
children: label
|
|
@@ -1558,7 +1558,7 @@ function ConnectTooltip(props) {
|
|
|
1558
1558
|
...rest,
|
|
1559
1559
|
side,
|
|
1560
1560
|
sideOffset,
|
|
1561
|
-
className: twMerge("
|
|
1561
|
+
className: twMerge("z-50 rounded-lg border border-gray-200 bg-white p-2 text-xs shadow-tooltip", className),
|
|
1562
1562
|
children: content
|
|
1563
1563
|
}) })]
|
|
1564
1564
|
});
|
|
@@ -1624,7 +1624,7 @@ const HDivider = (props) => {
|
|
|
1624
1624
|
side: "bottom",
|
|
1625
1625
|
sideOffset: 5,
|
|
1626
1626
|
children: /* @__PURE__ */ jsx("div", {
|
|
1627
|
-
className: twMerge("mx-0.5 flex h-
|
|
1627
|
+
className: twMerge("mx-0.5 flex h-6.25 w-1.5 cursor-pointer flex-col items-center justify-center rounded-xs hover:bg-blue-300", isSelected && "bg-blue-300", className),
|
|
1628
1628
|
onClick,
|
|
1629
1629
|
"data-title": title,
|
|
1630
1630
|
"data-subtitle": subtitle,
|
|
@@ -1687,7 +1687,7 @@ const TimelineBar = ({ onClick, className, timestampUtcMs: timestamp, additions,
|
|
|
1687
1687
|
name: "TimelineCaret",
|
|
1688
1688
|
color: "#4EA9FF",
|
|
1689
1689
|
size: 10,
|
|
1690
|
-
className: "absolute
|
|
1690
|
+
className: "absolute top-[-11px] left-[-2px] z-40"
|
|
1691
1691
|
}), noChanges ? /* @__PURE__ */ jsx("div", {
|
|
1692
1692
|
className: twMerge("flex h-[25px] w-1.5 cursor-pointer flex-col items-center justify-center rounded-[2px] hover:bg-blue-300", className),
|
|
1693
1693
|
"data-timestamp": timestamp,
|
|
@@ -1777,11 +1777,11 @@ const DocumentTimeline = (props) => {
|
|
|
1777
1777
|
className: "relative h-[36px] w-full",
|
|
1778
1778
|
children: [
|
|
1779
1779
|
/* @__PURE__ */ jsx("div", {
|
|
1780
|
-
className: "absolute left-
|
|
1780
|
+
className: "absolute left-0 z-20 h-[17px] w-[6px] bg-white",
|
|
1781
1781
|
children: /* @__PURE__ */ jsx("div", { className: "mt-[11px] h-[6px] w-[6px] rounded-tl-md bg-slate-50" })
|
|
1782
1782
|
}),
|
|
1783
1783
|
/* @__PURE__ */ jsx("div", {
|
|
1784
|
-
className: "absolute
|
|
1784
|
+
className: "absolute top-[11px] right-0 z-20 h-[6px] w-[6px] bg-white",
|
|
1785
1785
|
children: /* @__PURE__ */ jsx("div", { className: "h-[6px] w-[6px] rounded-tr-md bg-slate-50" })
|
|
1786
1786
|
}),
|
|
1787
1787
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 bottom-0 h-[25px] rounded-md bg-slate-50" }),
|
|
@@ -1803,7 +1803,7 @@ const DocumentTimeline = (props) => {
|
|
|
1803
1803
|
})
|
|
1804
1804
|
}),
|
|
1805
1805
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute bottom-0 left-0 z-10 h-[25px] w-2 rounded-l-md bg-slate-50" }),
|
|
1806
|
-
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute
|
|
1806
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute right-0 bottom-0 z-10 h-[25px] w-2 rounded-r-md bg-slate-50" })
|
|
1807
1807
|
]
|
|
1808
1808
|
})
|
|
1809
1809
|
});
|
|
@@ -2337,7 +2337,7 @@ function UploadFileItemErrorDetails(props) {
|
|
|
2337
2337
|
const { status, errorDetails } = props;
|
|
2338
2338
|
if (!((status === "failed" || status === "unsupported-document-type") && errorDetails)) return null;
|
|
2339
2339
|
return /* @__PURE__ */ jsx("div", {
|
|
2340
|
-
className: "
|
|
2340
|
+
className: "text-xs leading-[18px] wrap-break-word text-gray-500",
|
|
2341
2341
|
children: errorDetails
|
|
2342
2342
|
});
|
|
2343
2343
|
}
|
|
@@ -2363,7 +2363,7 @@ function UploadFileItemHeader(props) {
|
|
|
2363
2363
|
...delegatedProps,
|
|
2364
2364
|
children: [
|
|
2365
2365
|
/* @__PURE__ */ jsx("div", {
|
|
2366
|
-
className: "flex h-9 w-7
|
|
2366
|
+
className: "flex h-9 w-7 shrink-0 items-center justify-center",
|
|
2367
2367
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
2368
2368
|
name: getDocumentIcon(documentType),
|
|
2369
2369
|
size: 48,
|
|
@@ -2373,15 +2373,15 @@ function UploadFileItemHeader(props) {
|
|
|
2373
2373
|
/* @__PURE__ */ jsxs("div", {
|
|
2374
2374
|
className: "flex flex-1 flex-col gap-0.5",
|
|
2375
2375
|
children: [/* @__PURE__ */ jsx("div", {
|
|
2376
|
-
className: "text-xs
|
|
2376
|
+
className: "text-xs leading-[18px] font-medium text-gray-900",
|
|
2377
2377
|
children: fileName
|
|
2378
2378
|
}), /* @__PURE__ */ jsx("div", {
|
|
2379
|
-
className: "text-xs
|
|
2379
|
+
className: "text-xs leading-[18px] font-medium text-gray-500",
|
|
2380
2380
|
children: fileSize
|
|
2381
2381
|
})]
|
|
2382
2382
|
}),
|
|
2383
2383
|
onClose && /* @__PURE__ */ jsx("div", {
|
|
2384
|
-
className: "flex h-9 w-[18px]
|
|
2384
|
+
className: "flex h-9 w-[18px] shrink-0 items-start justify-center",
|
|
2385
2385
|
children: /* @__PURE__ */ jsx("button", {
|
|
2386
2386
|
type: "button",
|
|
2387
2387
|
onClick: onClose,
|
|
@@ -2456,7 +2456,7 @@ function UploadFileItemStatusRow(props) {
|
|
|
2456
2456
|
children: getStatusText(status)
|
|
2457
2457
|
}),
|
|
2458
2458
|
status === "uploading" && /* @__PURE__ */ jsxs("div", {
|
|
2459
|
-
className: "text-xs
|
|
2459
|
+
className: "text-xs leading-[18px] font-medium text-gray-900",
|
|
2460
2460
|
children: [Math.round(progress), "%"]
|
|
2461
2461
|
}),
|
|
2462
2462
|
shouldShowCTA(status, onOpenDocument, onFindResolution) && /* @__PURE__ */ jsx("button", {
|
|
@@ -2474,7 +2474,7 @@ const UploadFileItem = /* @__PURE__ */ forwardRef(function UploadFileItem(props,
|
|
|
2474
2474
|
const { fileName, fileSize, status, documentType, progress = 0, errorDetails, onClose, onOpenDocument, onFindResolution, className, ...delegatedProps } = props;
|
|
2475
2475
|
return /* @__PURE__ */ jsxs("div", {
|
|
2476
2476
|
ref,
|
|
2477
|
-
className: twMerge("flex w-full flex-col gap-0.5 rounded-md border border-gray-100 bg-white p-2 shadow-
|
|
2477
|
+
className: twMerge("flex w-full flex-col gap-0.5 rounded-md border border-gray-100 bg-white p-2 shadow-sidebar", className),
|
|
2478
2478
|
...delegatedProps,
|
|
2479
2479
|
children: [/* @__PURE__ */ jsx(UploadFileItemHeader, {
|
|
2480
2480
|
fileName,
|
|
@@ -2515,7 +2515,7 @@ function UploadFileList(props) {
|
|
|
2515
2515
|
const [isCollapsed, setIsCollapsed] = useState(defaultCollapsed);
|
|
2516
2516
|
const computedTitle = useMemo(() => getUploadListTitle(items.length, title), [items.length, title]);
|
|
2517
2517
|
return /* @__PURE__ */ jsxs("div", {
|
|
2518
|
-
className: twMerge("w-
|
|
2518
|
+
className: twMerge("w-89.5 rounded-md border border-gray-100 bg-gray-50 p-4 shadow-charcoal", className),
|
|
2519
2519
|
...delegatedProps,
|
|
2520
2520
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2521
2521
|
className: "flex items-center justify-between",
|
|
@@ -2524,7 +2524,7 @@ function UploadFileList(props) {
|
|
|
2524
2524
|
"aria-expanded": !isCollapsed,
|
|
2525
2525
|
"aria-label": isCollapsed ? "Expand list" : "Collapse list",
|
|
2526
2526
|
onClick: () => setIsCollapsed((v) => !v),
|
|
2527
|
-
className: "min-w-0 flex-1 text-left text-sm font-medium
|
|
2527
|
+
className: "min-w-0 flex-1 text-left text-sm/4 font-medium text-gray-900 hover:opacity-80",
|
|
2528
2528
|
children: computedTitle
|
|
2529
2529
|
}), /* @__PURE__ */ jsxs("div", {
|
|
2530
2530
|
className: "flex shrink-0 items-center gap-4",
|
|
@@ -2534,7 +2534,7 @@ function UploadFileList(props) {
|
|
|
2534
2534
|
onClick: () => setIsCollapsed((v) => !v),
|
|
2535
2535
|
className: "text-gray-900 hover:opacity-80",
|
|
2536
2536
|
children: /* @__PURE__ */ jsx("span", {
|
|
2537
|
-
className: twMerge("inline-block
|
|
2537
|
+
className: twMerge("inline-block size-4 transition-transform select-none", isCollapsed ? "-rotate-90" : "rotate-0"),
|
|
2538
2538
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
2539
2539
|
name: "CaretDown",
|
|
2540
2540
|
size: 16,
|
|
@@ -2547,7 +2547,7 @@ function UploadFileList(props) {
|
|
|
2547
2547
|
onClick: onClose,
|
|
2548
2548
|
className: "text-gray-900 hover:opacity-80",
|
|
2549
2549
|
children: /* @__PURE__ */ jsx("span", {
|
|
2550
|
-
className: "inline-block
|
|
2550
|
+
className: "inline-block size-4 select-none",
|
|
2551
2551
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
2552
2552
|
name: "XmarkLight",
|
|
2553
2553
|
size: 16,
|
|
@@ -2557,7 +2557,7 @@ function UploadFileList(props) {
|
|
|
2557
2557
|
})]
|
|
2558
2558
|
})]
|
|
2559
2559
|
}), !isCollapsed && /* @__PURE__ */ jsx("div", {
|
|
2560
|
-
className: "mt-4 flex max-h-[404px] flex-col gap-4 overflow-
|
|
2560
|
+
className: "mt-4 flex max-h-[404px] flex-col gap-4 overflow-x-visible overflow-y-auto p-2",
|
|
2561
2561
|
children: items.map((item, idx) => /* @__PURE__ */ jsx(UploadFileItem, { ...item }, `${item.fileName}-${idx}`))
|
|
2562
2562
|
})]
|
|
2563
2563
|
});
|
|
@@ -2622,7 +2622,7 @@ function UploadFileListContainer(props) {
|
|
|
2622
2622
|
const items = mapUploadsToFileItems(uploadsArray, removeUpload, setSelectedNode, onConflictResolution);
|
|
2623
2623
|
const handleClose = onClose ?? clearAllUploads;
|
|
2624
2624
|
return /* @__PURE__ */ jsx("div", {
|
|
2625
|
-
className: twMerge("fixed
|
|
2625
|
+
className: twMerge("fixed right-4 bottom-4 z-1001", className),
|
|
2626
2626
|
...delegatedProps,
|
|
2627
2627
|
children: /* @__PURE__ */ jsx(UploadFileList, {
|
|
2628
2628
|
items,
|
|
@@ -2879,18 +2879,18 @@ function DropZone(props) {
|
|
|
2879
2879
|
children: [
|
|
2880
2880
|
children,
|
|
2881
2881
|
enable && isDropTarget && /* @__PURE__ */ jsx("div", {
|
|
2882
|
-
className: "fixed inset-0 z-
|
|
2882
|
+
className: "fixed inset-0 z-1000 flex min-h-screen w-screen items-center justify-center bg-black/50",
|
|
2883
2883
|
children: /* @__PURE__ */ jsx("div", {
|
|
2884
|
-
className: "rounded-
|
|
2884
|
+
className: "rounded-3xl bg-white p-6 shadow-charcoal",
|
|
2885
2885
|
children: /* @__PURE__ */ jsxs("div", {
|
|
2886
|
-
className: "relative flex h-
|
|
2886
|
+
className: "relative flex h-32.5 w-100 flex-col items-center justify-start overflow-visible rounded-lg border border-dashed border-black px-4 py-6",
|
|
2887
2887
|
children: [
|
|
2888
2888
|
/* @__PURE__ */ jsx("div", {
|
|
2889
|
-
className: "text-center text-base
|
|
2889
|
+
className: "text-center text-base/5 text-zinc-500",
|
|
2890
2890
|
children: title
|
|
2891
2891
|
}),
|
|
2892
2892
|
/* @__PURE__ */ jsx("div", {
|
|
2893
|
-
className: "text-center text-base
|
|
2893
|
+
className: "text-center text-base/5 text-zinc-500",
|
|
2894
2894
|
children: subtitle
|
|
2895
2895
|
}),
|
|
2896
2896
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -3329,9 +3329,9 @@ function FileItem(props) {
|
|
|
3329
3329
|
width: 32,
|
|
3330
3330
|
draggable: false
|
|
3331
3331
|
}), isReadMode && syncStatus && /* @__PURE__ */ jsx("div", {
|
|
3332
|
-
className: "absolute bottom-[-2px]
|
|
3332
|
+
className: "absolute right-0 bottom-[-2px] size-3 rounded-full bg-white",
|
|
3333
3333
|
children: /* @__PURE__ */ jsx("div", {
|
|
3334
|
-
className: "absolute
|
|
3334
|
+
className: "absolute top-[-2px] left-[-2px]",
|
|
3335
3335
|
children: /* @__PURE__ */ jsx(SyncStatusIcon, {
|
|
3336
3336
|
overrideSyncIcons: { SUCCESS: "CheckCircleFill" },
|
|
3337
3337
|
syncStatus
|
|
@@ -3339,7 +3339,7 @@ function FileItem(props) {
|
|
|
3339
3339
|
})
|
|
3340
3340
|
})]
|
|
3341
3341
|
});
|
|
3342
|
-
const containerStyles = twMerge("group flex h-12 cursor-pointer
|
|
3342
|
+
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-gray-200 px-2 text-gray-600 select-none hover:text-gray-800", isDragging ? "opacity-60" : "", className);
|
|
3343
3343
|
const content = isReadMode ? /* @__PURE__ */ jsxs("div", {
|
|
3344
3344
|
className: "flex w-52 items-center justify-between",
|
|
3345
3345
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
@@ -3438,7 +3438,7 @@ function FolderItem(props) {
|
|
|
3438
3438
|
onCancel,
|
|
3439
3439
|
onSubmit
|
|
3440
3440
|
});
|
|
3441
|
-
const containerStyles = twMerge("group flex h-12 cursor-pointer
|
|
3441
|
+
const containerStyles = twMerge("group flex h-12 cursor-pointer items-center rounded-lg bg-gray-200 px-2 select-none", isDragging ? "opacity-60" : isDropTarget ? "bg-blue-100" : "", className);
|
|
3442
3442
|
return /* @__PURE__ */ jsx("div", {
|
|
3443
3443
|
className: "relative w-64",
|
|
3444
3444
|
onClick: isReadMode ? () => setSelectedNode(folderNode) : void 0,
|
|
@@ -3488,7 +3488,7 @@ function FooterLink(props) {
|
|
|
3488
3488
|
//#region src/connect/components/footer/footer.tsx
|
|
3489
3489
|
const Footer = ({ children, ...props }) => {
|
|
3490
3490
|
return /* @__PURE__ */ jsx("footer", {
|
|
3491
|
-
...mergeClassNameProps(props, "flex items-center gap-x-6 text-xs font-medium text-
|
|
3491
|
+
...mergeClassNameProps(props, "flex items-center gap-x-6 text-xs font-medium text-charcoal-300"),
|
|
3492
3492
|
children
|
|
3493
3493
|
});
|
|
3494
3494
|
};
|
|
@@ -3550,7 +3550,7 @@ const Toggle = /* @__PURE__ */ forwardRef(function Toggle(props, ref) {
|
|
|
3550
3550
|
type: "checkbox",
|
|
3551
3551
|
value: "",
|
|
3552
3552
|
...props
|
|
3553
|
-
}), /* @__PURE__ */ jsx("div", { className: "peer h-6 w-11 rounded-full bg-gray-500 after:absolute after:
|
|
3553
|
+
}), /* @__PURE__ */ jsx("div", { className: "peer h-6 w-11 rounded-full bg-gray-500 peer-checked:bg-blue-900 peer-focus:outline-none after:absolute after:inset-s-0.5 after:top-0.5 after:size-5 after:rounded-full after:border after:border-none after:bg-gray-50 after:transition-all peer-checked:after:translate-x-full" })]
|
|
3554
3554
|
});
|
|
3555
3555
|
});
|
|
3556
3556
|
//#endregion
|
|
@@ -3670,7 +3670,7 @@ function LocationInfo(props) {
|
|
|
3670
3670
|
const locationInfo = locationInfoByLocation[location];
|
|
3671
3671
|
return /* @__PURE__ */ jsxs("div", {
|
|
3672
3672
|
...divProps,
|
|
3673
|
-
className: twMerge("my-3 flex items-center gap-2 rounded-xl border border-gray-100 p-3 text-gray-800 shadow", className),
|
|
3673
|
+
className: twMerge("my-3 flex items-center gap-2 rounded-xl border border-gray-100 p-3 text-gray-800 shadow-sm", className),
|
|
3674
3674
|
children: [locationInfo.icon, /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", { children: locationInfo.title }), /* @__PURE__ */ jsx("p", {
|
|
3675
3675
|
className: "text-xs text-slate-200",
|
|
3676
3676
|
children: locationInfo.description
|
|
@@ -3795,7 +3795,7 @@ function FormattedJsonViewer(props) {
|
|
|
3795
3795
|
...rest,
|
|
3796
3796
|
className: "inline-grid",
|
|
3797
3797
|
children: /* @__PURE__ */ jsxs("span", {
|
|
3798
|
-
className: "
|
|
3798
|
+
className: "pl-[1ch] indent-[-1ch] wrap-anywhere hyphens-none",
|
|
3799
3799
|
style: { maxWidth: `${60 - keyName.toString().length}ch` },
|
|
3800
3800
|
children: [
|
|
3801
3801
|
"\"",
|
|
@@ -3849,7 +3849,7 @@ const HomeScreenItem = function HomeScreenItem(props) {
|
|
|
3849
3849
|
children: icon || /* @__PURE__ */ jsx("div", {
|
|
3850
3850
|
className: "size-8 items-center justify-center rounded-lg bg-black pt-1",
|
|
3851
3851
|
children: /* @__PURE__ */ jsx("span", {
|
|
3852
|
-
className: "
|
|
3852
|
+
className: "w-6 text-white",
|
|
3853
3853
|
children: title.slice(0, 1).toUpperCase()
|
|
3854
3854
|
})
|
|
3855
3855
|
})
|
|
@@ -3857,7 +3857,7 @@ const HomeScreenItem = function HomeScreenItem(props) {
|
|
|
3857
3857
|
/* @__PURE__ */ jsxs("div", {
|
|
3858
3858
|
className: "w-full max-w-full",
|
|
3859
3859
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
3860
|
-
className: "w-full max-w-full truncate px-2",
|
|
3860
|
+
className: "w-full max-w-full truncate px-2 text-slate-50",
|
|
3861
3861
|
children: title
|
|
3862
3862
|
}), description && /* @__PURE__ */ jsx("p", {
|
|
3863
3863
|
className: "text-gray-500",
|
|
@@ -3865,7 +3865,7 @@ const HomeScreenItem = function HomeScreenItem(props) {
|
|
|
3865
3865
|
})]
|
|
3866
3866
|
}),
|
|
3867
3867
|
shareable && /* @__PURE__ */ jsx("div", {
|
|
3868
|
-
className: "absolute left-2
|
|
3868
|
+
className: "absolute top-0 left-2 mb-2",
|
|
3869
3869
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
3870
3870
|
name: "PeopleFill",
|
|
3871
3871
|
width: 12,
|
|
@@ -3894,9 +3894,9 @@ const HomeScreenAddDriveItem = function HomeScreenAddDriveItem(props) {
|
|
|
3894
3894
|
const HomeScreen = function HomeScreen(props) {
|
|
3895
3895
|
const { children, containerClassName } = props;
|
|
3896
3896
|
return /* @__PURE__ */ jsx("div", {
|
|
3897
|
-
className: twMerge("container
|
|
3897
|
+
className: twMerge("relative container mx-auto flex h-full flex-col", containerClassName),
|
|
3898
3898
|
children: /* @__PURE__ */ jsxs("div", {
|
|
3899
|
-
className: "m-8 flex flex-wrap justify-center gap-4 pt-12",
|
|
3899
|
+
className: "m-8 flex flex-wrap justify-center gap-4 pt-12 dark:bg-slate-900",
|
|
3900
3900
|
children: [/* @__PURE__ */ jsx(HomeBackgroundImage, {}), children]
|
|
3901
3901
|
})
|
|
3902
3902
|
});
|
|
@@ -3987,7 +3987,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
3987
3987
|
className: "text-xs font-medium text-gray-600",
|
|
3988
3988
|
children: "Document ID"
|
|
3989
3989
|
}), /* @__PURE__ */ jsx("input", {
|
|
3990
|
-
className: "rounded border border-gray-300 px-3 py-1.5 text-sm outline-none focus:border-blue-400",
|
|
3990
|
+
className: "rounded-sm border border-gray-300 px-3 py-1.5 text-sm outline-none focus:border-blue-400",
|
|
3991
3991
|
onChange: (e) => setDocumentId(e.target.value),
|
|
3992
3992
|
placeholder: "Enter document ID",
|
|
3993
3993
|
type: "text",
|
|
@@ -4000,7 +4000,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4000
4000
|
className: "text-xs font-medium text-gray-600",
|
|
4001
4001
|
children: "Branch (optional)"
|
|
4002
4002
|
}), /* @__PURE__ */ jsx("input", {
|
|
4003
|
-
className: "rounded border border-gray-300 px-3 py-1.5 text-sm outline-none focus:border-blue-400",
|
|
4003
|
+
className: "rounded-sm border border-gray-300 px-3 py-1.5 text-sm outline-none focus:border-blue-400",
|
|
4004
4004
|
onChange: (e) => setBranch(e.target.value),
|
|
4005
4005
|
placeholder: "main",
|
|
4006
4006
|
type: "text",
|
|
@@ -4011,7 +4011,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4011
4011
|
className: "flex gap-2",
|
|
4012
4012
|
children: [
|
|
4013
4013
|
/* @__PURE__ */ jsxs("button", {
|
|
4014
|
-
className: "flex items-center gap-1 rounded border border-blue-300 bg-blue-50 px-3 py-1.5 text-sm text-blue-700 hover:bg-blue-100 disabled:opacity-50",
|
|
4014
|
+
className: "flex items-center gap-1 rounded-sm border border-blue-300 bg-blue-50 px-3 py-1.5 text-sm text-blue-700 hover:bg-blue-100 disabled:opacity-50",
|
|
4015
4015
|
disabled: !documentId.trim() || status === "running" || confirmAction !== null,
|
|
4016
4016
|
onClick: () => void handleValidate(),
|
|
4017
4017
|
type: "button",
|
|
@@ -4021,7 +4021,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4021
4021
|
}), "Validate"]
|
|
4022
4022
|
}),
|
|
4023
4023
|
/* @__PURE__ */ jsxs("button", {
|
|
4024
|
-
className: "flex items-center gap-1 rounded border border-yellow-300 bg-yellow-50 px-3 py-1.5 text-sm text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
4024
|
+
className: "flex items-center gap-1 rounded-sm border border-yellow-300 bg-yellow-50 px-3 py-1.5 text-sm text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
4025
4025
|
disabled: !documentId.trim() || status === "running" || confirmAction !== null,
|
|
4026
4026
|
onClick: () => setConfirmAction("keyframes"),
|
|
4027
4027
|
type: "button",
|
|
@@ -4031,7 +4031,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4031
4031
|
}), "Rebuild Keyframes"]
|
|
4032
4032
|
}),
|
|
4033
4033
|
/* @__PURE__ */ jsxs("button", {
|
|
4034
|
-
className: "flex items-center gap-1 rounded border border-yellow-300 bg-yellow-50 px-3 py-1.5 text-sm text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
4034
|
+
className: "flex items-center gap-1 rounded-sm border border-yellow-300 bg-yellow-50 px-3 py-1.5 text-sm text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
4035
4035
|
disabled: !documentId.trim() || status === "running" || confirmAction !== null,
|
|
4036
4036
|
onClick: () => setConfirmAction("snapshots"),
|
|
4037
4037
|
type: "button",
|
|
@@ -4045,14 +4045,14 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4045
4045
|
]
|
|
4046
4046
|
}),
|
|
4047
4047
|
confirmAction && /* @__PURE__ */ jsxs("div", {
|
|
4048
|
-
className: "flex shrink-0 items-center gap-3 rounded border border-yellow-400 bg-yellow-50 px-3 py-2",
|
|
4048
|
+
className: "flex shrink-0 items-center gap-3 rounded-sm border border-yellow-400 bg-yellow-50 px-3 py-2",
|
|
4049
4049
|
children: [
|
|
4050
4050
|
/* @__PURE__ */ jsx("span", {
|
|
4051
4051
|
className: "text-sm text-yellow-800",
|
|
4052
4052
|
children: confirmAction === "keyframes" ? "This will delete all keyframes for this document. Continue?" : "This will invalidate all cached snapshots for this document. Continue?"
|
|
4053
4053
|
}),
|
|
4054
4054
|
/* @__PURE__ */ jsx("button", {
|
|
4055
|
-
className: "rounded bg-yellow-600 px-3 py-1 text-sm text-white hover:bg-yellow-700",
|
|
4055
|
+
className: "rounded-sm bg-yellow-600 px-3 py-1 text-sm text-white hover:bg-yellow-700",
|
|
4056
4056
|
onClick: () => {
|
|
4057
4057
|
if (confirmAction === "keyframes") handleRebuildKeyframes();
|
|
4058
4058
|
else handleRebuildSnapshots();
|
|
@@ -4061,7 +4061,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4061
4061
|
children: "Confirm"
|
|
4062
4062
|
}),
|
|
4063
4063
|
/* @__PURE__ */ jsx("button", {
|
|
4064
|
-
className: "rounded border border-gray-300 bg-white px-3 py-1 text-sm text-gray-600 hover:bg-gray-50",
|
|
4064
|
+
className: "rounded-sm border border-gray-300 bg-white px-3 py-1 text-sm text-gray-600 hover:bg-gray-50",
|
|
4065
4065
|
onClick: () => setConfirmAction(null),
|
|
4066
4066
|
type: "button",
|
|
4067
4067
|
children: "Cancel"
|
|
@@ -4080,7 +4080,7 @@ function IntegrityInspector({ onValidate, onRebuildKeyframes, onRebuildSnapshots
|
|
|
4080
4080
|
children: "Running..."
|
|
4081
4081
|
}),
|
|
4082
4082
|
status === "error" && error && /* @__PURE__ */ jsx("div", {
|
|
4083
|
-
className: "rounded bg-red-50 p-3 text-sm text-red-700",
|
|
4083
|
+
className: "rounded-sm bg-red-50 p-3 text-sm text-red-700",
|
|
4084
4084
|
children: error
|
|
4085
4085
|
}),
|
|
4086
4086
|
status === "done" && validationResult && /* @__PURE__ */ jsx(ValidationResultView, { result: validationResult }),
|
|
@@ -4348,7 +4348,7 @@ function AddRemoteDriveModal(props) {
|
|
|
4348
4348
|
open,
|
|
4349
4349
|
children: /* @__PURE__ */ jsxs("div", {
|
|
4350
4350
|
...containerProps,
|
|
4351
|
-
className: twMerge("
|
|
4351
|
+
className: twMerge("max-w-[408px] min-w-[408px] rounded-2xl p-6", containerProps?.className),
|
|
4352
4352
|
children: [
|
|
4353
4353
|
/* @__PURE__ */ jsxs("div", {
|
|
4354
4354
|
className: "flex justify-between",
|
|
@@ -4725,7 +4725,7 @@ function ObjectInspectorModal({ open, onOpenChange, title, object }) {
|
|
|
4725
4725
|
open,
|
|
4726
4726
|
title,
|
|
4727
4727
|
children: /* @__PURE__ */ jsxs("div", {
|
|
4728
|
-
className: "flex
|
|
4728
|
+
className: "flex size-full flex-col",
|
|
4729
4729
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
4730
4730
|
className: "flex shrink-0 items-center justify-between border-b border-gray-200 px-4 py-3",
|
|
4731
4731
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
@@ -4912,7 +4912,7 @@ function ProcessorsInspector({ getProcessors, onRetry }) {
|
|
|
4912
4912
|
}), /* @__PURE__ */ jsx("div", {
|
|
4913
4913
|
className: "flex items-center gap-2",
|
|
4914
4914
|
children: /* @__PURE__ */ jsxs("button", {
|
|
4915
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
4915
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
4916
4916
|
disabled: loading,
|
|
4917
4917
|
onClick: () => void handleRefresh(),
|
|
4918
4918
|
type: "button",
|
|
@@ -5000,7 +5000,7 @@ function ProcessorsInspector({ getProcessors, onRetry }) {
|
|
|
5000
5000
|
/* @__PURE__ */ jsx("td", {
|
|
5001
5001
|
className: "px-3 py-2 text-xs",
|
|
5002
5002
|
children: /* @__PURE__ */ jsx("button", {
|
|
5003
|
-
className: "flex items-center gap-1 rounded bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5003
|
+
className: "flex items-center gap-1 rounded-sm bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5004
5004
|
onClick: () => setSelectedProcessor(processor),
|
|
5005
5005
|
type: "button",
|
|
5006
5006
|
children: "View"
|
|
@@ -5009,7 +5009,7 @@ function ProcessorsInspector({ getProcessors, onRetry }) {
|
|
|
5009
5009
|
/* @__PURE__ */ jsx("td", {
|
|
5010
5010
|
className: "border-l border-gray-300 px-3 py-2 text-xs",
|
|
5011
5011
|
children: /* @__PURE__ */ jsxs("span", {
|
|
5012
|
-
className: twMerge("inline-flex items-center gap-1 rounded px-1.5 py-0.5", processor.status === "active" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"),
|
|
5012
|
+
className: twMerge("inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5", processor.status === "active" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"),
|
|
5013
5013
|
children: [
|
|
5014
5014
|
processor.status === "active" && /* @__PURE__ */ jsx("span", { className: "inline-block size-1.5 rounded-full bg-green-500" }),
|
|
5015
5015
|
processor.status === "errored" && /* @__PURE__ */ jsx("span", { className: "inline-block size-1.5 rounded-full bg-red-500" }),
|
|
@@ -5074,7 +5074,7 @@ function ProcessorsInspector({ getProcessors, onRetry }) {
|
|
|
5074
5074
|
/* @__PURE__ */ jsx("td", {
|
|
5075
5075
|
className: "border-l border-gray-300 px-3 py-2 text-xs",
|
|
5076
5076
|
children: processor.status === "errored" && onRetry && /* @__PURE__ */ jsx("button", {
|
|
5077
|
-
className: "flex items-center gap-1 rounded bg-yellow-50 px-2 py-1 text-xs text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
5077
|
+
className: "flex items-center gap-1 rounded-sm bg-yellow-50 px-2 py-1 text-xs text-yellow-700 hover:bg-yellow-100 disabled:opacity-50",
|
|
5078
5078
|
disabled: retryingId === processor.processorId,
|
|
5079
5079
|
onClick: () => void handleRetry(processor.processorId),
|
|
5080
5080
|
type: "button",
|
|
@@ -5267,7 +5267,7 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5267
5267
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5268
5268
|
className: "flex items-center gap-2",
|
|
5269
5269
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
5270
|
-
className: twMerge("flex items-center gap-1 rounded border px-3 py-1.5 text-sm disabled:opacity-50", state.isPaused ? "border-green-300 bg-green-50 text-green-700 hover:bg-green-100" : "border-yellow-300 bg-yellow-50 text-yellow-700 hover:bg-yellow-100"),
|
|
5270
|
+
className: twMerge("flex items-center gap-1 rounded-sm border px-3 py-1.5 text-sm disabled:opacity-50", state.isPaused ? "border-green-300 bg-green-50 text-green-700 hover:bg-green-100" : "border-yellow-300 bg-yellow-50 text-yellow-700 hover:bg-yellow-100"),
|
|
5271
5271
|
disabled: actionInProgress,
|
|
5272
5272
|
onClick: () => void handlePauseResume(),
|
|
5273
5273
|
type: "button",
|
|
@@ -5276,7 +5276,7 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5276
5276
|
size: 14
|
|
5277
5277
|
}), state.isPaused ? "Resume" : "Pause"]
|
|
5278
5278
|
}), /* @__PURE__ */ jsxs("button", {
|
|
5279
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
5279
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
5280
5280
|
disabled: loading,
|
|
5281
5281
|
onClick: () => void handleRefresh(),
|
|
5282
5282
|
type: "button",
|
|
@@ -5352,7 +5352,7 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5352
5352
|
/* @__PURE__ */ jsx("td", {
|
|
5353
5353
|
className: "px-3 py-2 text-xs",
|
|
5354
5354
|
children: /* @__PURE__ */ jsx("button", {
|
|
5355
|
-
className: "flex items-center gap-1 rounded bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5355
|
+
className: "flex items-center gap-1 rounded-sm bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5356
5356
|
onClick: () => setSelectedJob(job),
|
|
5357
5357
|
type: "button",
|
|
5358
5358
|
children: "View"
|
|
@@ -5369,7 +5369,7 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5369
5369
|
/* @__PURE__ */ jsx("td", {
|
|
5370
5370
|
className: "border-l border-gray-300 px-3 py-2 text-xs text-gray-900",
|
|
5371
5371
|
children: /* @__PURE__ */ jsx("span", {
|
|
5372
|
-
className: twMerge("inline-block rounded px-1.5 py-0.5", job.kind === "mutation" ? "bg-purple-100 text-purple-700" : "bg-blue-100 text-blue-700"),
|
|
5372
|
+
className: twMerge("inline-block rounded-sm px-1.5 py-0.5", job.kind === "mutation" ? "bg-purple-100 text-purple-700" : "bg-blue-100 text-blue-700"),
|
|
5373
5373
|
children: job.kind
|
|
5374
5374
|
})
|
|
5375
5375
|
}),
|
|
@@ -5412,7 +5412,7 @@ function QueueInspector({ getQueueState, onPause, onResume }) {
|
|
|
5412
5412
|
/* @__PURE__ */ jsx("td", {
|
|
5413
5413
|
className: "border-l border-gray-300 px-3 py-2 text-xs",
|
|
5414
5414
|
children: /* @__PURE__ */ jsxs("span", {
|
|
5415
|
-
className: twMerge("inline-flex items-center gap-1 rounded px-1.5 py-0.5", job.status === "executing" ? "bg-green-100 text-green-700" : "bg-gray-100 text-gray-600"),
|
|
5415
|
+
className: twMerge("inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5", job.status === "executing" ? "bg-green-100 text-green-700" : "bg-gray-100 text-gray-600"),
|
|
5416
5416
|
children: [job.status === "executing" && /* @__PURE__ */ jsx("span", { className: "inline-block size-1.5 animate-pulse rounded-full bg-green-500" }), job.status]
|
|
5417
5417
|
})
|
|
5418
5418
|
})
|
|
@@ -5450,7 +5450,7 @@ function ConnectionStateBadge({ state, failureCount }) {
|
|
|
5450
5450
|
return /* @__PURE__ */ jsxs("span", {
|
|
5451
5451
|
className: twMerge("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", stateStyles[state] ?? "bg-gray-100 text-gray-600"),
|
|
5452
5452
|
children: [state, failureCount > 0 && /* @__PURE__ */ jsxs("span", {
|
|
5453
|
-
className: "text-
|
|
5453
|
+
className: "text-xs opacity-75",
|
|
5454
5454
|
children: [
|
|
5455
5455
|
"(",
|
|
5456
5456
|
failureCount,
|
|
@@ -5635,7 +5635,7 @@ function MailboxTable({ title, mailboxType, operations, sort, onSort, collapsed,
|
|
|
5635
5635
|
")"
|
|
5636
5636
|
]
|
|
5637
5637
|
}), operations.length > 0 && /* @__PURE__ */ jsxs("button", {
|
|
5638
|
-
className: "flex items-center gap-1 rounded bg-gray-100 px-2 py-1 text-xs text-gray-700 hover:bg-gray-200",
|
|
5638
|
+
className: "flex items-center gap-1 rounded-sm bg-gray-100 px-2 py-1 text-xs text-gray-700 hover:bg-gray-200",
|
|
5639
5639
|
onClick: () => void handleCopyAll(),
|
|
5640
5640
|
type: "button",
|
|
5641
5641
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -5679,7 +5679,7 @@ function MailboxTable({ title, mailboxType, operations, sort, onSort, collapsed,
|
|
|
5679
5679
|
/* @__PURE__ */ jsx("td", {
|
|
5680
5680
|
className: "px-3 py-2 text-xs",
|
|
5681
5681
|
children: /* @__PURE__ */ jsx("button", {
|
|
5682
|
-
className: "flex items-center gap-1 rounded bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5682
|
+
className: "flex items-center gap-1 rounded-sm bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
5683
5683
|
onClick: () => setSelectedOperation(op),
|
|
5684
5684
|
type: "button",
|
|
5685
5685
|
children: "View"
|
|
@@ -5839,7 +5839,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5839
5839
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
5840
5840
|
className: "flex items-center gap-2",
|
|
5841
5841
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
5842
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-2 py-1 text-sm text-gray-700 hover:bg-gray-100",
|
|
5842
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-2 py-1 text-sm text-gray-700 hover:bg-gray-100",
|
|
5843
5843
|
onClick: onBack,
|
|
5844
5844
|
type: "button",
|
|
5845
5845
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -5852,7 +5852,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5852
5852
|
children: ["Channel: ", remoteName]
|
|
5853
5853
|
})]
|
|
5854
5854
|
}), onRefresh && /* @__PURE__ */ jsxs("button", {
|
|
5855
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5855
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5856
5856
|
onClick: onRefresh,
|
|
5857
5857
|
type: "button",
|
|
5858
5858
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -5862,7 +5862,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5862
5862
|
})]
|
|
5863
5863
|
}),
|
|
5864
5864
|
connectionState && /* @__PURE__ */ jsxs("div", {
|
|
5865
|
-
className: "rounded border border-gray-200 bg-white p-4",
|
|
5865
|
+
className: "rounded-sm border border-gray-200 bg-white p-4",
|
|
5866
5866
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
5867
5867
|
className: "mb-3 text-sm font-semibold text-gray-900",
|
|
5868
5868
|
children: "Connection State"
|
|
@@ -5899,7 +5899,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5899
5899
|
})]
|
|
5900
5900
|
}),
|
|
5901
5901
|
pollerControls && /* @__PURE__ */ jsxs("div", {
|
|
5902
|
-
className: "rounded border border-gray-200 bg-white p-4",
|
|
5902
|
+
className: "rounded-sm border border-gray-200 bg-white p-4",
|
|
5903
5903
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
5904
5904
|
className: "mb-3 text-sm font-semibold text-gray-900",
|
|
5905
5905
|
children: "Poller"
|
|
@@ -5926,7 +5926,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5926
5926
|
children: "Interval:"
|
|
5927
5927
|
}),
|
|
5928
5928
|
/* @__PURE__ */ jsx("input", {
|
|
5929
|
-
className: "w-20 rounded border border-gray-300 px-2 py-1 text-sm",
|
|
5929
|
+
className: "w-20 rounded-sm border border-gray-300 px-2 py-1 text-sm",
|
|
5930
5930
|
id: "poll-interval",
|
|
5931
5931
|
min: 100,
|
|
5932
5932
|
onChange: (e) => setIntervalMs(Number(e.target.value)),
|
|
@@ -5941,7 +5941,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5941
5941
|
children: "ms"
|
|
5942
5942
|
}),
|
|
5943
5943
|
/* @__PURE__ */ jsx("button", {
|
|
5944
|
-
className: "ml-1 rounded border border-gray-300 bg-white px-2 py-1 text-sm text-gray-700 hover:bg-gray-100",
|
|
5944
|
+
className: "ml-1 rounded-sm border border-gray-300 bg-white px-2 py-1 text-sm text-gray-700 hover:bg-gray-100",
|
|
5945
5945
|
onClick: handleApplyInterval,
|
|
5946
5946
|
type: "button",
|
|
5947
5947
|
children: "Apply"
|
|
@@ -5951,17 +5951,17 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5951
5951
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5952
5952
|
className: "flex gap-2",
|
|
5953
5953
|
children: [pollerState.isPaused ? /* @__PURE__ */ jsx("button", {
|
|
5954
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5954
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5955
5955
|
onClick: handleResume,
|
|
5956
5956
|
type: "button",
|
|
5957
5957
|
children: "Resume"
|
|
5958
5958
|
}) : /* @__PURE__ */ jsx("button", {
|
|
5959
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5959
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
5960
5960
|
onClick: handlePause,
|
|
5961
5961
|
type: "button",
|
|
5962
5962
|
children: "Pause"
|
|
5963
5963
|
}), /* @__PURE__ */ jsx("button", {
|
|
5964
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5964
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
5965
5965
|
disabled: !pollerState.isPaused,
|
|
5966
5966
|
onClick: handlePollNow,
|
|
5967
5967
|
type: "button",
|
|
@@ -5971,7 +5971,7 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
5971
5971
|
})]
|
|
5972
5972
|
}),
|
|
5973
5973
|
/* @__PURE__ */ jsxs("div", {
|
|
5974
|
-
className: "rounded border border-gray-200 bg-white p-4",
|
|
5974
|
+
className: "rounded-sm border border-gray-200 bg-white p-4",
|
|
5975
5975
|
children: [/* @__PURE__ */ jsx("h3", {
|
|
5976
5976
|
className: "mb-3 text-sm font-semibold text-gray-900",
|
|
5977
5977
|
children: "Mailbox Processing"
|
|
@@ -6001,17 +6001,17 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
6001
6001
|
}), /* @__PURE__ */ jsxs("div", {
|
|
6002
6002
|
className: "flex gap-2",
|
|
6003
6003
|
children: [mailboxStates.inbox.isPaused ? /* @__PURE__ */ jsx("button", {
|
|
6004
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6004
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6005
6005
|
onClick: () => handleMailboxResume("inbox"),
|
|
6006
6006
|
type: "button",
|
|
6007
6007
|
children: "Resume"
|
|
6008
6008
|
}) : /* @__PURE__ */ jsx("button", {
|
|
6009
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6009
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6010
6010
|
onClick: () => handleMailboxPause("inbox"),
|
|
6011
6011
|
type: "button",
|
|
6012
6012
|
children: "Pause"
|
|
6013
6013
|
}), /* @__PURE__ */ jsx("button", {
|
|
6014
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
6014
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
6015
6015
|
disabled: !mailboxStates.inbox.isPaused,
|
|
6016
6016
|
onClick: () => handleMailboxFlush("inbox"),
|
|
6017
6017
|
type: "button",
|
|
@@ -6042,17 +6042,17 @@ function ChannelInspector({ remoteName, channel, onBack, onRefresh, connectionSt
|
|
|
6042
6042
|
}), /* @__PURE__ */ jsxs("div", {
|
|
6043
6043
|
className: "flex gap-2",
|
|
6044
6044
|
children: [mailboxStates.outbox.isPaused ? /* @__PURE__ */ jsx("button", {
|
|
6045
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6045
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6046
6046
|
onClick: () => handleMailboxResume("outbox"),
|
|
6047
6047
|
type: "button",
|
|
6048
6048
|
children: "Resume"
|
|
6049
6049
|
}) : /* @__PURE__ */ jsx("button", {
|
|
6050
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6050
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100",
|
|
6051
6051
|
onClick: () => handleMailboxPause("outbox"),
|
|
6052
6052
|
type: "button",
|
|
6053
6053
|
children: "Pause"
|
|
6054
6054
|
}), /* @__PURE__ */ jsx("button", {
|
|
6055
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
6055
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
6056
6056
|
disabled: !mailboxStates.outbox.isPaused,
|
|
6057
6057
|
onClick: () => handleMailboxFlush("outbox"),
|
|
6058
6058
|
type: "button",
|
|
@@ -6264,7 +6264,7 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6264
6264
|
children: [addRemoteManual && /* @__PURE__ */ jsxs("div", {
|
|
6265
6265
|
className: "flex items-center gap-1",
|
|
6266
6266
|
children: [/* @__PURE__ */ jsx("input", {
|
|
6267
|
-
className: "w-[260px] rounded border border-gray-300 px-2 py-1.5 text-sm text-gray-900 placeholder:text-gray-400",
|
|
6267
|
+
className: "w-[260px] rounded-sm border border-gray-300 px-2 py-1.5 text-sm text-gray-900 placeholder:text-gray-400",
|
|
6268
6268
|
disabled: adding,
|
|
6269
6269
|
onChange: (e) => setManualUrl(e.target.value),
|
|
6270
6270
|
onKeyDown: (e) => {
|
|
@@ -6274,7 +6274,7 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6274
6274
|
type: "text",
|
|
6275
6275
|
value: manualUrl
|
|
6276
6276
|
}), /* @__PURE__ */ jsx("button", {
|
|
6277
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
6277
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
6278
6278
|
disabled: adding || !manualUrl.trim(),
|
|
6279
6279
|
onClick: () => void handleAddManual(),
|
|
6280
6280
|
title: "Register a remote drive in manual poll mode (no background polling)",
|
|
@@ -6282,7 +6282,7 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6282
6282
|
children: "Add (manual)"
|
|
6283
6283
|
})]
|
|
6284
6284
|
}), /* @__PURE__ */ jsxs("button", {
|
|
6285
|
-
className: "flex items-center gap-1 rounded border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
6285
|
+
className: "flex items-center gap-1 rounded-sm border border-gray-300 bg-white px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 disabled:opacity-50",
|
|
6286
6286
|
disabled: loading,
|
|
6287
6287
|
onClick: () => void handleRefresh(),
|
|
6288
6288
|
type: "button",
|
|
@@ -6294,7 +6294,7 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6294
6294
|
})]
|
|
6295
6295
|
}),
|
|
6296
6296
|
addError && /* @__PURE__ */ jsx("div", {
|
|
6297
|
-
className: "shrink-0 rounded border border-red-300 bg-red-50 px-3 py-1.5 text-xs text-red-700",
|
|
6297
|
+
className: "shrink-0 rounded-sm border border-red-300 bg-red-50 px-3 py-1.5 text-xs text-red-700",
|
|
6298
6298
|
children: addError
|
|
6299
6299
|
}),
|
|
6300
6300
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -6379,7 +6379,7 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6379
6379
|
/* @__PURE__ */ jsx("td", {
|
|
6380
6380
|
className: "border-l border-gray-300 px-3 py-2",
|
|
6381
6381
|
children: /* @__PURE__ */ jsxs("button", {
|
|
6382
|
-
className: "flex items-center gap-1 rounded bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
6382
|
+
className: "flex items-center gap-1 rounded-sm bg-blue-50 px-2 py-1 text-xs text-blue-700 hover:bg-blue-100",
|
|
6383
6383
|
onClick: () => handleViewChannel(remote),
|
|
6384
6384
|
type: "button",
|
|
6385
6385
|
children: ["View", /* @__PURE__ */ jsx(Icon, {
|
|
@@ -6393,13 +6393,13 @@ function RemotesInspector({ getRemotes, removeRemote, addRemoteManual, triggerPu
|
|
|
6393
6393
|
children: /* @__PURE__ */ jsxs("div", {
|
|
6394
6394
|
className: "flex items-center gap-1",
|
|
6395
6395
|
children: [triggerPull && /* @__PURE__ */ jsx("button", {
|
|
6396
|
-
className: "rounded bg-gray-100 px-2 py-1 text-xs text-gray-700 hover:bg-gray-200",
|
|
6396
|
+
className: "rounded-sm bg-gray-100 px-2 py-1 text-xs text-gray-700 hover:bg-gray-200",
|
|
6397
6397
|
onClick: () => handlePull(remote),
|
|
6398
6398
|
title: "Trigger a single pull cycle for this remote",
|
|
6399
6399
|
type: "button",
|
|
6400
6400
|
children: "Pull"
|
|
6401
6401
|
}), removeRemote && /* @__PURE__ */ jsx("button", {
|
|
6402
|
-
className: "rounded bg-red-50 px-2 py-1 text-xs text-red-700 hover:bg-red-100",
|
|
6402
|
+
className: "rounded-sm bg-red-50 px-2 py-1 text-xs text-red-700 hover:bg-red-100",
|
|
6403
6403
|
onClick: () => void handleRemove(remote),
|
|
6404
6404
|
type: "button",
|
|
6405
6405
|
children: "Remove"
|
|
@@ -6438,7 +6438,7 @@ function InspectorModal({ open, onOpenChange, modalProps, containerProps, dbExpl
|
|
|
6438
6438
|
open,
|
|
6439
6439
|
children: /* @__PURE__ */ jsxs("div", {
|
|
6440
6440
|
...containerProps,
|
|
6441
|
-
className: twMerge("flex
|
|
6441
|
+
className: twMerge("flex size-full flex-col", containerProps?.className),
|
|
6442
6442
|
children: [/* @__PURE__ */ jsx("div", {
|
|
6443
6443
|
className: "flex shrink-0 items-center justify-end px-3 pt-3",
|
|
6444
6444
|
children: /* @__PURE__ */ jsx("button", {
|
|
@@ -6825,10 +6825,10 @@ function Drive(props) {
|
|
|
6825
6825
|
children: [
|
|
6826
6826
|
icon,
|
|
6827
6827
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
6828
|
-
className: "block text-sm font-medium
|
|
6828
|
+
className: "block text-sm/4.5 font-medium",
|
|
6829
6829
|
children: capitalCase(drive.header.name)
|
|
6830
6830
|
}), /* @__PURE__ */ jsxs("div", {
|
|
6831
|
-
className: "flex items-baseline gap-x-2 leading-
|
|
6831
|
+
className: "flex items-baseline gap-x-2 leading-4.5",
|
|
6832
6832
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
6833
6833
|
className: "text-sm text-gray-600",
|
|
6834
6834
|
children: [capitalCase(getDriveSharingType(drive)), " App"]
|
|
@@ -6836,7 +6836,7 @@ function Drive(props) {
|
|
|
6836
6836
|
href: "https://www.powerhouse.inc/",
|
|
6837
6837
|
target: "_blank",
|
|
6838
6838
|
rel: "noopener noreferrer",
|
|
6839
|
-
className: "group flex items-center gap-x-2 text-sm text-slate-500 transition-colors hover:text-
|
|
6839
|
+
className: "group flex items-center gap-x-2 text-sm text-slate-500 transition-colors hover:text-purple-700",
|
|
6840
6840
|
children: ["By Powerhouse", /* @__PURE__ */ jsx("svg", {
|
|
6841
6841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6842
6842
|
viewBox: "0 0 12 12",
|
|
@@ -6902,7 +6902,7 @@ function DefaultEditorSelect(props) {
|
|
|
6902
6902
|
className: "mb-4 font-semibold text-gray-900",
|
|
6903
6903
|
children: "Default Editor Selection"
|
|
6904
6904
|
}), /* @__PURE__ */ jsx(SelectFieldRaw, {
|
|
6905
|
-
className: twMerge("
|
|
6905
|
+
className: twMerge("max-w-fit min-w-36", className),
|
|
6906
6906
|
name: "default-editor",
|
|
6907
6907
|
required: true,
|
|
6908
6908
|
value: documentModelEditor,
|
|
@@ -7003,7 +7003,7 @@ const VersionPicker = (props) => {
|
|
|
7003
7003
|
},
|
|
7004
7004
|
children: [/* @__PURE__ */ jsxs(PopoverTrigger, {
|
|
7005
7005
|
disabled: disabled || !hasAnyPickable,
|
|
7006
|
-
className: cn("flex items-center justify-between gap-2 rounded-md border border-gray-300 bg-white px-2.5 py-1 text-xs font-medium text-gray-800 transition-colors", "hover:bg-gray-50 focus:
|
|
7006
|
+
className: cn("flex items-center justify-between gap-2 rounded-md border border-gray-300 bg-white px-2.5 py-1 text-xs font-medium text-gray-800 transition-colors", "hover:bg-gray-50 focus:ring-2 focus:ring-gray-900/20 focus:outline-none", "disabled:cursor-not-allowed disabled:opacity-60", className),
|
|
7007
7007
|
"data-version-picker-trigger": true,
|
|
7008
7008
|
children: [/* @__PURE__ */ jsx("span", {
|
|
7009
7009
|
className: "truncate",
|
|
@@ -7026,7 +7026,7 @@ const VersionPicker = (props) => {
|
|
|
7026
7026
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
7027
7027
|
name: "Search",
|
|
7028
7028
|
size: 14,
|
|
7029
|
-
className: "absolute
|
|
7029
|
+
className: "absolute top-1/2 left-2 -translate-y-1/2 text-gray-400"
|
|
7030
7030
|
}), /* @__PURE__ */ jsx(Input, {
|
|
7031
7031
|
value: query,
|
|
7032
7032
|
onChange: (e) => setQuery(e.target.value),
|
|
@@ -7044,7 +7044,7 @@ const VersionPicker = (props) => {
|
|
|
7044
7044
|
filteredTags.length > 0 && /* @__PURE__ */ jsxs("div", {
|
|
7045
7045
|
className: "pb-1",
|
|
7046
7046
|
children: [/* @__PURE__ */ jsx("p", {
|
|
7047
|
-
className: "px-3 py-1 text-
|
|
7047
|
+
className: "px-3 py-1 text-xs font-semibold tracking-wide text-gray-500 uppercase",
|
|
7048
7048
|
children: "Tags"
|
|
7049
7049
|
}), filteredTags.map(([tag, ver]) => {
|
|
7050
7050
|
return /* @__PURE__ */ jsxs("button", {
|
|
@@ -7069,7 +7069,7 @@ const VersionPicker = (props) => {
|
|
|
7069
7069
|
})]
|
|
7070
7070
|
}),
|
|
7071
7071
|
filteredVersions.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("p", {
|
|
7072
|
-
className: "px-3 py-1 text-
|
|
7072
|
+
className: "px-3 py-1 text-xs font-semibold tracking-wide text-gray-500 uppercase",
|
|
7073
7073
|
children: "Versions"
|
|
7074
7074
|
}), filteredVersions.map((ver) => {
|
|
7075
7075
|
return /* @__PURE__ */ jsx("button", {
|
|
@@ -7130,7 +7130,7 @@ function PackageResultCard(props) {
|
|
|
7130
7130
|
const isSelecting = selectingValue === installSpec;
|
|
7131
7131
|
const isDisabled = option.disabled === true;
|
|
7132
7132
|
return /* @__PURE__ */ jsxs("div", {
|
|
7133
|
-
className: "flex items-start justify-between gap-3 rounded-md
|
|
7133
|
+
className: "flex items-start justify-between gap-3 rounded-md p-2 hover:bg-gray-50",
|
|
7134
7134
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
7135
7135
|
className: "min-w-0 flex-1",
|
|
7136
7136
|
children: [
|
|
@@ -7276,7 +7276,7 @@ const PackageManagerListItem = (props) => {
|
|
|
7276
7276
|
}
|
|
7277
7277
|
const dropdownItems = getDropdownItems();
|
|
7278
7278
|
return /* @__PURE__ */ jsxs("li", {
|
|
7279
|
-
className: twMerge("relative flex flex-col items-start rounded-md border border-gray-200 p-3 text-sm
|
|
7279
|
+
className: twMerge("relative flex flex-col items-start rounded-md border border-gray-200 p-3 text-sm/5 shadow-sm", className),
|
|
7280
7280
|
children: [
|
|
7281
7281
|
/* @__PURE__ */ jsxs("div", {
|
|
7282
7282
|
className: "flex flex-wrap items-center gap-2 pr-8",
|
|
@@ -7331,7 +7331,7 @@ const PackageManagerListItem = (props) => {
|
|
|
7331
7331
|
onOpenChange: setIsDropdownMenuOpen,
|
|
7332
7332
|
open: isDropdownMenuOpen,
|
|
7333
7333
|
children: /* @__PURE__ */ jsx("button", {
|
|
7334
|
-
className: "group absolute
|
|
7334
|
+
className: "group absolute top-3 right-3",
|
|
7335
7335
|
onClick: (e) => {
|
|
7336
7336
|
e.stopPropagation();
|
|
7337
7337
|
setIsDropdownMenuOpen(true);
|
|
@@ -7485,9 +7485,9 @@ const PackageSection = ({ sectionId, title, count, isEmpty, emptyText, children
|
|
|
7485
7485
|
};
|
|
7486
7486
|
const PackageSubSection = ({ title, count, children }) => {
|
|
7487
7487
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("h4", {
|
|
7488
|
-
className: "mb-2 flex items-baseline gap-2 text-xs font-semibold
|
|
7488
|
+
className: "mb-2 flex items-baseline gap-2 text-xs font-semibold tracking-wide text-gray-500 uppercase",
|
|
7489
7489
|
children: [/* @__PURE__ */ jsx("span", { children: title }), /* @__PURE__ */ jsxs("span", {
|
|
7490
|
-
className: "font-medium
|
|
7490
|
+
className: "font-medium tracking-normal text-gray-400 normal-case",
|
|
7491
7491
|
children: [
|
|
7492
7492
|
"(",
|
|
7493
7493
|
count,
|
|
@@ -7601,7 +7601,7 @@ const ClearStorageSettingsRow = (props) => {
|
|
|
7601
7601
|
return /* @__PURE__ */ jsx(SettingsRow, {
|
|
7602
7602
|
...restProps,
|
|
7603
7603
|
children: /* @__PURE__ */ jsx(PowerhouseButton, {
|
|
7604
|
-
className: "h-auto min-h-9 rounded border border-solid border-gray-300 bg-white px-3 py-0 text-sm text-red-800 hover:border-gray-500 hover:bg-white hover:text-red-900",
|
|
7604
|
+
className: "h-auto min-h-9 rounded-sm border border-solid border-gray-300 bg-white px-3 py-0 text-sm text-red-800 hover:border-gray-500 hover:bg-white hover:text-red-900",
|
|
7605
7605
|
icon: /* @__PURE__ */ jsx(Icon, {
|
|
7606
7606
|
name: "Trash",
|
|
7607
7607
|
size: 18
|
|
@@ -7716,7 +7716,7 @@ function ConnectUpgradeDriveModal(props) {
|
|
|
7716
7716
|
function Branch(props) {
|
|
7717
7717
|
const { branch = "main" } = props;
|
|
7718
7718
|
return /* @__PURE__ */ jsxs("button", {
|
|
7719
|
-
className: "flex h-8 w-fit items-center gap-1 rounded-lg bg-slate-50 pl-1
|
|
7719
|
+
className: "flex h-8 w-fit items-center gap-1 rounded-lg bg-slate-50 pr-2 pl-1 text-xs text-stone-300",
|
|
7720
7720
|
children: [
|
|
7721
7721
|
/* @__PURE__ */ jsx(Icon, { name: "Branch" }),
|
|
7722
7722
|
/* @__PURE__ */ jsx("span", { children: "BRANCH" }),
|
|
@@ -7742,7 +7742,7 @@ function DocId(props) {
|
|
|
7742
7742
|
};
|
|
7743
7743
|
}
|
|
7744
7744
|
return /* @__PURE__ */ jsxs("button", {
|
|
7745
|
-
className: "flex h-8 w-fit items-center gap-1 rounded-lg bg-slate-50 pl-1
|
|
7745
|
+
className: "flex h-8 w-fit items-center gap-1 rounded-lg bg-slate-50 pr-2 pl-1 text-xs text-stone-300",
|
|
7746
7746
|
onClick: handleCopy(docId),
|
|
7747
7747
|
children: [
|
|
7748
7748
|
/* @__PURE__ */ jsx(Icon, { name: "Link" }),
|
|
@@ -7804,7 +7804,7 @@ function Header(props) {
|
|
|
7804
7804
|
className: "flex items-center gap-3",
|
|
7805
7805
|
children: [/* @__PURE__ */ jsx("button", {
|
|
7806
7806
|
name: "close-revision-history",
|
|
7807
|
-
className: "
|
|
7807
|
+
className: "rounded-lg bg-gray-50 p-1 text-stone-300 shadow-button",
|
|
7808
7808
|
onClick: onClose,
|
|
7809
7809
|
children: /* @__PURE__ */ jsx(Icon, { name: "VariantArrowLeft" })
|
|
7810
7810
|
}), /* @__PURE__ */ jsx("h1", {
|
|
@@ -7929,7 +7929,7 @@ function CodePopover(props) {
|
|
|
7929
7929
|
bottom: -1e4,
|
|
7930
7930
|
left: 24
|
|
7931
7931
|
},
|
|
7932
|
-
className: "
|
|
7932
|
+
className: "z-50 rounded-lg border border-gray-200 bg-white p-2 text-xs shadow-tooltip outline-none",
|
|
7933
7933
|
children: content
|
|
7934
7934
|
}) })
|
|
7935
7935
|
]
|
|
@@ -8400,7 +8400,7 @@ const SidebarItem = function SidebarItem(props) {
|
|
|
8400
8400
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8401
8401
|
className: twMerge("group/sidebar-item relative flex cursor-pointer flex-col items-center justify-center text-center text-sm text-black", containerClassName, active && "bg-white", onClick && "cursor-pointer"),
|
|
8402
8402
|
onClick,
|
|
8403
|
-
children: [active ? /* @__PURE__ */ jsx("div", { className: "absolute
|
|
8403
|
+
children: [active ? /* @__PURE__ */ jsx("div", { className: "absolute top-1/2 left-0 h-10 w-1 -translate-y-1/2 rounded-r-sm bg-violet-400" }) : /* @__PURE__ */ jsx("div", { className: "absolute top-1/2 left-0 h-6 w-1 -translate-y-1/2 rounded-r-sm bg-zinc-300 opacity-0 transition-opacity group-hover/sidebar-item:opacity-100" }), /* @__PURE__ */ jsx("div", {
|
|
8404
8404
|
className: "mx-auto py-4",
|
|
8405
8405
|
children: icon || /* @__PURE__ */ jsx("div", {
|
|
8406
8406
|
className: "flex size-8 items-center justify-center rounded-lg bg-black",
|
|
@@ -8474,7 +8474,7 @@ const SidebarLogin = ({ onLogin }) => {
|
|
|
8474
8474
|
return /* @__PURE__ */ jsx(AccountPopover, {
|
|
8475
8475
|
content: /* @__PURE__ */ jsx(AccountPopoverLogin, { onLogin }),
|
|
8476
8476
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8477
|
-
className: twMerge("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold
|
|
8477
|
+
className: twMerge("group/sidebar-footer flex w-full items-baseline justify-start text-sm/10 font-semibold text-gray-600", onLogin ? "cursor-pointer" : "cursor-wait"),
|
|
8478
8478
|
children: [/* @__PURE__ */ jsx("img", {
|
|
8479
8479
|
width: 42,
|
|
8480
8480
|
height: 42,
|
|
@@ -8640,7 +8640,7 @@ const ConnectSidebarFooter = ({ address, ensName, avatarUrl, className, onLogin,
|
|
|
8640
8640
|
className: "text-gray-600",
|
|
8641
8641
|
name: "Settings"
|
|
8642
8642
|
}), /* @__PURE__ */ jsx("span", {
|
|
8643
|
-
className: "hidden text-sm font-semibold
|
|
8643
|
+
className: "hidden text-sm/6 font-semibold text-gray-800",
|
|
8644
8644
|
children: "Settings"
|
|
8645
8645
|
})]
|
|
8646
8646
|
})
|