@react-hive/honey-layout 5.2.0-beta → 5.2.1-beta

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.
@@ -4,10 +4,6 @@ import { Nullable } from '../../../types';
4
4
  import { UseHoneyPopupInteractionsOptions } from './use-honey-popup-interactions';
5
5
  export interface UseHoneyPopupOptions extends UseHoneyPopupInteractionsOptions {
6
6
  open?: boolean;
7
- /**
8
- * Configuration for the floating arrow.
9
- */
10
- arrowOptions?: Omit<ArrowOptions, 'element'>;
11
7
  /**
12
8
  * Options for configuring the floating UI behavior.
13
9
  */
@@ -31,6 +27,10 @@ export interface UseHoneyPopupOptions extends UseHoneyPopupInteractionsOptions {
31
27
  * @see https://floating-ui.com/docs/shift
32
28
  */
33
29
  shiftOptions?: ShiftOptions;
30
+ /**
31
+ * Configuration for the floating arrow.
32
+ */
33
+ arrowOptions?: Omit<ArrowOptions, 'element'>;
34
34
  /**
35
35
  * @prop duration Default is 250.
36
36
  *
@@ -92,5 +92,5 @@ interface UseHoneyPopupApi {
92
92
  *
93
93
  * @returns An object containing state and utilities for managing the popup.
94
94
  */
95
- export declare const useHoneyPopup: ({ enabled, event, dismissOptions, clickOptions, hoverOptions, focusOptions, clientPointsOptions, roleOptions, open, arrowOptions, floatingOptions, offsetOptions, flipOptions, shiftOptions, transitionOptions, useAutoUpdate, autoUpdateOptions, onOpen, onClose, }: UseHoneyPopupOptions) => UseHoneyPopupApi;
95
+ export declare const useHoneyPopup: ({ enabled, event, dismissOptions, clickOptions, hoverOptions, focusOptions, clientPointsOptions, roleOptions, open, floatingOptions, offsetOptions, flipOptions, shiftOptions, arrowOptions, transitionOptions, useAutoUpdate, autoUpdateOptions, onOpen, onClose, }: UseHoneyPopupOptions) => UseHoneyPopupApi;
96
96
  export {};
package/dist/index.js CHANGED
@@ -4606,11 +4606,11 @@ const $o = Nn(void 0), Hc = Ue(Qt).attrs(({ $width: e = "max-content" }) => ({
4606
4606
  clientPointsOptions: i,
4607
4607
  roleOptions: c,
4608
4608
  open: l,
4609
- arrowOptions: a,
4610
- floatingOptions: g,
4611
- offsetOptions: f,
4612
- flipOptions: u,
4613
- shiftOptions: p,
4609
+ floatingOptions: a,
4610
+ offsetOptions: g,
4611
+ flipOptions: f,
4612
+ shiftOptions: u,
4613
+ arrowOptions: p,
4614
4614
  transitionOptions: y,
4615
4615
  useAutoUpdate: h = !1,
4616
4616
  autoUpdateOptions: E,
@@ -4624,22 +4624,27 @@ const $o = Nn(void 0), Hc = Ue(Qt).attrs(({ $width: e = "max-content" }) => ({
4624
4624
  const M = We(() => {
4625
4625
  O(!1), w == null || w();
4626
4626
  }, [w]), F = [
4627
- // https://floating-ui.com/docs/arrow
4628
- Xa({
4629
- element: A,
4630
- // https://floating-ui.com/docs/floatingarrow#arrow-does-not-avoid-rounded-corners
4631
- padding: S.spacings.base,
4632
- ...a
4633
- }),
4634
- za(f ?? S.spacings.base),
4627
+ za(g ?? S.spacings.base),
4635
4628
  // https://floating-ui.com/docs/flip
4636
4629
  Ga({
4637
4630
  // https://floating-ui.com/docs/flip#combining-with-shift
4638
4631
  crossAxis: !1,
4639
- ...u
4632
+ ...f
4640
4633
  }),
4641
4634
  // https://floating-ui.com/docs/shift
4642
4635
  qa({
4636
+ padding: S.spacings.base,
4637
+ ...u
4638
+ }),
4639
+ /**
4640
+ * The `arrow()` should generally be placed toward the end of your middleware array,
4641
+ * after `shift()` or `autoPlacement()` (if used).
4642
+ *
4643
+ * @see https://floating-ui.com/docs/arrow
4644
+ */
4645
+ Xa({
4646
+ element: A,
4647
+ // https://floating-ui.com/docs/floatingarrow#arrow-does-not-avoid-rounded-corners
4643
4648
  padding: S.spacings.base,
4644
4649
  ...p
4645
4650
  })
@@ -4652,7 +4657,7 @@ const $o = Nn(void 0), Hc = Ue(Qt).attrs(({ $width: e = "max-content" }) => ({
4652
4657
  ...h && {
4653
4658
  whileElementsMounted: (R, _, V) => $a(R, _, V, E)
4654
4659
  },
4655
- ...g
4660
+ ...a
4656
4661
  }), Y = Wc(U.context, {
4657
4662
  enabled: e,
4658
4663
  event: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-hive/honey-layout",
3
- "version": "5.2.0-beta",
3
+ "version": "5.2.1-beta",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",