@btst/stack 1.1.1 → 1.1.3

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