@jobber/components 6.82.1 → 6.82.2

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/dist/Menu-cjs.js CHANGED
@@ -82,7 +82,7 @@ function Menu({ activator, items, UNSAFE_className, UNSAFE_style, }) {
82
82
  strategy: "fixed",
83
83
  middleware: [
84
84
  floatingUi_react.offset(MENU_OFFSET),
85
- floatingUi_react.flip({ flipAlignment: false }),
85
+ floatingUi_react.flip({ fallbackPlacements: ["bottom-end", "top-start", "top-end"] }),
86
86
  floatingUi_react.size({
87
87
  apply({ availableHeight, elements }) {
88
88
  // The inner element is the scrollable menu that requires the max height
package/dist/Menu-es.js CHANGED
@@ -80,7 +80,7 @@ function Menu({ activator, items, UNSAFE_className, UNSAFE_style, }) {
80
80
  strategy: "fixed",
81
81
  middleware: [
82
82
  offset(MENU_OFFSET),
83
- flip({ flipAlignment: false }),
83
+ flip({ fallbackPlacements: ["bottom-end", "top-start", "top-end"] }),
84
84
  size({
85
85
  apply({ availableHeight, elements }) {
86
86
  // The inner element is the scrollable menu that requires the max height
@@ -26,7 +26,7 @@ function useTooltipPositioning({ preferredPlacement, }) {
26
26
  padding: TOOLTIP_SHIFT_PADDING,
27
27
  limiter: floatingUi_react.limitShift(),
28
28
  }),
29
- floatingUi_react.flip({ fallbackPlacements: ["bottom", "left", "right"] }),
29
+ floatingUi_react.flip({ fallbackPlacements: ["top", "bottom", "left", "right"] }),
30
30
  floatingUi_react.arrow({
31
31
  element: arrowElement || null,
32
32
  padding: TOOLTIP_ARROW_PADDING,
@@ -24,7 +24,7 @@ function useTooltipPositioning({ preferredPlacement, }) {
24
24
  padding: TOOLTIP_SHIFT_PADDING,
25
25
  limiter: limitShift(),
26
26
  }),
27
- flip({ fallbackPlacements: ["bottom", "left", "right"] }),
27
+ flip({ fallbackPlacements: ["top", "bottom", "left", "right"] }),
28
28
  arrow({
29
29
  element: arrowElement || null,
30
30
  padding: TOOLTIP_ARROW_PADDING,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.82.1",
3
+ "version": "6.82.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -539,5 +539,5 @@
539
539
  "> 1%",
540
540
  "IE 10"
541
541
  ],
542
- "gitHead": "804ff1d892fddc1afacba0afca021b851d7b7bdd"
542
+ "gitHead": "9455d6e921b3ebe9b5540079573fe5ddc7c16387"
543
543
  }