@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,763 @@
1
+ 'use strict';
2
+
3
+ const floatingUi_core = require('../../../../../@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs');
4
+ const floatingUi_utils = require('../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs');
5
+ const floatingUi_utils_dom = require('../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs');
6
+
7
+ function getCssDimensions(element) {
8
+ const css = floatingUi_utils_dom.getComputedStyle(element);
9
+ // In testing environments, the `width` and `height` properties are empty
10
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
11
+ let width = parseFloat(css.width) || 0;
12
+ let height = parseFloat(css.height) || 0;
13
+ const hasOffset = floatingUi_utils_dom.isHTMLElement(element);
14
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
15
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
16
+ const shouldFallback = floatingUi_utils.round(width) !== offsetWidth || floatingUi_utils.round(height) !== offsetHeight;
17
+ if (shouldFallback) {
18
+ width = offsetWidth;
19
+ height = offsetHeight;
20
+ }
21
+ return {
22
+ width,
23
+ height,
24
+ $: shouldFallback
25
+ };
26
+ }
27
+
28
+ function unwrapElement(element) {
29
+ return !floatingUi_utils_dom.isElement(element) ? element.contextElement : element;
30
+ }
31
+
32
+ function getScale(element) {
33
+ const domElement = unwrapElement(element);
34
+ if (!floatingUi_utils_dom.isHTMLElement(domElement)) {
35
+ return floatingUi_utils.createCoords(1);
36
+ }
37
+ const rect = domElement.getBoundingClientRect();
38
+ const {
39
+ width,
40
+ height,
41
+ $
42
+ } = getCssDimensions(domElement);
43
+ let x = ($ ? floatingUi_utils.round(rect.width) : rect.width) / width;
44
+ let y = ($ ? floatingUi_utils.round(rect.height) : rect.height) / height;
45
+
46
+ // 0, NaN, or Infinity should always fallback to 1.
47
+
48
+ if (!x || !Number.isFinite(x)) {
49
+ x = 1;
50
+ }
51
+ if (!y || !Number.isFinite(y)) {
52
+ y = 1;
53
+ }
54
+ return {
55
+ x,
56
+ y
57
+ };
58
+ }
59
+
60
+ const noOffsets = /*#__PURE__*/floatingUi_utils.createCoords(0);
61
+ function getVisualOffsets(element) {
62
+ const win = floatingUi_utils_dom.getWindow(element);
63
+ if (!floatingUi_utils_dom.isWebKit() || !win.visualViewport) {
64
+ return noOffsets;
65
+ }
66
+ return {
67
+ x: win.visualViewport.offsetLeft,
68
+ y: win.visualViewport.offsetTop
69
+ };
70
+ }
71
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
72
+ if (isFixed === void 0) {
73
+ isFixed = false;
74
+ }
75
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== floatingUi_utils_dom.getWindow(element)) {
76
+ return false;
77
+ }
78
+ return isFixed;
79
+ }
80
+
81
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
82
+ if (includeScale === void 0) {
83
+ includeScale = false;
84
+ }
85
+ if (isFixedStrategy === void 0) {
86
+ isFixedStrategy = false;
87
+ }
88
+ const clientRect = element.getBoundingClientRect();
89
+ const domElement = unwrapElement(element);
90
+ let scale = floatingUi_utils.createCoords(1);
91
+ if (includeScale) {
92
+ if (offsetParent) {
93
+ if (floatingUi_utils_dom.isElement(offsetParent)) {
94
+ scale = getScale(offsetParent);
95
+ }
96
+ } else {
97
+ scale = getScale(element);
98
+ }
99
+ }
100
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : floatingUi_utils.createCoords(0);
101
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
102
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
103
+ let width = clientRect.width / scale.x;
104
+ let height = clientRect.height / scale.y;
105
+ if (domElement) {
106
+ const win = floatingUi_utils_dom.getWindow(domElement);
107
+ const offsetWin = offsetParent && floatingUi_utils_dom.isElement(offsetParent) ? floatingUi_utils_dom.getWindow(offsetParent) : offsetParent;
108
+ let currentWin = win;
109
+ let currentIFrame = floatingUi_utils_dom.getFrameElement(currentWin);
110
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
111
+ const iframeScale = getScale(currentIFrame);
112
+ const iframeRect = currentIFrame.getBoundingClientRect();
113
+ const css = floatingUi_utils_dom.getComputedStyle(currentIFrame);
114
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
115
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
116
+ x *= iframeScale.x;
117
+ y *= iframeScale.y;
118
+ width *= iframeScale.x;
119
+ height *= iframeScale.y;
120
+ x += left;
121
+ y += top;
122
+ currentWin = floatingUi_utils_dom.getWindow(currentIFrame);
123
+ currentIFrame = floatingUi_utils_dom.getFrameElement(currentWin);
124
+ }
125
+ }
126
+ return floatingUi_utils.rectToClientRect({
127
+ width,
128
+ height,
129
+ x,
130
+ y
131
+ });
132
+ }
133
+
134
+ // If <html> has a CSS width greater than the viewport, then this will be
135
+ // incorrect for RTL.
136
+ function getWindowScrollBarX(element, rect) {
137
+ const leftScroll = floatingUi_utils_dom.getNodeScroll(element).scrollLeft;
138
+ if (!rect) {
139
+ return getBoundingClientRect(floatingUi_utils_dom.getDocumentElement(element)).left + leftScroll;
140
+ }
141
+ return rect.left + leftScroll;
142
+ }
143
+
144
+ function getHTMLOffset(documentElement, scroll) {
145
+ const htmlRect = documentElement.getBoundingClientRect();
146
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
147
+ const y = htmlRect.top + scroll.scrollTop;
148
+ return {
149
+ x,
150
+ y
151
+ };
152
+ }
153
+
154
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
155
+ let {
156
+ elements,
157
+ rect,
158
+ offsetParent,
159
+ strategy
160
+ } = _ref;
161
+ const isFixed = strategy === 'fixed';
162
+ const documentElement = floatingUi_utils_dom.getDocumentElement(offsetParent);
163
+ const topLayer = elements ? floatingUi_utils_dom.isTopLayer(elements.floating) : false;
164
+ if (offsetParent === documentElement || topLayer && isFixed) {
165
+ return rect;
166
+ }
167
+ let scroll = {
168
+ scrollLeft: 0,
169
+ scrollTop: 0
170
+ };
171
+ let scale = floatingUi_utils.createCoords(1);
172
+ const offsets = floatingUi_utils.createCoords(0);
173
+ const isOffsetParentAnElement = floatingUi_utils_dom.isHTMLElement(offsetParent);
174
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
175
+ if (floatingUi_utils_dom.getNodeName(offsetParent) !== 'body' || floatingUi_utils_dom.isOverflowElement(documentElement)) {
176
+ scroll = floatingUi_utils_dom.getNodeScroll(offsetParent);
177
+ }
178
+ if (floatingUi_utils_dom.isHTMLElement(offsetParent)) {
179
+ const offsetRect = getBoundingClientRect(offsetParent);
180
+ scale = getScale(offsetParent);
181
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
182
+ offsets.y = offsetRect.y + offsetParent.clientTop;
183
+ }
184
+ }
185
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : floatingUi_utils.createCoords(0);
186
+ return {
187
+ width: rect.width * scale.x,
188
+ height: rect.height * scale.y,
189
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
190
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
191
+ };
192
+ }
193
+
194
+ function getClientRects(element) {
195
+ return Array.from(element.getClientRects());
196
+ }
197
+
198
+ // Gets the entire size of the scrollable document area, even extending outside
199
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
200
+ function getDocumentRect(element) {
201
+ const html = floatingUi_utils_dom.getDocumentElement(element);
202
+ const scroll = floatingUi_utils_dom.getNodeScroll(element);
203
+ const body = element.ownerDocument.body;
204
+ const width = floatingUi_utils.max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
205
+ const height = floatingUi_utils.max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
206
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
207
+ const y = -scroll.scrollTop;
208
+ if (floatingUi_utils_dom.getComputedStyle(body).direction === 'rtl') {
209
+ x += floatingUi_utils.max(html.clientWidth, body.clientWidth) - width;
210
+ }
211
+ return {
212
+ width,
213
+ height,
214
+ x,
215
+ y
216
+ };
217
+ }
218
+
219
+ // Safety check: ensure the scrollbar space is reasonable in case this
220
+ // calculation is affected by unusual styles.
221
+ // Most scrollbars leave 15-18px of space.
222
+ const SCROLLBAR_MAX = 25;
223
+ function getViewportRect(element, strategy) {
224
+ const win = floatingUi_utils_dom.getWindow(element);
225
+ const html = floatingUi_utils_dom.getDocumentElement(element);
226
+ const visualViewport = win.visualViewport;
227
+ let width = html.clientWidth;
228
+ let height = html.clientHeight;
229
+ let x = 0;
230
+ let y = 0;
231
+ if (visualViewport) {
232
+ width = visualViewport.width;
233
+ height = visualViewport.height;
234
+ const visualViewportBased = floatingUi_utils_dom.isWebKit();
235
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
236
+ x = visualViewport.offsetLeft;
237
+ y = visualViewport.offsetTop;
238
+ }
239
+ }
240
+ const windowScrollbarX = getWindowScrollBarX(html);
241
+ // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
242
+ // visual width of the <html> but this is not considered in the size
243
+ // of `html.clientWidth`.
244
+ if (windowScrollbarX <= 0) {
245
+ const doc = html.ownerDocument;
246
+ const body = doc.body;
247
+ const bodyStyles = getComputedStyle(body);
248
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
249
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
250
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
251
+ width -= clippingStableScrollbarWidth;
252
+ }
253
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
254
+ // If the <body> scrollbar is on the left, the width needs to be extended
255
+ // by the scrollbar amount so there isn't extra space on the right.
256
+ width += windowScrollbarX;
257
+ }
258
+ return {
259
+ width,
260
+ height,
261
+ x,
262
+ y
263
+ };
264
+ }
265
+
266
+ const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
267
+ // Returns the inner client rect, subtracting scrollbars if present.
268
+ function getInnerBoundingClientRect(element, strategy) {
269
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
270
+ const top = clientRect.top + element.clientTop;
271
+ const left = clientRect.left + element.clientLeft;
272
+ const scale = floatingUi_utils_dom.isHTMLElement(element) ? getScale(element) : floatingUi_utils.createCoords(1);
273
+ const width = element.clientWidth * scale.x;
274
+ const height = element.clientHeight * scale.y;
275
+ const x = left * scale.x;
276
+ const y = top * scale.y;
277
+ return {
278
+ width,
279
+ height,
280
+ x,
281
+ y
282
+ };
283
+ }
284
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
285
+ let rect;
286
+ if (clippingAncestor === 'viewport') {
287
+ rect = getViewportRect(element, strategy);
288
+ } else if (clippingAncestor === 'document') {
289
+ rect = getDocumentRect(floatingUi_utils_dom.getDocumentElement(element));
290
+ } else if (floatingUi_utils_dom.isElement(clippingAncestor)) {
291
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
292
+ } else {
293
+ const visualOffsets = getVisualOffsets(element);
294
+ rect = {
295
+ x: clippingAncestor.x - visualOffsets.x,
296
+ y: clippingAncestor.y - visualOffsets.y,
297
+ width: clippingAncestor.width,
298
+ height: clippingAncestor.height
299
+ };
300
+ }
301
+ return floatingUi_utils.rectToClientRect(rect);
302
+ }
303
+ function hasFixedPositionAncestor(element, stopNode) {
304
+ const parentNode = floatingUi_utils_dom.getParentNode(element);
305
+ if (parentNode === stopNode || !floatingUi_utils_dom.isElement(parentNode) || floatingUi_utils_dom.isLastTraversableNode(parentNode)) {
306
+ return false;
307
+ }
308
+ return floatingUi_utils_dom.getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
309
+ }
310
+
311
+ // A "clipping ancestor" is an `overflow` element with the characteristic of
312
+ // clipping (or hiding) child elements. This returns all clipping ancestors
313
+ // of the given element up the tree.
314
+ function getClippingElementAncestors(element, cache) {
315
+ const cachedResult = cache.get(element);
316
+ if (cachedResult) {
317
+ return cachedResult;
318
+ }
319
+ let result = floatingUi_utils_dom.getOverflowAncestors(element, [], false).filter(el => floatingUi_utils_dom.isElement(el) && floatingUi_utils_dom.getNodeName(el) !== 'body');
320
+ let currentContainingBlockComputedStyle = null;
321
+ const elementIsFixed = floatingUi_utils_dom.getComputedStyle(element).position === 'fixed';
322
+ let currentNode = elementIsFixed ? floatingUi_utils_dom.getParentNode(element) : element;
323
+
324
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
325
+ while (floatingUi_utils_dom.isElement(currentNode) && !floatingUi_utils_dom.isLastTraversableNode(currentNode)) {
326
+ const computedStyle = floatingUi_utils_dom.getComputedStyle(currentNode);
327
+ const currentNodeIsContaining = floatingUi_utils_dom.isContainingBlock(currentNode);
328
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
329
+ currentContainingBlockComputedStyle = null;
330
+ }
331
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || floatingUi_utils_dom.isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
332
+ if (shouldDropCurrentNode) {
333
+ // Drop non-containing blocks.
334
+ result = result.filter(ancestor => ancestor !== currentNode);
335
+ } else {
336
+ // Record last containing block for next iteration.
337
+ currentContainingBlockComputedStyle = computedStyle;
338
+ }
339
+ currentNode = floatingUi_utils_dom.getParentNode(currentNode);
340
+ }
341
+ cache.set(element, result);
342
+ return result;
343
+ }
344
+
345
+ // Gets the maximum area that the element is visible in due to any number of
346
+ // clipping ancestors.
347
+ function getClippingRect(_ref) {
348
+ let {
349
+ element,
350
+ boundary,
351
+ rootBoundary,
352
+ strategy
353
+ } = _ref;
354
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? floatingUi_utils_dom.isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
355
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
356
+ const firstClippingAncestor = clippingAncestors[0];
357
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
358
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
359
+ accRect.top = floatingUi_utils.max(rect.top, accRect.top);
360
+ accRect.right = floatingUi_utils.min(rect.right, accRect.right);
361
+ accRect.bottom = floatingUi_utils.min(rect.bottom, accRect.bottom);
362
+ accRect.left = floatingUi_utils.max(rect.left, accRect.left);
363
+ return accRect;
364
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
365
+ return {
366
+ width: clippingRect.right - clippingRect.left,
367
+ height: clippingRect.bottom - clippingRect.top,
368
+ x: clippingRect.left,
369
+ y: clippingRect.top
370
+ };
371
+ }
372
+
373
+ function getDimensions(element) {
374
+ const {
375
+ width,
376
+ height
377
+ } = getCssDimensions(element);
378
+ return {
379
+ width,
380
+ height
381
+ };
382
+ }
383
+
384
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
385
+ const isOffsetParentAnElement = floatingUi_utils_dom.isHTMLElement(offsetParent);
386
+ const documentElement = floatingUi_utils_dom.getDocumentElement(offsetParent);
387
+ const isFixed = strategy === 'fixed';
388
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
389
+ let scroll = {
390
+ scrollLeft: 0,
391
+ scrollTop: 0
392
+ };
393
+ const offsets = floatingUi_utils.createCoords(0);
394
+
395
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
396
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
397
+ function setLeftRTLScrollbarOffset() {
398
+ offsets.x = getWindowScrollBarX(documentElement);
399
+ }
400
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
401
+ if (floatingUi_utils_dom.getNodeName(offsetParent) !== 'body' || floatingUi_utils_dom.isOverflowElement(documentElement)) {
402
+ scroll = floatingUi_utils_dom.getNodeScroll(offsetParent);
403
+ }
404
+ if (isOffsetParentAnElement) {
405
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
406
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
407
+ offsets.y = offsetRect.y + offsetParent.clientTop;
408
+ } else if (documentElement) {
409
+ setLeftRTLScrollbarOffset();
410
+ }
411
+ }
412
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
413
+ setLeftRTLScrollbarOffset();
414
+ }
415
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : floatingUi_utils.createCoords(0);
416
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
417
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
418
+ return {
419
+ x,
420
+ y,
421
+ width: rect.width,
422
+ height: rect.height
423
+ };
424
+ }
425
+
426
+ function isStaticPositioned(element) {
427
+ return floatingUi_utils_dom.getComputedStyle(element).position === 'static';
428
+ }
429
+
430
+ function getTrueOffsetParent(element, polyfill) {
431
+ if (!floatingUi_utils_dom.isHTMLElement(element) || floatingUi_utils_dom.getComputedStyle(element).position === 'fixed') {
432
+ return null;
433
+ }
434
+ if (polyfill) {
435
+ return polyfill(element);
436
+ }
437
+ let rawOffsetParent = element.offsetParent;
438
+
439
+ // Firefox returns the <html> element as the offsetParent if it's non-static,
440
+ // while Chrome and Safari return the <body> element. The <body> element must
441
+ // be used to perform the correct calculations even if the <html> element is
442
+ // non-static.
443
+ if (floatingUi_utils_dom.getDocumentElement(element) === rawOffsetParent) {
444
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
445
+ }
446
+ return rawOffsetParent;
447
+ }
448
+
449
+ // Gets the closest ancestor positioned element. Handles some edge cases,
450
+ // such as table ancestors and cross browser bugs.
451
+ function getOffsetParent(element, polyfill) {
452
+ const win = floatingUi_utils_dom.getWindow(element);
453
+ if (floatingUi_utils_dom.isTopLayer(element)) {
454
+ return win;
455
+ }
456
+ if (!floatingUi_utils_dom.isHTMLElement(element)) {
457
+ let svgOffsetParent = floatingUi_utils_dom.getParentNode(element);
458
+ while (svgOffsetParent && !floatingUi_utils_dom.isLastTraversableNode(svgOffsetParent)) {
459
+ if (floatingUi_utils_dom.isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
460
+ return svgOffsetParent;
461
+ }
462
+ svgOffsetParent = floatingUi_utils_dom.getParentNode(svgOffsetParent);
463
+ }
464
+ return win;
465
+ }
466
+ let offsetParent = getTrueOffsetParent(element, polyfill);
467
+ while (offsetParent && floatingUi_utils_dom.isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
468
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
469
+ }
470
+ if (offsetParent && floatingUi_utils_dom.isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !floatingUi_utils_dom.isContainingBlock(offsetParent)) {
471
+ return win;
472
+ }
473
+ return offsetParent || floatingUi_utils_dom.getContainingBlock(element) || win;
474
+ }
475
+
476
+ const getElementRects = async function (data) {
477
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
478
+ const getDimensionsFn = this.getDimensions;
479
+ const floatingDimensions = await getDimensionsFn(data.floating);
480
+ return {
481
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
482
+ floating: {
483
+ x: 0,
484
+ y: 0,
485
+ width: floatingDimensions.width,
486
+ height: floatingDimensions.height
487
+ }
488
+ };
489
+ };
490
+
491
+ function isRTL(element) {
492
+ return floatingUi_utils_dom.getComputedStyle(element).direction === 'rtl';
493
+ }
494
+
495
+ const platform = {
496
+ convertOffsetParentRelativeRectToViewportRelativeRect,
497
+ getDocumentElement: floatingUi_utils_dom.getDocumentElement,
498
+ getClippingRect,
499
+ getOffsetParent,
500
+ getElementRects,
501
+ getClientRects,
502
+ getDimensions,
503
+ getScale,
504
+ isElement: floatingUi_utils_dom.isElement,
505
+ isRTL
506
+ };
507
+
508
+ function rectsAreEqual(a, b) {
509
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
510
+ }
511
+
512
+ // https://samthor.au/2021/observing-dom/
513
+ function observeMove(element, onMove) {
514
+ let io = null;
515
+ let timeoutId;
516
+ const root = floatingUi_utils_dom.getDocumentElement(element);
517
+ function cleanup() {
518
+ var _io;
519
+ clearTimeout(timeoutId);
520
+ (_io = io) == null || _io.disconnect();
521
+ io = null;
522
+ }
523
+ function refresh(skip, threshold) {
524
+ if (skip === void 0) {
525
+ skip = false;
526
+ }
527
+ if (threshold === void 0) {
528
+ threshold = 1;
529
+ }
530
+ cleanup();
531
+ const elementRectForRootMargin = element.getBoundingClientRect();
532
+ const {
533
+ left,
534
+ top,
535
+ width,
536
+ height
537
+ } = elementRectForRootMargin;
538
+ if (!skip) {
539
+ onMove();
540
+ }
541
+ if (!width || !height) {
542
+ return;
543
+ }
544
+ const insetTop = floatingUi_utils.floor(top);
545
+ const insetRight = floatingUi_utils.floor(root.clientWidth - (left + width));
546
+ const insetBottom = floatingUi_utils.floor(root.clientHeight - (top + height));
547
+ const insetLeft = floatingUi_utils.floor(left);
548
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
549
+ const options = {
550
+ rootMargin,
551
+ threshold: floatingUi_utils.max(0, floatingUi_utils.min(1, threshold)) || 1
552
+ };
553
+ let isFirstUpdate = true;
554
+ function handleObserve(entries) {
555
+ const ratio = entries[0].intersectionRatio;
556
+ if (ratio !== threshold) {
557
+ if (!isFirstUpdate) {
558
+ return refresh();
559
+ }
560
+ if (!ratio) {
561
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
562
+ // to prevent an infinite loop of updates.
563
+ timeoutId = setTimeout(() => {
564
+ refresh(false, 1e-7);
565
+ }, 1000);
566
+ } else {
567
+ refresh(false, ratio);
568
+ }
569
+ }
570
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
571
+ // It's possible that even though the ratio is reported as 1, the
572
+ // element is not actually fully within the IntersectionObserver's root
573
+ // area anymore. This can happen under performance constraints. This may
574
+ // be a bug in the browser's IntersectionObserver implementation. To
575
+ // work around this, we compare the element's bounding rect now with
576
+ // what it was at the time we created the IntersectionObserver. If they
577
+ // are not equal then the element moved, so we refresh.
578
+ refresh();
579
+ }
580
+ isFirstUpdate = false;
581
+ }
582
+
583
+ // Older browsers don't support a `document` as the root and will throw an
584
+ // error.
585
+ try {
586
+ io = new IntersectionObserver(handleObserve, {
587
+ ...options,
588
+ // Handle <iframe>s
589
+ root: root.ownerDocument
590
+ });
591
+ } catch (_e) {
592
+ io = new IntersectionObserver(handleObserve, options);
593
+ }
594
+ io.observe(element);
595
+ }
596
+ refresh(true);
597
+ return cleanup;
598
+ }
599
+
600
+ /**
601
+ * Automatically updates the position of the floating element when necessary.
602
+ * Should only be called when the floating element is mounted on the DOM or
603
+ * visible on the screen.
604
+ * @returns cleanup function that should be invoked when the floating element is
605
+ * removed from the DOM or hidden from the screen.
606
+ * @see https://floating-ui.com/docs/autoUpdate
607
+ */
608
+ function autoUpdate(reference, floating, update, options) {
609
+ if (options === void 0) {
610
+ options = {};
611
+ }
612
+ const {
613
+ ancestorScroll = true,
614
+ ancestorResize = true,
615
+ elementResize = typeof ResizeObserver === 'function',
616
+ layoutShift = typeof IntersectionObserver === 'function',
617
+ animationFrame = false
618
+ } = options;
619
+ const referenceEl = unwrapElement(reference);
620
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? floatingUi_utils_dom.getOverflowAncestors(referenceEl) : []), ...floatingUi_utils_dom.getOverflowAncestors(floating)] : [];
621
+ ancestors.forEach(ancestor => {
622
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
623
+ passive: true
624
+ });
625
+ ancestorResize && ancestor.addEventListener('resize', update);
626
+ });
627
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
628
+ let reobserveFrame = -1;
629
+ let resizeObserver = null;
630
+ if (elementResize) {
631
+ resizeObserver = new ResizeObserver(_ref => {
632
+ let [firstEntry] = _ref;
633
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
634
+ // Prevent update loops when using the `size` middleware.
635
+ // https://github.com/floating-ui/floating-ui/issues/1740
636
+ resizeObserver.unobserve(floating);
637
+ cancelAnimationFrame(reobserveFrame);
638
+ reobserveFrame = requestAnimationFrame(() => {
639
+ var _resizeObserver;
640
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
641
+ });
642
+ }
643
+ update();
644
+ });
645
+ if (referenceEl && !animationFrame) {
646
+ resizeObserver.observe(referenceEl);
647
+ }
648
+ resizeObserver.observe(floating);
649
+ }
650
+ let frameId;
651
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
652
+ if (animationFrame) {
653
+ frameLoop();
654
+ }
655
+ function frameLoop() {
656
+ const nextRefRect = getBoundingClientRect(reference);
657
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
658
+ update();
659
+ }
660
+ prevRefRect = nextRefRect;
661
+ frameId = requestAnimationFrame(frameLoop);
662
+ }
663
+ update();
664
+ return () => {
665
+ var _resizeObserver2;
666
+ ancestors.forEach(ancestor => {
667
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
668
+ ancestorResize && ancestor.removeEventListener('resize', update);
669
+ });
670
+ cleanupIo == null || cleanupIo();
671
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
672
+ resizeObserver = null;
673
+ if (animationFrame) {
674
+ cancelAnimationFrame(frameId);
675
+ }
676
+ };
677
+ }
678
+
679
+ /**
680
+ * Modifies the placement by translating the floating element along the
681
+ * specified axes.
682
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
683
+ * object may be passed.
684
+ * @see https://floating-ui.com/docs/offset
685
+ */
686
+ const offset = floatingUi_core.offset;
687
+
688
+ /**
689
+ * Optimizes the visibility of the floating element by shifting it in order to
690
+ * keep it in view when it will overflow the clipping boundary.
691
+ * @see https://floating-ui.com/docs/shift
692
+ */
693
+ const shift = floatingUi_core.shift;
694
+
695
+ /**
696
+ * Optimizes the visibility of the floating element by flipping the `placement`
697
+ * in order to keep it in view when the preferred placement(s) will overflow the
698
+ * clipping boundary. Alternative to `autoPlacement`.
699
+ * @see https://floating-ui.com/docs/flip
700
+ */
701
+ const flip = floatingUi_core.flip;
702
+
703
+ /**
704
+ * Provides data that allows you to change the size of the floating element —
705
+ * for instance, prevent it from overflowing the clipping boundary or match the
706
+ * width of the reference element.
707
+ * @see https://floating-ui.com/docs/size
708
+ */
709
+ const size = floatingUi_core.size;
710
+
711
+ /**
712
+ * Provides data to hide the floating element in applicable situations, such as
713
+ * when it is not in the same clipping context as the reference element.
714
+ * @see https://floating-ui.com/docs/hide
715
+ */
716
+ const hide = floatingUi_core.hide;
717
+
718
+ /**
719
+ * Provides data to position an inner element of the floating element so that it
720
+ * appears centered to the reference element.
721
+ * @see https://floating-ui.com/docs/arrow
722
+ */
723
+ const arrow = floatingUi_core.arrow;
724
+
725
+ /**
726
+ * Built-in `limiter` that will stop `shift()` at a certain point.
727
+ */
728
+ const limitShift = floatingUi_core.limitShift;
729
+
730
+ /**
731
+ * Computes the `x` and `y` coordinates that will place the floating element
732
+ * next to a given reference element.
733
+ */
734
+ const computePosition = (reference, floating, options) => {
735
+ // This caches the expensive `getClippingElementAncestors` function so that
736
+ // multiple lifecycle resets re-use the same result. It only lives for a
737
+ // single call. If other functions become expensive, we can add them as well.
738
+ const cache = new Map();
739
+ const mergedOptions = {
740
+ platform,
741
+ ...options
742
+ };
743
+ const platformWithCache = {
744
+ ...mergedOptions.platform,
745
+ _c: cache
746
+ };
747
+ return floatingUi_core.computePosition(reference, floating, {
748
+ ...mergedOptions,
749
+ platform: platformWithCache
750
+ });
751
+ };
752
+
753
+ exports.getOverflowAncestors = floatingUi_utils_dom.getOverflowAncestors;
754
+ exports.arrow = arrow;
755
+ exports.autoUpdate = autoUpdate;
756
+ exports.computePosition = computePosition;
757
+ exports.flip = flip;
758
+ exports.hide = hide;
759
+ exports.limitShift = limitShift;
760
+ exports.offset = offset;
761
+ exports.platform = platform;
762
+ exports.shift = shift;
763
+ exports.size = size;