@trackunit/react-components 0.1.45 → 0.1.47
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/index.js +2 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import EChart from 'echarts-for-react';
|
|
|
7
7
|
import { v4 } from 'uuid';
|
|
8
8
|
import { useMeasure, useCopyToClipboard } from 'react-use';
|
|
9
9
|
import { format, formatDistance } from 'date-fns';
|
|
10
|
-
import { useFloating, offset, flip,
|
|
10
|
+
import { useFloating, offset, flip, size, shift, autoUpdate, useInteractions, useClick, useHover, useRole, useDismiss, FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
|
|
11
11
|
import { Link, UNSAFE_NavigationContext } from 'react-router-dom';
|
|
12
12
|
import { DayPicker as DayPicker$1 } from 'react-day-picker';
|
|
13
13
|
import { enGB, enUS, da, de, cs, nl, fr, fi, hu, it, nb, pl, pt, ru, ro, es, sv, ja, th } from 'date-fns/locale';
|
|
@@ -945,9 +945,7 @@ const Popover = ({ children, render, placement, activation = { click: true, hove
|
|
|
945
945
|
middleware: [
|
|
946
946
|
offset(8),
|
|
947
947
|
flip({ fallbackPlacements: ["top", "bottom", "right", "left"] }),
|
|
948
|
-
shift(),
|
|
949
948
|
size({
|
|
950
|
-
padding: 8,
|
|
951
949
|
apply({ availableWidth, availableHeight, elements }) {
|
|
952
950
|
Object.assign(elements.floating.style, {
|
|
953
951
|
maxWidth: `${availableWidth}px`,
|
|
@@ -955,6 +953,7 @@ const Popover = ({ children, render, placement, activation = { click: true, hove
|
|
|
955
953
|
});
|
|
956
954
|
},
|
|
957
955
|
}),
|
|
956
|
+
shift(),
|
|
958
957
|
],
|
|
959
958
|
placement,
|
|
960
959
|
whileElementsMounted: autoUpdate,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@trackunit/css-core": "0.0.
|
|
7
|
+
"@trackunit/css-core": "0.0.69",
|
|
8
8
|
"@trackunit/tailwind-styled-components": "0.0.52",
|
|
9
9
|
"react": "18.2.0",
|
|
10
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.56",
|
|
11
11
|
"@trackunit/react-core-contexts-test": "0.1.24",
|
|
12
12
|
"echarts": "5.4.0",
|
|
13
13
|
"echarts-for-react": "3.0.2",
|