@mercoa/react 0.0.10-rc1 → 0.0.10-rc3

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
@@ -72358,7 +72358,7 @@ function LineItems({
72358
72358
  /* @__PURE__ */ jsxs(
72359
72359
  "table",
72360
72360
  {
72361
- className: "mercoa-min-w-full mercoa-divide-y mercoa-divide-gray-300 mercoa-w-[600px] mercoa-relative mercoa-mb-6 pointer-events-auto",
72361
+ className: "mercoa-min-w-full mercoa-divide-y mercoa-divide-gray-300 mercoa-w-[600px] mercoa-relative mercoa-mb-6 mercoa-pointer-events-auto",
72362
72362
  id: "lineItemsTable",
72363
72363
  children: [
72364
72364
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { className: "mercoa-divide-x mercoa-divide-gray-200", children: [
@@ -72436,7 +72436,7 @@ function LineItemScrollBar({ width: ee }) {
72436
72436
  ce.style.left = `-${ar * sr}px`;
72437
72437
  }
72438
72438
  }
72439
- return ee > 730 ? (te({ x: 0 }), /* @__PURE__ */ jsx(Fragment, {})) : /* @__PURE__ */ jsx("div", { className: "mercoa-w-full mercoa-h-[10px] mercoa-bg-gray-100 mercoa-relative pointer-events-auto", children: /* @__PURE__ */ jsx(Draggable$1, { axis: "x", bounds: "parent", onDrag: (nr, or) => te(or), children: /* @__PURE__ */ jsx(
72439
+ return ee > 730 ? (te({ x: 0 }), /* @__PURE__ */ jsx(Fragment, {})) : /* @__PURE__ */ jsx("div", { className: "mercoa-w-full mercoa-h-[10px] mercoa-bg-gray-100 mercoa-relative mercoa-pointer-events-auto", children: /* @__PURE__ */ jsx(Draggable$1, { axis: "x", bounds: "parent", onDrag: (nr, or) => te(or), children: /* @__PURE__ */ jsx(
72440
72440
  "div",
72441
72441
  {
72442
72442
  className: "mercoa-h-[10px] mercoa-bg-gray-300 hover:mercoa-bg-gray-400 mercoa-absolute mercoa-top-0",
@@ -72489,8 +72489,8 @@ function LineItemRow({
72489
72489
  shouldTouch: !0
72490
72490
  });
72491
72491
  else {
72492
- const yr = JSON.parse(JSON.stringify(mr ?? "{}"));
72493
- yr[hr.key] = `${pr}`, or(`lineItems.${re}.metadata`, yr, {
72492
+ let yr = {};
72493
+ mr && (yr = JSON.parse(typeof mr == "string" ? mr ?? "{}" : JSON.stringify(mr))), yr[hr.key] = `${pr}`, or(`lineItems.${re}.metadata`, yr, {
72494
72494
  shouldDirty: !0,
72495
72495
  shouldTouch: !0
72496
72496
  });