@trackunit/react-components 0.1.45 → 0.1.47-alpha-307439490d.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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +6 -6
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, shift, size, autoUpdate, useInteractions, useClick, useHover, useRole, useDismiss, FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
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,14 +1,14 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.1.45",
3
+ "version": "0.1.47-alpha-307439490d.0",
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.68",
8
- "@trackunit/tailwind-styled-components": "0.0.52",
7
+ "@trackunit/css-core": "0.0.69-alpha-307439490d.0",
8
+ "@trackunit/tailwind-styled-components": "0.0.53-alpha-307439490d.0",
9
9
  "react": "18.2.0",
10
- "@trackunit/ui-design-tokens": "0.0.55",
11
- "@trackunit/react-core-contexts-test": "0.1.24",
10
+ "@trackunit/ui-design-tokens": "0.0.56-alpha-307439490d.0",
11
+ "@trackunit/react-core-contexts-test": "0.1.25-alpha-307439490d.0",
12
12
  "echarts": "5.4.0",
13
13
  "echarts-for-react": "3.0.2",
14
14
  "uuid": "8.3.2",
@@ -16,7 +16,7 @@
16
16
  "date-fns": "2.29.3",
17
17
  "react-day-picker": "8.3.7",
18
18
  "@floating-ui/react": "0.15.1",
19
- "@trackunit/ui-icons": "0.0.57",
19
+ "@trackunit/ui-icons": "0.0.58-alpha-307439490d.0",
20
20
  "react-browser-hooks": "2.2.4",
21
21
  "react-useportal": "1.0.17",
22
22
  "react-router-dom": "6.4.5",