@btst/stack 1.1.1 → 1.1.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.
Files changed (289) hide show
  1. package/README.md +1 -1
  2. package/dist/client/components/index.cjs +2 -2
  3. package/dist/client/components/index.mjs +2 -2
  4. package/dist/client/index.cjs +3 -3
  5. package/dist/client/index.mjs +3 -3
  6. package/dist/context/index.cjs +1 -1
  7. package/dist/context/index.mjs +1 -1
  8. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +825 -0
  9. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +814 -0
  10. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +763 -0
  11. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +751 -0
  12. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +375 -0
  13. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +350 -0
  14. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +160 -0
  15. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +182 -0
  16. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
  17. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +137 -0
  18. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.cjs +8 -0
  19. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs +6 -0
  20. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
  21. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs +11 -0
  22. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -0
  23. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.mjs +25 -0
  24. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.cjs +77 -0
  25. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.mjs +71 -0
  26. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -0
  27. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +39 -0
  28. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +79 -0
  29. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +63 -0
  30. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -0
  31. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +11 -0
  32. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -0
  33. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +212 -0
  34. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -0
  35. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +30 -0
  36. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -0
  37. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +208 -0
  38. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +31 -0
  39. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +15 -0
  40. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -0
  41. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.mjs +284 -0
  42. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.cjs +37 -0
  43. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.mjs +18 -0
  44. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -0
  45. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.mjs +43 -0
  46. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.cjs +1198 -0
  47. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.mjs +1154 -0
  48. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -0
  49. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +12 -0
  50. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -0
  51. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +70 -0
  52. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -0
  53. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +18 -0
  54. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -0
  55. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +7 -0
  56. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.cjs +31 -0
  57. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs +15 -0
  58. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -0
  59. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +40 -0
  60. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +51 -0
  61. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +34 -0
  62. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +139 -0
  63. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.mjs +137 -0
  64. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +39 -0
  65. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.mjs +37 -0
  66. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
  67. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.mjs +38 -0
  68. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1671 -0
  69. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.mjs +1669 -0
  70. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
  71. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +8 -0
  72. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +74 -0
  73. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +56 -0
  74. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +15 -0
  75. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +10 -0
  76. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +34 -0
  77. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +31 -0
  78. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +25 -0
  79. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +9 -0
  80. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +178 -0
  81. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +160 -0
  82. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +54 -0
  83. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +38 -0
  84. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +23 -0
  85. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +21 -0
  86. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +113 -0
  87. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +110 -0
  88. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +7 -0
  89. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
  90. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +9 -0
  91. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
  92. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs +21 -0
  93. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +19 -0
  94. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +41 -0
  95. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +25 -0
  96. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +53 -0
  97. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +51 -0
  98. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +59 -0
  99. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +56 -0
  100. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +26 -0
  101. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +24 -0
  102. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +64 -0
  103. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +48 -0
  104. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +44 -0
  105. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +42 -0
  106. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.cjs +37 -0
  107. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
  108. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.cjs +79 -0
  109. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +77 -0
  110. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.cjs +3 -3
  111. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.mjs +3 -3
  112. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.cjs +5 -5
  113. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.mjs +5 -5
  114. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.cjs +2 -6
  115. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.mjs +1 -1
  116. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.cjs +1 -1
  117. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.mjs +1 -1
  118. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.cjs +1 -1
  119. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.mjs +1 -1
  120. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.cjs +1 -1
  121. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.mjs +1 -1
  122. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.cjs +2 -2
  123. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.mjs +2 -2
  124. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.cjs +1 -1
  125. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.mjs +1 -1
  126. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.cjs +1 -1
  127. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.mjs +1 -1
  128. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.cjs +1 -1
  129. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.mjs +1 -1
  130. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.cjs +1 -1
  131. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.mjs +1 -1
  132. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.cjs +2 -2
  133. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.mjs +2 -2
  134. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.cjs +1 -1
  135. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.mjs +1 -1
  136. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.cjs +1 -1
  137. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.mjs +1 -1
  138. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.cjs +1 -1
  139. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.mjs +1 -1
  140. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.cjs +1 -1
  141. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.mjs +1 -1
  142. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.cjs +1 -1
  143. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.mjs +1 -1
  144. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.cjs +1 -1
  145. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.mjs +1 -1
  146. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.cjs +1 -1
  147. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.mjs +1 -1
  148. package/dist/packages/ui/src/components/badge.cjs +42 -0
  149. package/dist/packages/ui/src/components/badge.mjs +39 -0
  150. package/dist/packages/ui/src/components/button.cjs +54 -0
  151. package/dist/packages/ui/src/components/button.mjs +51 -0
  152. package/dist/packages/ui/src/components/card.cjs +67 -0
  153. package/dist/packages/ui/src/components/card.mjs +61 -0
  154. package/dist/packages/ui/src/components/carousel.cjs +215 -0
  155. package/dist/packages/ui/src/components/carousel.mjs +195 -0
  156. package/dist/packages/ui/src/components/command.cjs +142 -0
  157. package/dist/packages/ui/src/components/command.mjs +134 -0
  158. package/dist/packages/ui/src/components/dialog.cjs +127 -0
  159. package/dist/packages/ui/src/components/dialog.mjs +105 -0
  160. package/dist/packages/ui/src/components/empty.cjs +76 -0
  161. package/dist/packages/ui/src/components/empty.mjs +71 -0
  162. package/dist/packages/ui/src/components/form.cjs +133 -0
  163. package/dist/packages/ui/src/components/form.mjs +110 -0
  164. package/dist/packages/ui/src/components/input.cjs +23 -0
  165. package/dist/packages/ui/src/components/input.mjs +21 -0
  166. package/dist/packages/ui/src/components/label.cjs +39 -0
  167. package/dist/packages/ui/src/components/label.mjs +23 -0
  168. package/dist/packages/ui/src/components/multi-select.cjs +555 -0
  169. package/dist/packages/ui/src/components/multi-select.mjs +540 -0
  170. package/dist/packages/ui/src/components/select.cjs +140 -0
  171. package/dist/packages/ui/src/components/select.mjs +132 -0
  172. package/dist/packages/ui/src/components/skeleton.cjs +17 -0
  173. package/dist/packages/ui/src/components/skeleton.mjs +15 -0
  174. package/dist/packages/ui/src/components/switch.cjs +48 -0
  175. package/dist/packages/ui/src/components/switch.mjs +32 -0
  176. package/dist/packages/ui/src/components/textarea.cjs +20 -0
  177. package/dist/packages/ui/src/components/textarea.mjs +18 -0
  178. package/dist/packages/ui/src/hooks/use-debounce.cjs +18 -0
  179. package/dist/packages/ui/src/hooks/use-debounce.mjs +16 -0
  180. package/dist/packages/ui/src/lib/utils.cjs +10 -0
  181. package/dist/packages/ui/src/lib/utils.mjs +8 -0
  182. package/dist/plugins/blog/api/index.cjs +1 -1
  183. package/dist/plugins/blog/api/index.d.cts +1 -1
  184. package/dist/plugins/blog/api/index.d.mts +1 -1
  185. package/dist/plugins/blog/api/index.d.ts +1 -1
  186. package/dist/plugins/blog/api/index.mjs +1 -1
  187. package/dist/plugins/blog/client/components/index.cjs +4 -4
  188. package/dist/plugins/blog/client/components/index.mjs +4 -4
  189. package/dist/plugins/blog/client/hooks/index.cjs +1 -1
  190. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  191. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  192. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  193. package/dist/plugins/blog/client/hooks/index.mjs +1 -1
  194. package/dist/plugins/blog/client/index.cjs +1 -1
  195. package/dist/plugins/blog/client/index.d.cts +1 -1
  196. package/dist/plugins/blog/client/index.d.mts +1 -1
  197. package/dist/plugins/blog/client/index.d.ts +1 -1
  198. package/dist/plugins/blog/client/index.mjs +1 -1
  199. package/dist/plugins/blog/query-keys.d.cts +2 -2
  200. package/dist/plugins/blog/query-keys.d.mts +2 -2
  201. package/dist/plugins/blog/query-keys.d.ts +2 -2
  202. package/dist/plugins/client/index.cjs +1 -1
  203. package/dist/plugins/client/index.mjs +1 -1
  204. package/package.json +5 -5
  205. package/dist/{client → packages/better-stack/src/client}/components/compose.cjs +0 -0
  206. package/dist/{client → packages/better-stack/src/client}/components/compose.mjs +0 -0
  207. package/dist/{client → packages/better-stack/src/client}/components/error-boundary.cjs +0 -0
  208. package/dist/{client → packages/better-stack/src/client}/components/error-boundary.mjs +0 -0
  209. package/dist/{client → packages/better-stack/src/client}/meta-utils.cjs +0 -0
  210. package/dist/{client → packages/better-stack/src/client}/meta-utils.mjs +0 -0
  211. package/dist/{client → packages/better-stack/src/client}/path-utils.cjs +0 -0
  212. package/dist/{client → packages/better-stack/src/client}/path-utils.mjs +0 -0
  213. package/dist/{client → packages/better-stack/src/client}/sitemap-utils.cjs +0 -0
  214. package/dist/{client → packages/better-stack/src/client}/sitemap-utils.mjs +0 -0
  215. package/dist/{context → packages/better-stack/src/context}/provider.cjs +0 -0
  216. package/dist/{context → packages/better-stack/src/context}/provider.mjs +0 -0
  217. package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.cjs +0 -0
  218. package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.mjs +0 -0
  219. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.cjs +0 -0
  220. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.mjs +0 -0
  221. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.cjs +0 -0
  222. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.mjs +0 -0
  223. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.cjs +0 -0
  224. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.mjs +0 -0
  225. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.cjs +0 -0
  226. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.cjs +0 -0
  227. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.mjs +0 -0
  228. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.mjs +0 -0
  229. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.cjs +0 -0
  230. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.cjs +0 -0
  231. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.mjs +0 -0
  232. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.mjs +0 -0
  233. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.cjs +0 -0
  234. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.cjs +0 -0
  235. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.mjs +0 -0
  236. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.mjs +0 -0
  237. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.cjs +0 -0
  238. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.mjs +0 -0
  239. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.cjs +0 -0
  240. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.cjs +0 -0
  241. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.mjs +0 -0
  242. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.mjs +0 -0
  243. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.cjs +0 -0
  244. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.mjs +0 -0
  245. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.cjs +0 -0
  246. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.mjs +0 -0
  247. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.cjs +0 -0
  248. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.mjs +0 -0
  249. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.cjs +0 -0
  250. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.mjs +0 -0
  251. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.cjs +0 -0
  252. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.mjs +0 -0
  253. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.cjs +0 -0
  254. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.mjs +0 -0
  255. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.cjs +0 -0
  256. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.mjs +0 -0
  257. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.cjs +0 -0
  258. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.mjs +0 -0
  259. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.cjs +0 -0
  260. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.mjs +0 -0
  261. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.cjs +0 -0
  262. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.mjs +0 -0
  263. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.cjs +0 -0
  264. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.mjs +0 -0
  265. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.cjs +0 -0
  266. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.mjs +0 -0
  267. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.cjs +0 -0
  268. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.mjs +0 -0
  269. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.cjs +0 -0
  270. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.mjs +0 -0
  271. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.cjs +0 -0
  272. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.mjs +0 -0
  273. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.cjs +0 -0
  274. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.mjs +0 -0
  275. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.cjs +0 -0
  276. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.mjs +0 -0
  277. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.cjs +0 -0
  278. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.mjs +0 -0
  279. package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.cjs +0 -0
  280. package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.mjs +0 -0
  281. package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.cjs +0 -0
  282. package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.mjs +0 -0
  283. package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.cjs +0 -0
  284. package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.mjs +0 -0
  285. package/dist/{plugins → packages/better-stack/src/plugins}/utils.cjs +0 -0
  286. package/dist/{plugins → packages/better-stack/src/plugins}/utils.mjs +0 -0
  287. package/dist/shared/{stack.CoPoHVfV.d.cts → stack.Cr2JoQdo.d.cts} +1 -1
  288. package/dist/shared/{stack.CoPoHVfV.d.mts → stack.Cr2JoQdo.d.mts} +1 -1
  289. package/dist/shared/{stack.CoPoHVfV.d.ts → stack.Cr2JoQdo.d.ts} +1 -1
@@ -0,0 +1,825 @@
1
+ 'use strict';
2
+
3
+ const floatingUi_utils = require('../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs');
4
+
5
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
6
+ let {
7
+ reference,
8
+ floating
9
+ } = _ref;
10
+ const sideAxis = floatingUi_utils.getSideAxis(placement);
11
+ const alignmentAxis = floatingUi_utils.getAlignmentAxis(placement);
12
+ const alignLength = floatingUi_utils.getAxisLength(alignmentAxis);
13
+ const side = floatingUi_utils.getSide(placement);
14
+ const isVertical = sideAxis === 'y';
15
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
16
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
17
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
18
+ let coords;
19
+ switch (side) {
20
+ case 'top':
21
+ coords = {
22
+ x: commonX,
23
+ y: reference.y - floating.height
24
+ };
25
+ break;
26
+ case 'bottom':
27
+ coords = {
28
+ x: commonX,
29
+ y: reference.y + reference.height
30
+ };
31
+ break;
32
+ case 'right':
33
+ coords = {
34
+ x: reference.x + reference.width,
35
+ y: commonY
36
+ };
37
+ break;
38
+ case 'left':
39
+ coords = {
40
+ x: reference.x - floating.width,
41
+ y: commonY
42
+ };
43
+ break;
44
+ default:
45
+ coords = {
46
+ x: reference.x,
47
+ y: reference.y
48
+ };
49
+ }
50
+ switch (floatingUi_utils.getAlignment(placement)) {
51
+ case 'start':
52
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
53
+ break;
54
+ case 'end':
55
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
56
+ break;
57
+ }
58
+ return coords;
59
+ }
60
+
61
+ /**
62
+ * Computes the `x` and `y` coordinates that will place the floating element
63
+ * next to a given reference element.
64
+ *
65
+ * This export does not have any `platform` interface logic. You will need to
66
+ * write one for the platform you are using Floating UI with.
67
+ */
68
+ const computePosition = async (reference, floating, config) => {
69
+ const {
70
+ placement = 'bottom',
71
+ strategy = 'absolute',
72
+ middleware = [],
73
+ platform
74
+ } = config;
75
+ const validMiddleware = middleware.filter(Boolean);
76
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
77
+ let rects = await platform.getElementRects({
78
+ reference,
79
+ floating,
80
+ strategy
81
+ });
82
+ let {
83
+ x,
84
+ y
85
+ } = computeCoordsFromPlacement(rects, placement, rtl);
86
+ let statefulPlacement = placement;
87
+ let middlewareData = {};
88
+ let resetCount = 0;
89
+ for (let i = 0; i < validMiddleware.length; i++) {
90
+ const {
91
+ name,
92
+ fn
93
+ } = validMiddleware[i];
94
+ const {
95
+ x: nextX,
96
+ y: nextY,
97
+ data,
98
+ reset
99
+ } = await fn({
100
+ x,
101
+ y,
102
+ initialPlacement: placement,
103
+ placement: statefulPlacement,
104
+ strategy,
105
+ middlewareData,
106
+ rects,
107
+ platform,
108
+ elements: {
109
+ reference,
110
+ floating
111
+ }
112
+ });
113
+ x = nextX != null ? nextX : x;
114
+ y = nextY != null ? nextY : y;
115
+ middlewareData = {
116
+ ...middlewareData,
117
+ [name]: {
118
+ ...middlewareData[name],
119
+ ...data
120
+ }
121
+ };
122
+ if (reset && resetCount <= 50) {
123
+ resetCount++;
124
+ if (typeof reset === 'object') {
125
+ if (reset.placement) {
126
+ statefulPlacement = reset.placement;
127
+ }
128
+ if (reset.rects) {
129
+ rects = reset.rects === true ? await platform.getElementRects({
130
+ reference,
131
+ floating,
132
+ strategy
133
+ }) : reset.rects;
134
+ }
135
+ ({
136
+ x,
137
+ y
138
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
139
+ }
140
+ i = -1;
141
+ }
142
+ }
143
+ return {
144
+ x,
145
+ y,
146
+ placement: statefulPlacement,
147
+ strategy,
148
+ middlewareData
149
+ };
150
+ };
151
+
152
+ /**
153
+ * Resolves with an object of overflow side offsets that determine how much the
154
+ * element is overflowing a given clipping boundary on each side.
155
+ * - positive = overflowing the boundary by that number of pixels
156
+ * - negative = how many pixels left before it will overflow
157
+ * - 0 = lies flush with the boundary
158
+ * @see https://floating-ui.com/docs/detectOverflow
159
+ */
160
+ async function detectOverflow(state, options) {
161
+ var _await$platform$isEle;
162
+ if (options === void 0) {
163
+ options = {};
164
+ }
165
+ const {
166
+ x,
167
+ y,
168
+ platform,
169
+ rects,
170
+ elements,
171
+ strategy
172
+ } = state;
173
+ const {
174
+ boundary = 'clippingAncestors',
175
+ rootBoundary = 'viewport',
176
+ elementContext = 'floating',
177
+ altBoundary = false,
178
+ padding = 0
179
+ } = floatingUi_utils.evaluate(options, state);
180
+ const paddingObject = floatingUi_utils.getPaddingObject(padding);
181
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
182
+ const element = elements[altBoundary ? altContext : elementContext];
183
+ const clippingClientRect = floatingUi_utils.rectToClientRect(await platform.getClippingRect({
184
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
185
+ boundary,
186
+ rootBoundary,
187
+ strategy
188
+ }));
189
+ const rect = elementContext === 'floating' ? {
190
+ x,
191
+ y,
192
+ width: rects.floating.width,
193
+ height: rects.floating.height
194
+ } : rects.reference;
195
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
196
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
197
+ x: 1,
198
+ y: 1
199
+ } : {
200
+ x: 1,
201
+ y: 1
202
+ };
203
+ const elementClientRect = floatingUi_utils.rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
204
+ elements,
205
+ rect,
206
+ offsetParent,
207
+ strategy
208
+ }) : rect);
209
+ return {
210
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
211
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
212
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
213
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
214
+ };
215
+ }
216
+
217
+ /**
218
+ * Provides data to position an inner element of the floating element so that it
219
+ * appears centered to the reference element.
220
+ * @see https://floating-ui.com/docs/arrow
221
+ */
222
+ const arrow = options => ({
223
+ name: 'arrow',
224
+ options,
225
+ async fn(state) {
226
+ const {
227
+ x,
228
+ y,
229
+ placement,
230
+ rects,
231
+ platform,
232
+ elements,
233
+ middlewareData
234
+ } = state;
235
+ // Since `element` is required, we don't Partial<> the type.
236
+ const {
237
+ element,
238
+ padding = 0
239
+ } = floatingUi_utils.evaluate(options, state) || {};
240
+ if (element == null) {
241
+ return {};
242
+ }
243
+ const paddingObject = floatingUi_utils.getPaddingObject(padding);
244
+ const coords = {
245
+ x,
246
+ y
247
+ };
248
+ const axis = floatingUi_utils.getAlignmentAxis(placement);
249
+ const length = floatingUi_utils.getAxisLength(axis);
250
+ const arrowDimensions = await platform.getDimensions(element);
251
+ const isYAxis = axis === 'y';
252
+ const minProp = isYAxis ? 'top' : 'left';
253
+ const maxProp = isYAxis ? 'bottom' : 'right';
254
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
255
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
256
+ const startDiff = coords[axis] - rects.reference[axis];
257
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
258
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
259
+
260
+ // DOM platform can return `window` as the `offsetParent`.
261
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
262
+ clientSize = elements.floating[clientProp] || rects.floating[length];
263
+ }
264
+ const centerToReference = endDiff / 2 - startDiff / 2;
265
+
266
+ // If the padding is large enough that it causes the arrow to no longer be
267
+ // centered, modify the padding so that it is centered.
268
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
269
+ const minPadding = floatingUi_utils.min(paddingObject[minProp], largestPossiblePadding);
270
+ const maxPadding = floatingUi_utils.min(paddingObject[maxProp], largestPossiblePadding);
271
+
272
+ // Make sure the arrow doesn't overflow the floating element if the center
273
+ // point is outside the floating element's bounds.
274
+ const min$1 = minPadding;
275
+ const max = clientSize - arrowDimensions[length] - maxPadding;
276
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
277
+ const offset = floatingUi_utils.clamp(min$1, center, max);
278
+
279
+ // If the reference is small enough that the arrow's padding causes it to
280
+ // to point to nothing for an aligned placement, adjust the offset of the
281
+ // floating element itself. To ensure `shift()` continues to take action,
282
+ // a single reset is performed when this is true.
283
+ const shouldAddOffset = !middlewareData.arrow && floatingUi_utils.getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
284
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
285
+ return {
286
+ [axis]: coords[axis] + alignmentOffset,
287
+ data: {
288
+ [axis]: offset,
289
+ centerOffset: center - offset - alignmentOffset,
290
+ ...(shouldAddOffset && {
291
+ alignmentOffset
292
+ })
293
+ },
294
+ reset: shouldAddOffset
295
+ };
296
+ }
297
+ });
298
+
299
+ /**
300
+ * Optimizes the visibility of the floating element by flipping the `placement`
301
+ * in order to keep it in view when the preferred placement(s) will overflow the
302
+ * clipping boundary. Alternative to `autoPlacement`.
303
+ * @see https://floating-ui.com/docs/flip
304
+ */
305
+ const flip = function (options) {
306
+ if (options === void 0) {
307
+ options = {};
308
+ }
309
+ return {
310
+ name: 'flip',
311
+ options,
312
+ async fn(state) {
313
+ var _middlewareData$arrow, _middlewareData$flip;
314
+ const {
315
+ placement,
316
+ middlewareData,
317
+ rects,
318
+ initialPlacement,
319
+ platform,
320
+ elements
321
+ } = state;
322
+ const {
323
+ mainAxis: checkMainAxis = true,
324
+ crossAxis: checkCrossAxis = true,
325
+ fallbackPlacements: specifiedFallbackPlacements,
326
+ fallbackStrategy = 'bestFit',
327
+ fallbackAxisSideDirection = 'none',
328
+ flipAlignment = true,
329
+ ...detectOverflowOptions
330
+ } = floatingUi_utils.evaluate(options, state);
331
+
332
+ // If a reset by the arrow was caused due to an alignment offset being
333
+ // added, we should skip any logic now since `flip()` has already done its
334
+ // work.
335
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
336
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
337
+ return {};
338
+ }
339
+ const side = floatingUi_utils.getSide(placement);
340
+ const initialSideAxis = floatingUi_utils.getSideAxis(initialPlacement);
341
+ const isBasePlacement = floatingUi_utils.getSide(initialPlacement) === initialPlacement;
342
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
343
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [floatingUi_utils.getOppositePlacement(initialPlacement)] : floatingUi_utils.getExpandedPlacements(initialPlacement));
344
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
345
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
346
+ fallbackPlacements.push(...floatingUi_utils.getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
347
+ }
348
+ const placements = [initialPlacement, ...fallbackPlacements];
349
+ const overflow = await detectOverflow(state, detectOverflowOptions);
350
+ const overflows = [];
351
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
352
+ if (checkMainAxis) {
353
+ overflows.push(overflow[side]);
354
+ }
355
+ if (checkCrossAxis) {
356
+ const sides = floatingUi_utils.getAlignmentSides(placement, rects, rtl);
357
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
358
+ }
359
+ overflowsData = [...overflowsData, {
360
+ placement,
361
+ overflows
362
+ }];
363
+
364
+ // One or more sides is overflowing.
365
+ if (!overflows.every(side => side <= 0)) {
366
+ var _middlewareData$flip2, _overflowsData$filter;
367
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
368
+ const nextPlacement = placements[nextIndex];
369
+ if (nextPlacement) {
370
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== floatingUi_utils.getSideAxis(nextPlacement) : false;
371
+ if (!ignoreCrossAxisOverflow ||
372
+ // We leave the current main axis only if every placement on that axis
373
+ // overflows the main axis.
374
+ overflowsData.every(d => floatingUi_utils.getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
375
+ // Try next placement and re-run the lifecycle.
376
+ return {
377
+ data: {
378
+ index: nextIndex,
379
+ overflows: overflowsData
380
+ },
381
+ reset: {
382
+ placement: nextPlacement
383
+ }
384
+ };
385
+ }
386
+ }
387
+
388
+ // First, find the candidates that fit on the mainAxis side of overflow,
389
+ // then find the placement that fits the best on the main crossAxis side.
390
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
391
+
392
+ // Otherwise fallback.
393
+ if (!resetPlacement) {
394
+ switch (fallbackStrategy) {
395
+ case 'bestFit':
396
+ {
397
+ var _overflowsData$filter2;
398
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
399
+ if (hasFallbackAxisSideDirection) {
400
+ const currentSideAxis = floatingUi_utils.getSideAxis(d.placement);
401
+ return currentSideAxis === initialSideAxis ||
402
+ // Create a bias to the `y` side axis due to horizontal
403
+ // reading directions favoring greater width.
404
+ currentSideAxis === 'y';
405
+ }
406
+ return true;
407
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
408
+ if (placement) {
409
+ resetPlacement = placement;
410
+ }
411
+ break;
412
+ }
413
+ case 'initialPlacement':
414
+ resetPlacement = initialPlacement;
415
+ break;
416
+ }
417
+ }
418
+ if (placement !== resetPlacement) {
419
+ return {
420
+ reset: {
421
+ placement: resetPlacement
422
+ }
423
+ };
424
+ }
425
+ }
426
+ return {};
427
+ }
428
+ };
429
+ };
430
+
431
+ function getSideOffsets(overflow, rect) {
432
+ return {
433
+ top: overflow.top - rect.height,
434
+ right: overflow.right - rect.width,
435
+ bottom: overflow.bottom - rect.height,
436
+ left: overflow.left - rect.width
437
+ };
438
+ }
439
+ function isAnySideFullyClipped(overflow) {
440
+ return floatingUi_utils.sides.some(side => overflow[side] >= 0);
441
+ }
442
+ /**
443
+ * Provides data to hide the floating element in applicable situations, such as
444
+ * when it is not in the same clipping context as the reference element.
445
+ * @see https://floating-ui.com/docs/hide
446
+ */
447
+ const hide = function (options) {
448
+ if (options === void 0) {
449
+ options = {};
450
+ }
451
+ return {
452
+ name: 'hide',
453
+ options,
454
+ async fn(state) {
455
+ const {
456
+ rects
457
+ } = state;
458
+ const {
459
+ strategy = 'referenceHidden',
460
+ ...detectOverflowOptions
461
+ } = floatingUi_utils.evaluate(options, state);
462
+ switch (strategy) {
463
+ case 'referenceHidden':
464
+ {
465
+ const overflow = await detectOverflow(state, {
466
+ ...detectOverflowOptions,
467
+ elementContext: 'reference'
468
+ });
469
+ const offsets = getSideOffsets(overflow, rects.reference);
470
+ return {
471
+ data: {
472
+ referenceHiddenOffsets: offsets,
473
+ referenceHidden: isAnySideFullyClipped(offsets)
474
+ }
475
+ };
476
+ }
477
+ case 'escaped':
478
+ {
479
+ const overflow = await detectOverflow(state, {
480
+ ...detectOverflowOptions,
481
+ altBoundary: true
482
+ });
483
+ const offsets = getSideOffsets(overflow, rects.floating);
484
+ return {
485
+ data: {
486
+ escapedOffsets: offsets,
487
+ escaped: isAnySideFullyClipped(offsets)
488
+ }
489
+ };
490
+ }
491
+ default:
492
+ {
493
+ return {};
494
+ }
495
+ }
496
+ }
497
+ };
498
+ };
499
+
500
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
501
+
502
+ // For type backwards-compatibility, the `OffsetOptions` type was also
503
+ // Derivable.
504
+
505
+ async function convertValueToCoords(state, options) {
506
+ const {
507
+ placement,
508
+ platform,
509
+ elements
510
+ } = state;
511
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
512
+ const side = floatingUi_utils.getSide(placement);
513
+ const alignment = floatingUi_utils.getAlignment(placement);
514
+ const isVertical = floatingUi_utils.getSideAxis(placement) === 'y';
515
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
516
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
517
+ const rawValue = floatingUi_utils.evaluate(options, state);
518
+
519
+ // eslint-disable-next-line prefer-const
520
+ let {
521
+ mainAxis,
522
+ crossAxis,
523
+ alignmentAxis
524
+ } = typeof rawValue === 'number' ? {
525
+ mainAxis: rawValue,
526
+ crossAxis: 0,
527
+ alignmentAxis: null
528
+ } : {
529
+ mainAxis: rawValue.mainAxis || 0,
530
+ crossAxis: rawValue.crossAxis || 0,
531
+ alignmentAxis: rawValue.alignmentAxis
532
+ };
533
+ if (alignment && typeof alignmentAxis === 'number') {
534
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
535
+ }
536
+ return isVertical ? {
537
+ x: crossAxis * crossAxisMulti,
538
+ y: mainAxis * mainAxisMulti
539
+ } : {
540
+ x: mainAxis * mainAxisMulti,
541
+ y: crossAxis * crossAxisMulti
542
+ };
543
+ }
544
+
545
+ /**
546
+ * Modifies the placement by translating the floating element along the
547
+ * specified axes.
548
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
549
+ * object may be passed.
550
+ * @see https://floating-ui.com/docs/offset
551
+ */
552
+ const offset = function (options) {
553
+ if (options === void 0) {
554
+ options = 0;
555
+ }
556
+ return {
557
+ name: 'offset',
558
+ options,
559
+ async fn(state) {
560
+ var _middlewareData$offse, _middlewareData$arrow;
561
+ const {
562
+ x,
563
+ y,
564
+ placement,
565
+ middlewareData
566
+ } = state;
567
+ const diffCoords = await convertValueToCoords(state, options);
568
+
569
+ // If the placement is the same and the arrow caused an alignment offset
570
+ // then we don't need to change the positioning coordinates.
571
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
572
+ return {};
573
+ }
574
+ return {
575
+ x: x + diffCoords.x,
576
+ y: y + diffCoords.y,
577
+ data: {
578
+ ...diffCoords,
579
+ placement
580
+ }
581
+ };
582
+ }
583
+ };
584
+ };
585
+
586
+ /**
587
+ * Optimizes the visibility of the floating element by shifting it in order to
588
+ * keep it in view when it will overflow the clipping boundary.
589
+ * @see https://floating-ui.com/docs/shift
590
+ */
591
+ const shift = function (options) {
592
+ if (options === void 0) {
593
+ options = {};
594
+ }
595
+ return {
596
+ name: 'shift',
597
+ options,
598
+ async fn(state) {
599
+ const {
600
+ x,
601
+ y,
602
+ placement
603
+ } = state;
604
+ const {
605
+ mainAxis: checkMainAxis = true,
606
+ crossAxis: checkCrossAxis = false,
607
+ limiter = {
608
+ fn: _ref => {
609
+ let {
610
+ x,
611
+ y
612
+ } = _ref;
613
+ return {
614
+ x,
615
+ y
616
+ };
617
+ }
618
+ },
619
+ ...detectOverflowOptions
620
+ } = floatingUi_utils.evaluate(options, state);
621
+ const coords = {
622
+ x,
623
+ y
624
+ };
625
+ const overflow = await detectOverflow(state, detectOverflowOptions);
626
+ const crossAxis = floatingUi_utils.getSideAxis(floatingUi_utils.getSide(placement));
627
+ const mainAxis = floatingUi_utils.getOppositeAxis(crossAxis);
628
+ let mainAxisCoord = coords[mainAxis];
629
+ let crossAxisCoord = coords[crossAxis];
630
+ if (checkMainAxis) {
631
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
632
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
633
+ const min = mainAxisCoord + overflow[minSide];
634
+ const max = mainAxisCoord - overflow[maxSide];
635
+ mainAxisCoord = floatingUi_utils.clamp(min, mainAxisCoord, max);
636
+ }
637
+ if (checkCrossAxis) {
638
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
639
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
640
+ const min = crossAxisCoord + overflow[minSide];
641
+ const max = crossAxisCoord - overflow[maxSide];
642
+ crossAxisCoord = floatingUi_utils.clamp(min, crossAxisCoord, max);
643
+ }
644
+ const limitedCoords = limiter.fn({
645
+ ...state,
646
+ [mainAxis]: mainAxisCoord,
647
+ [crossAxis]: crossAxisCoord
648
+ });
649
+ return {
650
+ ...limitedCoords,
651
+ data: {
652
+ x: limitedCoords.x - x,
653
+ y: limitedCoords.y - y,
654
+ enabled: {
655
+ [mainAxis]: checkMainAxis,
656
+ [crossAxis]: checkCrossAxis
657
+ }
658
+ }
659
+ };
660
+ }
661
+ };
662
+ };
663
+ /**
664
+ * Built-in `limiter` that will stop `shift()` at a certain point.
665
+ */
666
+ const limitShift = function (options) {
667
+ if (options === void 0) {
668
+ options = {};
669
+ }
670
+ return {
671
+ options,
672
+ fn(state) {
673
+ const {
674
+ x,
675
+ y,
676
+ placement,
677
+ rects,
678
+ middlewareData
679
+ } = state;
680
+ const {
681
+ offset = 0,
682
+ mainAxis: checkMainAxis = true,
683
+ crossAxis: checkCrossAxis = true
684
+ } = floatingUi_utils.evaluate(options, state);
685
+ const coords = {
686
+ x,
687
+ y
688
+ };
689
+ const crossAxis = floatingUi_utils.getSideAxis(placement);
690
+ const mainAxis = floatingUi_utils.getOppositeAxis(crossAxis);
691
+ let mainAxisCoord = coords[mainAxis];
692
+ let crossAxisCoord = coords[crossAxis];
693
+ const rawOffset = floatingUi_utils.evaluate(offset, state);
694
+ const computedOffset = typeof rawOffset === 'number' ? {
695
+ mainAxis: rawOffset,
696
+ crossAxis: 0
697
+ } : {
698
+ mainAxis: 0,
699
+ crossAxis: 0,
700
+ ...rawOffset
701
+ };
702
+ if (checkMainAxis) {
703
+ const len = mainAxis === 'y' ? 'height' : 'width';
704
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
705
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
706
+ if (mainAxisCoord < limitMin) {
707
+ mainAxisCoord = limitMin;
708
+ } else if (mainAxisCoord > limitMax) {
709
+ mainAxisCoord = limitMax;
710
+ }
711
+ }
712
+ if (checkCrossAxis) {
713
+ var _middlewareData$offse, _middlewareData$offse2;
714
+ const len = mainAxis === 'y' ? 'width' : 'height';
715
+ const isOriginSide = originSides.has(floatingUi_utils.getSide(placement));
716
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
717
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
718
+ if (crossAxisCoord < limitMin) {
719
+ crossAxisCoord = limitMin;
720
+ } else if (crossAxisCoord > limitMax) {
721
+ crossAxisCoord = limitMax;
722
+ }
723
+ }
724
+ return {
725
+ [mainAxis]: mainAxisCoord,
726
+ [crossAxis]: crossAxisCoord
727
+ };
728
+ }
729
+ };
730
+ };
731
+
732
+ /**
733
+ * Provides data that allows you to change the size of the floating element —
734
+ * for instance, prevent it from overflowing the clipping boundary or match the
735
+ * width of the reference element.
736
+ * @see https://floating-ui.com/docs/size
737
+ */
738
+ const size = function (options) {
739
+ if (options === void 0) {
740
+ options = {};
741
+ }
742
+ return {
743
+ name: 'size',
744
+ options,
745
+ async fn(state) {
746
+ var _state$middlewareData, _state$middlewareData2;
747
+ const {
748
+ placement,
749
+ rects,
750
+ platform,
751
+ elements
752
+ } = state;
753
+ const {
754
+ apply = () => {},
755
+ ...detectOverflowOptions
756
+ } = floatingUi_utils.evaluate(options, state);
757
+ const overflow = await detectOverflow(state, detectOverflowOptions);
758
+ const side = floatingUi_utils.getSide(placement);
759
+ const alignment = floatingUi_utils.getAlignment(placement);
760
+ const isYAxis = floatingUi_utils.getSideAxis(placement) === 'y';
761
+ const {
762
+ width,
763
+ height
764
+ } = rects.floating;
765
+ let heightSide;
766
+ let widthSide;
767
+ if (side === 'top' || side === 'bottom') {
768
+ heightSide = side;
769
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
770
+ } else {
771
+ widthSide = side;
772
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
773
+ }
774
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
775
+ const maximumClippingWidth = width - overflow.left - overflow.right;
776
+ const overflowAvailableHeight = floatingUi_utils.min(height - overflow[heightSide], maximumClippingHeight);
777
+ const overflowAvailableWidth = floatingUi_utils.min(width - overflow[widthSide], maximumClippingWidth);
778
+ const noShift = !state.middlewareData.shift;
779
+ let availableHeight = overflowAvailableHeight;
780
+ let availableWidth = overflowAvailableWidth;
781
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
782
+ availableWidth = maximumClippingWidth;
783
+ }
784
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
785
+ availableHeight = maximumClippingHeight;
786
+ }
787
+ if (noShift && !alignment) {
788
+ const xMin = floatingUi_utils.max(overflow.left, 0);
789
+ const xMax = floatingUi_utils.max(overflow.right, 0);
790
+ const yMin = floatingUi_utils.max(overflow.top, 0);
791
+ const yMax = floatingUi_utils.max(overflow.bottom, 0);
792
+ if (isYAxis) {
793
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : floatingUi_utils.max(overflow.left, overflow.right));
794
+ } else {
795
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : floatingUi_utils.max(overflow.top, overflow.bottom));
796
+ }
797
+ }
798
+ await apply({
799
+ ...state,
800
+ availableWidth,
801
+ availableHeight
802
+ });
803
+ const nextDimensions = await platform.getDimensions(elements.floating);
804
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
805
+ return {
806
+ reset: {
807
+ rects: true
808
+ }
809
+ };
810
+ }
811
+ return {};
812
+ }
813
+ };
814
+ };
815
+
816
+ exports.rectToClientRect = floatingUi_utils.rectToClientRect;
817
+ exports.arrow = arrow;
818
+ exports.computePosition = computePosition;
819
+ exports.detectOverflow = detectOverflow;
820
+ exports.flip = flip;
821
+ exports.hide = hide;
822
+ exports.limitShift = limitShift;
823
+ exports.offset = offset;
824
+ exports.shift = shift;
825
+ exports.size = size;