@firecms/collection_editor 3.0.0-canary.281 → 3.0.0-canary.283

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
@@ -2502,7 +2502,7 @@ function PropertyFieldPreview(t0) {
2502
2502
  }
2503
2503
  let t6;
2504
2504
  if ($[9] !== includeName || $[10] !== property.name) {
2505
- t6 = includeName && /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "body1", component: "span", className: "flex-grow pr-2", children: property.name ? property.name : " " }) });
2505
+ t6 = includeName && /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(Typography, { variant: "label", component: "span", className: "flex-grow pr-2", children: property.name ? property.name : " " }) });
2506
2506
  $[9] = includeName;
2507
2507
  $[10] = property.name;
2508
2508
  $[11] = t6;
@@ -2619,7 +2619,7 @@ function NonEditablePropertyPreview(t0) {
2619
2619
  }
2620
2620
  let t3;
2621
2621
  if ($[5] !== propertyConfig) {
2622
- t3 = !propertyConfig && /* @__PURE__ */ jsx("div", { className: "h-8 w-8 p-1 rounded-full shadow text-white bg-surface-500", children: /* @__PURE__ */ jsx(FunctionsIcon, { color: "inherit", size: "medium" }) });
2622
+ t3 = !propertyConfig && /* @__PURE__ */ jsx("div", { className: "h-8 w-8 flex items-center justify-center rounded-full shadow text-white bg-surface-500", children: /* @__PURE__ */ jsx(FunctionsIcon, { color: "inherit", size: "small" }) });
2623
2623
  $[5] = propertyConfig;
2624
2624
  $[6] = t3;
2625
2625
  } else {
@@ -4905,7 +4905,7 @@ function updatePropertyFromWidget(propertyData, selectedWidgetId, propertyConfig
4905
4905
  } else if (selectedWidgetId === "user_select") {
4906
4906
  updatedProperty = mergeDeep(propertyData, {
4907
4907
  dataType: "string",
4908
- propertyConfig: "text_field",
4908
+ propertyConfig: "user_select",
4909
4909
  editable: propertyData.editable !== void 0 ? propertyData.editable : true,
4910
4910
  storage: void 0,
4911
4911
  multiline: void 0,
@@ -6483,9 +6483,9 @@ const WIDGET_TYPE_MAP = {
6483
6483
  url: "Text",
6484
6484
  email: "Text",
6485
6485
  switch: "Boolean",
6486
+ user_select: "Users",
6486
6487
  select: "Select",
6487
6488
  multi_select: "Select",
6488
- user_select: "Select",
6489
6489
  number_input: "Number",
6490
6490
  number_select: "Select",
6491
6491
  multi_number_select: "Select",
@@ -6759,7 +6759,7 @@ function WidgetSelectViewItem(t0) {
6759
6759
  const t4 = shouldWarnChangingDataType ? "secondary" : void 0;
6760
6760
  let t5;
6761
6761
  if ($[6] !== propertyConfig.name || $[7] !== t4) {
6762
- t5 = /* @__PURE__ */ jsx(Typography, { color: t4, children: propertyConfig.name });
6762
+ t5 = /* @__PURE__ */ jsx(Typography, { variant: "label", color: t4, children: propertyConfig.name });
6763
6763
  $[6] = propertyConfig.name;
6764
6764
  $[7] = t4;
6765
6765
  $[8] = t5;