@open-mercato/core 0.6.6-develop.5716.1.b108502d0d → 0.6.6-develop.5738.1.4182c2b2c7

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.
@@ -1,4 +1,4 @@
1
- [build:core] found 3335 entry points
1
+ [build:core] found 3336 entry points
2
2
  [build:core] built successfully
3
3
  [build:core:generated] found 185 entry points
4
4
  [build:core:generated] built successfully
@@ -562,12 +562,13 @@ function EditCatalogProductPage({
562
562
  {
563
563
  id: "details",
564
564
  column: 1,
565
- component: ({ values, setValue, errors }) => /* @__PURE__ */ jsx(
565
+ component: ({ values, setValue, errors, requiredFieldIds }) => /* @__PURE__ */ jsx(
566
566
  ProductDetailsSection,
567
567
  {
568
568
  values,
569
569
  setValue,
570
570
  errors,
571
+ requiredFieldIds,
571
572
  productId: productId ?? "",
572
573
  hasVariants: Boolean(
573
574
  values.hasVariants
@@ -1125,6 +1126,7 @@ function ProductDetailsSection({
1125
1126
  values,
1126
1127
  setValue,
1127
1128
  errors,
1129
+ requiredFieldIds,
1128
1130
  productId,
1129
1131
  hasVariants,
1130
1132
  variantMediaGroups
@@ -1177,10 +1179,10 @@ function ProductDetailsSection({
1177
1179
  [mediaItems, setValue]
1178
1180
  );
1179
1181
  return /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
1180
- /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1182
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "title", children: [
1181
1183
  /* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
1182
1184
  t("catalog.products.form.title", "Title"),
1183
- /* @__PURE__ */ jsx("span", { className: "text-red-600", children: "*" })
1185
+ /* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" })
1184
1186
  ] }),
1185
1187
  /* @__PURE__ */ jsx(
1186
1188
  Input,
@@ -1193,11 +1195,14 @@ function ProductDetailsSection({
1193
1195
  )
1194
1196
  }
1195
1197
  ),
1196
- errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-red-600", children: errors.title }) : null
1198
+ errors.title ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.title }) : null
1197
1199
  ] }),
1198
- /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
1200
+ /* @__PURE__ */ jsxs("div", { className: "space-y-2", "data-crud-field-id": "description", children: [
1199
1201
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1200
- /* @__PURE__ */ jsx(Label, { children: t("catalog.products.form.description", "Description") }),
1202
+ /* @__PURE__ */ jsxs(Label, { className: "flex items-center gap-1", children: [
1203
+ t("catalog.products.form.description", "Description"),
1204
+ requiredFieldIds?.has("description") ? /* @__PURE__ */ jsx("span", { className: "text-status-error-text", children: "*" }) : null
1205
+ ] }),
1201
1206
  /* @__PURE__ */ jsxs(
1202
1207
  Button,
1203
1208
  {
@@ -1233,7 +1238,8 @@ function ProductDetailsSection({
1233
1238
  "Describe the product..."
1234
1239
  )
1235
1240
  }
1236
- )
1241
+ ),
1242
+ errors.description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-status-error-text", children: errors.description }) : null
1237
1243
  ] }),
1238
1244
  /* @__PURE__ */ jsx(
1239
1245
  ProductMediaManager,