@firecms/core 3.0.0-canary.144 → 3.0.0-canary.146
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/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +2 -2
- package/dist/components/common/useDataSourceEntityCollectionTableController.d.ts +1 -1
- package/dist/core/EntityEditView.d.ts +1 -1
- package/dist/core/FireCMS.d.ts +1 -1
- package/dist/hooks/data/delete.d.ts +4 -4
- package/dist/hooks/data/save.d.ts +3 -3
- package/dist/hooks/data/useCollectionFetch.d.ts +1 -1
- package/dist/hooks/data/useEntityFetch.d.ts +3 -3
- package/dist/hooks/useAuthController.d.ts +1 -1
- package/dist/hooks/useBuildNavigationController.d.ts +3 -3
- package/dist/hooks/useFireCMSContext.d.ts +1 -1
- package/dist/hooks/useResolvedNavigationFrom.d.ts +3 -3
- package/dist/hooks/useValidateAuthenticator.d.ts +3 -3
- package/dist/index.es.js +85 -78
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +85 -78
- package/dist/index.umd.js.map +1 -1
- package/dist/types/auth.d.ts +6 -10
- package/dist/types/collections.d.ts +12 -12
- package/dist/types/datasource.d.ts +0 -4
- package/dist/types/entity_actions.d.ts +4 -4
- package/dist/types/entity_callbacks.d.ts +16 -16
- package/dist/types/export_import.d.ts +4 -4
- package/dist/types/firecms.d.ts +2 -2
- package/dist/types/firecms_context.d.ts +1 -1
- package/dist/types/permissions.d.ts +4 -4
- package/dist/types/plugins.d.ts +8 -8
- package/dist/types/user.d.ts +1 -0
- package/dist/util/builders.d.ts +2 -2
- package/dist/util/icons.d.ts +3 -1
- package/dist/util/permissions.d.ts +4 -4
- package/package.json +5 -5
- package/src/app/Scaffold.tsx +2 -2
- package/src/components/ArrayContainer.tsx +1 -1
- package/src/components/CircularProgressCenter.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +2 -2
- package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +7 -8
- package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +2 -2
- package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +4 -4
- package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +3 -3
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +3 -3
- package/src/components/EntityPreview.tsx +7 -5
- package/src/components/EntityView.tsx +4 -4
- package/src/components/HomePage/FavouritesView.tsx +1 -1
- package/src/components/HomePage/NavigationCard.tsx +1 -1
- package/src/components/HomePage/NavigationCardBinding.tsx +1 -1
- package/src/components/HomePage/NavigationGroup.tsx +1 -1
- package/src/components/PropertyConfigBadge.tsx +1 -1
- package/src/components/PropertyIdCopyTooltip.tsx +1 -1
- package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +2 -2
- package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +1 -1
- package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +1 -1
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +8 -8
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/components/common/useDataSourceEntityCollectionTableController.tsx +2 -2
- package/src/core/DefaultDrawer.tsx +2 -2
- package/src/core/DrawerNavigationItem.tsx +3 -3
- package/src/core/EntityEditView.tsx +4 -4
- package/src/core/FireCMS.tsx +1 -1
- package/src/core/SideDialogs.tsx +1 -1
- package/src/core/field_configs.tsx +1 -1
- package/src/form/components/StorageItemPreview.tsx +2 -2
- package/src/form/field_bindings/MapFieldBinding.tsx +1 -1
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +3 -3
- package/src/hooks/data/delete.ts +4 -4
- package/src/hooks/data/save.ts +3 -3
- package/src/hooks/data/useCollectionFetch.tsx +2 -2
- package/src/hooks/data/useEntityFetch.tsx +5 -5
- package/src/hooks/useAuthController.tsx +1 -1
- package/src/hooks/useBuildNavigationController.tsx +4 -6
- package/src/hooks/useFireCMSContext.tsx +5 -5
- package/src/hooks/useResolvedNavigationFrom.tsx +5 -5
- package/src/hooks/useValidateAuthenticator.tsx +3 -3
- package/src/preview/components/EmptyValue.tsx +1 -1
- package/src/preview/components/ImagePreview.tsx +2 -2
- package/src/preview/components/UrlComponentPreview.tsx +1 -1
- package/src/types/auth.tsx +6 -12
- package/src/types/collections.ts +12 -12
- package/src/types/datasource.ts +0 -5
- package/src/types/entity_actions.tsx +4 -4
- package/src/types/entity_callbacks.ts +18 -18
- package/src/types/export_import.ts +4 -4
- package/src/types/firecms.tsx +2 -2
- package/src/types/firecms_context.tsx +1 -1
- package/src/types/permissions.ts +5 -5
- package/src/types/plugins.tsx +8 -8
- package/src/types/user.ts +2 -0
- package/src/util/builders.ts +6 -6
- package/src/util/icons.tsx +12 -8
- package/src/util/permissions.ts +8 -8
package/dist/index.umd.js
CHANGED
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
ui.Typography,
|
|
618
618
|
{
|
|
619
619
|
variant: "caption",
|
|
620
|
-
className: "min-w-20 text-
|
|
620
|
+
className: "min-w-20 text-surface-accent-400",
|
|
621
621
|
color: "disabled",
|
|
622
622
|
children: copied ? "Copied" : "Property ID"
|
|
623
623
|
}
|
|
@@ -2794,22 +2794,23 @@
|
|
|
2794
2794
|
}
|
|
2795
2795
|
return Math.abs(hash2);
|
|
2796
2796
|
}
|
|
2797
|
-
function getIcon(iconKey, className) {
|
|
2797
|
+
function getIcon(iconKey, className, color) {
|
|
2798
2798
|
if (!iconKey) return void 0;
|
|
2799
2799
|
iconKey = slugify(iconKey);
|
|
2800
2800
|
if (!(iconKey in iconKeysMap)) {
|
|
2801
2801
|
return void 0;
|
|
2802
2802
|
}
|
|
2803
|
-
return iconKey in iconKeysMap ? /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { iconKey, size: "medium", className }) : void 0;
|
|
2803
|
+
return iconKey in iconKeysMap ? /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { iconKey, size: "medium", className, color }) : void 0;
|
|
2804
2804
|
}
|
|
2805
2805
|
const IconForView = React.memo(
|
|
2806
2806
|
function IconForView2({
|
|
2807
2807
|
collectionOrView,
|
|
2808
2808
|
className,
|
|
2809
|
+
color,
|
|
2809
2810
|
size = "medium"
|
|
2810
2811
|
}) {
|
|
2811
2812
|
if (!collectionOrView) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
2812
|
-
const icon = getIcon(collectionOrView.icon, className);
|
|
2813
|
+
const icon = getIcon(collectionOrView.icon, className, color);
|
|
2813
2814
|
if (collectionOrView?.icon && icon)
|
|
2814
2815
|
return icon;
|
|
2815
2816
|
let slugName = slugify(("singularName" in collectionOrView ? collectionOrView.singularName : void 0) ?? collectionOrView.name);
|
|
@@ -2824,10 +2825,10 @@
|
|
|
2824
2825
|
const iconsCount = ui.coolIconKeys.length;
|
|
2825
2826
|
if (!key)
|
|
2826
2827
|
key = ui.coolIconKeys[hashString(collectionOrView.path) % iconsCount];
|
|
2827
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { iconKey: key, size, className });
|
|
2828
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Icon, { iconKey: key, size, className, color });
|
|
2828
2829
|
},
|
|
2829
2830
|
(prevProps, nextProps) => {
|
|
2830
|
-
return equal(prevProps.collectionOrView?.icon, nextProps.collectionOrView?.icon);
|
|
2831
|
+
return equal(prevProps.collectionOrView?.icon, nextProps.collectionOrView?.icon) && equal(prevProps.color, nextProps.color);
|
|
2831
2832
|
}
|
|
2832
2833
|
);
|
|
2833
2834
|
const iconKeysMap = ui.iconKeys.reduce((acc, key) => {
|
|
@@ -4057,11 +4058,11 @@
|
|
|
4057
4058
|
const properties = resolvedCollection.properties;
|
|
4058
4059
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full " + className, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full mb-4", children: [
|
|
4059
4060
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls(ui.defaultBorderMixin, "flex justify-between py-2 border-b last:border-b-0"), children: [
|
|
4060
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center w-1/4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-2 text-sm text-
|
|
4061
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center w-1/4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-2 text-sm text-surface-600", children: "Id" }) }),
|
|
4061
4062
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4062
4063
|
"div",
|
|
4063
4064
|
{
|
|
4064
|
-
className: "flex-grow p-2 ml-2 w-3/4 text-
|
|
4065
|
+
className: "flex-grow p-2 ml-2 w-3/4 text-surface-900 dark:text-white min-h-[56px] flex items-center",
|
|
4065
4066
|
children: [
|
|
4066
4067
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-grow mr-2", children: entity.id }),
|
|
4067
4068
|
customizationController?.entityLinkBuilder && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4089,11 +4090,11 @@
|
|
|
4089
4090
|
{
|
|
4090
4091
|
className: ui.cls(ui.defaultBorderMixin, "flex justify-between py-2 border-b last:border-b-0"),
|
|
4091
4092
|
children: [
|
|
4092
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center w-1/4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-2 text-sm text-
|
|
4093
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center w-1/4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-2 text-sm text-surface-600", children: property.name }) }),
|
|
4093
4094
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4094
4095
|
"div",
|
|
4095
4096
|
{
|
|
4096
|
-
className: "flex-grow p-2 ml-2 w-3/4 text-
|
|
4097
|
+
className: "flex-grow p-2 ml-2 w-3/4 text-surface-900 dark:text-white min-h-[56px] flex items-center",
|
|
4097
4098
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4098
4099
|
PropertyPreview,
|
|
4099
4100
|
{
|
|
@@ -4964,7 +4965,7 @@
|
|
|
4964
4965
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4965
4966
|
ui.Typography,
|
|
4966
4967
|
{
|
|
4967
|
-
className: "text-
|
|
4968
|
+
className: "text-surface-400 dark:text-surface-600",
|
|
4968
4969
|
variant: "body2",
|
|
4969
4970
|
align: "center",
|
|
4970
4971
|
children: helpText
|
|
@@ -4986,7 +4987,7 @@
|
|
|
4986
4987
|
color: "inherit",
|
|
4987
4988
|
size: "small",
|
|
4988
4989
|
onClick: open,
|
|
4989
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-
|
|
4990
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" })
|
|
4990
4991
|
}
|
|
4991
4992
|
)
|
|
4992
4993
|
}
|
|
@@ -5058,7 +5059,7 @@
|
|
|
5058
5059
|
hover: disabled ? void 0 : hover,
|
|
5059
5060
|
size,
|
|
5060
5061
|
children: [
|
|
5061
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 mr-2 shrink-0", size === "smallest" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5062
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("flex w-10 h-10 ml-1 mr-2 shrink-0", size === "smallest" ? "my-0.5" : "m-2 self-start"), children: [
|
|
5062
5063
|
imageProperty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5063
5064
|
PropertyPreview,
|
|
5064
5065
|
{
|
|
@@ -5068,7 +5069,15 @@
|
|
|
5068
5069
|
value: getValueInPath(entity.values, imagePropertyKey)
|
|
5069
5070
|
}
|
|
5070
5071
|
),
|
|
5071
|
-
!imageProperty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5072
|
+
!imageProperty && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5073
|
+
IconForView,
|
|
5074
|
+
{
|
|
5075
|
+
collectionOrView: collection,
|
|
5076
|
+
color: "primary",
|
|
5077
|
+
size,
|
|
5078
|
+
className: "m-auto p-1"
|
|
5079
|
+
}
|
|
5080
|
+
)
|
|
5072
5081
|
] }),
|
|
5073
5082
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col grow-1 w-full max-w-full m-1", children: [
|
|
5074
5083
|
size !== "smallest" && includeId && (entity ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${size !== "medium" ? "block whitespace-nowrap overflow-hidden truncate" : ""}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5169,11 +5178,11 @@
|
|
|
5169
5178
|
tabindex: 0
|
|
5170
5179
|
},
|
|
5171
5180
|
className: ui.cls(
|
|
5172
|
-
"bg-white dark:bg-
|
|
5181
|
+
"bg-white dark:bg-surface-900",
|
|
5173
5182
|
"min-h-[42px]",
|
|
5174
5183
|
fullwidth ? "w-full" : "",
|
|
5175
5184
|
"items-center",
|
|
5176
|
-
hover ? "hover:bg-
|
|
5185
|
+
hover ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 group-hover:bg-surface-accent-50 dark:group-hover:bg-surface-800" : "",
|
|
5177
5186
|
size === "smallest" ? "p-1" : "px-2 py-1",
|
|
5178
5187
|
"flex border rounded-lg",
|
|
5179
5188
|
onClick ? "cursor-pointer" : "",
|
|
@@ -5307,22 +5316,20 @@
|
|
|
5307
5316
|
EntityPreviewContainer,
|
|
5308
5317
|
{
|
|
5309
5318
|
className: ui.cls(
|
|
5310
|
-
"px-
|
|
5319
|
+
"px-3 py-2 text-sm font-medium flex items-center",
|
|
5311
5320
|
multiselect ? "gap-4" : "gap-6",
|
|
5312
|
-
disabled ? "text-
|
|
5321
|
+
disabled ? "text-surface-accent-500" : "cursor-pointer text-text-secondary dark:text-text-secondary-dark hover:bg-surface-accent-50 dark:hover:bg-surface-800 group-hover:bg-surface-accent-50 dark:group-hover:bg-surface-800"
|
|
5313
5322
|
),
|
|
5314
5323
|
onClick: handleOpen,
|
|
5315
5324
|
size: "medium",
|
|
5316
5325
|
children: [
|
|
5317
5326
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5318
|
-
|
|
5327
|
+
ui.EditIcon,
|
|
5319
5328
|
{
|
|
5320
5329
|
size: "small",
|
|
5321
|
-
|
|
5322
|
-
className: "text-gray-300 dark:text-gray-600"
|
|
5330
|
+
className: "ml-2 mr-1 text-surface-300 dark:text-surface-600"
|
|
5323
5331
|
}
|
|
5324
5332
|
),
|
|
5325
|
-
"Edit ",
|
|
5326
5333
|
title
|
|
5327
5334
|
]
|
|
5328
5335
|
}
|
|
@@ -5803,10 +5810,10 @@
|
|
|
5803
5810
|
className: ui.cls(
|
|
5804
5811
|
"transition-colors duration-100 ease-in-out",
|
|
5805
5812
|
`flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`,
|
|
5806
|
-
onHover && !disabled ? "bg-
|
|
5807
|
-
saved ? "bg-
|
|
5813
|
+
onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "",
|
|
5814
|
+
saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "",
|
|
5808
5815
|
hideOverflow ? "overflow-hidden" : "",
|
|
5809
|
-
isSelected ? "bg-
|
|
5816
|
+
isSelected ? "bg-surface-50 dark:bg-surface-900" : "",
|
|
5810
5817
|
borderClass
|
|
5811
5818
|
),
|
|
5812
5819
|
ref,
|
|
@@ -5848,7 +5855,7 @@
|
|
|
5848
5855
|
)
|
|
5849
5856
|
] }),
|
|
5850
5857
|
actions,
|
|
5851
|
-
disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.RemoveCircleIcon, { size: "smallest", color: "disabled", className: "text-
|
|
5858
|
+
disabled && onHover && disabledTooltip && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1 right-1 text-xs", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: disabledTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(ui.RemoveCircleIcon, { size: "smallest", color: "disabled", className: "text-surface-500" }) }) })
|
|
5852
5859
|
]
|
|
5853
5860
|
}
|
|
5854
5861
|
);
|
|
@@ -6329,7 +6336,7 @@
|
|
|
6329
6336
|
"div",
|
|
6330
6337
|
{
|
|
6331
6338
|
className: ui.cls(
|
|
6332
|
-
"h-full flex items-center justify-center flex-col bg-
|
|
6339
|
+
"h-full flex items-center justify-center flex-col bg-surface-50 dark:bg-surface-900 bg-opacity-90 dark:bg-opacity-90 z-10",
|
|
6333
6340
|
frozen ? "sticky left-0" : ""
|
|
6334
6341
|
),
|
|
6335
6342
|
style: {
|
|
@@ -6460,7 +6467,7 @@
|
|
|
6460
6467
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6461
6468
|
"div",
|
|
6462
6469
|
{
|
|
6463
|
-
className: ui.cls(ui.defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-
|
|
6470
|
+
className: ui.cls(ui.defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-surface-50 dark:bg-surface-900 border-b flex flex-row justify-between items-center w-full"),
|
|
6464
6471
|
children: [
|
|
6465
6472
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 md:mr-4 mr-2", children: [
|
|
6466
6473
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden lg:block", children: title }),
|
|
@@ -6706,7 +6713,7 @@
|
|
|
6706
6713
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6707
6714
|
"div",
|
|
6708
6715
|
{
|
|
6709
|
-
className: "flex w-full h-screen max-h-full max-w-full bg-
|
|
6716
|
+
className: "flex w-full h-screen max-h-full max-w-full bg-surface-50 dark:bg-surface-900 gap-4",
|
|
6710
6717
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "m-auto flex flex-col gap-2 items-center", children: [
|
|
6711
6718
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, { ...props }),
|
|
6712
6719
|
text && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6754,9 +6761,9 @@
|
|
|
6754
6761
|
"div",
|
|
6755
6762
|
{
|
|
6756
6763
|
className: ui.cls(
|
|
6757
|
-
"flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-
|
|
6758
|
-
"text-
|
|
6759
|
-
"hover:bg-
|
|
6764
|
+
"flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900",
|
|
6765
|
+
"text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark",
|
|
6766
|
+
"hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50",
|
|
6760
6767
|
column.frozen ? "sticky left-0 z-10" : "relative z-0"
|
|
6761
6768
|
),
|
|
6762
6769
|
style: {
|
|
@@ -6802,7 +6809,7 @@
|
|
|
6802
6809
|
ui.IconButton,
|
|
6803
6810
|
{
|
|
6804
6811
|
size: "small",
|
|
6805
|
-
className: onHover || openFilter ? "bg-white dark:bg-
|
|
6812
|
+
className: onHover || openFilter ? "bg-white dark:bg-surface-950" : void 0,
|
|
6806
6813
|
onClick: () => {
|
|
6807
6814
|
onColumnSort(column.key);
|
|
6808
6815
|
},
|
|
@@ -6831,7 +6838,7 @@
|
|
|
6831
6838
|
trigger: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6832
6839
|
ui.IconButton,
|
|
6833
6840
|
{
|
|
6834
|
-
className: onHover || openFilter ? "bg-white dark:bg-
|
|
6841
|
+
className: onHover || openFilter ? "bg-white dark:bg-surface-950" : void 0,
|
|
6835
6842
|
size: "small",
|
|
6836
6843
|
onClick: handleSettingsClick,
|
|
6837
6844
|
children: /* @__PURE__ */ jsxRuntime.jsx(ui.FilterListIcon, { size: "small" })
|
|
@@ -6859,7 +6866,7 @@
|
|
|
6859
6866
|
ref: resizeHandleRef,
|
|
6860
6867
|
className: ui.cls(
|
|
6861
6868
|
"absolute h-full w-[6px] top-0 right-0 cursor-col-resize",
|
|
6862
|
-
hovered && "bg-
|
|
6869
|
+
hovered && "bg-surface-300 dark:bg-surface-700"
|
|
6863
6870
|
),
|
|
6864
6871
|
onMouseDown: onClickResizeColumn ? () => onClickResizeColumn(columnIndex, column) : void 0
|
|
6865
6872
|
}
|
|
@@ -6910,12 +6917,12 @@
|
|
|
6910
6917
|
e.preventDefault();
|
|
6911
6918
|
submit();
|
|
6912
6919
|
},
|
|
6913
|
-
className: "text-
|
|
6920
|
+
className: "text-surface-900 dark:text-white",
|
|
6914
6921
|
children: [
|
|
6915
6922
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6916
6923
|
"div",
|
|
6917
6924
|
{
|
|
6918
|
-
className: ui.cls(ui.defaultBorderMixin, "py-4 px-6
|
|
6925
|
+
className: ui.cls(ui.defaultBorderMixin, "py-4 px-6 typography-label border-b"),
|
|
6919
6926
|
children: column.title ?? id
|
|
6920
6927
|
}
|
|
6921
6928
|
),
|
|
@@ -7032,7 +7039,7 @@
|
|
|
7032
7039
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7033
7040
|
"div",
|
|
7034
7041
|
{
|
|
7035
|
-
className: ui.cls(ui.defaultBorderMixin, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 h-12 border-b bg-
|
|
7042
|
+
className: ui.cls(ui.defaultBorderMixin, "z-20 sticky min-w-full flex w-fit flex-row top-0 left-0 h-12 border-b bg-surface-50 dark:bg-surface-900"),
|
|
7036
7043
|
children: [
|
|
7037
7044
|
columns.map((c, columnIndex) => {
|
|
7038
7045
|
const column = columns[columnIndex];
|
|
@@ -7082,7 +7089,7 @@
|
|
|
7082
7089
|
"div",
|
|
7083
7090
|
{
|
|
7084
7091
|
className: ui.cls(
|
|
7085
|
-
"flex min-w-full text-sm border-b border-
|
|
7092
|
+
"flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40",
|
|
7086
7093
|
rowClassName ? rowClassName(rowData) : "",
|
|
7087
7094
|
{
|
|
7088
7095
|
"hover:bg-opacity-95": hoverRow,
|
|
@@ -7589,7 +7596,7 @@
|
|
|
7589
7596
|
!isArray && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7590
7597
|
ui.Label,
|
|
7591
7598
|
{
|
|
7592
|
-
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-
|
|
7599
|
+
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-surface-100 dark:[&:has(:checked)]:bg-surface-800",
|
|
7593
7600
|
htmlFor: "null-filter",
|
|
7594
7601
|
children: [
|
|
7595
7602
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7781,7 +7788,7 @@
|
|
|
7781
7788
|
!isArray && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7782
7789
|
ui.Label,
|
|
7783
7790
|
{
|
|
7784
|
-
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-
|
|
7791
|
+
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-surface-100 dark:[&:has(:checked)]:bg-surface-800",
|
|
7785
7792
|
htmlFor: "null-filter",
|
|
7786
7793
|
children: [
|
|
7787
7794
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7908,7 +7915,7 @@
|
|
|
7908
7915
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7909
7916
|
ui.Label,
|
|
7910
7917
|
{
|
|
7911
|
-
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-
|
|
7918
|
+
className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-surface-100 dark:[&:has(:checked)]:bg-surface-800",
|
|
7912
7919
|
htmlFor: "null-filter",
|
|
7913
7920
|
children: [
|
|
7914
7921
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8022,7 +8029,7 @@
|
|
|
8022
8029
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8023
8030
|
"div",
|
|
8024
8031
|
{
|
|
8025
|
-
className: "h-full w-full flex flex-col bg-white dark:bg-
|
|
8032
|
+
className: "h-full w-full flex flex-col bg-white dark:bg-surface-950",
|
|
8026
8033
|
ref,
|
|
8027
8034
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8028
8035
|
VirtualTable,
|
|
@@ -8045,7 +8052,7 @@
|
|
|
8045
8052
|
checkFilterCombination,
|
|
8046
8053
|
createFilterField: filterable ? createFilterField : void 0,
|
|
8047
8054
|
rowClassName: React.useCallback((entity) => {
|
|
8048
|
-
return highlightedRow?.(entity) ? "bg-
|
|
8055
|
+
return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
|
|
8049
8056
|
}, [highlightedRow]),
|
|
8050
8057
|
className: "flex-grow",
|
|
8051
8058
|
emptyComponent,
|
|
@@ -8345,7 +8352,7 @@
|
|
|
8345
8352
|
{
|
|
8346
8353
|
ref,
|
|
8347
8354
|
style,
|
|
8348
|
-
className: ui.cls("h-full w-full flex flex-col bg-white dark:bg-
|
|
8355
|
+
className: ui.cls("h-full w-full flex flex-col bg-white dark:bg-surface-950", className),
|
|
8349
8356
|
children: [
|
|
8350
8357
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8351
8358
|
CollectionTableToolbar,
|
|
@@ -9162,7 +9169,7 @@
|
|
|
9162
9169
|
{
|
|
9163
9170
|
size: "small",
|
|
9164
9171
|
collectionOrView: collection,
|
|
9165
|
-
className: "text-
|
|
9172
|
+
className: "text-surface-300 dark:text-surface-600"
|
|
9166
9173
|
}
|
|
9167
9174
|
),
|
|
9168
9175
|
collection.singularName ? `Select ${collection.singularName}` : `Select from ${collection.name}`
|
|
@@ -9262,7 +9269,7 @@
|
|
|
9262
9269
|
ui.ExpandablePanel,
|
|
9263
9270
|
{
|
|
9264
9271
|
invisible: true,
|
|
9265
|
-
titleClassName: "font-medium text-sm text-
|
|
9272
|
+
titleClassName: "font-medium text-sm text-surface-600 dark:text-surface-400",
|
|
9266
9273
|
innerClassName: "py-4",
|
|
9267
9274
|
initiallyExpanded: !(userConfigurationPersistence?.collapsedGroups ?? []).includes(group ?? "ungrouped"),
|
|
9268
9275
|
onExpandedChange: (expanded) => {
|
|
@@ -9310,7 +9317,7 @@
|
|
|
9310
9317
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
9311
9318
|
"div",
|
|
9312
9319
|
{
|
|
9313
|
-
className: "h-10 flex items-center w-full justify-between text-
|
|
9320
|
+
className: "h-10 flex items-center w-full justify-between text-surface-300 dark:text-surface-600",
|
|
9314
9321
|
children: [
|
|
9315
9322
|
icon,
|
|
9316
9323
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -9430,7 +9437,7 @@
|
|
|
9430
9437
|
ui.StarBorderIcon,
|
|
9431
9438
|
{
|
|
9432
9439
|
size: 18,
|
|
9433
|
-
className: "text-
|
|
9440
|
+
className: "text-surface-400 dark:text-surface-500"
|
|
9434
9441
|
}
|
|
9435
9442
|
)
|
|
9436
9443
|
},
|
|
@@ -9519,7 +9526,7 @@
|
|
|
9519
9526
|
{
|
|
9520
9527
|
onClick: onIconClick,
|
|
9521
9528
|
size: 18,
|
|
9522
|
-
className: "text-
|
|
9529
|
+
className: "text-surface-400 dark:text-surface-500"
|
|
9523
9530
|
}
|
|
9524
9531
|
),
|
|
9525
9532
|
children: entry.name
|
|
@@ -10758,7 +10765,7 @@
|
|
|
10758
10765
|
pluginActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10759
10766
|
"div",
|
|
10760
10767
|
{
|
|
10761
|
-
className: ui.cls("w-full flex justify-end items-center sticky top-0 right-0 left-0 z-10 bg-opacity-60 bg-
|
|
10768
|
+
className: ui.cls("w-full flex justify-end items-center sticky top-0 right-0 left-0 z-10 bg-opacity-60 bg-surface-accent-200 dark:bg-opacity-60 dark:bg-surface-accent-800 backdrop-blur-md"),
|
|
10762
10769
|
children: pluginActions
|
|
10763
10770
|
}
|
|
10764
10771
|
),
|
|
@@ -10883,7 +10890,7 @@
|
|
|
10883
10890
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10884
10891
|
"div",
|
|
10885
10892
|
{
|
|
10886
|
-
className: ui.cls(ui.defaultBorderMixin, "no-scrollbar h-16 border-b pl-2 pr-2 pt-1 flex items-end overflow-scroll bg-
|
|
10893
|
+
className: ui.cls(ui.defaultBorderMixin, "no-scrollbar h-16 border-b pl-2 pr-2 pt-1 flex items-end overflow-scroll bg-surface-50 dark:bg-surface-950"),
|
|
10887
10894
|
children: [
|
|
10888
10895
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10889
10896
|
"div",
|
|
@@ -11253,7 +11260,7 @@
|
|
|
11253
11260
|
const form = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11254
11261
|
"div",
|
|
11255
11262
|
{
|
|
11256
|
-
className: `text-
|
|
11263
|
+
className: `text-surface-900 dark:text-white overflow-auto rounded rounded-md bg-white dark:bg-surface-950 ${!open ? "hidden" : ""} cursor-grab max-w-[100vw]`,
|
|
11257
11264
|
children: [
|
|
11258
11265
|
internalForm,
|
|
11259
11266
|
savingError && /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { color: "error", children: savingError.message })
|
|
@@ -11266,7 +11273,7 @@
|
|
|
11266
11273
|
style: {
|
|
11267
11274
|
boxShadow: "0 0 0 2px rgba(128,128,128,0.2)"
|
|
11268
11275
|
},
|
|
11269
|
-
className: `inline-block fixed z-20 shadow-outline rounded-md bg-white dark:bg-
|
|
11276
|
+
className: `inline-block fixed z-20 shadow-outline rounded-md bg-white dark:bg-surface-950 ${!open ? "invisible" : "visible"} cursor-grab overflow-visible`,
|
|
11270
11277
|
ref: draggableRef,
|
|
11271
11278
|
children: [
|
|
11272
11279
|
/* @__PURE__ */ jsxRuntime.jsx(ElementResizeListener, { onResize: adaptResize }),
|
|
@@ -11279,7 +11286,7 @@
|
|
|
11279
11286
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11280
11287
|
"div",
|
|
11281
11288
|
{
|
|
11282
|
-
className: "absolute -top-3.5 -right-3.5 bg-
|
|
11289
|
+
className: "absolute -top-3.5 -right-3.5 bg-surface-500 rounded-full",
|
|
11283
11290
|
style: {
|
|
11284
11291
|
width: "32px",
|
|
11285
11292
|
height: "32px"
|
|
@@ -11740,7 +11747,7 @@
|
|
|
11740
11747
|
}
|
|
11741
11748
|
)
|
|
11742
11749
|
] }),
|
|
11743
|
-
children: collection.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-4 text-
|
|
11750
|
+
children: collection.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-4 text-surface-900 dark:text-white", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Markdown, { source: collection.description }) })
|
|
11744
11751
|
}
|
|
11745
11752
|
);
|
|
11746
11753
|
const buildAdditionalHeaderWidget = React.useCallback(({
|
|
@@ -11982,7 +11989,7 @@
|
|
|
11982
11989
|
align: "start",
|
|
11983
11990
|
alignOffset: -117,
|
|
11984
11991
|
trigger: /* @__PURE__ */ jsxRuntime.jsx(ui.IconButton, { size: "small", children: /* @__PURE__ */ jsxRuntime.jsx(ui.SearchIcon, { size: "small" }) }),
|
|
11985
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("my-2 rounded-lg bg-
|
|
11992
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cls("my-2 rounded-lg bg-surface-50 dark:bg-surface-950 text-surface-900 dark:text-white"), children: [
|
|
11986
11993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11987
11994
|
"form",
|
|
11988
11995
|
{
|
|
@@ -12010,7 +12017,7 @@
|
|
|
12010
12017
|
setSearchString(e.target.value);
|
|
12011
12018
|
},
|
|
12012
12019
|
value: searchString,
|
|
12013
|
-
className: "rounded-lg bg-white dark:bg-
|
|
12020
|
+
className: "rounded-lg bg-white dark:bg-surface-800 flex-grow bg-transparent outline-none p-2 " + ui.focusedDisabled
|
|
12014
12021
|
}
|
|
12015
12022
|
),
|
|
12016
12023
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12052,7 +12059,7 @@
|
|
|
12052
12059
|
propertyConfig,
|
|
12053
12060
|
disabled
|
|
12054
12061
|
}) {
|
|
12055
|
-
const classes = "h-8 w-8 p-1 rounded-full shadow text-white " + (disabled ? "bg-
|
|
12062
|
+
const classes = "h-8 w-8 p-1 rounded-full shadow text-white " + (disabled ? "bg-surface-400 dark:bg-surface-600" : "");
|
|
12056
12063
|
const defaultPropertyConfig = typeof propertyConfig?.property === "object" ? getDefaultFieldConfig(propertyConfig.property) : void 0;
|
|
12057
12064
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12058
12065
|
"div",
|
|
@@ -12582,7 +12589,7 @@
|
|
|
12582
12589
|
ref: provided.innerRef,
|
|
12583
12590
|
...provided.draggableProps,
|
|
12584
12591
|
style: provided.draggableProps.style,
|
|
12585
|
-
className: `${!isDragging ? "hover:bg-
|
|
12592
|
+
className: `${!isDragging ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 dark:hover:bg-opacity-20" : ""} rounded-md opacity-100`,
|
|
12586
12593
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12587
12594
|
"div",
|
|
12588
12595
|
{
|
|
@@ -13536,7 +13543,7 @@
|
|
|
13536
13543
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13537
13544
|
"div",
|
|
13538
13545
|
{
|
|
13539
|
-
className: "rounded-full bg-
|
|
13546
|
+
className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block"
|
|
13540
13547
|
}
|
|
13541
13548
|
);
|
|
13542
13549
|
}
|
|
@@ -13603,7 +13610,7 @@
|
|
|
13603
13610
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13604
13611
|
ui.ContentCopyIcon,
|
|
13605
13612
|
{
|
|
13606
|
-
className: "text-
|
|
13613
|
+
className: "text-surface-700 dark:text-surface-300",
|
|
13607
13614
|
size: "smallest"
|
|
13608
13615
|
}
|
|
13609
13616
|
)
|
|
@@ -13625,7 +13632,7 @@
|
|
|
13625
13632
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13626
13633
|
ui.OpenInNewIcon,
|
|
13627
13634
|
{
|
|
13628
|
-
className: "text-
|
|
13635
|
+
className: "text-surface-700 dark:text-surface-300",
|
|
13629
13636
|
size: "smallest"
|
|
13630
13637
|
}
|
|
13631
13638
|
)
|
|
@@ -13701,7 +13708,7 @@
|
|
|
13701
13708
|
height: getThumbnailMeasure(size)
|
|
13702
13709
|
},
|
|
13703
13710
|
children: [
|
|
13704
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-
|
|
13711
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" }),
|
|
13705
13712
|
hint && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: hint, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13706
13713
|
ui.Typography,
|
|
13707
13714
|
{
|
|
@@ -15369,7 +15376,7 @@
|
|
|
15369
15376
|
!placeholder && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15370
15377
|
"div",
|
|
15371
15378
|
{
|
|
15372
|
-
className: "absolute rounded-full -top-2 -right-2 z-10 bg-white dark:bg-
|
|
15379
|
+
className: "absolute rounded-full -top-2 -right-2 z-10 bg-white dark:bg-surface-900",
|
|
15373
15380
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15374
15381
|
ui.Tooltip,
|
|
15375
15382
|
{
|
|
@@ -15405,7 +15412,7 @@
|
|
|
15405
15412
|
{
|
|
15406
15413
|
onClick: (e) => e.stopPropagation(),
|
|
15407
15414
|
className: "flex flex-col items-center justify-center w-full h-full",
|
|
15408
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-
|
|
15415
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" })
|
|
15409
15416
|
}
|
|
15410
15417
|
)
|
|
15411
15418
|
] });
|
|
@@ -16115,7 +16122,7 @@
|
|
|
16115
16122
|
{
|
|
16116
16123
|
className: ui.cls(
|
|
16117
16124
|
"px-6 h-16 text-sm font-medium flex items-center gap-6",
|
|
16118
|
-
disabled || isSubmitting ? "text-
|
|
16125
|
+
disabled || isSubmitting ? "text-surface-accent-500" : "cursor-pointer text-surface-accent-700 dark:text-surface-accent-300 hover:bg-surface-accent-50 dark:hover:bg-surface-800 group-hover:bg-surface-accent-50 dark:group-hover:bg-surface-800"
|
|
16119
16126
|
),
|
|
16120
16127
|
onClick: onEntryClick,
|
|
16121
16128
|
size: "medium",
|
|
@@ -16124,7 +16131,7 @@
|
|
|
16124
16131
|
IconForView,
|
|
16125
16132
|
{
|
|
16126
16133
|
collectionOrView: collection,
|
|
16127
|
-
className: "text-
|
|
16134
|
+
className: "text-surface-300 dark:text-surface-600"
|
|
16128
16135
|
}
|
|
16129
16136
|
),
|
|
16130
16137
|
`Edit ${property.name}`.toUpperCase()
|
|
@@ -16456,7 +16463,7 @@
|
|
|
16456
16463
|
expanded: expanded2
|
|
16457
16464
|
});
|
|
16458
16465
|
},
|
|
16459
|
-
innerClassName: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2 bg-white dark:bg-
|
|
16466
|
+
innerClassName: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2 bg-white dark:bg-surface-900",
|
|
16460
16467
|
title,
|
|
16461
16468
|
children: mapFormView
|
|
16462
16469
|
}
|
|
@@ -17713,7 +17720,7 @@
|
|
|
17713
17720
|
},
|
|
17714
17721
|
multi_select: {
|
|
17715
17722
|
key: "multi_select",
|
|
17716
|
-
name: "Multi select",
|
|
17723
|
+
name: "Multi select (enum)",
|
|
17717
17724
|
description: "Select multiple text values from within an enumeration",
|
|
17718
17725
|
Icon: ui.ListAltIcon,
|
|
17719
17726
|
color: "#4223c9",
|
|
@@ -18487,7 +18494,7 @@
|
|
|
18487
18494
|
panel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18488
18495
|
"div",
|
|
18489
18496
|
{
|
|
18490
|
-
className: "transform max-w-[100vw] lg:max-w-[95vw] flex flex-col h-full transition-all duration-250 ease-in-out bg-white dark:bg-
|
|
18497
|
+
className: "transform max-w-[100vw] lg:max-w-[95vw] flex flex-col h-full transition-all duration-250 ease-in-out bg-white dark:bg-surface-900 ",
|
|
18491
18498
|
style: {
|
|
18492
18499
|
width: panel.width,
|
|
18493
18500
|
transform: `translateX(-${offsetPosition * 200}px)`
|
|
@@ -19368,7 +19375,7 @@
|
|
|
19368
19375
|
}, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19369
19376
|
"div",
|
|
19370
19377
|
{
|
|
19371
|
-
className: ui.cls("flex h-screen w-screen bg-
|
|
19378
|
+
className: ui.cls("flex h-screen w-screen bg-surface-50 dark:bg-surface-900 text-surface-900 dark:text-white overflow-hidden", className),
|
|
19372
19379
|
style: {
|
|
19373
19380
|
paddingTop: "env(safe-area-inset-top)",
|
|
19374
19381
|
paddingLeft: "env(safe-area-inset-left)",
|
|
@@ -19440,7 +19447,7 @@
|
|
|
19440
19447
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19441
19448
|
"div",
|
|
19442
19449
|
{
|
|
19443
|
-
className: "ml-2 fixed top-1 left-2 sm:top-2 sm:left-3 !bg-
|
|
19450
|
+
className: "ml-2 fixed top-1 left-2 sm:top-2 sm:left-3 !bg-surface-50 dark:!bg-surface-900 rounded-full w-fit z-20",
|
|
19444
19451
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19445
19452
|
ui.IconButton,
|
|
19446
19453
|
{
|
|
@@ -19530,7 +19537,7 @@
|
|
|
19530
19537
|
const iconWrap = /* @__PURE__ */ jsxRuntime.jsx(
|
|
19531
19538
|
"div",
|
|
19532
19539
|
{
|
|
19533
|
-
className: "text-
|
|
19540
|
+
className: "text-text-secondary dark:text-text-secondary-dark",
|
|
19534
19541
|
children: icon
|
|
19535
19542
|
}
|
|
19536
19543
|
);
|
|
@@ -19544,13 +19551,13 @@
|
|
|
19544
19551
|
},
|
|
19545
19552
|
className: ({ isActive }) => ui.cls(
|
|
19546
19553
|
"rounded-lg truncate",
|
|
19547
|
-
"hover:bg-
|
|
19554
|
+
"hover:bg-surface-accent-300 hover:bg-opacity-75 dark:hover:bg-surface-accent-800 dark:hover:bg-opacity-75 text-text-secondary dark:text-surface-200 hover:text-surface-900 hover:dark:text-white",
|
|
19548
19555
|
"flex flex-row items-center mr-8",
|
|
19549
19556
|
// "transition-all ease-in-out delay-100 duration-300",
|
|
19550
19557
|
// drawerOpen ? "w-full" : "w-18",
|
|
19551
19558
|
drawerOpen ? "pl-4 h-12" : "pl-4 h-11",
|
|
19552
19559
|
"font-medium text-sm",
|
|
19553
|
-
isActive ? "bg-
|
|
19560
|
+
isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : ""
|
|
19554
19561
|
),
|
|
19555
19562
|
to: url,
|
|
19556
19563
|
children: [
|
|
@@ -19638,7 +19645,7 @@
|
|
|
19638
19645
|
children: groupsWithoutAdmin.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19639
19646
|
"div",
|
|
19640
19647
|
{
|
|
19641
|
-
className: "bg-
|
|
19648
|
+
className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-4",
|
|
19642
19649
|
children: [
|
|
19643
19650
|
buildGroupHeader(group),
|
|
19644
19651
|
Object.values(navigationEntries).filter((e) => e.group === group).map((view, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -19670,7 +19677,7 @@
|
|
|
19670
19677
|
ui.IconButton,
|
|
19671
19678
|
{
|
|
19672
19679
|
shape: "square",
|
|
19673
|
-
className: "m-4 text-
|
|
19680
|
+
className: "m-4 text-surface-900 dark:text-white w-fit",
|
|
19674
19681
|
children: [
|
|
19675
19682
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19676
19683
|
ui.Tooltip,
|