@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,375 @@
1
+ 'use strict';
2
+
3
+ const floatingUi_dom = require('../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs');
4
+ const React = require('react');
5
+ const ReactDOM = require('react-dom');
6
+
7
+ function _interopNamespaceCompat(e) {
8
+ if (e && typeof e === 'object' && 'default' in e) return e;
9
+ const n = Object.create(null);
10
+ if (e) {
11
+ for (const k in e) {
12
+ n[k] = e[k];
13
+ }
14
+ }
15
+ n.default = e;
16
+ return n;
17
+ }
18
+
19
+ const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
20
+ const ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
21
+
22
+ var isClient = typeof document !== 'undefined';
23
+
24
+ var noop = function noop() {};
25
+ var index = isClient ? React.useLayoutEffect : noop;
26
+
27
+ // Fork of `fast-deep-equal` that only does the comparisons we need and compares
28
+ // functions
29
+ function deepEqual(a, b) {
30
+ if (a === b) {
31
+ return true;
32
+ }
33
+ if (typeof a !== typeof b) {
34
+ return false;
35
+ }
36
+ if (typeof a === 'function' && a.toString() === b.toString()) {
37
+ return true;
38
+ }
39
+ let length;
40
+ let i;
41
+ let keys;
42
+ if (a && b && typeof a === 'object') {
43
+ if (Array.isArray(a)) {
44
+ length = a.length;
45
+ if (length !== b.length) return false;
46
+ for (i = length; i-- !== 0;) {
47
+ if (!deepEqual(a[i], b[i])) {
48
+ return false;
49
+ }
50
+ }
51
+ return true;
52
+ }
53
+ keys = Object.keys(a);
54
+ length = keys.length;
55
+ if (length !== Object.keys(b).length) {
56
+ return false;
57
+ }
58
+ for (i = length; i-- !== 0;) {
59
+ if (!{}.hasOwnProperty.call(b, keys[i])) {
60
+ return false;
61
+ }
62
+ }
63
+ for (i = length; i-- !== 0;) {
64
+ const key = keys[i];
65
+ if (key === '_owner' && a.$$typeof) {
66
+ continue;
67
+ }
68
+ if (!deepEqual(a[key], b[key])) {
69
+ return false;
70
+ }
71
+ }
72
+ return true;
73
+ }
74
+ return a !== a && b !== b;
75
+ }
76
+
77
+ function getDPR(element) {
78
+ if (typeof window === 'undefined') {
79
+ return 1;
80
+ }
81
+ const win = element.ownerDocument.defaultView || window;
82
+ return win.devicePixelRatio || 1;
83
+ }
84
+
85
+ function roundByDPR(element, value) {
86
+ const dpr = getDPR(element);
87
+ return Math.round(value * dpr) / dpr;
88
+ }
89
+
90
+ function useLatestRef(value) {
91
+ const ref = React__namespace.useRef(value);
92
+ index(() => {
93
+ ref.current = value;
94
+ });
95
+ return ref;
96
+ }
97
+
98
+ /**
99
+ * Provides data to position a floating element.
100
+ * @see https://floating-ui.com/docs/useFloating
101
+ */
102
+ function useFloating(options) {
103
+ if (options === void 0) {
104
+ options = {};
105
+ }
106
+ const {
107
+ placement = 'bottom',
108
+ strategy = 'absolute',
109
+ middleware = [],
110
+ platform,
111
+ elements: {
112
+ reference: externalReference,
113
+ floating: externalFloating
114
+ } = {},
115
+ transform = true,
116
+ whileElementsMounted,
117
+ open
118
+ } = options;
119
+ const [data, setData] = React__namespace.useState({
120
+ x: 0,
121
+ y: 0,
122
+ strategy,
123
+ placement,
124
+ middlewareData: {},
125
+ isPositioned: false
126
+ });
127
+ const [latestMiddleware, setLatestMiddleware] = React__namespace.useState(middleware);
128
+ if (!deepEqual(latestMiddleware, middleware)) {
129
+ setLatestMiddleware(middleware);
130
+ }
131
+ const [_reference, _setReference] = React__namespace.useState(null);
132
+ const [_floating, _setFloating] = React__namespace.useState(null);
133
+ const setReference = React__namespace.useCallback(node => {
134
+ if (node !== referenceRef.current) {
135
+ referenceRef.current = node;
136
+ _setReference(node);
137
+ }
138
+ }, []);
139
+ const setFloating = React__namespace.useCallback(node => {
140
+ if (node !== floatingRef.current) {
141
+ floatingRef.current = node;
142
+ _setFloating(node);
143
+ }
144
+ }, []);
145
+ const referenceEl = externalReference || _reference;
146
+ const floatingEl = externalFloating || _floating;
147
+ const referenceRef = React__namespace.useRef(null);
148
+ const floatingRef = React__namespace.useRef(null);
149
+ const dataRef = React__namespace.useRef(data);
150
+ const hasWhileElementsMounted = whileElementsMounted != null;
151
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
152
+ const platformRef = useLatestRef(platform);
153
+ const openRef = useLatestRef(open);
154
+ const update = React__namespace.useCallback(() => {
155
+ if (!referenceRef.current || !floatingRef.current) {
156
+ return;
157
+ }
158
+ const config = {
159
+ placement,
160
+ strategy,
161
+ middleware: latestMiddleware
162
+ };
163
+ if (platformRef.current) {
164
+ config.platform = platformRef.current;
165
+ }
166
+ floatingUi_dom.computePosition(referenceRef.current, floatingRef.current, config).then(data => {
167
+ const fullData = {
168
+ ...data,
169
+ // The floating element's position may be recomputed while it's closed
170
+ // but still mounted (such as when transitioning out). To ensure
171
+ // `isPositioned` will be `false` initially on the next open, avoid
172
+ // setting it to `true` when `open === false` (must be specified).
173
+ isPositioned: openRef.current !== false
174
+ };
175
+ if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
176
+ dataRef.current = fullData;
177
+ ReactDOM__namespace.flushSync(() => {
178
+ setData(fullData);
179
+ });
180
+ }
181
+ });
182
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
183
+ index(() => {
184
+ if (open === false && dataRef.current.isPositioned) {
185
+ dataRef.current.isPositioned = false;
186
+ setData(data => ({
187
+ ...data,
188
+ isPositioned: false
189
+ }));
190
+ }
191
+ }, [open]);
192
+ const isMountedRef = React__namespace.useRef(false);
193
+ index(() => {
194
+ isMountedRef.current = true;
195
+ return () => {
196
+ isMountedRef.current = false;
197
+ };
198
+ }, []);
199
+ index(() => {
200
+ if (referenceEl) referenceRef.current = referenceEl;
201
+ if (floatingEl) floatingRef.current = floatingEl;
202
+ if (referenceEl && floatingEl) {
203
+ if (whileElementsMountedRef.current) {
204
+ return whileElementsMountedRef.current(referenceEl, floatingEl, update);
205
+ }
206
+ update();
207
+ }
208
+ }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
209
+ const refs = React__namespace.useMemo(() => ({
210
+ reference: referenceRef,
211
+ floating: floatingRef,
212
+ setReference,
213
+ setFloating
214
+ }), [setReference, setFloating]);
215
+ const elements = React__namespace.useMemo(() => ({
216
+ reference: referenceEl,
217
+ floating: floatingEl
218
+ }), [referenceEl, floatingEl]);
219
+ const floatingStyles = React__namespace.useMemo(() => {
220
+ const initialStyles = {
221
+ position: strategy,
222
+ left: 0,
223
+ top: 0
224
+ };
225
+ if (!elements.floating) {
226
+ return initialStyles;
227
+ }
228
+ const x = roundByDPR(elements.floating, data.x);
229
+ const y = roundByDPR(elements.floating, data.y);
230
+ if (transform) {
231
+ return {
232
+ ...initialStyles,
233
+ transform: "translate(" + x + "px, " + y + "px)",
234
+ ...(getDPR(elements.floating) >= 1.5 && {
235
+ willChange: 'transform'
236
+ })
237
+ };
238
+ }
239
+ return {
240
+ position: strategy,
241
+ left: x,
242
+ top: y
243
+ };
244
+ }, [strategy, transform, elements.floating, data.x, data.y]);
245
+ return React__namespace.useMemo(() => ({
246
+ ...data,
247
+ update,
248
+ refs,
249
+ elements,
250
+ floatingStyles
251
+ }), [data, update, refs, elements, floatingStyles]);
252
+ }
253
+
254
+ /**
255
+ * Provides data to position an inner element of the floating element so that it
256
+ * appears centered to the reference element.
257
+ * This wraps the core `arrow` middleware to allow React refs as the element.
258
+ * @see https://floating-ui.com/docs/arrow
259
+ */
260
+ const arrow$1 = options => {
261
+ function isRef(value) {
262
+ return {}.hasOwnProperty.call(value, 'current');
263
+ }
264
+ return {
265
+ name: 'arrow',
266
+ options,
267
+ fn(state) {
268
+ const {
269
+ element,
270
+ padding
271
+ } = typeof options === 'function' ? options(state) : options;
272
+ if (element && isRef(element)) {
273
+ if (element.current != null) {
274
+ return floatingUi_dom.arrow({
275
+ element: element.current,
276
+ padding
277
+ }).fn(state);
278
+ }
279
+ return {};
280
+ }
281
+ if (element) {
282
+ return floatingUi_dom.arrow({
283
+ element,
284
+ padding
285
+ }).fn(state);
286
+ }
287
+ return {};
288
+ }
289
+ };
290
+ };
291
+
292
+ /**
293
+ * Modifies the placement by translating the floating element along the
294
+ * specified axes.
295
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
296
+ * object may be passed.
297
+ * @see https://floating-ui.com/docs/offset
298
+ */
299
+ const offset = (options, deps) => ({
300
+ ...floatingUi_dom.offset(options),
301
+ options: [options, deps]
302
+ });
303
+
304
+ /**
305
+ * Optimizes the visibility of the floating element by shifting it in order to
306
+ * keep it in view when it will overflow the clipping boundary.
307
+ * @see https://floating-ui.com/docs/shift
308
+ */
309
+ const shift = (options, deps) => ({
310
+ ...floatingUi_dom.shift(options),
311
+ options: [options, deps]
312
+ });
313
+
314
+ /**
315
+ * Built-in `limiter` that will stop `shift()` at a certain point.
316
+ */
317
+ const limitShift = (options, deps) => ({
318
+ ...floatingUi_dom.limitShift(options),
319
+ options: [options, deps]
320
+ });
321
+
322
+ /**
323
+ * Optimizes the visibility of the floating element by flipping the `placement`
324
+ * in order to keep it in view when the preferred placement(s) will overflow the
325
+ * clipping boundary. Alternative to `autoPlacement`.
326
+ * @see https://floating-ui.com/docs/flip
327
+ */
328
+ const flip = (options, deps) => ({
329
+ ...floatingUi_dom.flip(options),
330
+ options: [options, deps]
331
+ });
332
+
333
+ /**
334
+ * Provides data that allows you to change the size of the floating element —
335
+ * for instance, prevent it from overflowing the clipping boundary or match the
336
+ * width of the reference element.
337
+ * @see https://floating-ui.com/docs/size
338
+ */
339
+ const size = (options, deps) => ({
340
+ ...floatingUi_dom.size(options),
341
+ options: [options, deps]
342
+ });
343
+
344
+ /**
345
+ * Provides data to hide the floating element in applicable situations, such as
346
+ * when it is not in the same clipping context as the reference element.
347
+ * @see https://floating-ui.com/docs/hide
348
+ */
349
+ const hide = (options, deps) => ({
350
+ ...floatingUi_dom.hide(options),
351
+ options: [options, deps]
352
+ });
353
+
354
+ /**
355
+ * Provides data to position an inner element of the floating element so that it
356
+ * appears centered to the reference element.
357
+ * This wraps the core `arrow` middleware to allow React refs as the element.
358
+ * @see https://floating-ui.com/docs/arrow
359
+ */
360
+ const arrow = (options, deps) => ({
361
+ ...arrow$1(options),
362
+ options: [options, deps]
363
+ });
364
+
365
+ exports.autoUpdate = floatingUi_dom.autoUpdate;
366
+ exports.computePosition = floatingUi_dom.computePosition;
367
+ exports.platform = floatingUi_dom.platform;
368
+ exports.arrow = arrow;
369
+ exports.flip = flip;
370
+ exports.hide = hide;
371
+ exports.limitShift = limitShift;
372
+ exports.offset = offset;
373
+ exports.shift = shift;
374
+ exports.size = size;
375
+ exports.useFloating = useFloating;
@@ -0,0 +1,350 @@
1
+ import { computePosition, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, limitShift as limitShift$1, arrow as arrow$2 } from '../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs';
2
+ export { autoUpdate, platform } from '../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs';
3
+ import * as React from 'react';
4
+ import { useLayoutEffect } from 'react';
5
+ import * as ReactDOM from 'react-dom';
6
+
7
+ var isClient = typeof document !== 'undefined';
8
+
9
+ var noop = function noop() {};
10
+ var index = isClient ? useLayoutEffect : noop;
11
+
12
+ // Fork of `fast-deep-equal` that only does the comparisons we need and compares
13
+ // functions
14
+ function deepEqual(a, b) {
15
+ if (a === b) {
16
+ return true;
17
+ }
18
+ if (typeof a !== typeof b) {
19
+ return false;
20
+ }
21
+ if (typeof a === 'function' && a.toString() === b.toString()) {
22
+ return true;
23
+ }
24
+ let length;
25
+ let i;
26
+ let keys;
27
+ if (a && b && typeof a === 'object') {
28
+ if (Array.isArray(a)) {
29
+ length = a.length;
30
+ if (length !== b.length) return false;
31
+ for (i = length; i-- !== 0;) {
32
+ if (!deepEqual(a[i], b[i])) {
33
+ return false;
34
+ }
35
+ }
36
+ return true;
37
+ }
38
+ keys = Object.keys(a);
39
+ length = keys.length;
40
+ if (length !== Object.keys(b).length) {
41
+ return false;
42
+ }
43
+ for (i = length; i-- !== 0;) {
44
+ if (!{}.hasOwnProperty.call(b, keys[i])) {
45
+ return false;
46
+ }
47
+ }
48
+ for (i = length; i-- !== 0;) {
49
+ const key = keys[i];
50
+ if (key === '_owner' && a.$$typeof) {
51
+ continue;
52
+ }
53
+ if (!deepEqual(a[key], b[key])) {
54
+ return false;
55
+ }
56
+ }
57
+ return true;
58
+ }
59
+ return a !== a && b !== b;
60
+ }
61
+
62
+ function getDPR(element) {
63
+ if (typeof window === 'undefined') {
64
+ return 1;
65
+ }
66
+ const win = element.ownerDocument.defaultView || window;
67
+ return win.devicePixelRatio || 1;
68
+ }
69
+
70
+ function roundByDPR(element, value) {
71
+ const dpr = getDPR(element);
72
+ return Math.round(value * dpr) / dpr;
73
+ }
74
+
75
+ function useLatestRef(value) {
76
+ const ref = React.useRef(value);
77
+ index(() => {
78
+ ref.current = value;
79
+ });
80
+ return ref;
81
+ }
82
+
83
+ /**
84
+ * Provides data to position a floating element.
85
+ * @see https://floating-ui.com/docs/useFloating
86
+ */
87
+ function useFloating(options) {
88
+ if (options === void 0) {
89
+ options = {};
90
+ }
91
+ const {
92
+ placement = 'bottom',
93
+ strategy = 'absolute',
94
+ middleware = [],
95
+ platform,
96
+ elements: {
97
+ reference: externalReference,
98
+ floating: externalFloating
99
+ } = {},
100
+ transform = true,
101
+ whileElementsMounted,
102
+ open
103
+ } = options;
104
+ const [data, setData] = React.useState({
105
+ x: 0,
106
+ y: 0,
107
+ strategy,
108
+ placement,
109
+ middlewareData: {},
110
+ isPositioned: false
111
+ });
112
+ const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
113
+ if (!deepEqual(latestMiddleware, middleware)) {
114
+ setLatestMiddleware(middleware);
115
+ }
116
+ const [_reference, _setReference] = React.useState(null);
117
+ const [_floating, _setFloating] = React.useState(null);
118
+ const setReference = React.useCallback(node => {
119
+ if (node !== referenceRef.current) {
120
+ referenceRef.current = node;
121
+ _setReference(node);
122
+ }
123
+ }, []);
124
+ const setFloating = React.useCallback(node => {
125
+ if (node !== floatingRef.current) {
126
+ floatingRef.current = node;
127
+ _setFloating(node);
128
+ }
129
+ }, []);
130
+ const referenceEl = externalReference || _reference;
131
+ const floatingEl = externalFloating || _floating;
132
+ const referenceRef = React.useRef(null);
133
+ const floatingRef = React.useRef(null);
134
+ const dataRef = React.useRef(data);
135
+ const hasWhileElementsMounted = whileElementsMounted != null;
136
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
137
+ const platformRef = useLatestRef(platform);
138
+ const openRef = useLatestRef(open);
139
+ const update = React.useCallback(() => {
140
+ if (!referenceRef.current || !floatingRef.current) {
141
+ return;
142
+ }
143
+ const config = {
144
+ placement,
145
+ strategy,
146
+ middleware: latestMiddleware
147
+ };
148
+ if (platformRef.current) {
149
+ config.platform = platformRef.current;
150
+ }
151
+ computePosition(referenceRef.current, floatingRef.current, config).then(data => {
152
+ const fullData = {
153
+ ...data,
154
+ // The floating element's position may be recomputed while it's closed
155
+ // but still mounted (such as when transitioning out). To ensure
156
+ // `isPositioned` will be `false` initially on the next open, avoid
157
+ // setting it to `true` when `open === false` (must be specified).
158
+ isPositioned: openRef.current !== false
159
+ };
160
+ if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
161
+ dataRef.current = fullData;
162
+ ReactDOM.flushSync(() => {
163
+ setData(fullData);
164
+ });
165
+ }
166
+ });
167
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
168
+ index(() => {
169
+ if (open === false && dataRef.current.isPositioned) {
170
+ dataRef.current.isPositioned = false;
171
+ setData(data => ({
172
+ ...data,
173
+ isPositioned: false
174
+ }));
175
+ }
176
+ }, [open]);
177
+ const isMountedRef = React.useRef(false);
178
+ index(() => {
179
+ isMountedRef.current = true;
180
+ return () => {
181
+ isMountedRef.current = false;
182
+ };
183
+ }, []);
184
+ index(() => {
185
+ if (referenceEl) referenceRef.current = referenceEl;
186
+ if (floatingEl) floatingRef.current = floatingEl;
187
+ if (referenceEl && floatingEl) {
188
+ if (whileElementsMountedRef.current) {
189
+ return whileElementsMountedRef.current(referenceEl, floatingEl, update);
190
+ }
191
+ update();
192
+ }
193
+ }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
194
+ const refs = React.useMemo(() => ({
195
+ reference: referenceRef,
196
+ floating: floatingRef,
197
+ setReference,
198
+ setFloating
199
+ }), [setReference, setFloating]);
200
+ const elements = React.useMemo(() => ({
201
+ reference: referenceEl,
202
+ floating: floatingEl
203
+ }), [referenceEl, floatingEl]);
204
+ const floatingStyles = React.useMemo(() => {
205
+ const initialStyles = {
206
+ position: strategy,
207
+ left: 0,
208
+ top: 0
209
+ };
210
+ if (!elements.floating) {
211
+ return initialStyles;
212
+ }
213
+ const x = roundByDPR(elements.floating, data.x);
214
+ const y = roundByDPR(elements.floating, data.y);
215
+ if (transform) {
216
+ return {
217
+ ...initialStyles,
218
+ transform: "translate(" + x + "px, " + y + "px)",
219
+ ...(getDPR(elements.floating) >= 1.5 && {
220
+ willChange: 'transform'
221
+ })
222
+ };
223
+ }
224
+ return {
225
+ position: strategy,
226
+ left: x,
227
+ top: y
228
+ };
229
+ }, [strategy, transform, elements.floating, data.x, data.y]);
230
+ return React.useMemo(() => ({
231
+ ...data,
232
+ update,
233
+ refs,
234
+ elements,
235
+ floatingStyles
236
+ }), [data, update, refs, elements, floatingStyles]);
237
+ }
238
+
239
+ /**
240
+ * Provides data to position an inner element of the floating element so that it
241
+ * appears centered to the reference element.
242
+ * This wraps the core `arrow` middleware to allow React refs as the element.
243
+ * @see https://floating-ui.com/docs/arrow
244
+ */
245
+ const arrow$1 = options => {
246
+ function isRef(value) {
247
+ return {}.hasOwnProperty.call(value, 'current');
248
+ }
249
+ return {
250
+ name: 'arrow',
251
+ options,
252
+ fn(state) {
253
+ const {
254
+ element,
255
+ padding
256
+ } = typeof options === 'function' ? options(state) : options;
257
+ if (element && isRef(element)) {
258
+ if (element.current != null) {
259
+ return arrow$2({
260
+ element: element.current,
261
+ padding
262
+ }).fn(state);
263
+ }
264
+ return {};
265
+ }
266
+ if (element) {
267
+ return arrow$2({
268
+ element,
269
+ padding
270
+ }).fn(state);
271
+ }
272
+ return {};
273
+ }
274
+ };
275
+ };
276
+
277
+ /**
278
+ * Modifies the placement by translating the floating element along the
279
+ * specified axes.
280
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
281
+ * object may be passed.
282
+ * @see https://floating-ui.com/docs/offset
283
+ */
284
+ const offset = (options, deps) => ({
285
+ ...offset$1(options),
286
+ options: [options, deps]
287
+ });
288
+
289
+ /**
290
+ * Optimizes the visibility of the floating element by shifting it in order to
291
+ * keep it in view when it will overflow the clipping boundary.
292
+ * @see https://floating-ui.com/docs/shift
293
+ */
294
+ const shift = (options, deps) => ({
295
+ ...shift$1(options),
296
+ options: [options, deps]
297
+ });
298
+
299
+ /**
300
+ * Built-in `limiter` that will stop `shift()` at a certain point.
301
+ */
302
+ const limitShift = (options, deps) => ({
303
+ ...limitShift$1(options),
304
+ options: [options, deps]
305
+ });
306
+
307
+ /**
308
+ * Optimizes the visibility of the floating element by flipping the `placement`
309
+ * in order to keep it in view when the preferred placement(s) will overflow the
310
+ * clipping boundary. Alternative to `autoPlacement`.
311
+ * @see https://floating-ui.com/docs/flip
312
+ */
313
+ const flip = (options, deps) => ({
314
+ ...flip$1(options),
315
+ options: [options, deps]
316
+ });
317
+
318
+ /**
319
+ * Provides data that allows you to change the size of the floating element —
320
+ * for instance, prevent it from overflowing the clipping boundary or match the
321
+ * width of the reference element.
322
+ * @see https://floating-ui.com/docs/size
323
+ */
324
+ const size = (options, deps) => ({
325
+ ...size$1(options),
326
+ options: [options, deps]
327
+ });
328
+
329
+ /**
330
+ * Provides data to hide the floating element in applicable situations, such as
331
+ * when it is not in the same clipping context as the reference element.
332
+ * @see https://floating-ui.com/docs/hide
333
+ */
334
+ const hide = (options, deps) => ({
335
+ ...hide$1(options),
336
+ options: [options, deps]
337
+ });
338
+
339
+ /**
340
+ * Provides data to position an inner element of the floating element so that it
341
+ * appears centered to the reference element.
342
+ * This wraps the core `arrow` middleware to allow React refs as the element.
343
+ * @see https://floating-ui.com/docs/arrow
344
+ */
345
+ const arrow = (options, deps) => ({
346
+ ...arrow$1(options),
347
+ options: [options, deps]
348
+ });
349
+
350
+ export { arrow, computePosition, flip, hide, limitShift, offset, shift, size, useFloating };