@viasat/beam-react 2.11.0 → 2.13.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 (44) hide show
  1. package/assets/panel.css +1 -1
  2. package/chunks/FloatingUI.context.B15Tz_4h.js +1 -0
  3. package/chunks/{FloatingUI.context.DtJA57si.js → FloatingUI.context.Dl4Y1y1z.js} +105 -103
  4. package/lib/Dialog/Dialog.Header.cjs.js +1 -1
  5. package/lib/Dialog/Dialog.Header.es.js +1 -1
  6. package/lib/Dialog/Dialog.Trigger.cjs.js +1 -1
  7. package/lib/Dialog/Dialog.Trigger.es.js +1 -1
  8. package/lib/FloatingUI/FloatingUI.content.cjs.js +1 -1
  9. package/lib/FloatingUI/FloatingUI.content.es.js +1 -1
  10. package/lib/FloatingUI/FloatingUI.context.cjs.js +1 -1
  11. package/lib/FloatingUI/FloatingUI.context.d.ts +6 -2
  12. package/lib/FloatingUI/FloatingUI.context.es.js +1 -1
  13. package/lib/FloatingUI/FloatingUI.interactions.cjs.js +1 -1
  14. package/lib/FloatingUI/FloatingUI.interactions.d.ts +3 -2
  15. package/lib/FloatingUI/FloatingUI.interactions.es.js +16 -15
  16. package/lib/FloatingUI/FloatingUI.root.cjs.js +1 -1
  17. package/lib/FloatingUI/FloatingUI.root.es.js +1 -1
  18. package/lib/FloatingUI/FloatingUI.trigger.cjs.js +1 -1
  19. package/lib/FloatingUI/FloatingUI.trigger.close.cjs.js +1 -1
  20. package/lib/FloatingUI/FloatingUI.trigger.close.es.js +1 -1
  21. package/lib/FloatingUI/FloatingUI.trigger.es.js +1 -1
  22. package/lib/Menu/ActionListContextWrapper.cjs.js +1 -1
  23. package/lib/Menu/ActionListContextWrapper.es.js +1 -1
  24. package/lib/Popover/Popover.content.cjs.js +1 -1
  25. package/lib/Popover/Popover.content.es.js +1 -1
  26. package/lib/Popover/Popover.trigger.cjs.js +1 -1
  27. package/lib/Popover/Popover.trigger.es.js +1 -1
  28. package/lib/Tooltip/Tooltip.cjs.js +1 -1
  29. package/lib/Tooltip/Tooltip.es.js +1 -1
  30. package/lib/wip/Panel/Panel.Inline.cjs.js +1 -0
  31. package/lib/wip/Panel/Panel.Inline.d.ts +21 -0
  32. package/lib/wip/Panel/Panel.Inline.es.js +93 -0
  33. package/lib/wip/Panel/Panel.Overlay.cjs.js +1 -0
  34. package/lib/wip/Panel/Panel.Overlay.d.ts +17 -0
  35. package/lib/wip/Panel/Panel.Overlay.es.js +54 -0
  36. package/lib/wip/Panel/Panel.cjs.js +1 -1
  37. package/lib/wip/Panel/Panel.d.ts +1 -1
  38. package/lib/wip/Panel/Panel.es.js +81 -109
  39. package/lib/wip/Panel/Panel.helpers.cjs.js +1 -1
  40. package/lib/wip/Panel/Panel.helpers.d.ts +1 -5
  41. package/lib/wip/Panel/Panel.helpers.es.js +27 -50
  42. package/lib/wip/Panel/Panel.types.d.ts +9 -2
  43. package/package.json +6 -6
  44. package/chunks/FloatingUI.context.Du9g2lSg.js +0 -1
package/assets/panel.css CHANGED
@@ -1 +1 @@
1
- :root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-panel-size-sm:20rem;--bm-comp-panel-size-md:27.5rem;--bm-comp-panel-size-lg:40rem;--bm-comp-panel-space-x-sm:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-x-md:var(--bm-sem-space-150,1.5rem);--bm-comp-panel-space-header-pad-top:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-header-pad-bottom:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-header-gap-y:var(--bm-sem-space-25,.25rem);--bm-comp-panel-space-header-gap-x:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-pad-top:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-footer-pad-bottom:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-footer-gap-actions:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-gap-actions-stack:var(--bm-sem-space-100,1rem);--bm-comp-panel-radius:var(--bm-sem-radius-lg,1rem);--bm-comp-panel-shadow:var(--bm-sem-shadow-overlay,0 .25rem .75rem .125rem #0000001f);--bm-comp-panel-typo-heading:var(--bm-sem-typo-heading-sm,700 1.125rem/1.5rem "Uni Neue");--bm-comp-panel-typo-description:var(--bm-sem-typo-body-sm,400 .875rem/1.25rem "Source Sans Pro");--bm-comp-panel-color-heading:var(--bm-sem-color-text-primary,#141d24);--bm-comp-panel-color-description:var(--bm-sem-color-text-secondary,#576775)}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-panel-size-sm:20rem;--bm-comp-panel-size-md:27.5rem;--bm-comp-panel-size-lg:40rem;--bm-comp-panel-space-x-sm:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-x-md:var(--bm-sem-space-150,1.5rem);--bm-comp-panel-space-header-pad-top:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-header-pad-bottom:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-header-gap-y:var(--bm-sem-space-25,.25rem);--bm-comp-panel-space-header-gap-x:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-pad-top:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-footer-pad-bottom:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-footer-gap-actions:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-gap-actions-stack:var(--bm-sem-space-100,1rem);--bm-comp-panel-radius:var(--bm-sem-radius-lg,1rem);--bm-comp-panel-shadow:var(--bm-sem-shadow-overlay,0 .25rem .75rem .125rem #0000004d);--bm-comp-panel-typo-heading:var(--bm-sem-typo-heading-sm,700 1.125rem/1.5rem "Uni Neue");--bm-comp-panel-typo-description:var(--bm-sem-typo-body-sm,400 .875rem/1.25rem "Source Sans Pro");--bm-comp-panel-color-heading:var(--bm-sem-color-text-primary,#fff);--bm-comp-panel-color-description:var(--bm-sem-color-text-secondary,#c3cdd5)}.bm-panel{background-color:var(--bm-sem-color-surface-01);flex-direction:column;width:20rem;display:flex}.bm-panel--inline{height:100%;box-shadow:var(--bm-sem-shadow-none);position:relative}.bm-panel--overlay{box-shadow:var(--bm-comp-panel-shadow);position:fixed}.bm-panel--overlay.bm-panel--position-start{top:0;bottom:0;left:0}.bm-panel--overlay.bm-panel--position-end{top:0;bottom:0;right:0}.bm-panel--overlay.bm-panel--position-bottom{height:auto;bottom:0;left:0;right:0}.bm-panel--overlay.bm-panel--position-full{top:0;bottom:0;left:0;right:0}.bm-panel--size-full{width:100%}.bm-panel--padding-sm .bm-panel__header,.bm-panel--padding-sm .bm-panel__body,.bm-panel--padding-sm .bm-panel__footer{padding-left:var(--bm-comp-panel-space-x-sm);padding-right:var(--bm-comp-panel-space-x-sm)}.bm-panel--padding-md .bm-panel__header,.bm-panel--padding-md .bm-panel__body,.bm-panel--padding-md .bm-panel__footer{padding-left:var(--bm-comp-panel-space-x-md);padding-right:var(--bm-comp-panel-space-x-md)}.bm-panel__header{gap:var(--bm-comp-panel-space-header-gap-y);padding-top:var(--bm-comp-panel-space-header-pad-top);padding-bottom:var(--bm-comp-panel-space-header-pad-bottom);flex-direction:column;display:flex}.bm-panel__header__row{gap:var(--bm-comp-panel-space-header-gap-x);align-items:flex-start;display:flex}.bm-panel__header__content-before{gap:var(--bm-comp-panel-space-header-gap-x);flex-direction:row;display:flex}.bm-panel__header__content-after{gap:var(--bm-comp-panel-space-header-gap-x);align-items:flex-start;display:flex}.bm-panel__header__heading{font:var(--bm-comp-panel-typo-heading);color:var(--bm-comp-panel-color-heading);flex:1}.bm-panel__header__description{color:var(--bm-comp-panel-color-description)}.bm-panel__header__close-button{width:var(--bm-sem-size-icon-lg);height:var(--bm-sem-size-icon-lg);justify-content:center;align-items:center;display:flex}.bm-panel__body{font:var(--bm-comp-panel-typo-description);color:var(--bm-comp-panel-color-description);flex:1;overflow:auto}.bm-panel__footer{gap:var(--bm-comp-panel-space-footer-gap-actions);padding-top:var(--bm-comp-panel-space-footer-pad-top);padding-bottom:var(--bm-comp-panel-space-footer-pad-bottom);flex-direction:column;display:flex}.bm-panel__footer__actions{gap:var(--bm-comp-panel-space-footer-gap-actions);flex-wrap:wrap;flex-shrink:0;align-content:center;align-items:center;display:flex}.bm-panel__footer__actions--start{justify-content:flex-start}.bm-panel__footer__actions--end{justify-content:flex-end}.bm-panel__footer__actions--spaceBetween{justify-content:space-between}.bm-panel__footer__actions--stacked{justify-content:center;gap:var(--bm-comp-panel-space-footer-gap-actions-stack);flex-direction:column}.bm-panel__overlay-divider{position:absolute}.bm-panel__overlay-divider--start{top:0;bottom:0;right:0}.bm-panel__overlay-divider--end{top:0;bottom:0;left:0}.bm-panel__overlay-divider--bottom{top:0;left:0;right:0}.bm-panel--overlay[data-position=start]{transform:translate(-100%)}.bm-panel--overlay[data-position=start][data-status=open]{transition:transform .4s ease-out;transform:translate(0)}.bm-panel--overlay[data-position=start][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=end]{transform:translate(100%)}.bm-panel--overlay[data-position=end][data-status=open]{transition:transform .4s ease-out;transform:translate(0)}.bm-panel--overlay[data-position=end][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=bottom]{transform:translateY(100%)}.bm-panel--overlay[data-position=bottom][data-status=open]{transition:transform .4s ease-out;transform:translateY(0)}.bm-panel--overlay[data-position=bottom][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=full]{opacity:0}.bm-panel--overlay[data-position=full][data-status=open]{opacity:1;transition:opacity .4s ease-out}.bm-panel--overlay[data-position=full][data-status=close]{transition:opacity .4s ease-in}.bm-panel__inline-wrapper{flex-shrink:0;overflow:hidden}.bm-panel__inline-wrapper[data-status]{width:0;transition:width .4s ease-in}.bm-panel__inline-wrapper[data-status=open]{width:20rem;transition:width .4s ease-out}.bm-panel__inline-wrapper[data-position=bottom][data-status]{width:100%}.bm-panel__inline-wrapper[data-position=bottom][data-status] .bm-panel__inline-wrapper-content{transition:transform .4s ease-in;transform:translateY(100%)}.bm-panel__inline-wrapper[data-position=bottom][data-status=open] .bm-panel__inline-wrapper-content{transition:transform .4s ease-out;transform:translateY(0)}.bm-panel__inline-wrapper--full[data-status=open]{width:100%}.bm-panel__inline-wrapper-content{height:100%}
1
+ :root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-panel-size-sm:20rem;--bm-comp-panel-size-md:27.5rem;--bm-comp-panel-size-lg:40rem;--bm-comp-panel-space-x-sm:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-x-md:var(--bm-sem-space-150,1.5rem);--bm-comp-panel-space-header-pad-top:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-header-pad-bottom:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-header-gap-y:var(--bm-sem-space-25,.25rem);--bm-comp-panel-space-header-gap-x:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-pad-top:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-footer-pad-bottom:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-footer-gap-actions:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-gap-actions-stack:var(--bm-sem-space-100,1rem);--bm-comp-panel-radius:var(--bm-sem-radius-lg,1rem);--bm-comp-panel-shadow:var(--bm-sem-shadow-overlay,0 .25rem .75rem .125rem #0000001f);--bm-comp-panel-typo-heading:var(--bm-sem-typo-heading-sm,700 1.125rem/1.5rem "Uni Neue");--bm-comp-panel-typo-description:var(--bm-sem-typo-body-sm,400 .875rem/1.25rem "Source Sans Pro");--bm-comp-panel-color-heading:var(--bm-sem-color-text-primary,#141d24);--bm-comp-panel-color-description:var(--bm-sem-color-text-secondary,#576775)}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-panel-size-sm:20rem;--bm-comp-panel-size-md:27.5rem;--bm-comp-panel-size-lg:40rem;--bm-comp-panel-space-x-sm:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-x-md:var(--bm-sem-space-150,1.5rem);--bm-comp-panel-space-header-pad-top:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-header-pad-bottom:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-header-gap-y:var(--bm-sem-space-25,.25rem);--bm-comp-panel-space-header-gap-x:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-pad-top:var(--bm-sem-space-100,1rem);--bm-comp-panel-space-footer-pad-bottom:var(--bm-sem-space-125,1.25rem);--bm-comp-panel-space-footer-gap-actions:var(--bm-sem-space-50,.5rem);--bm-comp-panel-space-footer-gap-actions-stack:var(--bm-sem-space-100,1rem);--bm-comp-panel-radius:var(--bm-sem-radius-lg,1rem);--bm-comp-panel-shadow:var(--bm-sem-shadow-overlay,0 .25rem .75rem .125rem #0000004d);--bm-comp-panel-typo-heading:var(--bm-sem-typo-heading-sm,700 1.125rem/1.5rem "Uni Neue");--bm-comp-panel-typo-description:var(--bm-sem-typo-body-sm,400 .875rem/1.25rem "Source Sans Pro");--bm-comp-panel-color-heading:var(--bm-sem-color-text-primary,#fff);--bm-comp-panel-color-description:var(--bm-sem-color-text-secondary,#c3cdd5)}.bm-panel{background-color:var(--bm-sem-color-surface-01);flex-direction:column;width:20rem;display:flex}.bm-panel--inline{height:100%;box-shadow:var(--bm-sem-shadow-none);position:relative}.bm-panel--overlay{box-shadow:var(--bm-comp-panel-shadow);position:fixed}.bm-panel--overlay.bm-panel--position-start{top:0;bottom:0;left:0}.bm-panel--overlay.bm-panel--position-end{top:0;bottom:0;right:0}.bm-panel--overlay.bm-panel--position-bottom{height:auto;bottom:0;left:0;right:0}.bm-panel--overlay.bm-panel--position-full{top:0;bottom:0;left:0;right:0}.bm-panel--size-full{width:100%}.bm-panel--padding-sm .bm-panel__header,.bm-panel--padding-sm .bm-panel__body,.bm-panel--padding-sm .bm-panel__footer{padding-left:var(--bm-comp-panel-space-x-sm);padding-right:var(--bm-comp-panel-space-x-sm)}.bm-panel--padding-md .bm-panel__header,.bm-panel--padding-md .bm-panel__body,.bm-panel--padding-md .bm-panel__footer{padding-left:var(--bm-comp-panel-space-x-md);padding-right:var(--bm-comp-panel-space-x-md)}.bm-panel__header{gap:var(--bm-comp-panel-space-header-gap-y);padding-top:var(--bm-comp-panel-space-header-pad-top);padding-bottom:var(--bm-comp-panel-space-header-pad-bottom);flex-direction:column;display:flex}.bm-panel__header__row{gap:var(--bm-comp-panel-space-header-gap-x);align-items:flex-start;display:flex}.bm-panel__header__content-before{gap:var(--bm-comp-panel-space-header-gap-x);flex-direction:row;display:flex}.bm-panel__header__content-after{gap:var(--bm-comp-panel-space-header-gap-x);align-items:flex-start;display:flex}.bm-panel__header__heading{font:var(--bm-comp-panel-typo-heading);color:var(--bm-comp-panel-color-heading);flex:1}.bm-panel__header__description{font:var(--bm-comp-panel-typo-description);color:var(--bm-comp-panel-color-description)}.bm-panel__header__close-button{width:var(--bm-sem-size-icon-lg);height:var(--bm-sem-size-icon-lg);justify-content:center;align-items:center;display:flex}.bm-panel__body{font:var(--bm-comp-panel-typo-description);color:var(--bm-comp-panel-color-description);flex:1;overflow:auto}.bm-panel__footer{gap:var(--bm-comp-panel-space-footer-gap-actions);padding-top:var(--bm-comp-panel-space-footer-pad-top);padding-bottom:var(--bm-comp-panel-space-footer-pad-bottom);flex-direction:column;display:flex}.bm-panel__footer__actions{gap:var(--bm-comp-panel-space-footer-gap-actions);flex-wrap:wrap;flex-shrink:0;align-content:center;align-items:center;display:flex}.bm-panel__footer__actions--start{justify-content:flex-start}.bm-panel__footer__actions--end{justify-content:flex-end}.bm-panel__footer__actions--spaceBetween{justify-content:space-between}.bm-panel__footer__actions--stacked{justify-content:center;gap:var(--bm-comp-panel-space-footer-gap-actions-stack);flex-direction:column}.bm-panel__overlay-divider{position:absolute}.bm-panel__overlay-divider--start{top:0;bottom:0;right:0}.bm-panel__overlay-divider--end{top:0;bottom:0;left:0}.bm-panel__overlay-divider--bottom{top:0;left:0;right:0}.bm-panel--overlay[data-position=start]{transform:translate(-100%)}.bm-panel--overlay[data-position=start][data-status=open]{transition:transform .4s ease-out;transform:translate(0)}.bm-panel--overlay[data-position=start][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=end]{transform:translate(100%)}.bm-panel--overlay[data-position=end][data-status=open]{transition:transform .4s ease-out;transform:translate(0)}.bm-panel--overlay[data-position=end][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=bottom]{transform:translateY(100%)}.bm-panel--overlay[data-position=bottom][data-status=open]{transition:transform .4s ease-out;transform:translateY(0)}.bm-panel--overlay[data-position=bottom][data-status=close]{transition:transform .4s ease-in}.bm-panel--overlay[data-position=full]{opacity:0}.bm-panel--overlay[data-position=full][data-status=open]{opacity:1;transition:opacity .4s ease-out}.bm-panel--overlay[data-position=full][data-status=close]{transition:opacity .4s ease-in}.bm-panel__inline-wrapper{flex-shrink:0;overflow:hidden}.bm-panel__inline-wrapper[data-status]{width:0;transition:width .4s ease-in}.bm-panel__inline-wrapper[data-status=open]{width:20rem;transition:width .4s ease-out}.bm-panel__inline-wrapper[data-position=bottom][data-status]{width:100%}.bm-panel__inline-wrapper[data-position=bottom][data-status] .bm-panel__inline-wrapper-content{transition:transform .4s ease-in;transform:translateY(100%)}.bm-panel__inline-wrapper[data-position=bottom][data-status=open] .bm-panel__inline-wrapper-content{transition:transform .4s ease-out;transform:translateY(0)}.bm-panel__inline-wrapper--full[data-status=open]{width:100%}.bm-panel__inline-wrapper-content{height:100%}
@@ -0,0 +1 @@
1
+ "use strict";const h=require("react"),U=require("@floating-ui/dom"),G=require("@floating-ui/react"),J=require("../lib/FloatingUI/FloatingUI.interactions.cjs.js"),T=Math.min,K=Math.max,Q={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(t,e,i){return K(t,T(e,i))}function w(t,e){return typeof t=="function"?t(e):t}function V(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Y(t){return t==="x"?"y":"x"}function et(t){return t==="y"?"height":"width"}function nt(t){return["top","bottom"].includes(V(t))?"y":"x"}function ot(t){return Y(nt(t))}function st(t){return t.replace(/left|right|bottom|top/g,e=>Q[e])}function it(t){return{top:0,right:0,bottom:0,left:0,...t}}function ct(t){return typeof t!="number"?it(t):{top:t,right:t,bottom:t,left:t}}const lt=16,rt=t=>{var e;return{visibility:(e=t.hide)!=null&&e.referenceHidden?"hidden":"visible"}},ut=t=>({name:"arrowStyles",options:t,async fn(e){var _,W;const{x:i,y:c,placement:r,rects:s,platform:n,elements:d,middlewareData:g}=e,{element:u,padding:f=0}=w(t,e)||{};if(u==null)return{};const P=ct(f),I={x:i,y:c},l=ot(r),C=Y(l),m=et(l),a=await n.getDimensions(u),y=l==="y",v=y?"top":"left",o=y?"bottom":"right",$=y?"clientHeight":"clientWidth",E=s.reference[m]+s.reference[l]-I[l]-s.floating[m],L=I[l]-s.reference[l],A=await((_=n.getOffsetParent)==null?void 0:_.call(n,u));let x=A?A[$]:0;(!x||!await((W=n.isElement)==null?void 0:W.call(n,A)))&&(x=d.floating[$]||s.floating[m]);const N=E/2-L/2,D=x/2-a.width/2-1,z=T(P[v],D),j=T(P[o],D),S=z,B=x-a.width-j,p=x/2-a.width/2+N,b=Z(S,p,B),O=!g.arrow&&tt(r)!=null&&p!==b&&s.reference[m]/2-(p<S?z:j)-a.width/2<0,F=O?p<S?p-S:p-B:0,q=V(r),M=["top","left"].includes(q)?-1:1,X=a.height*M,R=at({placement:q,arrowHeight:a.height,arrowWidth:a.width,[l]:b});return{[l]:I[l]+F,[C]:I[C]+X,data:R,reset:O}}}),H=(t,e,i,c)=>{if(c){const r=c===!0?i():i(c);t[e](r)}},ft=({baseConfig:t,middleware:e,offset:i,arrow:c,placement:r="top"})=>{const s={...t,placement:r};let n=[];if(typeof e.overrides!="object"){n.push(U.offset(i));let d=e.flip??!0;if(e.autoPlacement&&(d=!1),H(n,"unshift",U.autoPlacement,e.autoPlacement),H(n,"unshift",U.flip,d),e.size){const g=e.size===!0?{padding:lt,apply({availableHeight:u,elements:f}){Object.assign(f.floating.style,{maxHeight:`${u}px`})}}:e.size;n.push(U.size(g))}H(n,"push",U.shift,e.shift??!0),H(n,"push",U.hide,e.hide??!0)}else n.push(...e.overrides);return c.hide||n.push(ut(c.options)),typeof e.overrides=="function"&&(n=e.overrides(n)),s.middleware=n,s},at=({placement:t,arrowHeight:e,arrowWidth:i,x:c,y:r})=>{const s=V(t),n=i/2-e,d={top:"rotate(0deg)",bottom:"rotate(180deg)",left:`rotate(-90deg) translateX(${-n}px)`,right:`rotate(90deg) translateX(${n}px)`}[s],g=-i/2-e,u={top:`${-e}px`,bottom:`${-e*2}px`,left:`${g}px`,right:`${g}px`}[s],f={transform:d};f.left=c!=null?`${c}px`:"",f.top=r!=null?`${r}px`:"";const P=st(s);return f[P]=u,f},dt=({defaultOpen:t=!1,open:e,placement:i="top",offset:c,onOpenChange:r,openOnClick:s,openOnHover:n,openOnFocus:d,openOnSelected:g,focusConfiguration:u,listNavigation:f,typeahead:P,dismiss:I,middleware:l,autoPlacement:C,flip:m=!0,shift:a=!0,autoHiding:y,size:v,arrow:o,transitionConfig:$,portalled:E,role:L,rootContext:A})=>{const[x,N]=h.useState(t),[D,z]=h.useState(),[j,S]=h.useState(),[B,p]=h.useState(null),b=e??x,O=r??N,F=G.useFloatingNodeId(),q=h.useMemo(()=>{const _={open:b,onOpenChange:O,whileElementsMounted:G.autoUpdate,nodeId:F,rootContext:A};return{...ft({baseConfig:_,middleware:{overrides:l,autoPlacement:C,flip:m,shift:a,hide:y,size:v},arrow:{hide:(o==null?void 0:o.hide)??!1,options:{element:B||null,padding:o==null?void 0:o.edgePadding}},placement:i,offset:c??0})}},[F,b,O,l,C,m,a,y,v,o==null?void 0:o.hide,o==null?void 0:o.edgePadding,B,i,c,A]),M=G.useFloating(q),X=M.context,R=J.useConfigurableInteractions({context:X,openOnClick:s,openOnHover:n,openOnFocus:d,openOnSelected:g,role:L,listNavigation:f,typeahead:P,dismiss:I});return h.useMemo(()=>({open:b,setOpen:O,...R,...M,portalled:E,focusConfiguration:u,transitionConfig:$,labelId:D,descriptionId:j,arrow:o,setLabelId:z,setDescriptionId:S,setArrowEl:p,nodeId:F}),[b,O,R,M,E,u,$,D,j,o,F])},k=h.createContext(null),gt=()=>{const t=h.useContext(k);if(t==null)throw new Error("FloatingUI components must be wrapped in <FloatingUI />");return t};exports.BmFloatingUIContext=k;exports.useBmFloatingUI=dt;exports.useBmFloatingUIContext=gt;exports.visibilityHandler=rt;
@@ -2,19 +2,19 @@ import h from "react";
2
2
  import { offset as Y, size as k, autoPlacement as q, flip as J, shift as K, hide as Q } from "@floating-ui/dom";
3
3
  import { useFloatingNodeId as Z, useFloating as w, autoUpdate as tt } from "@floating-ui/react";
4
4
  import { useConfigurableInteractions as et } from "../lib/FloatingUI/FloatingUI.interactions.es.js";
5
- const _ = Math.min, nt = Math.max, ot = {
5
+ const H = Math.min, nt = Math.max, ot = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
10
  };
11
11
  function st(t, e, i) {
12
- return nt(t, _(e, i));
12
+ return nt(t, H(e, i));
13
13
  }
14
14
  function it(t, e) {
15
15
  return typeof t == "function" ? t(e) : t;
16
16
  }
17
- function G(t) {
17
+ function T(t) {
18
18
  return t.split("-")[0];
19
19
  }
20
20
  function ct(t) {
@@ -27,7 +27,7 @@ function rt(t) {
27
27
  return t === "y" ? "height" : "width";
28
28
  }
29
29
  function lt(t) {
30
- return ["top", "bottom"].includes(G(t)) ? "y" : "x";
30
+ return ["top", "bottom"].includes(T(t)) ? "y" : "x";
31
31
  }
32
32
  function ft(t) {
33
33
  return W(lt(t));
@@ -61,31 +61,31 @@ const dt = 16, At = (t) => {
61
61
  name: "arrowStyles",
62
62
  options: t,
63
63
  async fn(e) {
64
- var T, V;
65
- const { x: i, y: c, placement: l, rects: s, platform: n, elements: d, middlewareData: g } = e, { element: u, padding: a = 0 } = it(t, e) || {};
66
- if (u == null)
64
+ var G, V;
65
+ const { x: i, y: c, placement: l, rects: s, platform: n, elements: p, middlewareData: d } = e, { element: f, padding: u = 0 } = it(t, e) || {};
66
+ if (f == null)
67
67
  return {};
68
- const A = pt(a), m = { x: i, y: c }, r = ft(l), C = W(r), x = rt(r), p = await n.getDimensions(u), I = r === "y", o = I ? "top" : "left", U = I ? "bottom" : "right", $ = I ? "clientHeight" : "clientWidth", L = s.reference[x] + s.reference[r] - m[r] - s.floating[x], j = m[r] - s.reference[r], D = await ((T = n.getOffsetParent) == null ? void 0 : T.call(n, u));
69
- let b = D ? D[$] : 0;
70
- (!b || !await ((V = n.isElement) == null ? void 0 : V.call(n, D))) && (b = d.floating[$] || s.floating[x]);
71
- const M = L / 2 - j / 2, v = b / 2 - p.width / 2 - 1, F = _(A[o], v), E = _(A[U], v), O = F, z = b - p.width - E, f = b / 2 - p.width / 2 + M, P = st(O, f, z), y = !g.arrow && ct(l) != null && f !== P && s.reference[x] / 2 - (f < O ? F : E) - p.width / 2 < 0, N = y ? f < O ? f - O : f - z : 0, S = G(l), X = ["top", "left"].includes(S) ? -1 : 1, B = p.height * X, H = mt({
72
- placement: S,
73
- arrowHeight: p.height,
74
- arrowWidth: p.width,
68
+ const P = pt(u), y = { x: i, y: c }, r = ft(l), $ = W(r), m = rt(r), a = await n.getDimensions(f), A = r === "y", v = A ? "top" : "left", o = A ? "bottom" : "right", D = A ? "clientHeight" : "clientWidth", E = s.reference[m] + s.reference[r] - y[r] - s.floating[m], N = y[r] - s.reference[r], I = await ((G = n.getOffsetParent) == null ? void 0 : G.call(n, f));
69
+ let x = I ? I[D] : 0;
70
+ (!x || !await ((V = n.isElement) == null ? void 0 : V.call(n, I))) && (x = p.floating[D] || s.floating[m]);
71
+ const X = E / 2 - N / 2, F = x / 2 - a.width / 2 - 1, z = H(P[v], F), U = H(P[o], F), S = z, j = x - a.width - U, g = x / 2 - a.width / 2 + X, b = st(S, g, j), O = !d.arrow && ct(l) != null && g !== b && s.reference[m] / 2 - (g < S ? z : U) - a.width / 2 < 0, C = O ? g < S ? g - S : g - j : 0, B = T(l), M = ["top", "left"].includes(B) ? -1 : 1, _ = a.height * M, R = mt({
72
+ placement: B,
73
+ arrowHeight: a.height,
74
+ arrowWidth: a.width,
75
75
  // pass arrow middleware
76
- [r]: P
76
+ [r]: b
77
77
  // for posterity, this is what the floating-ui arrow middleware returns
78
78
  // centerOffset: center - offset - alignmentOffset,
79
79
  // ...(shouldAddOffset && { alignmentOffset }),
80
80
  });
81
81
  return {
82
- [r]: m[r] + N,
83
- [C]: m[C] + B,
84
- data: H,
85
- reset: y
82
+ [r]: y[r] + C,
83
+ [$]: y[$] + _,
84
+ data: R,
85
+ reset: O
86
86
  };
87
87
  }
88
- }), R = (t, e, i, c) => {
88
+ }), L = (t, e, i, c) => {
89
89
  if (c) {
90
90
  const l = c === !0 ? i() : i(c);
91
91
  t[e](l);
@@ -101,24 +101,24 @@ const dt = 16, At = (t) => {
101
101
  let n = [];
102
102
  if (typeof e.overrides != "object") {
103
103
  n.push(Y(i));
104
- let d = e.flip ?? !0;
105
- if (e.autoPlacement && (d = !1), R(
104
+ let p = e.flip ?? !0;
105
+ if (e.autoPlacement && (p = !1), L(
106
106
  n,
107
107
  "unshift",
108
108
  q,
109
109
  e.autoPlacement
110
- ), R(n, "unshift", J, d), e.size) {
111
- const g = e.size === !0 ? {
110
+ ), L(n, "unshift", J, p), e.size) {
111
+ const d = e.size === !0 ? {
112
112
  padding: dt,
113
- apply({ availableHeight: u, elements: a }) {
114
- Object.assign(a.floating.style, {
115
- maxHeight: `${u}px`
113
+ apply({ availableHeight: f, elements: u }) {
114
+ Object.assign(u.floating.style, {
115
+ maxHeight: `${f}px`
116
116
  });
117
117
  }
118
118
  } : e.size;
119
- n.push(k(g));
119
+ n.push(k(d));
120
120
  }
121
- R(n, "push", K, e.shift ?? !0), R(n, "push", Q, e.hide ?? !0);
121
+ L(n, "push", K, e.shift ?? !0), L(n, "push", Q, e.hide ?? !0);
122
122
  } else
123
123
  n.push(...e.overrides);
124
124
  return c.hide || n.push(gt(c.options)), typeof e.overrides == "function" && (n = e.overrides(n)), s.middleware = n, s;
@@ -129,7 +129,7 @@ const dt = 16, At = (t) => {
129
129
  x: c,
130
130
  y: l
131
131
  }) => {
132
- const s = G(t), n = i / 2 - e, d = {
132
+ const s = T(t), n = i / 2 - e, p = {
133
133
  /* since the default orientation is pointing down, we don't need to rotate the arrow
134
134
  if the tooltip is on top of the reference element
135
135
  */
@@ -157,7 +157,7 @@ const dt = 16, At = (t) => {
157
157
  */
158
158
  left: `rotate(-90deg) translateX(${-n}px)`,
159
159
  right: `rotate(90deg) translateX(${n}px)`
160
- }[s], g = -i / 2 - e, u = {
160
+ }[s], d = -i / 2 - e, f = {
161
161
  /*
162
162
  * If the tooltip is at the top of the anchor, place the arrow at the bottom of
163
163
  * the tooltip with bottom: 0. The bottom of the arrow will be flush with the bottom
@@ -199,15 +199,15 @@ const dt = 16, At = (t) => {
199
199
  * | .. | | *
200
200
  * | | |/
201
201
  */
202
- left: `${g}px`,
202
+ left: `${d}px`,
203
203
  // similarly for the right side
204
- right: `${g}px`
205
- }[s], a = {
206
- transform: d
204
+ right: `${d}px`
205
+ }[s], u = {
206
+ transform: p
207
207
  };
208
- a.left = c != null ? `${c}px` : "", a.top = l != null ? `${l}px` : "";
209
- const A = ut(s);
210
- return a[A] = u, a;
208
+ u.left = c != null ? `${c}px` : "", u.top = l != null ? `${l}px` : "";
209
+ const P = ut(s);
210
+ return u[P] = f, u;
211
211
  }, It = ({
212
212
  defaultOpen: t = !1,
213
213
  open: e,
@@ -217,46 +217,47 @@ const dt = 16, At = (t) => {
217
217
  onOpenChange: l,
218
218
  openOnClick: s,
219
219
  openOnHover: n,
220
- openOnFocus: d,
221
- openOnSelected: g,
222
- focusConfiguration: u,
223
- listNavigation: a,
224
- typeahead: A,
220
+ openOnFocus: p,
221
+ openOnSelected: d,
222
+ focusConfiguration: f,
223
+ listNavigation: u,
224
+ typeahead: P,
225
+ dismiss: y,
225
226
  // Floating UI Middlewares
226
- middleware: m,
227
- autoPlacement: r,
228
- flip: C = !0,
229
- shift: x = !0,
230
- autoHiding: p,
231
- size: I,
227
+ middleware: r,
228
+ autoPlacement: $,
229
+ flip: m = !0,
230
+ shift: a = !0,
231
+ autoHiding: A,
232
+ size: v,
232
233
  // Floating UI Arrow
233
234
  arrow: o,
234
- transitionConfig: U,
235
- portalled: $,
236
- role: L,
237
- rootContext: j
235
+ transitionConfig: D,
236
+ portalled: E,
237
+ role: N,
238
+ rootContext: I
238
239
  }) => {
239
- const [D, b] = h.useState(t), [M, v] = h.useState(), [F, E] = h.useState(), [O, z] = h.useState(null), f = e ?? D, P = l ?? b, y = Z(), N = h.useMemo(() => ({
240
+ const [x, X] = h.useState(t), [F, z] = h.useState(), [U, S] = h.useState(), [j, g] = h.useState(null), b = e ?? x, O = l ?? X, C = Z(), B = h.useMemo(() => ({
240
241
  ...ht({
241
242
  baseConfig: {
242
- open: f,
243
- onOpenChange: P,
243
+ open: b,
244
+ onOpenChange: O,
244
245
  whileElementsMounted: tt,
245
- nodeId: y,
246
- rootContext: j
246
+ nodeId: C,
247
+ rootContext: I
247
248
  },
248
249
  middleware: {
249
- overrides: m,
250
- autoPlacement: r,
251
- flip: C,
252
- shift: x,
253
- hide: p,
254
- size: I
250
+ overrides: r,
251
+ autoPlacement: $,
252
+ flip: m,
253
+ shift: a,
254
+ hide: A,
255
+ size: v
255
256
  },
256
257
  arrow: {
257
258
  hide: (o == null ? void 0 : o.hide) ?? !1,
258
259
  options: {
259
- element: O || null,
260
+ element: j || null,
260
261
  padding: o == null ? void 0 : o.edgePadding
261
262
  }
262
263
  },
@@ -264,60 +265,61 @@ const dt = 16, At = (t) => {
264
265
  offset: c ?? 0
265
266
  })
266
267
  }), [
267
- y,
268
- f,
269
- P,
270
- m,
271
- r,
272
268
  C,
273
- x,
274
- p,
275
- I,
269
+ b,
270
+ O,
271
+ r,
272
+ $,
273
+ m,
274
+ a,
275
+ A,
276
+ v,
276
277
  o == null ? void 0 : o.hide,
277
278
  o == null ? void 0 : o.edgePadding,
278
- O,
279
+ j,
279
280
  i,
280
281
  c,
281
- j
282
- ]), S = w(N), X = S.context, B = et({
283
- context: X,
282
+ I
283
+ ]), M = w(B), _ = M.context, R = et({
284
+ context: _,
284
285
  openOnClick: s,
285
286
  openOnHover: n,
286
- openOnFocus: d,
287
- openOnSelected: g,
288
- role: L,
289
- listNavigation: a,
290
- typeahead: A
287
+ openOnFocus: p,
288
+ openOnSelected: d,
289
+ role: N,
290
+ listNavigation: u,
291
+ typeahead: P,
292
+ dismiss: y
291
293
  });
292
294
  return h.useMemo(
293
295
  () => ({
294
- open: f,
295
- setOpen: P,
296
- ...B,
297
- ...S,
298
- portalled: $,
299
- focusConfiguration: u,
300
- transitionConfig: U,
301
- labelId: M,
302
- descriptionId: F,
296
+ open: b,
297
+ setOpen: O,
298
+ ...R,
299
+ ...M,
300
+ portalled: E,
301
+ focusConfiguration: f,
302
+ transitionConfig: D,
303
+ labelId: F,
304
+ descriptionId: U,
303
305
  arrow: o,
304
- setLabelId: v,
305
- setDescriptionId: E,
306
- setArrowEl: z,
307
- nodeId: y
306
+ setLabelId: z,
307
+ setDescriptionId: S,
308
+ setArrowEl: g,
309
+ nodeId: C
308
310
  }),
309
311
  [
310
- f,
311
- P,
312
- B,
313
- S,
314
- $,
315
- u,
316
- U,
312
+ b,
313
+ O,
314
+ R,
317
315
  M,
316
+ E,
317
+ f,
318
+ D,
318
319
  F,
320
+ U,
319
321
  o,
320
- y
322
+ C
321
323
  ]
322
324
  );
323
325
  }, xt = h.createContext(null), St = () => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("clsx"),x=require("react"),q=require("../../chunks/CheckCircleOutline.iRHrT_Eb.js"),y=require("../../chunks/ErrorOutline.Cb78OesH.js"),E=require("../../chunks/InfoOutline.Gr8gkm5N.js"),I=require("../../chunks/WarningOutlined.BPePPeyt.js"),u=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const i=require("../../chunks/dialog.module.COfowyPc.js"),$=require("../Tooltip/Tooltip.cjs.js"),B=require("../CloseButton/CloseButton.cjs.js"),O=require("../../chunks/FloatingUI.context.Du9g2lSg.js"),S=require("./Dialog.context.cjs.js"),c={positive:"Success",warning:"Warning",negative:"Error",information:"Information"},k=({icon:t,appearance:l,iconAriaLabel:s})=>{const o=x.useMemo(()=>({positive:e.jsx(q.SvgCheckCircleOutline,{role:"img","aria-label":s||c.positive}),warning:e.jsx(I.SvgWarningOutlined,{role:"img","aria-label":s||c.warning}),negative:e.jsx(y.SvgErrorOutline,{role:"img","aria-label":s||c.negative}),information:e.jsx(E.SvgInfoOutline,{role:"img","aria-label":s||c.information})}),[s]),{subElementClassPrefix:r}=u.getBEMClassNames("dialog__header"),a=m(i.styles[`${r}icon`],l&&i.styles[`${r}icon--${l}`]);return!t&&!l?null:e.jsx("div",{className:a,children:t||(l?o[l]:null)})},w=({ariaLabel:t="Close dialog"})=>{const{subElementClassPrefix:l}=u.getBEMClassNames("dialog__header"),{setOpen:s}=O.useBmFloatingUIContext(),o=x.useCallback(r=>{s==null||s(!1,r,"click")},[s]);return e.jsx("div",{className:i.styles[`${l}close-trigger`],children:e.jsx($.Tooltip,{text:t,children:e.jsx(B.CloseButton,{"aria-label":t,size:"lg",onClick:o})})})},C=({children:t,className:l,dismissible:s=!0,appearance:o,closeButtonAriaLabel:r="Close dialog",heading:a,description:g,icon:f,iconAriaLabel:h,divider:d=!0,disableDividerOnOverflow:j=!1,...v})=>{const{baseClassNamePrefix:_,subElementClassPrefix:n}=u.getBEMClassNames("dialog__header"),{overflowing:N}=S.useDialogContext(),b=d===!0||d===!1&&!j&&N;return e.jsxs("div",{className:m(i.styles[_],l),...v,children:[e.jsxs("div",{className:i.styles[`${n}row`],children:[e.jsx(k,{icon:f,appearance:o,iconAriaLabel:h}),a&&e.jsx("h2",{className:i.styles[`${n}heading`],children:a}),s&&e.jsx(w,{ariaLabel:r})]}),g&&e.jsx("p",{className:i.styles[`${n}description`],children:g}),t&&e.jsx("div",{className:i.styles[`${n}children`],children:t}),b&&e.jsx("hr",{"aria-hidden":"true",className:i.styles[`${n}divider`]})]})};C.displayName="Dialog.Header";exports.Header=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("clsx"),x=require("react"),q=require("../../chunks/CheckCircleOutline.iRHrT_Eb.js"),y=require("../../chunks/ErrorOutline.Cb78OesH.js"),E=require("../../chunks/InfoOutline.Gr8gkm5N.js"),I=require("../../chunks/WarningOutlined.BPePPeyt.js"),u=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const i=require("../../chunks/dialog.module.COfowyPc.js"),$=require("../Tooltip/Tooltip.cjs.js"),B=require("../CloseButton/CloseButton.cjs.js"),O=require("../../chunks/FloatingUI.context.B15Tz_4h.js"),S=require("./Dialog.context.cjs.js"),c={positive:"Success",warning:"Warning",negative:"Error",information:"Information"},k=({icon:t,appearance:l,iconAriaLabel:s})=>{const o=x.useMemo(()=>({positive:e.jsx(q.SvgCheckCircleOutline,{role:"img","aria-label":s||c.positive}),warning:e.jsx(I.SvgWarningOutlined,{role:"img","aria-label":s||c.warning}),negative:e.jsx(y.SvgErrorOutline,{role:"img","aria-label":s||c.negative}),information:e.jsx(E.SvgInfoOutline,{role:"img","aria-label":s||c.information})}),[s]),{subElementClassPrefix:r}=u.getBEMClassNames("dialog__header"),a=m(i.styles[`${r}icon`],l&&i.styles[`${r}icon--${l}`]);return!t&&!l?null:e.jsx("div",{className:a,children:t||(l?o[l]:null)})},w=({ariaLabel:t="Close dialog"})=>{const{subElementClassPrefix:l}=u.getBEMClassNames("dialog__header"),{setOpen:s}=O.useBmFloatingUIContext(),o=x.useCallback(r=>{s==null||s(!1,r,"click")},[s]);return e.jsx("div",{className:i.styles[`${l}close-trigger`],children:e.jsx($.Tooltip,{text:t,children:e.jsx(B.CloseButton,{"aria-label":t,size:"lg",onClick:o})})})},C=({children:t,className:l,dismissible:s=!0,appearance:o,closeButtonAriaLabel:r="Close dialog",heading:a,description:g,icon:f,iconAriaLabel:h,divider:d=!0,disableDividerOnOverflow:j=!1,...v})=>{const{baseClassNamePrefix:_,subElementClassPrefix:n}=u.getBEMClassNames("dialog__header"),{overflowing:N}=S.useDialogContext(),b=d===!0||d===!1&&!j&&N;return e.jsxs("div",{className:m(i.styles[_],l),...v,children:[e.jsxs("div",{className:i.styles[`${n}row`],children:[e.jsx(k,{icon:f,appearance:o,iconAriaLabel:h}),a&&e.jsx("h2",{className:i.styles[`${n}heading`],children:a}),s&&e.jsx(w,{ariaLabel:r})]}),g&&e.jsx("p",{className:i.styles[`${n}description`],children:g}),t&&e.jsx("div",{className:i.styles[`${n}children`],children:t}),b&&e.jsx("hr",{"aria-hidden":"true",className:i.styles[`${n}divider`]})]})};C.displayName="Dialog.Header";exports.Header=C;
@@ -10,7 +10,7 @@ import "../../chunks/constants.CKKGf1-i.js";
10
10
  import { s as r } from "../../chunks/dialog.module.D6BI3ubv.js";
11
11
  import { Tooltip as k } from "../Tooltip/Tooltip.es.js";
12
12
  import { CloseButton as B } from "../CloseButton/CloseButton.es.js";
13
- import { a as P } from "../../chunks/FloatingUI.context.DtJA57si.js";
13
+ import { a as P } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
14
14
  import { useDialogContext as D } from "./Dialog.context.es.js";
15
15
  const m = {
16
16
  positive: "Success",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("../../chunks/FloatingUI.context.Du9g2lSg.js");const l=require("../FloatingUI/FloatingUI.trigger.cjs.js"),t=require("../FloatingUI/FloatingUI.trigger.close.cjs.js");require("../FloatingUI/FloatingUI.content.cjs.js");require("react");const g=({children:e,...r})=>i.jsx(l.Trigger,{...r,children:e});g.displayName="Dialog.Trigger";const o=({children:e,...r})=>i.jsx(t.CloseTrigger,{...r,children:e});o.displayName="Dialog.CloseTrigger";exports.CloseTrigger=o;exports.Trigger=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("../../chunks/FloatingUI.context.B15Tz_4h.js");const l=require("../FloatingUI/FloatingUI.trigger.cjs.js"),t=require("../FloatingUI/FloatingUI.trigger.close.cjs.js");require("../FloatingUI/FloatingUI.content.cjs.js");require("react");const g=({children:e,...r})=>i.jsx(l.Trigger,{...r,children:e});g.displayName="Dialog.Trigger";const o=({children:e,...r})=>i.jsx(t.CloseTrigger,{...r,children:e});o.displayName="Dialog.CloseTrigger";exports.CloseTrigger=o;exports.Trigger=g;
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import "../../chunks/FloatingUI.context.DtJA57si.js";
2
+ import "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
3
3
  import { Trigger as o } from "../FloatingUI/FloatingUI.trigger.es.js";
4
4
  import { CloseTrigger as e } from "../FloatingUI/FloatingUI.trigger.close.es.js";
5
5
  import "../FloatingUI/FloatingUI.content.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),x=require("../../chunks/FloatingUI.context.Du9g2lSg.js"),f=require("react"),i=require("@floating-ui/react"),m=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const b=require("clsx"),d=require("../../chunks/floatingui.module.D3Aw_aYe.js"),w=require("../Box/Box.cjs.js"),N=require("./FloatingUI.arrow.cjs.js");function S({children:o,props:e}){if(!e)return o;const t=typeof e=="boolean"?{}:e;return a.jsx(i.FloatingPortal,{...t,children:o})}function v({children:o,props:e}){if(!e)return o;const t=typeof e=="boolean",r=e==="transparent",{baseClassNamePrefix:l,classModifierPrefix:c}=m.getBEMClassNames("floatingui__overlay"),u={className:b(d.floatinguiStyles[l],r&&d.floatinguiStyles[`${c}transparent`]),lockScroll:!0},s=t||r?u:{...u,...e};return a.jsx(i.FloatingOverlay,{...s,children:o})}function B({children:o,context:e,props:t}){const r=f.useMemo(()=>({context:e,...typeof t=="boolean"?{}:t}),[e,t]);return t?a.jsx(i.FloatingFocusManager,{...r,children:o}):o}const y=f.forwardRef(({children:o,className:e,style:t,overlay:r,skipFloatingStyles:l=!1,...c},u)=>{const{context:s,nodeId:C,arrow:g,...n}=x.useBmFloatingUIContext(),P=i.useMergeRefs([n.refs.setFloating,u]),{isMounted:_,status:j}=i.useTransitionStatus(s,n.transitionConfig),{baseClassNamePrefix:F}=m.getBEMClassNames("floatingui"),q=l?e:b(d.floatinguiStyles[F],e),I=f.useMemo(()=>({...l?{}:s.floatingStyles,...x.visibilityHandler(s.middlewareData),...t}),[s.floatingStyles,s.middlewareData,l,t]);return _?a.jsx(i.FloatingNode,{id:C,children:a.jsx(S,{props:n.portalled,children:a.jsx(v,{props:r,children:a.jsx(B,{context:s,props:n.focusConfiguration,children:a.jsxs(w.Box,{"data-status":j,ref:P,style:I,className:q,"aria-labelledby":n.labelId,"aria-describedby":n.descriptionId,...n.getFloatingProps(c),children:[o,g&&a.jsx(N.Arrow,{options:g,middleware:n.middlewareData,ref:M=>n.setArrowEl(M)})]})})})})}):null});exports.Content=y;exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),x=require("../../chunks/FloatingUI.context.B15Tz_4h.js"),f=require("react"),i=require("@floating-ui/react"),m=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const b=require("clsx"),d=require("../../chunks/floatingui.module.D3Aw_aYe.js"),w=require("../Box/Box.cjs.js"),N=require("./FloatingUI.arrow.cjs.js");function S({children:o,props:e}){if(!e)return o;const t=typeof e=="boolean"?{}:e;return a.jsx(i.FloatingPortal,{...t,children:o})}function v({children:o,props:e}){if(!e)return o;const t=typeof e=="boolean",r=e==="transparent",{baseClassNamePrefix:l,classModifierPrefix:c}=m.getBEMClassNames("floatingui__overlay"),u={className:b(d.floatinguiStyles[l],r&&d.floatinguiStyles[`${c}transparent`]),lockScroll:!0},s=t||r?u:{...u,...e};return a.jsx(i.FloatingOverlay,{...s,children:o})}function B({children:o,context:e,props:t}){const r=f.useMemo(()=>({context:e,...typeof t=="boolean"?{}:t}),[e,t]);return t?a.jsx(i.FloatingFocusManager,{...r,children:o}):o}const y=f.forwardRef(({children:o,className:e,style:t,overlay:r,skipFloatingStyles:l=!1,...c},u)=>{const{context:s,nodeId:C,arrow:g,...n}=x.useBmFloatingUIContext(),P=i.useMergeRefs([n.refs.setFloating,u]),{isMounted:_,status:j}=i.useTransitionStatus(s,n.transitionConfig),{baseClassNamePrefix:F}=m.getBEMClassNames("floatingui"),q=l?e:b(d.floatinguiStyles[F],e),I=f.useMemo(()=>({...l?{}:s.floatingStyles,...x.visibilityHandler(s.middlewareData),...t}),[s.floatingStyles,s.middlewareData,l,t]);return _?a.jsx(i.FloatingNode,{id:C,children:a.jsx(S,{props:n.portalled,children:a.jsx(v,{props:r,children:a.jsx(B,{context:s,props:n.focusConfiguration,children:a.jsxs(w.Box,{"data-status":j,ref:P,style:I,className:q,"aria-labelledby":n.labelId,"aria-describedby":n.descriptionId,...n.getFloatingProps(c),children:[o,g&&a.jsx(N.Arrow,{options:g,middleware:n.middlewareData,ref:M=>n.setArrowEl(M)})]})})})})}):null});exports.Content=y;exports.default=y;
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as M } from "react/jsx-runtime";
2
- import { a as v, v as I } from "../../chunks/FloatingUI.context.DtJA57si.js";
2
+ import { a as v, v as I } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
3
3
  import c, { useMemo as N } from "react";
4
4
  import { useMergeRefs as B, useTransitionStatus as R, FloatingNode as S, FloatingPortal as D, FloatingOverlay as O, FloatingFocusManager as U } from "@floating-ui/react";
5
5
  import { g as u } from "../../chunks/classNames.BTJmrO_L.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const t=require("../../chunks/FloatingUI.context.Du9g2lSg.js");require("@floating-ui/react");require("./FloatingUI.interactions.cjs.js");exports.BmFloatingUIContext=t.BmFloatingUIContext;exports.useBmFloatingUI=t.useBmFloatingUI;exports.useBmFloatingUIContext=t.useBmFloatingUIContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const t=require("../../chunks/FloatingUI.context.B15Tz_4h.js");require("@floating-ui/react");require("./FloatingUI.interactions.cjs.js");exports.BmFloatingUIContext=t.BmFloatingUIContext;exports.useBmFloatingUI=t.useBmFloatingUI;exports.useBmFloatingUIContext=t.useBmFloatingUIContext;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { MiddlewareModifier } from '@viasat/beam-shared/components/floatingui';
3
- import { Placement, AutoPlacementOptions, FlipOptions, ShiftOptions, HideOptions, OffsetOptions, UseHoverProps, UseClickProps, UseFocusProps, FloatingPortalProps, UseTransitionStylesProps, UseFloatingOptions, UseRoleProps, FloatingRootContext, UseListNavigationProps, UseTypeaheadProps, SizeOptions } from '@floating-ui/react';
3
+ import { Placement, AutoPlacementOptions, FlipOptions, ShiftOptions, HideOptions, OffsetOptions, UseHoverProps, UseClickProps, UseDismissProps, UseFocusProps, FloatingPortalProps, UseTransitionStylesProps, UseFloatingOptions, UseRoleProps, FloatingRootContext, UseListNavigationProps, UseTypeaheadProps, SizeOptions } from '@floating-ui/react';
4
4
  import { FocusManagerProps } from '../FloatingUI/FloatingUI.content';
5
5
  import { ArrowOptions } from '../FloatingUI/FloatingUI.arrow';
6
6
  import { UseSelectedProps } from './useSelected';
@@ -120,8 +120,12 @@ export interface FloatingUIProps {
120
120
  * Adds typeahead support to the floating list, if any
121
121
  */
122
122
  typeahead?: UseTypeaheadProps;
123
+ /**
124
+ * Configure dismiss behaviour (escape key, outside press, etc.)
125
+ */
126
+ dismiss?: UseDismissProps;
123
127
  }
124
- export declare const useBmFloatingUI: ({ defaultOpen, open: controlledOpen, placement, offset: _offset, onOpenChange: setControlledOpen, openOnClick, openOnHover, openOnFocus, openOnSelected, focusConfiguration, listNavigation, typeahead, middleware, autoPlacement, flip, shift, autoHiding, size, arrow, transitionConfig, portalled, role, rootContext, }: FloatingUIProps) => {
128
+ export declare const useBmFloatingUI: ({ defaultOpen, open: controlledOpen, placement, offset: _offset, onOpenChange: setControlledOpen, openOnClick, openOnHover, openOnFocus, openOnSelected, focusConfiguration, listNavigation, typeahead, dismiss, middleware, autoPlacement, flip, shift, autoHiding, size, arrow, transitionConfig, portalled, role, rootContext, }: FloatingUIProps) => {
125
129
  portalled: boolean | FloatingPortalProps | undefined;
126
130
  focusConfiguration: boolean | FocusManagerProps | undefined;
127
131
  transitionConfig: UseTransitionStylesProps | undefined;
@@ -1,5 +1,5 @@
1
1
  import "react";
2
- import { B as e, u as n, a as r } from "../../chunks/FloatingUI.context.DtJA57si.js";
2
+ import { B as e, u as n, a as r } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
3
3
  import "@floating-ui/react";
4
4
  import "./FloatingUI.interactions.es.js";
5
5
  export {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@floating-ui/react"),r=require("react"),N=require("./useSelected.cjs.js"),T=({context:s,openOnClick:t,openOnHover:n,openOnFocus:u,openOnSelected:a,role:l,listNavigation:o,typeahead:i})=>{const f=r.useMemo(()=>n?n===!0?{enabled:!0,handleClose:e.safePolygon()}:{enabled:!0,handleClose:e.safePolygon(),...n}:{enabled:!1},[n]),c=r.useMemo(()=>typeof t=="boolean"?{enabled:t}:t??{enabled:!1},[t]),d=r.useMemo(()=>typeof u=="boolean"?{enabled:u}:u??{enabled:!1},[u]),b=r.useMemo(()=>typeof a=="boolean"?{enabled:a}:a??{enabled:!1},[a]),g=r.useMemo(()=>typeof l=="boolean"?{enabled:l}:l??{enabled:!1},[l]),m=r.useMemo(()=>o||{activeIndex:null,listRef:{current:[]},enabled:!1},[o]),y=r.useMemo(()=>i||{activeIndex:null,listRef:{current:[]},enabled:!1},[i]),C=e.useHover(s,f),M=e.useClick(s,c),h=e.useDismiss(s),I=e.useFocus(s,d),v=N.useSelected(s,b),R=e.useRole(s,g),q=e.useListNavigation(s,m),P=e.useTypeahead(s,y);return e.useInteractions([C,M,h,I,v,R,q,P])};exports.useConfigurableInteractions=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@floating-ui/react"),r=require("react"),T=require("./useSelected.cjs.js"),j=({context:s,openOnClick:t,openOnHover:n,openOnFocus:u,openOnSelected:a,role:l,listNavigation:o,typeahead:i,dismiss:f})=>{const c=r.useMemo(()=>n?n===!0?{enabled:!0,handleClose:e.safePolygon()}:{enabled:!0,handleClose:e.safePolygon(),...n}:{enabled:!1},[n]),d=r.useMemo(()=>typeof t=="boolean"?{enabled:t}:t??{enabled:!1},[t]),b=r.useMemo(()=>typeof u=="boolean"?{enabled:u}:u??{enabled:!1},[u]),g=r.useMemo(()=>typeof a=="boolean"?{enabled:a}:a??{enabled:!1},[a]),m=r.useMemo(()=>typeof l=="boolean"?{enabled:l}:l??{enabled:!1},[l]),y=r.useMemo(()=>o||{activeIndex:null,listRef:{current:[]},enabled:!1},[o]),C=r.useMemo(()=>i||{activeIndex:null,listRef:{current:[]},enabled:!1},[i]),M=e.useHover(s,c),h=e.useClick(s,d),I=e.useDismiss(s,f),v=e.useFocus(s,b),R=T.useSelected(s,g),q=e.useRole(s,m),P=e.useListNavigation(s,y),N=e.useTypeahead(s,C);return e.useInteractions([M,h,I,v,R,q,P,N])};exports.useConfigurableInteractions=j;
@@ -1,4 +1,4 @@
1
- import { FloatingContext, UseClickProps, UseFocusProps, UseHoverProps, UseListNavigationProps, UseRoleProps, UseTypeaheadProps } from '@floating-ui/react';
1
+ import { FloatingContext, UseClickProps, UseDismissProps, UseFocusProps, UseHoverProps, UseListNavigationProps, UseRoleProps, UseTypeaheadProps } from '@floating-ui/react';
2
2
  import { UseSelectedProps } from './useSelected';
3
3
  interface InteractionsWrapperArg {
4
4
  context: FloatingContext;
@@ -9,11 +9,12 @@ interface InteractionsWrapperArg {
9
9
  role?: boolean | UseRoleProps;
10
10
  listNavigation?: UseListNavigationProps;
11
11
  typeahead?: UseTypeaheadProps;
12
+ dismiss?: UseDismissProps;
12
13
  }
13
14
  /**
14
15
  * Allows boolean or object configuration for interactions
15
16
  *
16
17
  * @param arg
17
18
  */
18
- export declare const useConfigurableInteractions: ({ context, openOnClick, openOnHover, openOnFocus, openOnSelected, role: _role, listNavigation: _listNavigation, typeahead: _typeahead, }: InteractionsWrapperArg) => import('@floating-ui/react').UseInteractionsReturn;
19
+ export declare const useConfigurableInteractions: ({ context, openOnClick, openOnHover, openOnFocus, openOnSelected, role: _role, listNavigation: _listNavigation, typeahead: _typeahead, dismiss: _dismiss, }: InteractionsWrapperArg) => import('@floating-ui/react').UseInteractionsReturn;
19
20
  export {};
@@ -1,7 +1,7 @@
1
- import { safePolygon as f, useHover as L, useClick as P, useDismiss as T, useFocus as j, useRole as k, useListNavigation as q, useTypeahead as w, useInteractions as z } from "@floating-ui/react";
1
+ import { safePolygon as i, useHover as P, useClick as T, useDismiss as j, useFocus as k, useRole as q, useListNavigation as w, useTypeahead as z, useInteractions as A } from "@floating-ui/react";
2
2
  import s from "react";
3
- import { useSelected as A } from "./useSelected.es.js";
4
- const J = ({
3
+ import { useSelected as B } from "./useSelected.es.js";
4
+ const K = ({
5
5
  context: e,
6
6
  openOnClick: r,
7
7
  openOnHover: t,
@@ -9,39 +9,40 @@ const J = ({
9
9
  openOnSelected: u,
10
10
  role: n,
11
11
  listNavigation: o,
12
- typeahead: l
12
+ typeahead: l,
13
+ dismiss: f
13
14
  }) => {
14
- const i = s.useMemo(() => t ? t === !0 ? {
15
+ const d = s.useMemo(() => t ? t === !0 ? {
15
16
  enabled: !0,
16
- handleClose: f()
17
+ handleClose: i()
17
18
  } : {
18
19
  enabled: !0,
19
- handleClose: f(),
20
+ handleClose: i(),
20
21
  ...t
21
22
  } : {
22
23
  enabled: !1
23
- }, [t]), d = s.useMemo(() => typeof r == "boolean" ? {
24
+ }, [t]), b = s.useMemo(() => typeof r == "boolean" ? {
24
25
  enabled: r
25
- } : r ?? { enabled: !1 }, [r]), b = s.useMemo(() => typeof a == "boolean" ? { enabled: a } : a ?? { enabled: !1 }, [a]), c = s.useMemo(() => typeof u == "boolean" ? { enabled: u } : u ?? { enabled: !1 }, [u]), m = s.useMemo(() => typeof n == "boolean" ? { enabled: n } : n ?? { enabled: !1 }, [n]), g = s.useMemo(() => o || {
26
+ } : r ?? { enabled: !1 }, [r]), c = s.useMemo(() => typeof a == "boolean" ? { enabled: a } : a ?? { enabled: !1 }, [a]), m = s.useMemo(() => typeof u == "boolean" ? { enabled: u } : u ?? { enabled: !1 }, [u]), g = s.useMemo(() => typeof n == "boolean" ? { enabled: n } : n ?? { enabled: !1 }, [n]), C = s.useMemo(() => o || {
26
27
  activeIndex: null,
27
28
  listRef: { current: [] },
28
29
  enabled: !1
29
- }, [o]), C = s.useMemo(() => l || {
30
+ }, [o]), y = s.useMemo(() => l || {
30
31
  activeIndex: null,
31
32
  listRef: { current: [] },
32
33
  enabled: !1
33
- }, [l]), y = L(e, i), M = P(e, d), h = T(e), v = j(e, b), I = A(e, c), R = k(e, m), N = q(e, g), D = w(e, C);
34
- return z([
35
- y,
34
+ }, [l]), M = P(e, d), h = T(e, b), v = j(e, f), I = k(e, c), R = B(e, m), N = q(e, g), D = w(e, C), L = z(e, y);
35
+ return A([
36
36
  M,
37
37
  h,
38
38
  v,
39
39
  I,
40
40
  R,
41
41
  N,
42
- D
42
+ D,
43
+ L
43
44
  ]);
44
45
  };
45
46
  export {
46
- J as useConfigurableInteractions
47
+ K as useConfigurableInteractions
47
48
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("../../chunks/FloatingUI.context.Du9g2lSg.js");function e({children:o,...i}){const n=t.useBmFloatingUI({...i});return l.jsx(t.BmFloatingUIContext.Provider,{value:n,children:o})}exports.FloatingUIRoot=e;exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),t=require("../../chunks/FloatingUI.context.B15Tz_4h.js");function e({children:o,...i}){const n=t.useBmFloatingUI({...i});return l.jsx(t.BmFloatingUIContext.Provider,{value:n,children:o})}exports.FloatingUIRoot=e;exports.default=e;
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { u as n, B as r } from "../../chunks/FloatingUI.context.DtJA57si.js";
2
+ import { u as n, B as r } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
3
3
  function m({
4
4
  children: o,
5
5
  ...t
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),u=require("../../chunks/FloatingUI.context.Du9g2lSg.js"),l=require("@floating-ui/react"),g=require("../../utils/functions.cjs.js"),n=({children:t,...s})=>{try{const r=u.useBmFloatingUIContext(),e=o.useMemo(()=>g.ensureSingularRef(t),[t]),c=l.useMergeRefs([r.refs.setReference,e.props.ref??e.ref]),i=r.getReferenceProps({...s,...e.props,ref:c});return o.cloneElement(e,i)}catch{throw new Error("Expected a single child element with a ref for the FloatingUI trigger")}};exports.Trigger=n;exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),u=require("../../chunks/FloatingUI.context.B15Tz_4h.js"),l=require("@floating-ui/react"),g=require("../../utils/functions.cjs.js"),n=({children:t,...s})=>{try{const r=u.useBmFloatingUIContext(),e=o.useMemo(()=>g.ensureSingularRef(t),[t]),c=l.useMergeRefs([r.refs.setReference,e.props.ref??e.ref]),i=r.getReferenceProps({...s,...e.props,ref:c});return o.cloneElement(e,i)}catch{throw new Error("Expected a single child element with a ref for the FloatingUI trigger")}};exports.Trigger=n;exports.default=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),o=require("react"),d=require("../../utils/functions.cjs.js"),m=require("../../chunks/FloatingUI.context.Du9g2lSg.js"),g=({children:l,...n})=>{const{setOpen:s}=m.useBmFloatingUIContext(),e=o.useMemo(()=>d.ensureSingularRef(l),[l]),r=o.useCallback(t=>{s==null||s(!1,t,"click")},[s]),c=o.useCallback(t=>{var i,u;r(t),(u=(i=e.props).onClick)==null||u.call(i,t)},[r,e.props]),C=o.useMemo(()=>({...n,...e.props,onClick:c}),[c,n,e.props]);return a.jsx(a.Fragment,{children:o.cloneElement(e,C)})};exports.CloseTrigger=g;exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),o=require("react"),d=require("../../utils/functions.cjs.js"),m=require("../../chunks/FloatingUI.context.B15Tz_4h.js"),g=({children:l,...n})=>{const{setOpen:s}=m.useBmFloatingUIContext(),e=o.useMemo(()=>d.ensureSingularRef(l),[l]),r=o.useCallback(t=>{s==null||s(!1,t,"click")},[s]),c=o.useCallback(t=>{var i,u;r(t),(u=(i=e.props).onClick)==null||u.call(i,t)},[r,e.props]),C=o.useMemo(()=>({...n,...e.props,onClick:c}),[c,n,e.props]);return a.jsx(a.Fragment,{children:o.cloneElement(e,C)})};exports.CloseTrigger=g;exports.default=g;
@@ -1,7 +1,7 @@
1
1
  import { jsx as f, Fragment as u } from "react/jsx-runtime";
2
2
  import { useMemo as a, useCallback as m, cloneElement as C } from "react";
3
3
  import { ensureSingularRef as d } from "../../utils/functions.es.js";
4
- import { a as g } from "../../chunks/FloatingUI.context.DtJA57si.js";
4
+ import { a as g } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
5
5
  const b = ({ children: e, ...l }) => {
6
6
  const { setOpen: r } = g(), o = a(() => d(e), [e]), n = m(
7
7
  (s) => {
@@ -1,5 +1,5 @@
1
1
  import f, { useMemo as c } from "react";
2
- import { a } from "../../chunks/FloatingUI.context.DtJA57si.js";
2
+ import { a } from "../../chunks/FloatingUI.context.Dl4Y1y1z.js";
3
3
  import { useMergeRefs as i } from "@floating-ui/react";
4
4
  import { ensureSingularRef as m } from "../../utils/functions.es.js";
5
5
  const h = ({ children: r, ...o }) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("../ActionList/ActionList.context.cjs.js"),r=require("../../chunks/FloatingUI.context.Du9g2lSg.js"),s=({children:t,...e})=>{const{getItemProps:o}=r.useBmFloatingUIContext();return i.jsx(n.ActionListContextProvider,{getItemProps:o,...e,children:t})};exports.ActionListContextWrapper=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("../ActionList/ActionList.context.cjs.js"),r=require("../../chunks/FloatingUI.context.B15Tz_4h.js"),s=({children:t,...e})=>{const{getItemProps:o}=r.useBmFloatingUIContext();return i.jsx(n.ActionListContextProvider,{getItemProps:o,...e,children:t})};exports.ActionListContextWrapper=s;