@fluid-topics/ft-popover 1.2.34 → 1.2.35

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.
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, nothing } from "lit";
8
8
  import { property, query } from "lit/decorators.js";
9
- import { computeFlipOffsetPosition, FtLitElement, unslotText } from "@fluid-topics/ft-wc-utils";
9
+ import { computeOffsetAutoPosition, FtLitElement, unslotText } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  import { FtdsButton } from "@fluid-topics/ft-button";
12
12
  import { styles } from "./ftds-popover.styles";
@@ -134,7 +134,7 @@ class FtdsPopover extends FtLitElement {
134
134
  this.popoverWrapper.style.top = "";
135
135
  const reference = this.openingButton;
136
136
  const fallbackPlacements = ["right-start", "bottom-end", "right-end", "left-start", "left-end", "top-start", "top-end"];
137
- const { x, y } = await computeFlipOffsetPosition(reference, this.popoverWrapper, "bottom-start", fallbackPlacements, "fixed");
137
+ const { x, y } = await computeOffsetAutoPosition(reference, this.popoverWrapper, "bottom-start", fallbackPlacements, "fixed");
138
138
  this.popoverWrapper.style.left = `${x}px`;
139
139
  this.popoverWrapper.style.top = `${y}px`;
140
140
  this.popoverWrapper.classList.add("ftds-popover--wrapper-positioned");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-popover",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "A simple popover component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -20,12 +20,12 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@fluid-topics/design-system-variables": "0.1.92",
23
- "@fluid-topics/ft-button": "1.2.34",
24
- "@fluid-topics/ft-icon": "1.2.34",
25
- "@fluid-topics/ft-link": "1.2.34",
26
- "@fluid-topics/ft-typography": "1.2.34",
27
- "@fluid-topics/ft-wc-utils": "1.2.34",
23
+ "@fluid-topics/ft-button": "1.2.35",
24
+ "@fluid-topics/ft-icon": "1.2.35",
25
+ "@fluid-topics/ft-link": "1.2.35",
26
+ "@fluid-topics/ft-typography": "1.2.35",
27
+ "@fluid-topics/ft-wc-utils": "1.2.35",
28
28
  "lit": "3.1.0"
29
29
  },
30
- "gitHead": "692cdd9bc3f926c606d3ac15f9174df5b4ee8499"
30
+ "gitHead": "b0a09494d663cabc67bc485bc4e733cdbb4e6472"
31
31
  }