@firecms/core 3.0.0-canary.144 → 3.0.0-canary.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +1 -1
  2. package/dist/components/EntityCollectionTable/EntityCollectionTableProps.d.ts +2 -2
  3. package/dist/components/common/useDataSourceEntityCollectionTableController.d.ts +1 -1
  4. package/dist/core/EntityEditView.d.ts +1 -1
  5. package/dist/core/FireCMS.d.ts +1 -1
  6. package/dist/hooks/data/delete.d.ts +4 -4
  7. package/dist/hooks/data/save.d.ts +3 -3
  8. package/dist/hooks/data/useCollectionFetch.d.ts +1 -1
  9. package/dist/hooks/data/useEntityFetch.d.ts +3 -3
  10. package/dist/hooks/useAuthController.d.ts +1 -1
  11. package/dist/hooks/useBuildNavigationController.d.ts +3 -3
  12. package/dist/hooks/useFireCMSContext.d.ts +1 -1
  13. package/dist/hooks/useResolvedNavigationFrom.d.ts +3 -3
  14. package/dist/hooks/useValidateAuthenticator.d.ts +3 -3
  15. package/dist/index.es.js +70 -67
  16. package/dist/index.es.js.map +1 -1
  17. package/dist/index.umd.js +70 -67
  18. package/dist/index.umd.js.map +1 -1
  19. package/dist/types/auth.d.ts +8 -6
  20. package/dist/types/collections.d.ts +12 -12
  21. package/dist/types/datasource.d.ts +0 -4
  22. package/dist/types/entity_actions.d.ts +4 -4
  23. package/dist/types/entity_callbacks.d.ts +16 -16
  24. package/dist/types/export_import.d.ts +4 -4
  25. package/dist/types/firecms.d.ts +2 -2
  26. package/dist/types/firecms_context.d.ts +1 -1
  27. package/dist/types/permissions.d.ts +4 -4
  28. package/dist/types/plugins.d.ts +8 -8
  29. package/dist/types/user.d.ts +1 -0
  30. package/dist/util/builders.d.ts +2 -2
  31. package/dist/util/permissions.d.ts +4 -4
  32. package/package.json +5 -5
  33. package/src/app/Scaffold.tsx +2 -2
  34. package/src/components/ArrayContainer.tsx +1 -1
  35. package/src/components/CircularProgressCenter.tsx +1 -1
  36. package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
  37. package/src/components/EntityCollectionTable/EntityCollectionTable.tsx +5 -5
  38. package/src/components/EntityCollectionTable/EntityCollectionTableProps.tsx +2 -2
  39. package/src/components/EntityCollectionTable/fields/TableReferenceField.tsx +3 -3
  40. package/src/components/EntityCollectionTable/fields/TableStorageUpload.tsx +2 -2
  41. package/src/components/EntityCollectionTable/internal/CollectionTableToolbar.tsx +1 -1
  42. package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +4 -4
  43. package/src/components/EntityCollectionTable/internal/popup_field/PopupFormField.tsx +3 -3
  44. package/src/components/EntityCollectionView/EntityCollectionView.tsx +3 -3
  45. package/src/components/EntityPreview.tsx +2 -2
  46. package/src/components/EntityView.tsx +4 -4
  47. package/src/components/HomePage/FavouritesView.tsx +1 -1
  48. package/src/components/HomePage/NavigationCard.tsx +1 -1
  49. package/src/components/HomePage/NavigationCardBinding.tsx +1 -1
  50. package/src/components/HomePage/NavigationGroup.tsx +1 -1
  51. package/src/components/PropertyConfigBadge.tsx +1 -1
  52. package/src/components/PropertyIdCopyTooltip.tsx +1 -1
  53. package/src/components/ReferenceTable/ReferenceSelectionTable.tsx +1 -1
  54. package/src/components/SelectableTable/SelectableTable.tsx +2 -2
  55. package/src/components/SelectableTable/filters/DateTimeFilterField.tsx +1 -1
  56. package/src/components/SelectableTable/filters/ReferenceFilterField.tsx +1 -1
  57. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +1 -1
  58. package/src/components/VirtualTable/VirtualTableHeader.tsx +8 -8
  59. package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +1 -1
  60. package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
  61. package/src/components/common/useDataSourceEntityCollectionTableController.tsx +2 -2
  62. package/src/core/DefaultDrawer.tsx +2 -2
  63. package/src/core/DrawerNavigationItem.tsx +3 -3
  64. package/src/core/EntityEditView.tsx +4 -4
  65. package/src/core/FireCMS.tsx +1 -1
  66. package/src/core/SideDialogs.tsx +1 -1
  67. package/src/core/field_configs.tsx +1 -1
  68. package/src/form/components/StorageItemPreview.tsx +2 -2
  69. package/src/form/field_bindings/MapFieldBinding.tsx +1 -1
  70. package/src/form/field_bindings/ReferenceFieldBinding.tsx +3 -3
  71. package/src/hooks/data/delete.ts +4 -4
  72. package/src/hooks/data/save.ts +3 -3
  73. package/src/hooks/data/useCollectionFetch.tsx +2 -2
  74. package/src/hooks/data/useEntityFetch.tsx +5 -5
  75. package/src/hooks/useAuthController.tsx +1 -1
  76. package/src/hooks/useBuildNavigationController.tsx +7 -6
  77. package/src/hooks/useFireCMSContext.tsx +5 -5
  78. package/src/hooks/useResolvedNavigationFrom.tsx +5 -5
  79. package/src/hooks/useValidateAuthenticator.tsx +3 -3
  80. package/src/preview/components/EmptyValue.tsx +1 -1
  81. package/src/preview/components/ImagePreview.tsx +2 -2
  82. package/src/preview/components/UrlComponentPreview.tsx +1 -1
  83. package/src/types/auth.tsx +8 -8
  84. package/src/types/collections.ts +12 -12
  85. package/src/types/datasource.ts +0 -5
  86. package/src/types/entity_actions.tsx +4 -4
  87. package/src/types/entity_callbacks.ts +18 -18
  88. package/src/types/export_import.ts +4 -4
  89. package/src/types/firecms.tsx +2 -2
  90. package/src/types/firecms_context.tsx +1 -1
  91. package/src/types/permissions.ts +5 -5
  92. package/src/types/plugins.tsx +8 -8
  93. package/src/types/user.ts +2 -0
  94. package/src/util/builders.ts +6 -6
  95. 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-slate-400",
620
+ className: "min-w-20 text-surface-accent-400",
621
621
  color: "disabled",
622
622
  children: copied ? "Copied" : "Property ID"
623
623
  }
@@ -4057,11 +4057,11 @@
4057
4057
  const properties = resolvedCollection.properties;
4058
4058
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full " + className, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full mb-4", children: [
4059
4059
  /* @__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-gray-600", children: "Id" }) }),
4060
+ /* @__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
4061
  /* @__PURE__ */ jsxRuntime.jsxs(
4062
4062
  "div",
4063
4063
  {
4064
- className: "flex-grow p-2 ml-2 w-3/4 text-gray-900 dark:text-white min-h-[56px] flex items-center",
4064
+ className: "flex-grow p-2 ml-2 w-3/4 text-surface-900 dark:text-white min-h-[56px] flex items-center",
4065
4065
  children: [
4066
4066
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-grow mr-2", children: entity.id }),
4067
4067
  customizationController?.entityLinkBuilder && /* @__PURE__ */ jsxRuntime.jsx(
@@ -4089,11 +4089,11 @@
4089
4089
  {
4090
4090
  className: ui.cls(ui.defaultBorderMixin, "flex justify-between py-2 border-b last:border-b-0"),
4091
4091
  children: [
4092
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center w-1/4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pl-2 text-sm text-gray-600", children: property.name }) }),
4092
+ /* @__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
4093
  /* @__PURE__ */ jsxRuntime.jsx(
4094
4094
  "div",
4095
4095
  {
4096
- className: "flex-grow p-2 ml-2 w-3/4 text-gray-900 dark:text-white min-h-[56px] flex items-center",
4096
+ className: "flex-grow p-2 ml-2 w-3/4 text-surface-900 dark:text-white min-h-[56px] flex items-center",
4097
4097
  children: /* @__PURE__ */ jsxRuntime.jsx(
4098
4098
  PropertyPreview,
4099
4099
  {
@@ -4964,7 +4964,7 @@
4964
4964
  children: /* @__PURE__ */ jsxRuntime.jsx(
4965
4965
  ui.Typography,
4966
4966
  {
4967
- className: "text-gray-400 dark:text-gray-600",
4967
+ className: "text-surface-400 dark:text-surface-600",
4968
4968
  variant: "body2",
4969
4969
  align: "center",
4970
4970
  children: helpText
@@ -4986,7 +4986,7 @@
4986
4986
  color: "inherit",
4987
4987
  size: "small",
4988
4988
  onClick: open,
4989
- children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-gray-500" })
4989
+ children: /* @__PURE__ */ jsxRuntime.jsx(ui.EditIcon, { size: "small", className: "text-surface-500" })
4990
4990
  }
4991
4991
  )
4992
4992
  }
@@ -5169,11 +5169,11 @@
5169
5169
  tabindex: 0
5170
5170
  },
5171
5171
  className: ui.cls(
5172
- "bg-white dark:bg-gray-900",
5172
+ "bg-white dark:bg-surface-900",
5173
5173
  "min-h-[42px]",
5174
5174
  fullwidth ? "w-full" : "",
5175
5175
  "items-center",
5176
- hover ? "hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800" : "",
5176
+ hover ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 group-hover:bg-surface-accent-50 dark:group-hover:bg-surface-800" : "",
5177
5177
  size === "smallest" ? "p-1" : "px-2 py-1",
5178
5178
  "flex border rounded-lg",
5179
5179
  onClick ? "cursor-pointer" : "",
@@ -5309,7 +5309,7 @@
5309
5309
  className: ui.cls(
5310
5310
  "px-4 py-2 text-sm font-medium flex items-center uppercase",
5311
5311
  multiselect ? "gap-4" : "gap-6",
5312
- disabled ? "text-slate-500" : "cursor-pointer text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800"
5312
+ disabled ? "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"
5313
5313
  ),
5314
5314
  onClick: handleOpen,
5315
5315
  size: "medium",
@@ -5319,7 +5319,7 @@
5319
5319
  {
5320
5320
  size: "small",
5321
5321
  collectionOrView: collection,
5322
- className: "text-gray-300 dark:text-gray-600"
5322
+ className: "text-surface-300 dark:text-surface-600"
5323
5323
  }
5324
5324
  ),
5325
5325
  "Edit ",
@@ -5803,10 +5803,10 @@
5803
5803
  className: ui.cls(
5804
5804
  "transition-colors duration-100 ease-in-out",
5805
5805
  `flex relative h-full rounded-md p-${p} border border-4 border-opacity-75`,
5806
- onHover && !disabled ? "bg-gray-50 dark:bg-gray-900" : "",
5807
- saved ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "",
5806
+ onHover && !disabled ? "bg-surface-50 dark:bg-surface-900" : "",
5807
+ saved ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "",
5808
5808
  hideOverflow ? "overflow-hidden" : "",
5809
- isSelected ? "bg-gray-50 dark:bg-gray-900" : "",
5809
+ isSelected ? "bg-surface-50 dark:bg-surface-900" : "",
5810
5810
  borderClass
5811
5811
  ),
5812
5812
  ref,
@@ -5848,7 +5848,7 @@
5848
5848
  )
5849
5849
  ] }),
5850
5850
  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-gray-500" }) }) })
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-surface-500" }) }) })
5852
5852
  ]
5853
5853
  }
5854
5854
  );
@@ -6329,7 +6329,7 @@
6329
6329
  "div",
6330
6330
  {
6331
6331
  className: ui.cls(
6332
- "h-full flex items-center justify-center flex-col bg-gray-50 dark:bg-gray-900 bg-opacity-90 dark:bg-opacity-90 z-10",
6332
+ "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
6333
  frozen ? "sticky left-0" : ""
6334
6334
  ),
6335
6335
  style: {
@@ -6460,7 +6460,7 @@
6460
6460
  return /* @__PURE__ */ jsxRuntime.jsxs(
6461
6461
  "div",
6462
6462
  {
6463
- className: ui.cls(ui.defaultBorderMixin, "no-scrollbar min-h-[56px] overflow-x-auto px-2 md:px-4 bg-gray-50 dark:bg-gray-900 border-b flex flex-row justify-between items-center w-full"),
6463
+ 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
6464
  children: [
6465
6465
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 md:mr-4 mr-2", children: [
6466
6466
  title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden lg:block", children: title }),
@@ -6706,7 +6706,7 @@
6706
6706
  return /* @__PURE__ */ jsxRuntime.jsx(
6707
6707
  "div",
6708
6708
  {
6709
- className: "flex w-full h-screen max-h-full max-w-full bg-gray-50 dark:bg-gray-900 gap-4",
6709
+ className: "flex w-full h-screen max-h-full max-w-full bg-surface-50 dark:bg-surface-900 gap-4",
6710
6710
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "m-auto flex flex-col gap-2 items-center", children: [
6711
6711
  /* @__PURE__ */ jsxRuntime.jsx(ui.CircularProgress, { ...props }),
6712
6712
  text && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6754,9 +6754,9 @@
6754
6754
  "div",
6755
6755
  {
6756
6756
  className: ui.cls(
6757
- "flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-gray-50 dark:bg-gray-900",
6758
- "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 ",
6759
- "hover:bg-gray-100 dark:hover:bg-gray-800 hover:bg-opacity-50 dark:hover:bg-opacity-50",
6757
+ "flex py-0 px-3 h-full text-xs uppercase font-semibold relative select-none items-center bg-surface-50 dark:bg-surface-900",
6758
+ "text-text-secondary hover:text-text-primary dark:text-text-secondary-dark dark:hover:text-text-primary-dark",
6759
+ "hover:bg-surface-100 dark:hover:bg-surface-800 hover:bg-opacity-50 dark:hover:bg-opacity-50",
6760
6760
  column.frozen ? "sticky left-0 z-10" : "relative z-0"
6761
6761
  ),
6762
6762
  style: {
@@ -6802,7 +6802,7 @@
6802
6802
  ui.IconButton,
6803
6803
  {
6804
6804
  size: "small",
6805
- className: onHover || openFilter ? "bg-white dark:bg-gray-950" : void 0,
6805
+ className: onHover || openFilter ? "bg-white dark:bg-surface-950" : void 0,
6806
6806
  onClick: () => {
6807
6807
  onColumnSort(column.key);
6808
6808
  },
@@ -6831,7 +6831,7 @@
6831
6831
  trigger: /* @__PURE__ */ jsxRuntime.jsx(
6832
6832
  ui.IconButton,
6833
6833
  {
6834
- className: onHover || openFilter ? "bg-white dark:bg-gray-950" : void 0,
6834
+ className: onHover || openFilter ? "bg-white dark:bg-surface-950" : void 0,
6835
6835
  size: "small",
6836
6836
  onClick: handleSettingsClick,
6837
6837
  children: /* @__PURE__ */ jsxRuntime.jsx(ui.FilterListIcon, { size: "small" })
@@ -6859,7 +6859,7 @@
6859
6859
  ref: resizeHandleRef,
6860
6860
  className: ui.cls(
6861
6861
  "absolute h-full w-[6px] top-0 right-0 cursor-col-resize",
6862
- hovered && "bg-gray-300 dark:bg-gray-700"
6862
+ hovered && "bg-surface-300 dark:bg-surface-700"
6863
6863
  ),
6864
6864
  onMouseDown: onClickResizeColumn ? () => onClickResizeColumn(columnIndex, column) : void 0
6865
6865
  }
@@ -6910,12 +6910,12 @@
6910
6910
  e.preventDefault();
6911
6911
  submit();
6912
6912
  },
6913
- className: "text-gray-900 dark:text-white",
6913
+ className: "text-surface-900 dark:text-white",
6914
6914
  children: [
6915
6915
  /* @__PURE__ */ jsxRuntime.jsx(
6916
6916
  "div",
6917
6917
  {
6918
- className: ui.cls(ui.defaultBorderMixin, "py-4 px-6 text-xs font-semibold uppercase border-b"),
6918
+ className: ui.cls(ui.defaultBorderMixin, "py-4 px-6 typography-label border-b"),
6919
6919
  children: column.title ?? id
6920
6920
  }
6921
6921
  ),
@@ -7032,7 +7032,7 @@
7032
7032
  return /* @__PURE__ */ jsxRuntime.jsxs(
7033
7033
  "div",
7034
7034
  {
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-gray-50 dark:bg-gray-900"),
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-surface-50 dark:bg-surface-900"),
7036
7036
  children: [
7037
7037
  columns.map((c, columnIndex) => {
7038
7038
  const column = columns[columnIndex];
@@ -7082,7 +7082,7 @@
7082
7082
  "div",
7083
7083
  {
7084
7084
  className: ui.cls(
7085
- "flex min-w-full text-sm border-b border-gray-200 dark:border-gray-800 border-opacity-40 dark:border-opacity-40",
7085
+ "flex min-w-full text-sm border-b border-surface-200 dark:border-surface-800 border-opacity-40 dark:border-opacity-40",
7086
7086
  rowClassName ? rowClassName(rowData) : "",
7087
7087
  {
7088
7088
  "hover:bg-opacity-95": hoverRow,
@@ -7589,7 +7589,7 @@
7589
7589
  !isArray && /* @__PURE__ */ jsxRuntime.jsxs(
7590
7590
  ui.Label,
7591
7591
  {
7592
- className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-gray-100 dark:[&:has(:checked)]:bg-gray-800",
7592
+ 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
7593
  htmlFor: "null-filter",
7594
7594
  children: [
7595
7595
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7781,7 +7781,7 @@
7781
7781
  !isArray && /* @__PURE__ */ jsxRuntime.jsxs(
7782
7782
  ui.Label,
7783
7783
  {
7784
- className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-gray-100 dark:[&:has(:checked)]:bg-gray-800",
7784
+ 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
7785
  htmlFor: "null-filter",
7786
7786
  children: [
7787
7787
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7908,7 +7908,7 @@
7908
7908
  /* @__PURE__ */ jsxRuntime.jsxs(
7909
7909
  ui.Label,
7910
7910
  {
7911
- className: "border cursor-pointer rounded-md p-2 flex items-center gap-2 [&:has(:checked)]:bg-gray-100 dark:[&:has(:checked)]:bg-gray-800",
7911
+ 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
7912
  htmlFor: "null-filter",
7913
7913
  children: [
7914
7914
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -8022,7 +8022,7 @@
8022
8022
  children: /* @__PURE__ */ jsxRuntime.jsx(
8023
8023
  "div",
8024
8024
  {
8025
- className: "h-full w-full flex flex-col bg-white dark:bg-gray-950",
8025
+ className: "h-full w-full flex flex-col bg-white dark:bg-surface-950",
8026
8026
  ref,
8027
8027
  children: /* @__PURE__ */ jsxRuntime.jsx(
8028
8028
  VirtualTable,
@@ -8045,7 +8045,7 @@
8045
8045
  checkFilterCombination,
8046
8046
  createFilterField: filterable ? createFilterField : void 0,
8047
8047
  rowClassName: React.useCallback((entity) => {
8048
- return highlightedRow?.(entity) ? "bg-gray-100 bg-opacity-75 dark:bg-gray-800 dark:bg-opacity-75" : "";
8048
+ return highlightedRow?.(entity) ? "bg-surface-100 bg-opacity-75 dark:bg-surface-800 dark:bg-opacity-75" : "";
8049
8049
  }, [highlightedRow]),
8050
8050
  className: "flex-grow",
8051
8051
  emptyComponent,
@@ -8345,7 +8345,7 @@
8345
8345
  {
8346
8346
  ref,
8347
8347
  style,
8348
- className: ui.cls("h-full w-full flex flex-col bg-white dark:bg-gray-950", className),
8348
+ className: ui.cls("h-full w-full flex flex-col bg-white dark:bg-surface-950", className),
8349
8349
  children: [
8350
8350
  /* @__PURE__ */ jsxRuntime.jsx(
8351
8351
  CollectionTableToolbar,
@@ -9162,7 +9162,7 @@
9162
9162
  {
9163
9163
  size: "small",
9164
9164
  collectionOrView: collection,
9165
- className: "text-gray-300 dark:text-gray-600"
9165
+ className: "text-surface-300 dark:text-surface-600"
9166
9166
  }
9167
9167
  ),
9168
9168
  collection.singularName ? `Select ${collection.singularName}` : `Select from ${collection.name}`
@@ -9262,7 +9262,7 @@
9262
9262
  ui.ExpandablePanel,
9263
9263
  {
9264
9264
  invisible: true,
9265
- titleClassName: "font-medium text-sm text-gray-600 dark:text-gray-400",
9265
+ titleClassName: "font-medium text-sm text-surface-600 dark:text-surface-400",
9266
9266
  innerClassName: "py-4",
9267
9267
  initiallyExpanded: !(userConfigurationPersistence?.collapsedGroups ?? []).includes(group ?? "ungrouped"),
9268
9268
  onExpandedChange: (expanded) => {
@@ -9310,7 +9310,7 @@
9310
9310
  /* @__PURE__ */ jsxRuntime.jsxs(
9311
9311
  "div",
9312
9312
  {
9313
- className: "h-10 flex items-center w-full justify-between text-gray-300 dark:text-gray-600",
9313
+ className: "h-10 flex items-center w-full justify-between text-surface-300 dark:text-surface-600",
9314
9314
  children: [
9315
9315
  icon,
9316
9316
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -9430,7 +9430,7 @@
9430
9430
  ui.StarBorderIcon,
9431
9431
  {
9432
9432
  size: 18,
9433
- className: "text-gray-400 dark:text-gray-500"
9433
+ className: "text-surface-400 dark:text-surface-500"
9434
9434
  }
9435
9435
  )
9436
9436
  },
@@ -9519,7 +9519,7 @@
9519
9519
  {
9520
9520
  onClick: onIconClick,
9521
9521
  size: 18,
9522
- className: "text-gray-400 dark:text-gray-500"
9522
+ className: "text-surface-400 dark:text-surface-500"
9523
9523
  }
9524
9524
  ),
9525
9525
  children: entry.name
@@ -10758,7 +10758,7 @@
10758
10758
  pluginActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
10759
10759
  "div",
10760
10760
  {
10761
- className: ui.cls("w-full flex justify-end items-center sticky top-0 right-0 left-0 z-10 bg-opacity-60 bg-slate-200 dark:bg-opacity-60 dark:bg-slate-800 backdrop-blur-md"),
10761
+ 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
10762
  children: pluginActions
10763
10763
  }
10764
10764
  ),
@@ -10883,7 +10883,7 @@
10883
10883
  /* @__PURE__ */ jsxRuntime.jsxs(
10884
10884
  "div",
10885
10885
  {
10886
- className: ui.cls(ui.defaultBorderMixin, "no-scrollbar h-16 border-b pl-2 pr-2 pt-1 flex items-end overflow-scroll bg-gray-50 dark:bg-gray-950"),
10886
+ 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
10887
  children: [
10888
10888
  /* @__PURE__ */ jsxRuntime.jsx(
10889
10889
  "div",
@@ -11253,7 +11253,7 @@
11253
11253
  const form = /* @__PURE__ */ jsxRuntime.jsxs(
11254
11254
  "div",
11255
11255
  {
11256
- className: `text-gray-900 dark:text-white overflow-auto rounded rounded-md bg-white dark:bg-gray-950 ${!open ? "hidden" : ""} cursor-grab max-w-[100vw]`,
11256
+ 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
11257
  children: [
11258
11258
  internalForm,
11259
11259
  savingError && /* @__PURE__ */ jsxRuntime.jsx(ui.Typography, { color: "error", children: savingError.message })
@@ -11266,7 +11266,7 @@
11266
11266
  style: {
11267
11267
  boxShadow: "0 0 0 2px rgba(128,128,128,0.2)"
11268
11268
  },
11269
- className: `inline-block fixed z-20 shadow-outline rounded-md bg-white dark:bg-gray-950 ${!open ? "invisible" : "visible"} cursor-grab overflow-visible`,
11269
+ className: `inline-block fixed z-20 shadow-outline rounded-md bg-white dark:bg-surface-950 ${!open ? "invisible" : "visible"} cursor-grab overflow-visible`,
11270
11270
  ref: draggableRef,
11271
11271
  children: [
11272
11272
  /* @__PURE__ */ jsxRuntime.jsx(ElementResizeListener, { onResize: adaptResize }),
@@ -11279,7 +11279,7 @@
11279
11279
  /* @__PURE__ */ jsxRuntime.jsx(
11280
11280
  "div",
11281
11281
  {
11282
- className: "absolute -top-3.5 -right-3.5 bg-gray-500 rounded-full",
11282
+ className: "absolute -top-3.5 -right-3.5 bg-surface-500 rounded-full",
11283
11283
  style: {
11284
11284
  width: "32px",
11285
11285
  height: "32px"
@@ -11740,7 +11740,7 @@
11740
11740
  }
11741
11741
  )
11742
11742
  ] }),
11743
- children: collection.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-4 text-gray-900 dark:text-white", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Markdown, { source: collection.description }) })
11743
+ 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
11744
  }
11745
11745
  );
11746
11746
  const buildAdditionalHeaderWidget = React.useCallback(({
@@ -11982,7 +11982,7 @@
11982
11982
  align: "start",
11983
11983
  alignOffset: -117,
11984
11984
  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-gray-50 dark:bg-gray-950 text-gray-900 dark:text-white"), children: [
11985
+ 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
11986
  /* @__PURE__ */ jsxRuntime.jsx(
11987
11987
  "form",
11988
11988
  {
@@ -12010,7 +12010,7 @@
12010
12010
  setSearchString(e.target.value);
12011
12011
  },
12012
12012
  value: searchString,
12013
- className: "rounded-lg bg-white dark:bg-gray-800 flex-grow bg-transparent outline-none p-2 " + ui.focusedDisabled
12013
+ className: "rounded-lg bg-white dark:bg-surface-800 flex-grow bg-transparent outline-none p-2 " + ui.focusedDisabled
12014
12014
  }
12015
12015
  ),
12016
12016
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -12052,7 +12052,7 @@
12052
12052
  propertyConfig,
12053
12053
  disabled
12054
12054
  }) {
12055
- const classes = "h-8 w-8 p-1 rounded-full shadow text-white " + (disabled ? "bg-gray-400 dark:bg-gray-600" : "");
12055
+ const classes = "h-8 w-8 p-1 rounded-full shadow text-white " + (disabled ? "bg-surface-400 dark:bg-surface-600" : "");
12056
12056
  const defaultPropertyConfig = typeof propertyConfig?.property === "object" ? getDefaultFieldConfig(propertyConfig.property) : void 0;
12057
12057
  return /* @__PURE__ */ jsxRuntime.jsx(
12058
12058
  "div",
@@ -12582,7 +12582,7 @@
12582
12582
  ref: provided.innerRef,
12583
12583
  ...provided.draggableProps,
12584
12584
  style: provided.draggableProps.style,
12585
- className: `${!isDragging ? "hover:bg-slate-50 dark:hover:bg-gray-800 dark:hover:bg-opacity-20" : ""} rounded-md opacity-100`,
12585
+ className: `${!isDragging ? "hover:bg-surface-accent-50 dark:hover:bg-surface-800 dark:hover:bg-opacity-20" : ""} rounded-md opacity-100`,
12586
12586
  children: /* @__PURE__ */ jsxRuntime.jsxs(
12587
12587
  "div",
12588
12588
  {
@@ -13098,6 +13098,7 @@
13098
13098
  const refreshNavigation = React.useCallback(async () => {
13099
13099
  if (authController.initialLoading)
13100
13100
  return;
13101
+ console.log("refresh", authController);
13101
13102
  console.debug("Refreshing navigation");
13102
13103
  try {
13103
13104
  const [resolvedCollections = [], resolvedViews, resolvedAdminViews = []] = await Promise.all(
@@ -13318,7 +13319,9 @@
13318
13319
  resolvedCollections = injectCollections(resolvedCollections ?? []);
13319
13320
  }
13320
13321
  resolvedCollections = applyPermissionsFunctionIfEmpty(resolvedCollections, collectionPermissions);
13322
+ console.log("resolvedCollections 2", resolvedCollections, collectionPermissions);
13321
13323
  resolvedCollections = filterOutNotAllowedCollections(resolvedCollections, authController);
13324
+ console.log("resolvedCollections 3", resolvedCollections, authController);
13322
13325
  return resolvedCollections;
13323
13326
  }
13324
13327
  async function resolveCMSViews(baseViews, authController, dataSource) {
@@ -13536,7 +13539,7 @@
13536
13539
  return /* @__PURE__ */ jsxRuntime.jsx(
13537
13540
  "div",
13538
13541
  {
13539
- className: "rounded-full bg-gray-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block"
13542
+ className: "rounded-full bg-surface-200 bg-opacity-30 dark:bg-opacity-20 w-5 h-2 inline-block"
13540
13543
  }
13541
13544
  );
13542
13545
  }
@@ -13603,7 +13606,7 @@
13603
13606
  children: /* @__PURE__ */ jsxRuntime.jsx(
13604
13607
  ui.ContentCopyIcon,
13605
13608
  {
13606
- className: "text-gray-700 dark:text-gray-300",
13609
+ className: "text-surface-700 dark:text-surface-300",
13607
13610
  size: "smallest"
13608
13611
  }
13609
13612
  )
@@ -13625,7 +13628,7 @@
13625
13628
  children: /* @__PURE__ */ jsxRuntime.jsx(
13626
13629
  ui.OpenInNewIcon,
13627
13630
  {
13628
- className: "text-gray-700 dark:text-gray-300",
13631
+ className: "text-surface-700 dark:text-surface-300",
13629
13632
  size: "smallest"
13630
13633
  }
13631
13634
  )
@@ -13701,7 +13704,7 @@
13701
13704
  height: getThumbnailMeasure(size)
13702
13705
  },
13703
13706
  children: [
13704
- /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-gray-700 dark:text-gray-300" }),
13707
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" }),
13705
13708
  hint && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: hint, children: /* @__PURE__ */ jsxRuntime.jsx(
13706
13709
  ui.Typography,
13707
13710
  {
@@ -15369,7 +15372,7 @@
15369
15372
  !placeholder && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
15370
15373
  "div",
15371
15374
  {
15372
- className: "absolute rounded-full -top-2 -right-2 z-10 bg-white dark:bg-gray-900",
15375
+ className: "absolute rounded-full -top-2 -right-2 z-10 bg-white dark:bg-surface-900",
15373
15376
  children: /* @__PURE__ */ jsxRuntime.jsx(
15374
15377
  ui.Tooltip,
15375
15378
  {
@@ -15405,7 +15408,7 @@
15405
15408
  {
15406
15409
  onClick: (e) => e.stopPropagation(),
15407
15410
  className: "flex flex-col items-center justify-center w-full h-full",
15408
- children: /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-gray-700 dark:text-gray-300" })
15411
+ children: /* @__PURE__ */ jsxRuntime.jsx(ui.DescriptionIcon, { className: "text-surface-700 dark:text-surface-300" })
15409
15412
  }
15410
15413
  )
15411
15414
  ] });
@@ -16115,7 +16118,7 @@
16115
16118
  {
16116
16119
  className: ui.cls(
16117
16120
  "px-6 h-16 text-sm font-medium flex items-center gap-6",
16118
- disabled || isSubmitting ? "text-slate-500" : "cursor-pointer text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-gray-800 group-hover:bg-slate-50 dark:group-hover:bg-gray-800"
16121
+ 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
16122
  ),
16120
16123
  onClick: onEntryClick,
16121
16124
  size: "medium",
@@ -16124,7 +16127,7 @@
16124
16127
  IconForView,
16125
16128
  {
16126
16129
  collectionOrView: collection,
16127
- className: "text-gray-300 dark:text-gray-600"
16130
+ className: "text-surface-300 dark:text-surface-600"
16128
16131
  }
16129
16132
  ),
16130
16133
  `Edit ${property.name}`.toUpperCase()
@@ -16456,7 +16459,7 @@
16456
16459
  expanded: expanded2
16457
16460
  });
16458
16461
  },
16459
- innerClassName: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2 bg-white dark:bg-gray-900",
16462
+ innerClassName: "px-2 md:px-4 pb-2 md:pb-4 pt-1 md:pt-2 bg-white dark:bg-surface-900",
16460
16463
  title,
16461
16464
  children: mapFormView
16462
16465
  }
@@ -17713,7 +17716,7 @@
17713
17716
  },
17714
17717
  multi_select: {
17715
17718
  key: "multi_select",
17716
- name: "Multi select",
17719
+ name: "Multi select (enum)",
17717
17720
  description: "Select multiple text values from within an enumeration",
17718
17721
  Icon: ui.ListAltIcon,
17719
17722
  color: "#4223c9",
@@ -18487,7 +18490,7 @@
18487
18490
  panel && /* @__PURE__ */ jsxRuntime.jsx(
18488
18491
  "div",
18489
18492
  {
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-gray-900 ",
18493
+ 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
18494
  style: {
18492
18495
  width: panel.width,
18493
18496
  transform: `translateX(-${offsetPosition * 200}px)`
@@ -19368,7 +19371,7 @@
19368
19371
  }, children: /* @__PURE__ */ jsxRuntime.jsxs(
19369
19372
  "div",
19370
19373
  {
19371
- className: ui.cls("flex h-screen w-screen bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-white overflow-hidden", className),
19374
+ 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
19375
  style: {
19373
19376
  paddingTop: "env(safe-area-inset-top)",
19374
19377
  paddingLeft: "env(safe-area-inset-left)",
@@ -19440,7 +19443,7 @@
19440
19443
  children: /* @__PURE__ */ jsxRuntime.jsx(
19441
19444
  "div",
19442
19445
  {
19443
- className: "ml-2 fixed top-1 left-2 sm:top-2 sm:left-3 !bg-gray-50 dark:!bg-gray-900 rounded-full w-fit z-20",
19446
+ 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
19447
  children: /* @__PURE__ */ jsxRuntime.jsx(
19445
19448
  ui.IconButton,
19446
19449
  {
@@ -19530,7 +19533,7 @@
19530
19533
  const iconWrap = /* @__PURE__ */ jsxRuntime.jsx(
19531
19534
  "div",
19532
19535
  {
19533
- className: "text-gray-600 dark:text-gray-500",
19536
+ className: "text-text-secondary dark:text-text-secondary-dark",
19534
19537
  children: icon
19535
19538
  }
19536
19539
  );
@@ -19544,13 +19547,13 @@
19544
19547
  },
19545
19548
  className: ({ isActive }) => ui.cls(
19546
19549
  "rounded-lg truncate",
19547
- "hover:bg-slate-300 hover:bg-opacity-75 dark:hover:bg-slate-800 dark:hover:bg-opacity-75 text-gray-800 dark:text-gray-200 hover:text-gray-900 hover:dark:text-white",
19550
+ "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
19551
  "flex flex-row items-center mr-8",
19549
19552
  // "transition-all ease-in-out delay-100 duration-300",
19550
19553
  // drawerOpen ? "w-full" : "w-18",
19551
19554
  drawerOpen ? "pl-4 h-12" : "pl-4 h-11",
19552
19555
  "font-medium text-sm",
19553
- isActive ? "bg-slate-200 bg-opacity-60 dark:bg-gray-800 dark:bg-opacity-50" : ""
19556
+ isActive ? "bg-surface-accent-200 bg-opacity-60 dark:bg-surface-800 dark:bg-opacity-50" : ""
19554
19557
  ),
19555
19558
  to: url,
19556
19559
  children: [
@@ -19638,7 +19641,7 @@
19638
19641
  children: groupsWithoutAdmin.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
19639
19642
  "div",
19640
19643
  {
19641
- className: "bg-gray-50 dark:bg-gray-800 dark:bg-opacity-30 my-4 rounded-lg ml-4",
19644
+ className: "bg-surface-50 dark:bg-surface-800 dark:bg-opacity-30 my-4 rounded-lg ml-4",
19642
19645
  children: [
19643
19646
  buildGroupHeader(group),
19644
19647
  Object.values(navigationEntries).filter((e) => e.group === group).map((view, index) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -19670,7 +19673,7 @@
19670
19673
  ui.IconButton,
19671
19674
  {
19672
19675
  shape: "square",
19673
- className: "m-4 text-gray-900 dark:text-white w-fit",
19676
+ className: "m-4 text-surface-900 dark:text-white w-fit",
19674
19677
  children: [
19675
19678
  /* @__PURE__ */ jsxRuntime.jsx(
19676
19679
  ui.Tooltip,