@turquoisehealth/pit-viper 2.94.2-dev.3 → 2.96.1-dev.0

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.
@@ -3126,7 +3126,8 @@ const Nd = { style: { width: "fit-content" } }, Fd = /* @__PURE__ */ Y({
3126
3126
  disableClickOutsideToClose: { type: Boolean, default: !1 },
3127
3127
  delay: { default: 25 },
3128
3128
  zIndex: { default: 10 },
3129
- interactionBuffer: { default: 15 }
3129
+ interactionBuffer: { default: 15 },
3130
+ teleportLocation: { default: "body" }
3130
3131
  }, {
3131
3132
  modelValue: { type: Boolean },
3132
3133
  modelModifiers: {}
@@ -3165,8 +3166,8 @@ const Nd = { style: { width: "fit-content" } }, Fd = /* @__PURE__ */ Y({
3165
3166
  const v = H(() => ({
3166
3167
  ...f.value,
3167
3168
  zIndex: t.zIndex ?? 10,
3168
- padding: t.interactionBuffer ? "none" : `${t.interactionBuffer}px`,
3169
- margin: t.interactionBuffer ? "none" : `-${t.interactionBuffer}px`
3169
+ padding: t.interactionBuffer ? `${t.interactionBuffer}px` : "0",
3170
+ margin: t.interactionBuffer ? `-${t.interactionBuffer}px` : "0"
3170
3171
  })), b = /* @__PURE__ */ Vn(
3171
3172
  ($) => {
3172
3173
  o.value = $;
@@ -3189,7 +3190,7 @@ const Nd = { style: { width: "fit-content" } }, Fd = /* @__PURE__ */ Y({
3189
3190
  ], 512),
3190
3191
  $.$slots.content ? (h(), F(Ko, {
3191
3192
  key: 0,
3192
- to: "body",
3193
+ to: e.teleportLocation,
3193
3194
  disabled: !t.useTeleport
3194
3195
  }, [
3195
3196
  Be(P("div", {
@@ -3202,7 +3203,7 @@ const Nd = { style: { width: "fit-content" } }, Fd = /* @__PURE__ */ Y({
3202
3203
  ], 4), [
3203
3204
  [vr, o.value]
3204
3205
  ])
3205
- ], 8, ["disabled"])) : x("", !0)
3206
+ ], 8, ["to", "disabled"])) : x("", !0)
3206
3207
  ])), [
3207
3208
  [fe(Er), [w, { ignore: [".pv-floating"] }]]
3208
3209
  ]);
@@ -11556,9 +11557,13 @@ const eh = () => ({
11556
11557
  i.value && n?.value?.setAttribute("open", "true"), o.closeOnClickOutside && s();
11557
11558
  });
11558
11559
  const s = () => {
11559
- n.value && ss(n.value, () => {
11560
- i.value && (r("click-outside"), l());
11561
- });
11560
+ n.value && ss(
11561
+ n.value,
11562
+ () => {
11563
+ i.value && (r("click-outside"), l());
11564
+ },
11565
+ { ignore: [".pv-click-outside-ignore"] }
11566
+ );
11562
11567
  }, l = () => {
11563
11568
  n?.value?.removeAttribute("open"), i.value = !1;
11564
11569
  };
@@ -11625,7 +11630,8 @@ const eh = () => ({
11625
11630
  disableClickOutsideToClose: { type: Boolean },
11626
11631
  delay: { default: 0 },
11627
11632
  zIndex: {},
11628
- interactionBuffer: {}
11633
+ interactionBuffer: {},
11634
+ teleportLocation: {}
11629
11635
  },
11630
11636
  setup(e) {
11631
11637
  return (t, o) => (h(), F(fe(Fd), so(Ka(t.$props)), Nl({