@vuu-ui/vuu-popups 3.1.0-beta.1 → 3.1.0-beta.3
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/package.json +6 -6
- package/src/index.js +4 -0
- package/src/popup/{Popup.mjs → Popup.js} +1 -1
- package/src/popup/index.js +2 -0
- package/src/popup/{useAnchoredPosition.mjs → useAnchoredPosition.js} +1 -1
- package/src/popup-menu/{PopupMenu.mjs → PopupMenu.js} +1 -1
- package/src/popup-menu/index.js +1 -0
- package/src/popup-menu/{usePopupMenu.mjs → usePopupMenu.js} +1 -1
- package/src/portal/index.js +1 -0
- package/src/tooltip/{Tooltip.mjs → Tooltip.js} +2 -2
- package/src/tooltip/index.js +2 -0
- package/src/index.mjs +0 -4
- package/src/popup/index.mjs +0 -2
- package/src/popup-menu/index.mjs +0 -1
- package/src/portal/index.mjs +0 -1
- package/src/tooltip/index.mjs +0 -2
- /package/src/popup/{getPositionRelativeToAnchor.mjs → getPositionRelativeToAnchor.js} +0 -0
- /package/src/portal/{Portal.mjs → Portal.js} +0 -0
- /package/src/tooltip/{useTooltip.mjs → useTooltip.js} +0 -0
- /package/src/tooltip/{useTooltipAnchoredPosition.mjs → useTooltipAnchoredPosition.js} +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.0-beta.
|
|
2
|
+
"version": "3.1.0-beta.3",
|
|
3
3
|
"description": "VUU popup components - Context Menu, Dialog etc",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"author": "heswell",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"@salt-ds/core": "1.54.1",
|
|
14
14
|
"@salt-ds/styles": "0.2.1",
|
|
15
15
|
"@salt-ds/window": "0.1.1",
|
|
16
|
-
"@vuu-ui/vuu-context-menu": "3.1.0-beta.
|
|
17
|
-
"@vuu-ui/vuu-data-types": "3.1.0-beta.
|
|
18
|
-
"@vuu-ui/vuu-layout": "3.1.0-beta.
|
|
19
|
-
"@vuu-ui/vuu-utils": "3.1.0-beta.
|
|
20
|
-
"@vuu-ui/vuu-ui-controls": "3.1.0-beta.
|
|
16
|
+
"@vuu-ui/vuu-context-menu": "3.1.0-beta.3",
|
|
17
|
+
"@vuu-ui/vuu-data-types": "3.1.0-beta.3",
|
|
18
|
+
"@vuu-ui/vuu-layout": "3.1.0-beta.3",
|
|
19
|
+
"@vuu-ui/vuu-utils": "3.1.0-beta.3",
|
|
20
|
+
"@vuu-ui/vuu-ui-controls": "3.1.0-beta.3"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"clsx": "^2.0.0",
|
package/src/index.js
ADDED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
4
4
|
import { useWindow } from "@salt-ds/window";
|
|
5
|
-
import { useAnchoredPosition } from "./useAnchoredPosition.
|
|
5
|
+
import { useAnchoredPosition } from "./useAnchoredPosition.js";
|
|
6
6
|
import Popup from "./Popup.css";
|
|
7
7
|
const PopupComponent = ({ children, className, anchorElement, minWidth, offsetLeft, offsetTop, placement, position: positionProp })=>{
|
|
8
8
|
const targetWindow = useWindow();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
2
|
-
import { getPositionRelativeToAnchor } from "./getPositionRelativeToAnchor.
|
|
2
|
+
import { getPositionRelativeToAnchor } from "./getPositionRelativeToAnchor.js";
|
|
3
3
|
const useAnchoredPosition = ({ anchorElement, minWidth, offsetLeft = 0, offsetTop = 0, placement, position: positionProp })=>{
|
|
4
4
|
const popupRef = useRef(null);
|
|
5
5
|
const [position, setPosition] = useState(positionProp);
|
|
@@ -5,7 +5,7 @@ import { useWindow } from "@salt-ds/window";
|
|
|
5
5
|
import { Icon, IconButton } from "@vuu-ui/vuu-ui-controls";
|
|
6
6
|
import { useId } from "@vuu-ui/vuu-utils";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { usePopupMenu } from "./usePopupMenu.
|
|
8
|
+
import { usePopupMenu } from "./usePopupMenu.js";
|
|
9
9
|
import PopupMenu from "./PopupMenu.css";
|
|
10
10
|
const classBase = "vuuPopupMenu";
|
|
11
11
|
const PopupMenu_PopupMenu = ({ anchorElement, "aria-label": ariaLabel, appearance = "transparent", className, disabled = false, label, icon = label ? "chevron-down" : "more-vert", id: idProp, menuActionHandler, menuBuilder, menuClassName, menuLocation = "header", menuOptions, onMenuClose, onMenuOpen, popupPlacement = "below-right", sentiment = "neutral", tabIndex = 0, ...htmlAttributes })=>{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PopupMenu.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useRef, useState } from "react";
|
|
2
|
-
import { getPositionRelativeToAnchor } from "../popup/getPositionRelativeToAnchor.
|
|
2
|
+
import { getPositionRelativeToAnchor } from "../popup/getPositionRelativeToAnchor.js";
|
|
3
3
|
import { useContextMenu } from "@vuu-ui/vuu-context-menu";
|
|
4
4
|
const usePopupMenu = ({ anchorElement, "aria-label": ariaLabel = "Popup menu", id, menuActionHandler, menuBuilder, menuLocation, menuOptions, onMenuClose, onMenuOpen, popupPlacement, tabIndex })=>{
|
|
5
5
|
const [menuOpen, _setMenuOpen] = useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Portal.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Portal } from "../portal/index.
|
|
3
|
-
import { useTooltipAnchoredPosition } from "./useTooltipAnchoredPosition.
|
|
2
|
+
import { Portal } from "../portal/index.js";
|
|
3
|
+
import { useTooltipAnchoredPosition } from "./useTooltipAnchoredPosition.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
6
6
|
import { useWindow } from "@salt-ds/window";
|
package/src/index.mjs
DELETED
package/src/popup/index.mjs
DELETED
package/src/popup-menu/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PopupMenu.mjs";
|
package/src/portal/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Portal.mjs";
|
package/src/tooltip/index.mjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|