@firecms/collection_editor 3.0.0-canary.143 → 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.
package/dist/index.es.js CHANGED
@@ -193,7 +193,7 @@ function CollectionDetailsForm({
193
193
  {
194
194
  expanded: advancedPanelExpanded,
195
195
  onExpandedChange: setAdvancedPanelExpanded,
196
- title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-gray-500", children: [
196
+ title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
197
197
  /* @__PURE__ */ jsx(SettingsIcon, {}),
198
198
  /* @__PURE__ */ jsx(
199
199
  Typography,
@@ -997,7 +997,7 @@ function ValidationPanel({
997
997
  initiallyExpanded: false,
998
998
  asField: true,
999
999
  innerClassName: "p-4",
1000
- title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-gray-500", children: [
1000
+ title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
1001
1001
  /* @__PURE__ */ jsx(RuleIcon, {}),
1002
1002
  /* @__PURE__ */ jsx(
1003
1003
  Typography,
@@ -1134,7 +1134,7 @@ function StoragePropertyField({
1134
1134
  /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(
1135
1135
  ExpandablePanel,
1136
1136
  {
1137
- title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-gray-500", children: [
1137
+ title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
1138
1138
  /* @__PURE__ */ jsx(FileUploadIcon, {}),
1139
1139
  /* @__PURE__ */ jsx(
1140
1140
  Typography,
@@ -1382,7 +1382,7 @@ function NonEditablePropertyPreview({
1382
1382
  !propertyConfig && /* @__PURE__ */ jsx(
1383
1383
  "div",
1384
1384
  {
1385
- className: "h-8 w-8 p-1 rounded-full shadow text-white bg-gray-500",
1385
+ className: "h-8 w-8 p-1 rounded-full shadow text-white bg-surface-500",
1386
1386
  children: /* @__PURE__ */ jsx(FunctionsIcon, { color: "inherit", size: "medium" })
1387
1387
  }
1388
1388
  ),
@@ -2918,7 +2918,7 @@ function MarkdownPropertyField({
2918
2918
  /* @__PURE__ */ jsx("div", { className: "col-span-12", children: /* @__PURE__ */ jsx(
2919
2919
  ExpandablePanel,
2920
2920
  {
2921
- title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-gray-500", children: [
2921
+ title: /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
2922
2922
  /* @__PURE__ */ jsx(FileUploadIcon, {}),
2923
2923
  /* @__PURE__ */ jsx(
2924
2924
  Typography,
@@ -4023,7 +4023,7 @@ function CollectionPropertiesEditorForm({
4023
4023
  setSelectedPropertyKey(propertyKey);
4024
4024
  setSelectedPropertyNamespace(namespace);
4025
4025
  };
4026
- const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-gray-50 dark:bg-gray-900", children: [
4026
+ const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-surface-50 dark:bg-surface-900", children: [
4027
4027
  /* @__PURE__ */ jsxs("div", { className: cls(
4028
4028
  "p-4 md:p-8 pb-20 md:pb-20",
4029
4029
  "col-span-12 lg:col-span-5 h-full overflow-auto",
@@ -5124,9 +5124,9 @@ function TemplateButton({
5124
5124
  onClick,
5125
5125
  className: cls(
5126
5126
  "my-2 rounded-md border mx-0 p-6 px-4 focus:outline-none transition ease-in-out duration-150 flex flex-row gap-4 items-center",
5127
- "text-gray-700 dark:text-slate-300",
5127
+ "text-surface-700 dark:text-surface-accent-300",
5128
5128
  "hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary",
5129
- "border-gray-400 dark:border-gray-600 "
5129
+ "border-surface-400 dark:border-surface-600 "
5130
5130
  ),
5131
5131
  children: [
5132
5132
  icon,
@@ -5836,7 +5836,7 @@ function CollectionEditorInternal({
5836
5836
  Tabs,
5837
5837
  {
5838
5838
  value: currentView,
5839
- className: cls(defaultBorderMixin, "justify-end bg-gray-50 dark:bg-gray-950 border-b"),
5839
+ className: cls(defaultBorderMixin, "justify-end bg-surface-50 dark:bg-surface-950 border-b"),
5840
5840
  onValueChange: (v) => setCurrentView(v),
5841
5841
  children: [
5842
5842
  /* @__PURE__ */ jsx(Tab, { value: "details", children: "Details" }),
@@ -6499,7 +6499,7 @@ function CollectionViewHeaderAction({
6499
6499
  children: /* @__PURE__ */ jsx(
6500
6500
  IconButton,
6501
6501
  {
6502
- className: onHover ? "bg-white dark:bg-gray-950" : "hidden",
6502
+ className: onHover ? "bg-white dark:bg-surface-950" : "hidden",
6503
6503
  onClick: () => {
6504
6504
  collectionEditorController.editProperty({
6505
6505
  propertyKey,
@@ -6537,7 +6537,7 @@ function PropertyAddColumnComponent({
6537
6537
  children: /* @__PURE__ */ jsx(
6538
6538
  "div",
6539
6539
  {
6540
- className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-gray-100 bg-opacity-40 hover:bg-gray-100 dark:bg-gray-950 dark:bg-opacity-40 dark:hover:bg-gray-950",
6540
+ className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-surface-100 bg-opacity-40 hover:bg-surface-100 dark:bg-surface-950 dark:bg-opacity-40 dark:hover:bg-surface-950",
6541
6541
  onClick: () => {
6542
6542
  collectionEditorController.editProperty({
6543
6543
  editedCollectionId: collection.id,
@@ -6555,7 +6555,7 @@ function PropertyAddColumnComponent({
6555
6555
  }
6556
6556
  function NewCollectionButton() {
6557
6557
  const collectionEditorController = useCollectionEditorController();
6558
- return /* @__PURE__ */ jsx("div", { className: "bg-gray-50 dark:bg-gray-900 min-w-fit rounded", children: /* @__PURE__ */ jsxs(
6558
+ return /* @__PURE__ */ jsx("div", { className: "bg-surface-50 dark:bg-surface-900 min-w-fit rounded", children: /* @__PURE__ */ jsxs(
6559
6559
  Button,
6560
6560
  {
6561
6561
  className: "min-w-fit",
@@ -6755,7 +6755,7 @@ function IntroWidget({}) {
6755
6755
  return /* @__PURE__ */ jsxs(
6756
6756
  Paper,
6757
6757
  {
6758
- className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-slate-800 gap-2",
6758
+ className: "my-4 px-4 py-6 flex flex-col bg-white dark:bg-surface-accent-800 gap-2",
6759
6759
  children: [
6760
6760
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "uppercase", children: "No collections found" }),
6761
6761
  /* @__PURE__ */ jsx(Typography, { children: "Start building collections in FireCMS easily. Map them to your existing database data, import from files, or use our templates." }),