@btst/stack 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/README.md +1 -1
  2. package/dist/client/components/index.cjs +2 -2
  3. package/dist/client/components/index.mjs +2 -2
  4. package/dist/client/index.cjs +3 -3
  5. package/dist/client/index.mjs +3 -3
  6. package/dist/context/index.cjs +1 -1
  7. package/dist/context/index.mjs +1 -1
  8. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +825 -0
  9. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +814 -0
  10. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +763 -0
  11. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +751 -0
  12. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +375 -0
  13. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +350 -0
  14. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +160 -0
  15. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +182 -0
  16. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
  17. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +137 -0
  18. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.cjs +8 -0
  19. package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs +6 -0
  20. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
  21. package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs +11 -0
  22. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -0
  23. package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@1_9e04309f365863673e44407648bb0cb6/node_modules/@radix-ui/react-arrow/dist/index.mjs +25 -0
  24. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.cjs +77 -0
  25. package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_re_6d7c277722b3619c9ee7e64e9a822c45/node_modules/@radix-ui/react-collection/dist/index.mjs +71 -0
  26. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -0
  27. package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +39 -0
  28. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.cjs +79 -0
  29. package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs +63 -0
  30. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -0
  31. package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-direction/dist/index.mjs +11 -0
  32. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -0
  33. package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.2_@types_react@19.2.2__@_ca5522e5d45d4722cb9eb5ce53defa61/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +212 -0
  34. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -0
  35. package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +30 -0
  36. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -0
  37. package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.2.2_@types_react@19.2.2__@types_r_93de389b3f622f9f764acc8e59ec80c0/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +208 -0
  38. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.cjs +31 -0
  39. package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-id/dist/index.mjs +15 -0
  40. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -0
  41. package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_d6285b8269ea5d6b59b300f5be279a0c/node_modules/@radix-ui/react-popper/dist/index.mjs +284 -0
  42. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.cjs +37 -0
  43. package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_478b3d5dd4afab1a3dcce7ed1748cb95/node_modules/@radix-ui/react-portal/dist/index.mjs +18 -0
  44. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -0
  45. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.2_@types_react@19.2.2__@types_rea_bdc15f10281778271ffcbe8dd3cd491e/node_modules/@radix-ui/react-primitive/dist/index.mjs +43 -0
  46. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.cjs +1198 -0
  47. package/dist/node_modules/.pnpm/@radix-ui_react-select@2.2.6_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react@_802c3d414c85063bee785fcc98a39c07/node_modules/@radix-ui/react-select/dist/index.mjs +1154 -0
  48. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -0
  49. package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +12 -0
  50. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -0
  51. package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +70 -0
  52. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -0
  53. package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +18 -0
  54. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -0
  55. package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +7 -0
  56. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.cjs +31 -0
  57. package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs +15 -0
  58. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -0
  59. package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.2_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs +40 -0
  60. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +51 -0
  61. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.2_@types_react@19.2.2__@typ_a84e98a44624c31e835a98d4b8b0c30d/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +34 -0
  62. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +139 -0
  63. package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.mjs +137 -0
  64. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +39 -0
  65. package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.0/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.mjs +37 -0
  66. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +43 -0
  67. package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.mjs +38 -0
  68. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1671 -0
  69. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.mjs +1669 -0
  70. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
  71. package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +8 -0
  72. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +74 -0
  73. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +56 -0
  74. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +15 -0
  75. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +10 -0
  76. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +34 -0
  77. package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +31 -0
  78. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +25 -0
  79. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +9 -0
  80. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +178 -0
  81. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +160 -0
  82. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.cjs +54 -0
  83. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/UI.mjs +38 -0
  84. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +23 -0
  85. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +21 -0
  86. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +113 -0
  87. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +110 -0
  88. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.cjs +7 -0
  89. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.mjs +5 -0
  90. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +9 -0
  91. package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.2.2_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +7 -0
  92. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs +21 -0
  93. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs +19 -0
  94. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.cjs +41 -0
  95. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/hook.mjs +25 -0
  96. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.cjs +53 -0
  97. package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.mjs +51 -0
  98. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +59 -0
  99. package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +56 -0
  100. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +26 -0
  101. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +24 -0
  102. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +64 -0
  103. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +48 -0
  104. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.cjs +44 -0
  105. package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.2.2_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.mjs +42 -0
  106. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.cjs +37 -0
  107. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.mjs +21 -0
  108. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.cjs +79 -0
  109. package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.2.2_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.mjs +77 -0
  110. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.cjs +3 -3
  111. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.mjs +3 -3
  112. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.cjs +5 -5
  113. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.mjs +5 -5
  114. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.cjs +2 -6
  115. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.mjs +1 -1
  116. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.cjs +1 -1
  117. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.mjs +1 -1
  118. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.cjs +1 -1
  119. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.mjs +1 -1
  120. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.cjs +1 -1
  121. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.mjs +1 -1
  122. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.cjs +2 -2
  123. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.mjs +2 -2
  124. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.cjs +1 -1
  125. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.mjs +1 -1
  126. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.cjs +1 -1
  127. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.mjs +1 -1
  128. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.cjs +1 -1
  129. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.mjs +1 -1
  130. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.cjs +1 -1
  131. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.mjs +1 -1
  132. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.cjs +2 -2
  133. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.mjs +2 -2
  134. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.cjs +1 -1
  135. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.mjs +1 -1
  136. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.cjs +1 -1
  137. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.mjs +1 -1
  138. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.cjs +1 -1
  139. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.mjs +1 -1
  140. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.cjs +1 -1
  141. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.mjs +1 -1
  142. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.cjs +1 -1
  143. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.mjs +1 -1
  144. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.cjs +1 -1
  145. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.mjs +1 -1
  146. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.cjs +1 -1
  147. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.mjs +1 -1
  148. package/dist/packages/ui/src/components/badge.cjs +42 -0
  149. package/dist/packages/ui/src/components/badge.mjs +39 -0
  150. package/dist/packages/ui/src/components/button.cjs +54 -0
  151. package/dist/packages/ui/src/components/button.mjs +51 -0
  152. package/dist/packages/ui/src/components/card.cjs +67 -0
  153. package/dist/packages/ui/src/components/card.mjs +61 -0
  154. package/dist/packages/ui/src/components/carousel.cjs +215 -0
  155. package/dist/packages/ui/src/components/carousel.mjs +195 -0
  156. package/dist/packages/ui/src/components/command.cjs +142 -0
  157. package/dist/packages/ui/src/components/command.mjs +134 -0
  158. package/dist/packages/ui/src/components/dialog.cjs +127 -0
  159. package/dist/packages/ui/src/components/dialog.mjs +105 -0
  160. package/dist/packages/ui/src/components/empty.cjs +76 -0
  161. package/dist/packages/ui/src/components/empty.mjs +71 -0
  162. package/dist/packages/ui/src/components/form.cjs +133 -0
  163. package/dist/packages/ui/src/components/form.mjs +110 -0
  164. package/dist/packages/ui/src/components/input.cjs +23 -0
  165. package/dist/packages/ui/src/components/input.mjs +21 -0
  166. package/dist/packages/ui/src/components/label.cjs +39 -0
  167. package/dist/packages/ui/src/components/label.mjs +23 -0
  168. package/dist/packages/ui/src/components/multi-select.cjs +555 -0
  169. package/dist/packages/ui/src/components/multi-select.mjs +540 -0
  170. package/dist/packages/ui/src/components/select.cjs +140 -0
  171. package/dist/packages/ui/src/components/select.mjs +132 -0
  172. package/dist/packages/ui/src/components/skeleton.cjs +17 -0
  173. package/dist/packages/ui/src/components/skeleton.mjs +15 -0
  174. package/dist/packages/ui/src/components/switch.cjs +48 -0
  175. package/dist/packages/ui/src/components/switch.mjs +32 -0
  176. package/dist/packages/ui/src/components/textarea.cjs +20 -0
  177. package/dist/packages/ui/src/components/textarea.mjs +18 -0
  178. package/dist/packages/ui/src/hooks/use-debounce.cjs +18 -0
  179. package/dist/packages/ui/src/hooks/use-debounce.mjs +16 -0
  180. package/dist/packages/ui/src/lib/utils.cjs +10 -0
  181. package/dist/packages/ui/src/lib/utils.mjs +8 -0
  182. package/dist/plugins/blog/api/index.cjs +1 -1
  183. package/dist/plugins/blog/api/index.d.cts +1 -1
  184. package/dist/plugins/blog/api/index.d.mts +1 -1
  185. package/dist/plugins/blog/api/index.d.ts +1 -1
  186. package/dist/plugins/blog/api/index.mjs +1 -1
  187. package/dist/plugins/blog/client/components/index.cjs +4 -4
  188. package/dist/plugins/blog/client/components/index.mjs +4 -4
  189. package/dist/plugins/blog/client/hooks/index.cjs +1 -1
  190. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  191. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  192. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  193. package/dist/plugins/blog/client/hooks/index.mjs +1 -1
  194. package/dist/plugins/blog/client/index.cjs +1 -1
  195. package/dist/plugins/blog/client/index.d.cts +1 -1
  196. package/dist/plugins/blog/client/index.d.mts +1 -1
  197. package/dist/plugins/blog/client/index.d.ts +1 -1
  198. package/dist/plugins/blog/client/index.mjs +1 -1
  199. package/dist/plugins/blog/query-keys.d.cts +2 -2
  200. package/dist/plugins/blog/query-keys.d.mts +2 -2
  201. package/dist/plugins/blog/query-keys.d.ts +2 -2
  202. package/dist/plugins/client/index.cjs +1 -1
  203. package/dist/plugins/client/index.mjs +1 -1
  204. package/package.json +5 -5
  205. package/dist/{client → packages/better-stack/src/client}/components/compose.cjs +0 -0
  206. package/dist/{client → packages/better-stack/src/client}/components/compose.mjs +0 -0
  207. package/dist/{client → packages/better-stack/src/client}/components/error-boundary.cjs +0 -0
  208. package/dist/{client → packages/better-stack/src/client}/components/error-boundary.mjs +0 -0
  209. package/dist/{client → packages/better-stack/src/client}/meta-utils.cjs +0 -0
  210. package/dist/{client → packages/better-stack/src/client}/meta-utils.mjs +0 -0
  211. package/dist/{client → packages/better-stack/src/client}/path-utils.cjs +0 -0
  212. package/dist/{client → packages/better-stack/src/client}/path-utils.mjs +0 -0
  213. package/dist/{client → packages/better-stack/src/client}/sitemap-utils.cjs +0 -0
  214. package/dist/{client → packages/better-stack/src/client}/sitemap-utils.mjs +0 -0
  215. package/dist/{context → packages/better-stack/src/context}/provider.cjs +0 -0
  216. package/dist/{context → packages/better-stack/src/context}/provider.mjs +0 -0
  217. package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.cjs +0 -0
  218. package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.mjs +0 -0
  219. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.cjs +0 -0
  220. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.mjs +0 -0
  221. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.cjs +0 -0
  222. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.mjs +0 -0
  223. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.cjs +0 -0
  224. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.mjs +0 -0
  225. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.cjs +0 -0
  226. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.cjs +0 -0
  227. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.mjs +0 -0
  228. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.mjs +0 -0
  229. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.cjs +0 -0
  230. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.cjs +0 -0
  231. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.mjs +0 -0
  232. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.mjs +0 -0
  233. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.cjs +0 -0
  234. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.cjs +0 -0
  235. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.mjs +0 -0
  236. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.mjs +0 -0
  237. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.cjs +0 -0
  238. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.mjs +0 -0
  239. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.cjs +0 -0
  240. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.cjs +0 -0
  241. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.mjs +0 -0
  242. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.mjs +0 -0
  243. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.cjs +0 -0
  244. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.mjs +0 -0
  245. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.cjs +0 -0
  246. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.mjs +0 -0
  247. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.cjs +0 -0
  248. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.mjs +0 -0
  249. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.cjs +0 -0
  250. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.mjs +0 -0
  251. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.cjs +0 -0
  252. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.mjs +0 -0
  253. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.cjs +0 -0
  254. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.mjs +0 -0
  255. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.cjs +0 -0
  256. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.mjs +0 -0
  257. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.cjs +0 -0
  258. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.mjs +0 -0
  259. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.cjs +0 -0
  260. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.mjs +0 -0
  261. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.cjs +0 -0
  262. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.mjs +0 -0
  263. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.cjs +0 -0
  264. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.mjs +0 -0
  265. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.cjs +0 -0
  266. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.mjs +0 -0
  267. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.cjs +0 -0
  268. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.mjs +0 -0
  269. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.cjs +0 -0
  270. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.mjs +0 -0
  271. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.cjs +0 -0
  272. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.mjs +0 -0
  273. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.cjs +0 -0
  274. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.mjs +0 -0
  275. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.cjs +0 -0
  276. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.mjs +0 -0
  277. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.cjs +0 -0
  278. package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.mjs +0 -0
  279. package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.cjs +0 -0
  280. package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.mjs +0 -0
  281. package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.cjs +0 -0
  282. package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.mjs +0 -0
  283. package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.cjs +0 -0
  284. package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.mjs +0 -0
  285. package/dist/{plugins → packages/better-stack/src/plugins}/utils.cjs +0 -0
  286. package/dist/{plugins → packages/better-stack/src/plugins}/utils.mjs +0 -0
  287. package/dist/shared/{stack.CoPoHVfV.d.cts → stack.Cr2JoQdo.d.cts} +1 -1
  288. package/dist/shared/{stack.CoPoHVfV.d.mts → stack.Cr2JoQdo.d.mts} +1 -1
  289. package/dist/shared/{stack.CoPoHVfV.d.ts → stack.Cr2JoQdo.d.ts} +1 -1
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var getNonce = function () {
4
+ if (typeof __webpack_nonce__ !== 'undefined') {
5
+ return __webpack_nonce__;
6
+ }
7
+ return undefined;
8
+ };
9
+
10
+ exports.getNonce = getNonce;
@@ -0,0 +1,8 @@
1
+ var getNonce = function () {
2
+ if (typeof __webpack_nonce__ !== 'undefined') {
3
+ return __webpack_nonce__;
4
+ }
5
+ return undefined;
6
+ };
7
+
8
+ export { getNonce };
@@ -0,0 +1,74 @@
1
+ 'use strict';
2
+
3
+ const React = require('react');
4
+ const component = require('../../../../../react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs');
5
+ const constants = require('./constants.cjs');
6
+ const utils = require('./utils.cjs');
7
+
8
+ function _interopNamespaceCompat(e) {
9
+ if (e && typeof e === 'object' && 'default' in e) return e;
10
+ const n = Object.create(null);
11
+ if (e) {
12
+ for (const k in e) {
13
+ n[k] = e[k];
14
+ }
15
+ }
16
+ n.default = e;
17
+ return n;
18
+ }
19
+
20
+ const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
21
+
22
+ var Style = component.styleSingleton();
23
+ var lockAttribute = 'data-scroll-locked';
24
+ // important tip - once we measure scrollBar width and remove them
25
+ // we could not repeat this operation
26
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
27
+ var getStyles = function (_a, allowRelative, gapMode, important) {
28
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
29
+ if (gapMode === void 0) { gapMode = 'margin'; }
30
+ return "\n .".concat(constants.noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
31
+ allowRelative && "position: relative ".concat(important, ";"),
32
+ gapMode === 'margin' &&
33
+ "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
34
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
35
+ ]
36
+ .filter(Boolean)
37
+ .join(''), "\n }\n \n .").concat(constants.zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(constants.fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(constants.zeroRightClassName, " .").concat(constants.zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(constants.fullWidthClassName, " .").concat(constants.fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(constants.removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
38
+ };
39
+ var getCurrentUseCounter = function () {
40
+ var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
41
+ return isFinite(counter) ? counter : 0;
42
+ };
43
+ var useLockAttribute = function () {
44
+ React__namespace.useEffect(function () {
45
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
46
+ return function () {
47
+ var newCounter = getCurrentUseCounter() - 1;
48
+ if (newCounter <= 0) {
49
+ document.body.removeAttribute(lockAttribute);
50
+ }
51
+ else {
52
+ document.body.setAttribute(lockAttribute, newCounter.toString());
53
+ }
54
+ };
55
+ }, []);
56
+ };
57
+ /**
58
+ * Removes page scrollbar and blocks page scroll when mounted
59
+ */
60
+ var RemoveScrollBar = function (_a) {
61
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
62
+ useLockAttribute();
63
+ /*
64
+ gap will be measured on every component mount
65
+ however it will be used only by the "first" invocation
66
+ due to singleton nature of <Style
67
+ */
68
+ var gap = React__namespace.useMemo(function () { return utils.getGapWidth(gapMode); }, [gapMode]);
69
+ return React__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
70
+ };
71
+
72
+ exports.RemoveScrollBar = RemoveScrollBar;
73
+ exports.lockAttribute = lockAttribute;
74
+ exports.useLockAttribute = useLockAttribute;
@@ -0,0 +1,56 @@
1
+ import * as React from 'react';
2
+ import { styleSingleton } from '../../../../../react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs';
3
+ import { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.mjs';
4
+ import { getGapWidth } from './utils.mjs';
5
+
6
+ var Style = styleSingleton();
7
+ var lockAttribute = 'data-scroll-locked';
8
+ // important tip - once we measure scrollBar width and remove them
9
+ // we could not repeat this operation
10
+ // thus we are using style-singleton - only the first "yet correct" style will be applied.
11
+ var getStyles = function (_a, allowRelative, gapMode, important) {
12
+ var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
13
+ if (gapMode === void 0) { gapMode = 'margin'; }
14
+ return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
15
+ allowRelative && "position: relative ".concat(important, ";"),
16
+ gapMode === 'margin' &&
17
+ "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
18
+ gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
19
+ ]
20
+ .filter(Boolean)
21
+ .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
22
+ };
23
+ var getCurrentUseCounter = function () {
24
+ var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
25
+ return isFinite(counter) ? counter : 0;
26
+ };
27
+ var useLockAttribute = function () {
28
+ React.useEffect(function () {
29
+ document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
30
+ return function () {
31
+ var newCounter = getCurrentUseCounter() - 1;
32
+ if (newCounter <= 0) {
33
+ document.body.removeAttribute(lockAttribute);
34
+ }
35
+ else {
36
+ document.body.setAttribute(lockAttribute, newCounter.toString());
37
+ }
38
+ };
39
+ }, []);
40
+ };
41
+ /**
42
+ * Removes page scrollbar and blocks page scroll when mounted
43
+ */
44
+ var RemoveScrollBar = function (_a) {
45
+ var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
46
+ useLockAttribute();
47
+ /*
48
+ gap will be measured on every component mount
49
+ however it will be used only by the "first" invocation
50
+ due to singleton nature of <Style
51
+ */
52
+ var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
53
+ return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
54
+ };
55
+
56
+ export { RemoveScrollBar, lockAttribute, useLockAttribute };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var zeroRightClassName = 'right-scroll-bar-position';
4
+ var fullWidthClassName = 'width-before-scroll-bar';
5
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
6
+ /**
7
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
8
+ * ! might be undefined ! use will fallback!
9
+ */
10
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
11
+
12
+ exports.fullWidthClassName = fullWidthClassName;
13
+ exports.noScrollbarsClassName = noScrollbarsClassName;
14
+ exports.removedBarSizeVariable = removedBarSizeVariable;
15
+ exports.zeroRightClassName = zeroRightClassName;
@@ -0,0 +1,10 @@
1
+ var zeroRightClassName = 'right-scroll-bar-position';
2
+ var fullWidthClassName = 'width-before-scroll-bar';
3
+ var noScrollbarsClassName = 'with-scroll-bars-hidden';
4
+ /**
5
+ * Name of a CSS variable containing the amount of "hidden" scrollbar
6
+ * ! might be undefined ! use will fallback!
7
+ */
8
+ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
9
+
10
+ export { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var zeroGap = {
4
+ left: 0,
5
+ top: 0,
6
+ right: 0,
7
+ gap: 0,
8
+ };
9
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
10
+ var getOffset = function (gapMode) {
11
+ var cs = window.getComputedStyle(document.body);
12
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
13
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
14
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
15
+ return [parse(left), parse(top), parse(right)];
16
+ };
17
+ var getGapWidth = function (gapMode) {
18
+ if (gapMode === void 0) { gapMode = 'margin'; }
19
+ if (typeof window === 'undefined') {
20
+ return zeroGap;
21
+ }
22
+ var offsets = getOffset(gapMode);
23
+ var documentWidth = document.documentElement.clientWidth;
24
+ var windowWidth = window.innerWidth;
25
+ return {
26
+ left: offsets[0],
27
+ top: offsets[1],
28
+ right: offsets[2],
29
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
30
+ };
31
+ };
32
+
33
+ exports.getGapWidth = getGapWidth;
34
+ exports.zeroGap = zeroGap;
@@ -0,0 +1,31 @@
1
+ var zeroGap = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0,
6
+ };
7
+ var parse = function (x) { return parseInt(x || '', 10) || 0; };
8
+ var getOffset = function (gapMode) {
9
+ var cs = window.getComputedStyle(document.body);
10
+ var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
11
+ var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
12
+ var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
13
+ return [parse(left), parse(top), parse(right)];
14
+ };
15
+ var getGapWidth = function (gapMode) {
16
+ if (gapMode === void 0) { gapMode = 'margin'; }
17
+ if (typeof window === 'undefined') {
18
+ return zeroGap;
19
+ }
20
+ var offsets = getOffset(gapMode);
21
+ var documentWidth = document.documentElement.clientWidth;
22
+ var windowWidth = window.innerWidth;
23
+ return {
24
+ left: offsets[0],
25
+ top: offsets[1],
26
+ right: offsets[2],
27
+ gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
28
+ };
29
+ };
30
+
31
+ export { getGapWidth, zeroGap };
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ const tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
4
+ const React = require('react');
5
+ const UI = require('./UI.cjs');
6
+ const sidecar = require('./sidecar.cjs');
7
+
8
+ function _interopNamespaceCompat(e) {
9
+ if (e && typeof e === 'object' && 'default' in e) return e;
10
+ const n = Object.create(null);
11
+ if (e) {
12
+ for (const k in e) {
13
+ n[k] = e[k];
14
+ }
15
+ }
16
+ n.default = e;
17
+ return n;
18
+ }
19
+
20
+ const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
21
+
22
+ var ReactRemoveScroll = React__namespace.forwardRef(function (props, ref) { return (React__namespace.createElement(UI.RemoveScroll, tslib_es6.__assign({}, props, { ref: ref, sideCar: sidecar }))); });
23
+ ReactRemoveScroll.classNames = UI.RemoveScroll.classNames;
24
+
25
+ module.exports = ReactRemoveScroll;
@@ -0,0 +1,9 @@
1
+ import { __assign } from '../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs';
2
+ import * as React from 'react';
3
+ import { RemoveScroll } from './UI.mjs';
4
+ import SideCar from './sidecar.mjs';
5
+
6
+ var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.createElement(RemoveScroll, __assign({}, props, { ref: ref, sideCar: SideCar }))); });
7
+ ReactRemoveScroll.classNames = RemoveScroll.classNames;
8
+
9
+ export { ReactRemoveScroll as default };
@@ -0,0 +1,178 @@
1
+ 'use strict';
2
+
3
+ const tslib_es6 = require('../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.cjs');
4
+ const React = require('react');
5
+ const component$1 = require('../../../../../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');
6
+ const component = require('../../../../../react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.cjs');
7
+ const aggresiveCapture = require('./aggresiveCapture.cjs');
8
+ const handleScroll = require('./handleScroll.cjs');
9
+
10
+ function _interopNamespaceCompat(e) {
11
+ if (e && typeof e === 'object' && 'default' in e) return e;
12
+ const n = Object.create(null);
13
+ if (e) {
14
+ for (const k in e) {
15
+ n[k] = e[k];
16
+ }
17
+ }
18
+ n.default = e;
19
+ return n;
20
+ }
21
+
22
+ const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
23
+
24
+ var getTouchXY = function (event) {
25
+ return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
26
+ };
27
+ var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
28
+ var extractRef = function (ref) {
29
+ return ref && 'current' in ref ? ref.current : ref;
30
+ };
31
+ var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
32
+ var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
33
+ var idCounter = 0;
34
+ var lockStack = [];
35
+ function RemoveScrollSideCar(props) {
36
+ var shouldPreventQueue = React__namespace.useRef([]);
37
+ var touchStartRef = React__namespace.useRef([0, 0]);
38
+ var activeAxis = React__namespace.useRef();
39
+ var id = React__namespace.useState(idCounter++)[0];
40
+ var Style = React__namespace.useState(component.styleSingleton)[0];
41
+ var lastProps = React__namespace.useRef(props);
42
+ React__namespace.useEffect(function () {
43
+ lastProps.current = props;
44
+ }, [props]);
45
+ React__namespace.useEffect(function () {
46
+ if (props.inert) {
47
+ document.body.classList.add("block-interactivity-".concat(id));
48
+ var allow_1 = tslib_es6.__spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
49
+ allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
50
+ return function () {
51
+ document.body.classList.remove("block-interactivity-".concat(id));
52
+ allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
53
+ };
54
+ }
55
+ return;
56
+ }, [props.inert, props.lockRef.current, props.shards]);
57
+ var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
58
+ if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {
59
+ return !lastProps.current.allowPinchZoom;
60
+ }
61
+ var touch = getTouchXY(event);
62
+ var touchStart = touchStartRef.current;
63
+ var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
64
+ var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
65
+ var currentAxis;
66
+ var target = event.target;
67
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
68
+ // allow horizontal touch move on Range inputs. They will not cause any scroll
69
+ if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
70
+ return false;
71
+ }
72
+ var canBeScrolledInMainDirection = handleScroll.locationCouldBeScrolled(moveDirection, target);
73
+ if (!canBeScrolledInMainDirection) {
74
+ return true;
75
+ }
76
+ if (canBeScrolledInMainDirection) {
77
+ currentAxis = moveDirection;
78
+ }
79
+ else {
80
+ currentAxis = moveDirection === 'v' ? 'h' : 'v';
81
+ canBeScrolledInMainDirection = handleScroll.locationCouldBeScrolled(moveDirection, target);
82
+ // other axis might be not scrollable
83
+ }
84
+ if (!canBeScrolledInMainDirection) {
85
+ return false;
86
+ }
87
+ if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
88
+ activeAxis.current = currentAxis;
89
+ }
90
+ if (!currentAxis) {
91
+ return true;
92
+ }
93
+ var cancelingAxis = activeAxis.current || currentAxis;
94
+ return handleScroll.handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY);
95
+ }, []);
96
+ var shouldPrevent = React__namespace.useCallback(function (_event) {
97
+ var event = _event;
98
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
99
+ // not the last active
100
+ return;
101
+ }
102
+ var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
103
+ var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
104
+ // self event, and should be canceled
105
+ if (sourceEvent && sourceEvent.should) {
106
+ if (event.cancelable) {
107
+ event.preventDefault();
108
+ }
109
+ return;
110
+ }
111
+ // outside or shard event
112
+ if (!sourceEvent) {
113
+ var shardNodes = (lastProps.current.shards || [])
114
+ .map(extractRef)
115
+ .filter(Boolean)
116
+ .filter(function (node) { return node.contains(event.target); });
117
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
118
+ if (shouldStop) {
119
+ if (event.cancelable) {
120
+ event.preventDefault();
121
+ }
122
+ }
123
+ }
124
+ }, []);
125
+ var shouldCancel = React__namespace.useCallback(function (name, delta, target, should) {
126
+ var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
127
+ shouldPreventQueue.current.push(event);
128
+ setTimeout(function () {
129
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
130
+ }, 1);
131
+ }, []);
132
+ var scrollTouchStart = React__namespace.useCallback(function (event) {
133
+ touchStartRef.current = getTouchXY(event);
134
+ activeAxis.current = undefined;
135
+ }, []);
136
+ var scrollWheel = React__namespace.useCallback(function (event) {
137
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
138
+ }, []);
139
+ var scrollTouchMove = React__namespace.useCallback(function (event) {
140
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
141
+ }, []);
142
+ React__namespace.useEffect(function () {
143
+ lockStack.push(Style);
144
+ props.setCallbacks({
145
+ onScrollCapture: scrollWheel,
146
+ onWheelCapture: scrollWheel,
147
+ onTouchMoveCapture: scrollTouchMove,
148
+ });
149
+ document.addEventListener('wheel', shouldPrevent, aggresiveCapture.nonPassive);
150
+ document.addEventListener('touchmove', shouldPrevent, aggresiveCapture.nonPassive);
151
+ document.addEventListener('touchstart', scrollTouchStart, aggresiveCapture.nonPassive);
152
+ return function () {
153
+ lockStack = lockStack.filter(function (inst) { return inst !== Style; });
154
+ document.removeEventListener('wheel', shouldPrevent, aggresiveCapture.nonPassive);
155
+ document.removeEventListener('touchmove', shouldPrevent, aggresiveCapture.nonPassive);
156
+ document.removeEventListener('touchstart', scrollTouchStart, aggresiveCapture.nonPassive);
157
+ };
158
+ }, []);
159
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
160
+ return (React__namespace.createElement(React__namespace.Fragment, null,
161
+ inert ? React__namespace.createElement(Style, { styles: generateStyle(id) }) : null,
162
+ removeScrollBar ? React__namespace.createElement(component$1.RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));
163
+ }
164
+ function getOutermostShadowParent(node) {
165
+ var shadowParent = null;
166
+ while (node !== null) {
167
+ if (node instanceof ShadowRoot) {
168
+ shadowParent = node.host;
169
+ node = node.host;
170
+ }
171
+ node = node.parentNode;
172
+ }
173
+ return shadowParent;
174
+ }
175
+
176
+ exports.RemoveScrollSideCar = RemoveScrollSideCar;
177
+ exports.getDeltaXY = getDeltaXY;
178
+ exports.getTouchXY = getTouchXY;
@@ -0,0 +1,160 @@
1
+ import { __spreadArray } from '../../../../../tslib@2.8.1/node_modules/tslib/tslib.es6.mjs';
2
+ import * as React from 'react';
3
+ import { RemoveScrollBar } from '../../../../../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';
4
+ import { styleSingleton } from '../../../../../react-style-singleton@2.2.3_@types_react@19.2.2_react@19.2.0/node_modules/react-style-singleton/dist/es2015/component.mjs';
5
+ import { nonPassive } from './aggresiveCapture.mjs';
6
+ import { locationCouldBeScrolled, handleScroll } from './handleScroll.mjs';
7
+
8
+ var getTouchXY = function (event) {
9
+ return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
10
+ };
11
+ var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };
12
+ var extractRef = function (ref) {
13
+ return ref && 'current' in ref ? ref.current : ref;
14
+ };
15
+ var deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };
16
+ var generateStyle = function (id) { return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n"); };
17
+ var idCounter = 0;
18
+ var lockStack = [];
19
+ function RemoveScrollSideCar(props) {
20
+ var shouldPreventQueue = React.useRef([]);
21
+ var touchStartRef = React.useRef([0, 0]);
22
+ var activeAxis = React.useRef();
23
+ var id = React.useState(idCounter++)[0];
24
+ var Style = React.useState(styleSingleton)[0];
25
+ var lastProps = React.useRef(props);
26
+ React.useEffect(function () {
27
+ lastProps.current = props;
28
+ }, [props]);
29
+ React.useEffect(function () {
30
+ if (props.inert) {
31
+ document.body.classList.add("block-interactivity-".concat(id));
32
+ var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
33
+ allow_1.forEach(function (el) { return el.classList.add("allow-interactivity-".concat(id)); });
34
+ return function () {
35
+ document.body.classList.remove("block-interactivity-".concat(id));
36
+ allow_1.forEach(function (el) { return el.classList.remove("allow-interactivity-".concat(id)); });
37
+ };
38
+ }
39
+ return;
40
+ }, [props.inert, props.lockRef.current, props.shards]);
41
+ var shouldCancelEvent = React.useCallback(function (event, parent) {
42
+ if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {
43
+ return !lastProps.current.allowPinchZoom;
44
+ }
45
+ var touch = getTouchXY(event);
46
+ var touchStart = touchStartRef.current;
47
+ var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];
48
+ var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];
49
+ var currentAxis;
50
+ var target = event.target;
51
+ var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';
52
+ // allow horizontal touch move on Range inputs. They will not cause any scroll
53
+ if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
54
+ return false;
55
+ }
56
+ var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
57
+ if (!canBeScrolledInMainDirection) {
58
+ return true;
59
+ }
60
+ if (canBeScrolledInMainDirection) {
61
+ currentAxis = moveDirection;
62
+ }
63
+ else {
64
+ currentAxis = moveDirection === 'v' ? 'h' : 'v';
65
+ canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
66
+ // other axis might be not scrollable
67
+ }
68
+ if (!canBeScrolledInMainDirection) {
69
+ return false;
70
+ }
71
+ if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {
72
+ activeAxis.current = currentAxis;
73
+ }
74
+ if (!currentAxis) {
75
+ return true;
76
+ }
77
+ var cancelingAxis = activeAxis.current || currentAxis;
78
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY);
79
+ }, []);
80
+ var shouldPrevent = React.useCallback(function (_event) {
81
+ var event = _event;
82
+ if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {
83
+ // not the last active
84
+ return;
85
+ }
86
+ var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);
87
+ var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];
88
+ // self event, and should be canceled
89
+ if (sourceEvent && sourceEvent.should) {
90
+ if (event.cancelable) {
91
+ event.preventDefault();
92
+ }
93
+ return;
94
+ }
95
+ // outside or shard event
96
+ if (!sourceEvent) {
97
+ var shardNodes = (lastProps.current.shards || [])
98
+ .map(extractRef)
99
+ .filter(Boolean)
100
+ .filter(function (node) { return node.contains(event.target); });
101
+ var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;
102
+ if (shouldStop) {
103
+ if (event.cancelable) {
104
+ event.preventDefault();
105
+ }
106
+ }
107
+ }
108
+ }, []);
109
+ var shouldCancel = React.useCallback(function (name, delta, target, should) {
110
+ var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };
111
+ shouldPreventQueue.current.push(event);
112
+ setTimeout(function () {
113
+ shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });
114
+ }, 1);
115
+ }, []);
116
+ var scrollTouchStart = React.useCallback(function (event) {
117
+ touchStartRef.current = getTouchXY(event);
118
+ activeAxis.current = undefined;
119
+ }, []);
120
+ var scrollWheel = React.useCallback(function (event) {
121
+ shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
122
+ }, []);
123
+ var scrollTouchMove = React.useCallback(function (event) {
124
+ shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
125
+ }, []);
126
+ React.useEffect(function () {
127
+ lockStack.push(Style);
128
+ props.setCallbacks({
129
+ onScrollCapture: scrollWheel,
130
+ onWheelCapture: scrollWheel,
131
+ onTouchMoveCapture: scrollTouchMove,
132
+ });
133
+ document.addEventListener('wheel', shouldPrevent, nonPassive);
134
+ document.addEventListener('touchmove', shouldPrevent, nonPassive);
135
+ document.addEventListener('touchstart', scrollTouchStart, nonPassive);
136
+ return function () {
137
+ lockStack = lockStack.filter(function (inst) { return inst !== Style; });
138
+ document.removeEventListener('wheel', shouldPrevent, nonPassive);
139
+ document.removeEventListener('touchmove', shouldPrevent, nonPassive);
140
+ document.removeEventListener('touchstart', scrollTouchStart, nonPassive);
141
+ };
142
+ }, []);
143
+ var removeScrollBar = props.removeScrollBar, inert = props.inert;
144
+ return (React.createElement(React.Fragment, null,
145
+ inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
146
+ removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));
147
+ }
148
+ function getOutermostShadowParent(node) {
149
+ var shadowParent = null;
150
+ while (node !== null) {
151
+ if (node instanceof ShadowRoot) {
152
+ shadowParent = node.host;
153
+ node = node.host;
154
+ }
155
+ node = node.parentNode;
156
+ }
157
+ return shadowParent;
158
+ }
159
+
160
+ export { RemoveScrollSideCar, getDeltaXY, getTouchXY };