@firecms/collection_editor 3.0.0-rc.3 → 3.0.0-tw4.1

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
@@ -495,7 +495,7 @@ function CollectionDetailsForm(t0) {
495
495
  }
496
496
  let t41;
497
497
  if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
498
- t41 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
498
+ t41 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
499
499
  /* @__PURE__ */ jsx(SettingsIcon, {}),
500
500
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-2", children: "Advanced" })
501
501
  ] });
@@ -1991,7 +1991,7 @@ function ValidationPanel(t0) {
1991
1991
  } = t0;
1992
1992
  let t1;
1993
1993
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1994
- t1 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
1994
+ t1 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
1995
1995
  /* @__PURE__ */ jsx(RuleIcon, {}),
1996
1996
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: "Validation" })
1997
1997
  ] });
@@ -2186,7 +2186,7 @@ function StoragePropertyField(t0) {
2186
2186
  t21 = "col-span-12";
2187
2187
  T1 = ExpandablePanel;
2188
2188
  if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
2189
- t20 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500", children: [
2189
+ t20 = /* @__PURE__ */ jsxs("div", { className: "flex flex-row text-surface-500 text-text-secondary dark:text-text-secondary-dark", children: [
2190
2190
  /* @__PURE__ */ jsx(CloudUploadIcon, {}),
2191
2191
  /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", className: "ml-4", children: "File upload config" })
2192
2192
  ] });
@@ -2779,7 +2779,7 @@ function PropertyFieldPreview(t0) {
2779
2779
  }
2780
2780
  const propertyConfig = t1;
2781
2781
  editableProperty(property);
2782
- const borderColorClass = hasError ? "border-red-500 dark:border-red-500 border-opacity-100 dark:border-opacity-100 ring-0 dark:ring-0" : selected ? "border-primary" : "border-transparent";
2782
+ const borderColorClass = hasError ? "border-red-500 dark:border-red-500 border-opacity-100 dark:border-opacity-100 border-red-500/100 dark:border-red-500/100 ring-0 dark:ring-0" : selected ? "border-primary" : "border-transparent";
2783
2783
  let t2;
2784
2784
  if ($[3] !== propertyConfig) {
2785
2785
  t2 = /* @__PURE__ */ jsx("div", { className: "m-4", children: /* @__PURE__ */ jsx(PropertyConfigBadge, { propertyConfig }) });
@@ -7497,7 +7497,7 @@ function CollectionPropertiesEditorForm({
7497
7497
  setSelectedPropertyKey(propertyKey_2);
7498
7498
  setSelectedPropertyNamespace(namespace_5);
7499
7499
  };
7500
- const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-white dark:bg-surface-950", children: [
7500
+ const body = /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-12 gap-2 h-full bg-surface dark:bg-surface-dark", children: [
7501
7501
  /* @__PURE__ */ jsxs("div", { className: cls("bg-surface-50 dark:bg-surface-900", "p-4 md:p-8 pb-20 md:pb-20", "col-span-12 lg:col-span-5 h-full overflow-auto", !asDialog && "border-r " + defaultBorderMixin), children: [
7502
7502
  /* @__PURE__ */ jsxs("div", { className: "flex my-2", children: [
7503
7503
  /* @__PURE__ */ jsxs("div", { className: "flex-grow mb-4", children: [
@@ -8353,10 +8353,7 @@ const blogCollectionTemplate = {
8353
8353
  previewAsTag: true
8354
8354
  }
8355
8355
  }
8356
- }),
8357
- initialFilter: {
8358
- status: ["==", "published"]
8359
- }
8356
+ })
8360
8357
  };
8361
8358
  const usersCollectionTemplate = {
8362
8359
  id: "users",
@@ -8862,7 +8859,7 @@ function TemplateButton(t0) {
8862
8859
  } = t0;
8863
8860
  let t1;
8864
8861
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
8865
- t1 = cls("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", "text-surface-700 dark:text-surface-accent-300", "hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary", "border-surface-400 dark:border-surface-600 ");
8862
+ t1 = cls("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", "text-text-secondary dark:text-text-secondary-dark", "hover:border-primary-dark hover:text-primary-dark dark:hover:text-primary focus:ring-primary hover:ring-1 hover:ring-primary", "border-surface-400 dark:border-surface-600 ");
8866
8863
  $[0] = t1;
8867
8864
  } else {
8868
8865
  t1 = $[0];
@@ -11102,7 +11099,7 @@ function PropertyAddColumnComponent(t0) {
11102
11099
  }
11103
11100
  let t4;
11104
11101
  if ($[6] !== t2) {
11105
- t4 = /* @__PURE__ */ jsx("div", { 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", onClick: t2, children: t3 });
11102
+ t4 = /* @__PURE__ */ jsx("div", { className: "p-0.5 w-20 h-full flex items-center justify-center cursor-pointer bg-surface-100 bg-opacity-40 bg-surface-100/40 hover:bg-surface-100 dark:bg-surface-950 dark:bg-opacity-40 dark:bg-surface-950/40 dark:hover:bg-surface-950", onClick: t2, children: t3 });
11106
11103
  $[6] = t2;
11107
11104
  $[7] = t4;
11108
11105
  } else {