feedback-vos 1.0.35 → 1.0.36

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.mjs CHANGED
@@ -1434,15 +1434,32 @@ function Widget({
1434
1434
  const isLeft = position.includes("left");
1435
1435
  const panelPositionClass = isTop ? "absolute top-full mt-2" : "absolute bottom-full mb-2";
1436
1436
  const panelAlignmentClass = isLeft ? "left-0" : "right-0";
1437
+ const getPositionStyles = () => {
1438
+ const baseStyles = {
1439
+ position: "fixed",
1440
+ zIndex: 9999
1441
+ };
1442
+ if (position === "bottom-right") {
1443
+ baseStyles.bottom = "1rem";
1444
+ baseStyles.right = "1rem";
1445
+ } else if (position === "bottom-left") {
1446
+ baseStyles.bottom = "1rem";
1447
+ baseStyles.left = "1rem";
1448
+ } else if (position === "top-right") {
1449
+ baseStyles.top = "1rem";
1450
+ baseStyles.right = "1rem";
1451
+ } else if (position === "top-left") {
1452
+ baseStyles.top = "1rem";
1453
+ baseStyles.left = "1rem";
1454
+ }
1455
+ return baseStyles;
1456
+ };
1437
1457
  return /* @__PURE__ */ jsx(
1438
1458
  "div",
1439
1459
  {
1440
1460
  "data-feedback-widget": "true",
1441
1461
  className: `fixed ${positionClasses[position]} z-50`,
1442
- style: {
1443
- position: "fixed",
1444
- zIndex: 50
1445
- },
1462
+ style: getPositionStyles(),
1446
1463
  children: /* @__PURE__ */ jsxs(Popover, { className: "relative", children: [
1447
1464
  /* @__PURE__ */ jsx(Popover.Panel, { className: `${panelPositionClass} ${panelAlignmentClass}`, children: /* @__PURE__ */ jsx(
1448
1465
  WidgetForm,