@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.
- package/README.md +1 -1
- package/dist/client/components/index.cjs +2 -2
- package/dist/client/components/index.mjs +2 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.mjs +3 -3
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +825 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +814 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +763 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +751 -0
- 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
- 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
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +160 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +182 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +161 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +137 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.cjs +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.cjs +13 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.mjs +11 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +139 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.mjs +137 -0
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1671 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.mjs +1669 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +10 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.mjs +8 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +59 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs +56 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.cjs +3 -3
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/image-field.mjs +3 -3
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.cjs +5 -5
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/post-forms.mjs +5 -5
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.cjs +2 -6
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/tags-multiselect.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/form-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/list-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/page-header-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.cjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-card-skeleton.mjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/post-page-skeleton.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.internal.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/empty-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/on-this-page.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.cjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-card.mjs +2 -2
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/post-navigation.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/posts-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/recent-posts-carousel.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-modal.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/tags-list.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/blog-hooks.mjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.cjs +1 -1
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/plugin.mjs +1 -1
- package/dist/packages/ui/src/components/badge.cjs +42 -0
- package/dist/packages/ui/src/components/badge.mjs +39 -0
- package/dist/packages/ui/src/components/button.cjs +54 -0
- package/dist/packages/ui/src/components/button.mjs +51 -0
- package/dist/packages/ui/src/components/card.cjs +67 -0
- package/dist/packages/ui/src/components/card.mjs +61 -0
- package/dist/packages/ui/src/components/carousel.cjs +215 -0
- package/dist/packages/ui/src/components/carousel.mjs +195 -0
- package/dist/packages/ui/src/components/command.cjs +142 -0
- package/dist/packages/ui/src/components/command.mjs +134 -0
- package/dist/packages/ui/src/components/dialog.cjs +127 -0
- package/dist/packages/ui/src/components/dialog.mjs +105 -0
- package/dist/packages/ui/src/components/empty.cjs +76 -0
- package/dist/packages/ui/src/components/empty.mjs +71 -0
- package/dist/packages/ui/src/components/form.cjs +133 -0
- package/dist/packages/ui/src/components/form.mjs +110 -0
- package/dist/packages/ui/src/components/input.cjs +23 -0
- package/dist/packages/ui/src/components/input.mjs +21 -0
- package/dist/packages/ui/src/components/label.cjs +39 -0
- package/dist/packages/ui/src/components/label.mjs +23 -0
- package/dist/packages/ui/src/components/multi-select.cjs +555 -0
- package/dist/packages/ui/src/components/multi-select.mjs +540 -0
- package/dist/packages/ui/src/components/select.cjs +140 -0
- package/dist/packages/ui/src/components/select.mjs +132 -0
- package/dist/packages/ui/src/components/skeleton.cjs +17 -0
- package/dist/packages/ui/src/components/skeleton.mjs +15 -0
- package/dist/packages/ui/src/components/switch.cjs +48 -0
- package/dist/packages/ui/src/components/switch.mjs +32 -0
- package/dist/packages/ui/src/components/textarea.cjs +20 -0
- package/dist/packages/ui/src/components/textarea.mjs +18 -0
- package/dist/packages/ui/src/hooks/use-debounce.cjs +18 -0
- package/dist/packages/ui/src/hooks/use-debounce.mjs +16 -0
- package/dist/packages/ui/src/lib/utils.cjs +10 -0
- package/dist/packages/ui/src/lib/utils.mjs +8 -0
- package/dist/plugins/blog/api/index.cjs +1 -1
- package/dist/plugins/blog/api/index.d.cts +1 -1
- package/dist/plugins/blog/api/index.d.mts +1 -1
- package/dist/plugins/blog/api/index.d.ts +1 -1
- package/dist/plugins/blog/api/index.mjs +1 -1
- package/dist/plugins/blog/client/components/index.cjs +4 -4
- package/dist/plugins/blog/client/components/index.mjs +4 -4
- package/dist/plugins/blog/client/hooks/index.cjs +1 -1
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.mjs +1 -1
- package/dist/plugins/blog/client/index.cjs +1 -1
- package/dist/plugins/blog/client/index.d.cts +1 -1
- package/dist/plugins/blog/client/index.d.mts +1 -1
- package/dist/plugins/blog/client/index.d.ts +1 -1
- package/dist/plugins/blog/client/index.mjs +1 -1
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/client/index.cjs +1 -1
- package/dist/plugins/client/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/{client → packages/better-stack/src/client}/components/compose.cjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/components/compose.mjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/components/error-boundary.cjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/components/error-boundary.mjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/meta-utils.cjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/meta-utils.mjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/path-utils.cjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/path-utils.mjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/sitemap-utils.cjs +0 -0
- package/dist/{client → packages/better-stack/src/client}/sitemap-utils.mjs +0 -0
- package/dist/{context → packages/better-stack/src/context}/provider.cjs +0 -0
- package/dist/{context → packages/better-stack/src/context}/provider.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/api/plugin.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/forms/markdown-editor.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/loading/index.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/404-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.internal.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/edit-post-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.internal.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/home-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.internal.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/new-post-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/post-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.internal.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/pages/tag-page.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/better-blog-attribution.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/default-error.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/defaults.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/error-placeholder.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/highlight-text.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/markdown-content.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-header.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-layout.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/page-wrapper.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/search-input.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/components/shared/use-route-lifecycle.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/hooks/use-debounce.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-card.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-common.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-forms.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-list.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/blog-post.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/client/localization/index.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/db.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/schemas.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/blog/utils.mjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/utils.cjs +0 -0
- package/dist/{plugins → packages/better-stack/src/plugins}/utils.mjs +0 -0
- package/dist/shared/{stack.CoPoHVfV.d.cts → stack.Cr2JoQdo.d.cts} +1 -1
- package/dist/shared/{stack.CoPoHVfV.d.mts → stack.Cr2JoQdo.d.mts} +1 -1
- package/dist/shared/{stack.CoPoHVfV.d.ts → stack.Cr2JoQdo.d.ts} +1 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const React = require('react');
|
|
5
|
+
const floatingUi_reactDom = require('../../../../../@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');
|
|
6
|
+
const index$6 = require('../../../../../@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');
|
|
7
|
+
const index$1 = require('../../../../../@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');
|
|
8
|
+
const index = require('../../../../../@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');
|
|
9
|
+
const index$2 = require('../../../../../@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');
|
|
10
|
+
const index$4 = require('../../../../../@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');
|
|
11
|
+
const index$5 = require('../../../../../@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');
|
|
12
|
+
const index$3 = require('../../../../../@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');
|
|
13
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
14
|
+
const floatingUi_dom = require('../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs');
|
|
15
|
+
|
|
16
|
+
function _interopNamespaceCompat(e) {
|
|
17
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
18
|
+
const n = Object.create(null);
|
|
19
|
+
if (e) {
|
|
20
|
+
for (const k in e) {
|
|
21
|
+
n[k] = e[k];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
n.default = e;
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
29
|
+
|
|
30
|
+
var POPPER_NAME = "Popper";
|
|
31
|
+
var [createPopperContext, createPopperScope] = index.createContextScope(POPPER_NAME);
|
|
32
|
+
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
33
|
+
var Popper = (props) => {
|
|
34
|
+
const { __scopePopper, children } = props;
|
|
35
|
+
const [anchor, setAnchor] = React__namespace.useState(null);
|
|
36
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
37
|
+
};
|
|
38
|
+
Popper.displayName = POPPER_NAME;
|
|
39
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
40
|
+
var PopperAnchor = React__namespace.forwardRef(
|
|
41
|
+
(props, forwardedRef) => {
|
|
42
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
43
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
44
|
+
const ref = React__namespace.useRef(null);
|
|
45
|
+
const composedRefs = index$1.useComposedRefs(forwardedRef, ref);
|
|
46
|
+
const anchorRef = React__namespace.useRef(null);
|
|
47
|
+
React__namespace.useEffect(() => {
|
|
48
|
+
const previousAnchor = anchorRef.current;
|
|
49
|
+
anchorRef.current = virtualRef?.current || ref.current;
|
|
50
|
+
if (previousAnchor !== anchorRef.current) {
|
|
51
|
+
context.onAnchorChange(anchorRef.current);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return virtualRef ? null : /* @__PURE__ */ jsxRuntime.jsx(index$2.Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
PopperAnchor.displayName = ANCHOR_NAME;
|
|
58
|
+
var CONTENT_NAME = "PopperContent";
|
|
59
|
+
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
|
|
60
|
+
var PopperContent = React__namespace.forwardRef(
|
|
61
|
+
(props, forwardedRef) => {
|
|
62
|
+
const {
|
|
63
|
+
__scopePopper,
|
|
64
|
+
side = "bottom",
|
|
65
|
+
sideOffset = 0,
|
|
66
|
+
align = "center",
|
|
67
|
+
alignOffset = 0,
|
|
68
|
+
arrowPadding = 0,
|
|
69
|
+
avoidCollisions = true,
|
|
70
|
+
collisionBoundary = [],
|
|
71
|
+
collisionPadding: collisionPaddingProp = 0,
|
|
72
|
+
sticky = "partial",
|
|
73
|
+
hideWhenDetached = false,
|
|
74
|
+
updatePositionStrategy = "optimized",
|
|
75
|
+
onPlaced,
|
|
76
|
+
...contentProps
|
|
77
|
+
} = props;
|
|
78
|
+
const context = usePopperContext(CONTENT_NAME, __scopePopper);
|
|
79
|
+
const [content, setContent] = React__namespace.useState(null);
|
|
80
|
+
const composedRefs = index$1.useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
81
|
+
const [arrow, setArrow] = React__namespace.useState(null);
|
|
82
|
+
const arrowSize = index$3.useSize(arrow);
|
|
83
|
+
const arrowWidth = arrowSize?.width ?? 0;
|
|
84
|
+
const arrowHeight = arrowSize?.height ?? 0;
|
|
85
|
+
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
86
|
+
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
|
|
87
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
88
|
+
const hasExplicitBoundaries = boundary.length > 0;
|
|
89
|
+
const detectOverflowOptions = {
|
|
90
|
+
padding: collisionPadding,
|
|
91
|
+
boundary: boundary.filter(isNotNull),
|
|
92
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
93
|
+
altBoundary: hasExplicitBoundaries
|
|
94
|
+
};
|
|
95
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = floatingUi_reactDom.useFloating({
|
|
96
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
97
|
+
strategy: "fixed",
|
|
98
|
+
placement: desiredPlacement,
|
|
99
|
+
whileElementsMounted: (...args) => {
|
|
100
|
+
const cleanup = floatingUi_dom.autoUpdate(...args, {
|
|
101
|
+
animationFrame: updatePositionStrategy === "always"
|
|
102
|
+
});
|
|
103
|
+
return cleanup;
|
|
104
|
+
},
|
|
105
|
+
elements: {
|
|
106
|
+
reference: context.anchor
|
|
107
|
+
},
|
|
108
|
+
middleware: [
|
|
109
|
+
floatingUi_reactDom.offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
|
|
110
|
+
avoidCollisions && floatingUi_reactDom.shift({
|
|
111
|
+
mainAxis: true,
|
|
112
|
+
crossAxis: false,
|
|
113
|
+
limiter: sticky === "partial" ? floatingUi_reactDom.limitShift() : void 0,
|
|
114
|
+
...detectOverflowOptions
|
|
115
|
+
}),
|
|
116
|
+
avoidCollisions && floatingUi_reactDom.flip({ ...detectOverflowOptions }),
|
|
117
|
+
floatingUi_reactDom.size({
|
|
118
|
+
...detectOverflowOptions,
|
|
119
|
+
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
120
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
121
|
+
const contentStyle = elements.floating.style;
|
|
122
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
123
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
124
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
125
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
arrow && floatingUi_reactDom.arrow({ element: arrow, padding: arrowPadding }),
|
|
129
|
+
transformOrigin({ arrowWidth, arrowHeight }),
|
|
130
|
+
hideWhenDetached && floatingUi_reactDom.hide({ strategy: "referenceHidden", ...detectOverflowOptions })
|
|
131
|
+
]
|
|
132
|
+
});
|
|
133
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
134
|
+
const handlePlaced = index$4.useCallbackRef(onPlaced);
|
|
135
|
+
index$5.useLayoutEffect(() => {
|
|
136
|
+
if (isPositioned) {
|
|
137
|
+
handlePlaced?.();
|
|
138
|
+
}
|
|
139
|
+
}, [isPositioned, handlePlaced]);
|
|
140
|
+
const arrowX = middlewareData.arrow?.x;
|
|
141
|
+
const arrowY = middlewareData.arrow?.y;
|
|
142
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
143
|
+
const [contentZIndex, setContentZIndex] = React__namespace.useState();
|
|
144
|
+
index$5.useLayoutEffect(() => {
|
|
145
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
146
|
+
}, [content]);
|
|
147
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
148
|
+
"div",
|
|
149
|
+
{
|
|
150
|
+
ref: refs.setFloating,
|
|
151
|
+
"data-radix-popper-content-wrapper": "",
|
|
152
|
+
style: {
|
|
153
|
+
...floatingStyles,
|
|
154
|
+
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
155
|
+
// keep off the page when measuring
|
|
156
|
+
minWidth: "max-content",
|
|
157
|
+
zIndex: contentZIndex,
|
|
158
|
+
["--radix-popper-transform-origin"]: [
|
|
159
|
+
middlewareData.transformOrigin?.x,
|
|
160
|
+
middlewareData.transformOrigin?.y
|
|
161
|
+
].join(" "),
|
|
162
|
+
// hide the content if using the hide middleware and should be hidden
|
|
163
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
164
|
+
// as if the PopperContent isn't there at all
|
|
165
|
+
...middlewareData.hide?.referenceHidden && {
|
|
166
|
+
visibility: "hidden",
|
|
167
|
+
pointerEvents: "none"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
dir: props.dir,
|
|
171
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
PopperContentProvider,
|
|
173
|
+
{
|
|
174
|
+
scope: __scopePopper,
|
|
175
|
+
placedSide,
|
|
176
|
+
onArrowChange: setArrow,
|
|
177
|
+
arrowX,
|
|
178
|
+
arrowY,
|
|
179
|
+
shouldHideArrow: cannotCenterArrow,
|
|
180
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
181
|
+
index$2.Primitive.div,
|
|
182
|
+
{
|
|
183
|
+
"data-side": placedSide,
|
|
184
|
+
"data-align": placedAlign,
|
|
185
|
+
...contentProps,
|
|
186
|
+
ref: composedRefs,
|
|
187
|
+
style: {
|
|
188
|
+
...contentProps.style,
|
|
189
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
190
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
191
|
+
animation: !isPositioned ? "none" : void 0
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
PopperContent.displayName = CONTENT_NAME;
|
|
202
|
+
var ARROW_NAME = "PopperArrow";
|
|
203
|
+
var OPPOSITE_SIDE = {
|
|
204
|
+
top: "bottom",
|
|
205
|
+
right: "left",
|
|
206
|
+
bottom: "top",
|
|
207
|
+
left: "right"
|
|
208
|
+
};
|
|
209
|
+
var PopperArrow = React__namespace.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
210
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
211
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
212
|
+
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
213
|
+
return (
|
|
214
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
215
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
216
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
217
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
218
|
+
"span",
|
|
219
|
+
{
|
|
220
|
+
ref: contentContext.onArrowChange,
|
|
221
|
+
style: {
|
|
222
|
+
position: "absolute",
|
|
223
|
+
left: contentContext.arrowX,
|
|
224
|
+
top: contentContext.arrowY,
|
|
225
|
+
[baseSide]: 0,
|
|
226
|
+
transformOrigin: {
|
|
227
|
+
top: "",
|
|
228
|
+
right: "0 0",
|
|
229
|
+
bottom: "center 0",
|
|
230
|
+
left: "100% 0"
|
|
231
|
+
}[contentContext.placedSide],
|
|
232
|
+
transform: {
|
|
233
|
+
top: "translateY(100%)",
|
|
234
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
235
|
+
bottom: `rotate(180deg)`,
|
|
236
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
237
|
+
}[contentContext.placedSide],
|
|
238
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
239
|
+
},
|
|
240
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
241
|
+
index$6.Root,
|
|
242
|
+
{
|
|
243
|
+
...arrowProps,
|
|
244
|
+
ref: forwardedRef,
|
|
245
|
+
style: {
|
|
246
|
+
...arrowProps.style,
|
|
247
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
248
|
+
display: "block"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
);
|
|
255
|
+
});
|
|
256
|
+
PopperArrow.displayName = ARROW_NAME;
|
|
257
|
+
function isNotNull(value) {
|
|
258
|
+
return value !== null;
|
|
259
|
+
}
|
|
260
|
+
var transformOrigin = (options) => ({
|
|
261
|
+
name: "transformOrigin",
|
|
262
|
+
options,
|
|
263
|
+
fn(data) {
|
|
264
|
+
const { placement, rects, middlewareData } = data;
|
|
265
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
266
|
+
const isArrowHidden = cannotCenterArrow;
|
|
267
|
+
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
268
|
+
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
269
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
270
|
+
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
271
|
+
const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
|
|
272
|
+
const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
|
|
273
|
+
let x = "";
|
|
274
|
+
let y = "";
|
|
275
|
+
if (placedSide === "bottom") {
|
|
276
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
277
|
+
y = `${-arrowHeight}px`;
|
|
278
|
+
} else if (placedSide === "top") {
|
|
279
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
280
|
+
y = `${rects.floating.height + arrowHeight}px`;
|
|
281
|
+
} else if (placedSide === "right") {
|
|
282
|
+
x = `${-arrowHeight}px`;
|
|
283
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
284
|
+
} else if (placedSide === "left") {
|
|
285
|
+
x = `${rects.floating.width + arrowHeight}px`;
|
|
286
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
287
|
+
}
|
|
288
|
+
return { data: { x, y } };
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
function getSideAndAlignFromPlacement(placement) {
|
|
292
|
+
const [side, align = "center"] = placement.split("-");
|
|
293
|
+
return [side, align];
|
|
294
|
+
}
|
|
295
|
+
var Root2 = Popper;
|
|
296
|
+
var Anchor = PopperAnchor;
|
|
297
|
+
var Content = PopperContent;
|
|
298
|
+
var Arrow = PopperArrow;
|
|
299
|
+
|
|
300
|
+
exports.Anchor = Anchor;
|
|
301
|
+
exports.Arrow = Arrow;
|
|
302
|
+
exports.Content = Content;
|
|
303
|
+
exports.Popper = Popper;
|
|
304
|
+
exports.PopperAnchor = PopperAnchor;
|
|
305
|
+
exports.PopperArrow = PopperArrow;
|
|
306
|
+
exports.PopperContent = PopperContent;
|
|
307
|
+
exports.Root = Root2;
|
|
308
|
+
exports.createPopperScope = createPopperScope;
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { useFloating, offset, shift, flip, size, arrow, hide, limitShift } from '../../../../../@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';
|
|
4
|
+
import { Root } from '../../../../../@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';
|
|
5
|
+
import { useComposedRefs } from '../../../../../@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';
|
|
6
|
+
import { createContextScope } from '../../../../../@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';
|
|
7
|
+
import { Primitive } from '../../../../../@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';
|
|
8
|
+
import { useCallbackRef } from '../../../../../@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';
|
|
9
|
+
import { useLayoutEffect as useLayoutEffect2 } from '../../../../../@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';
|
|
10
|
+
import { useSize } from '../../../../../@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';
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
|
+
import { autoUpdate } from '../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs';
|
|
13
|
+
|
|
14
|
+
var POPPER_NAME = "Popper";
|
|
15
|
+
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
16
|
+
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
17
|
+
var Popper = (props) => {
|
|
18
|
+
const { __scopePopper, children } = props;
|
|
19
|
+
const [anchor, setAnchor] = React.useState(null);
|
|
20
|
+
return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
21
|
+
};
|
|
22
|
+
Popper.displayName = POPPER_NAME;
|
|
23
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
24
|
+
var PopperAnchor = React.forwardRef(
|
|
25
|
+
(props, forwardedRef) => {
|
|
26
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
27
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
28
|
+
const ref = React.useRef(null);
|
|
29
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
30
|
+
const anchorRef = React.useRef(null);
|
|
31
|
+
React.useEffect(() => {
|
|
32
|
+
const previousAnchor = anchorRef.current;
|
|
33
|
+
anchorRef.current = virtualRef?.current || ref.current;
|
|
34
|
+
if (previousAnchor !== anchorRef.current) {
|
|
35
|
+
context.onAnchorChange(anchorRef.current);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
PopperAnchor.displayName = ANCHOR_NAME;
|
|
42
|
+
var CONTENT_NAME = "PopperContent";
|
|
43
|
+
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
|
|
44
|
+
var PopperContent = React.forwardRef(
|
|
45
|
+
(props, forwardedRef) => {
|
|
46
|
+
const {
|
|
47
|
+
__scopePopper,
|
|
48
|
+
side = "bottom",
|
|
49
|
+
sideOffset = 0,
|
|
50
|
+
align = "center",
|
|
51
|
+
alignOffset = 0,
|
|
52
|
+
arrowPadding = 0,
|
|
53
|
+
avoidCollisions = true,
|
|
54
|
+
collisionBoundary = [],
|
|
55
|
+
collisionPadding: collisionPaddingProp = 0,
|
|
56
|
+
sticky = "partial",
|
|
57
|
+
hideWhenDetached = false,
|
|
58
|
+
updatePositionStrategy = "optimized",
|
|
59
|
+
onPlaced,
|
|
60
|
+
...contentProps
|
|
61
|
+
} = props;
|
|
62
|
+
const context = usePopperContext(CONTENT_NAME, __scopePopper);
|
|
63
|
+
const [content, setContent] = React.useState(null);
|
|
64
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
65
|
+
const [arrow$1, setArrow] = React.useState(null);
|
|
66
|
+
const arrowSize = useSize(arrow$1);
|
|
67
|
+
const arrowWidth = arrowSize?.width ?? 0;
|
|
68
|
+
const arrowHeight = arrowSize?.height ?? 0;
|
|
69
|
+
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
70
|
+
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
|
|
71
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
72
|
+
const hasExplicitBoundaries = boundary.length > 0;
|
|
73
|
+
const detectOverflowOptions = {
|
|
74
|
+
padding: collisionPadding,
|
|
75
|
+
boundary: boundary.filter(isNotNull),
|
|
76
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
77
|
+
altBoundary: hasExplicitBoundaries
|
|
78
|
+
};
|
|
79
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
80
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
81
|
+
strategy: "fixed",
|
|
82
|
+
placement: desiredPlacement,
|
|
83
|
+
whileElementsMounted: (...args) => {
|
|
84
|
+
const cleanup = autoUpdate(...args, {
|
|
85
|
+
animationFrame: updatePositionStrategy === "always"
|
|
86
|
+
});
|
|
87
|
+
return cleanup;
|
|
88
|
+
},
|
|
89
|
+
elements: {
|
|
90
|
+
reference: context.anchor
|
|
91
|
+
},
|
|
92
|
+
middleware: [
|
|
93
|
+
offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
|
|
94
|
+
avoidCollisions && shift({
|
|
95
|
+
mainAxis: true,
|
|
96
|
+
crossAxis: false,
|
|
97
|
+
limiter: sticky === "partial" ? limitShift() : void 0,
|
|
98
|
+
...detectOverflowOptions
|
|
99
|
+
}),
|
|
100
|
+
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
101
|
+
size({
|
|
102
|
+
...detectOverflowOptions,
|
|
103
|
+
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
104
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
105
|
+
const contentStyle = elements.floating.style;
|
|
106
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
107
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
108
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
109
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
110
|
+
}
|
|
111
|
+
}),
|
|
112
|
+
arrow$1 && arrow({ element: arrow$1, padding: arrowPadding }),
|
|
113
|
+
transformOrigin({ arrowWidth, arrowHeight }),
|
|
114
|
+
hideWhenDetached && hide({ strategy: "referenceHidden", ...detectOverflowOptions })
|
|
115
|
+
]
|
|
116
|
+
});
|
|
117
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
118
|
+
const handlePlaced = useCallbackRef(onPlaced);
|
|
119
|
+
useLayoutEffect2(() => {
|
|
120
|
+
if (isPositioned) {
|
|
121
|
+
handlePlaced?.();
|
|
122
|
+
}
|
|
123
|
+
}, [isPositioned, handlePlaced]);
|
|
124
|
+
const arrowX = middlewareData.arrow?.x;
|
|
125
|
+
const arrowY = middlewareData.arrow?.y;
|
|
126
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
127
|
+
const [contentZIndex, setContentZIndex] = React.useState();
|
|
128
|
+
useLayoutEffect2(() => {
|
|
129
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
130
|
+
}, [content]);
|
|
131
|
+
return /* @__PURE__ */ jsx(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
ref: refs.setFloating,
|
|
135
|
+
"data-radix-popper-content-wrapper": "",
|
|
136
|
+
style: {
|
|
137
|
+
...floatingStyles,
|
|
138
|
+
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
139
|
+
// keep off the page when measuring
|
|
140
|
+
minWidth: "max-content",
|
|
141
|
+
zIndex: contentZIndex,
|
|
142
|
+
["--radix-popper-transform-origin"]: [
|
|
143
|
+
middlewareData.transformOrigin?.x,
|
|
144
|
+
middlewareData.transformOrigin?.y
|
|
145
|
+
].join(" "),
|
|
146
|
+
// hide the content if using the hide middleware and should be hidden
|
|
147
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
148
|
+
// as if the PopperContent isn't there at all
|
|
149
|
+
...middlewareData.hide?.referenceHidden && {
|
|
150
|
+
visibility: "hidden",
|
|
151
|
+
pointerEvents: "none"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
dir: props.dir,
|
|
155
|
+
children: /* @__PURE__ */ jsx(
|
|
156
|
+
PopperContentProvider,
|
|
157
|
+
{
|
|
158
|
+
scope: __scopePopper,
|
|
159
|
+
placedSide,
|
|
160
|
+
onArrowChange: setArrow,
|
|
161
|
+
arrowX,
|
|
162
|
+
arrowY,
|
|
163
|
+
shouldHideArrow: cannotCenterArrow,
|
|
164
|
+
children: /* @__PURE__ */ jsx(
|
|
165
|
+
Primitive.div,
|
|
166
|
+
{
|
|
167
|
+
"data-side": placedSide,
|
|
168
|
+
"data-align": placedAlign,
|
|
169
|
+
...contentProps,
|
|
170
|
+
ref: composedRefs,
|
|
171
|
+
style: {
|
|
172
|
+
...contentProps.style,
|
|
173
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
174
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
175
|
+
animation: !isPositioned ? "none" : void 0
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
PopperContent.displayName = CONTENT_NAME;
|
|
186
|
+
var ARROW_NAME = "PopperArrow";
|
|
187
|
+
var OPPOSITE_SIDE = {
|
|
188
|
+
top: "bottom",
|
|
189
|
+
right: "left",
|
|
190
|
+
bottom: "top",
|
|
191
|
+
left: "right"
|
|
192
|
+
};
|
|
193
|
+
var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
194
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
195
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
196
|
+
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
197
|
+
return (
|
|
198
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
199
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
200
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
201
|
+
/* @__PURE__ */ jsx(
|
|
202
|
+
"span",
|
|
203
|
+
{
|
|
204
|
+
ref: contentContext.onArrowChange,
|
|
205
|
+
style: {
|
|
206
|
+
position: "absolute",
|
|
207
|
+
left: contentContext.arrowX,
|
|
208
|
+
top: contentContext.arrowY,
|
|
209
|
+
[baseSide]: 0,
|
|
210
|
+
transformOrigin: {
|
|
211
|
+
top: "",
|
|
212
|
+
right: "0 0",
|
|
213
|
+
bottom: "center 0",
|
|
214
|
+
left: "100% 0"
|
|
215
|
+
}[contentContext.placedSide],
|
|
216
|
+
transform: {
|
|
217
|
+
top: "translateY(100%)",
|
|
218
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
219
|
+
bottom: `rotate(180deg)`,
|
|
220
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
221
|
+
}[contentContext.placedSide],
|
|
222
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
223
|
+
},
|
|
224
|
+
children: /* @__PURE__ */ jsx(
|
|
225
|
+
Root,
|
|
226
|
+
{
|
|
227
|
+
...arrowProps,
|
|
228
|
+
ref: forwardedRef,
|
|
229
|
+
style: {
|
|
230
|
+
...arrowProps.style,
|
|
231
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
232
|
+
display: "block"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
);
|
|
239
|
+
});
|
|
240
|
+
PopperArrow.displayName = ARROW_NAME;
|
|
241
|
+
function isNotNull(value) {
|
|
242
|
+
return value !== null;
|
|
243
|
+
}
|
|
244
|
+
var transformOrigin = (options) => ({
|
|
245
|
+
name: "transformOrigin",
|
|
246
|
+
options,
|
|
247
|
+
fn(data) {
|
|
248
|
+
const { placement, rects, middlewareData } = data;
|
|
249
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
250
|
+
const isArrowHidden = cannotCenterArrow;
|
|
251
|
+
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
252
|
+
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
253
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
254
|
+
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
255
|
+
const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
|
|
256
|
+
const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
|
|
257
|
+
let x = "";
|
|
258
|
+
let y = "";
|
|
259
|
+
if (placedSide === "bottom") {
|
|
260
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
261
|
+
y = `${-arrowHeight}px`;
|
|
262
|
+
} else if (placedSide === "top") {
|
|
263
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
264
|
+
y = `${rects.floating.height + arrowHeight}px`;
|
|
265
|
+
} else if (placedSide === "right") {
|
|
266
|
+
x = `${-arrowHeight}px`;
|
|
267
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
268
|
+
} else if (placedSide === "left") {
|
|
269
|
+
x = `${rects.floating.width + arrowHeight}px`;
|
|
270
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
271
|
+
}
|
|
272
|
+
return { data: { x, y } };
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
function getSideAndAlignFromPlacement(placement) {
|
|
276
|
+
const [side, align = "center"] = placement.split("-");
|
|
277
|
+
return [side, align];
|
|
278
|
+
}
|
|
279
|
+
var Root2 = Popper;
|
|
280
|
+
var Anchor = PopperAnchor;
|
|
281
|
+
var Content = PopperContent;
|
|
282
|
+
var Arrow = PopperArrow;
|
|
283
|
+
|
|
284
|
+
export { Anchor, Arrow, Content, Popper, PopperAnchor, PopperArrow, PopperContent, Root2 as Root, createPopperScope };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const React = require('react');
|
|
5
|
+
const ReactDOM = require('react-dom');
|
|
6
|
+
const index$1 = require('../../../../../@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');
|
|
7
|
+
const index = require('../../../../../@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');
|
|
8
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
11
|
+
|
|
12
|
+
function _interopNamespaceCompat(e) {
|
|
13
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
14
|
+
const n = Object.create(null);
|
|
15
|
+
if (e) {
|
|
16
|
+
for (const k in e) {
|
|
17
|
+
n[k] = e[k];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
25
|
+
const ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
|
|
26
|
+
|
|
27
|
+
var PORTAL_NAME = "Portal";
|
|
28
|
+
var Portal = React__namespace.forwardRef((props, forwardedRef) => {
|
|
29
|
+
const { container: containerProp, ...portalProps } = props;
|
|
30
|
+
const [mounted, setMounted] = React__namespace.useState(false);
|
|
31
|
+
index.useLayoutEffect(() => setMounted(true), []);
|
|
32
|
+
const container = containerProp || mounted && globalThis?.document?.body;
|
|
33
|
+
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsxRuntime.jsx(index$1.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
34
|
+
});
|
|
35
|
+
Portal.displayName = PORTAL_NAME;
|
|
36
|
+
|
|
37
|
+
exports.Portal = Portal;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import ReactDOM__default from 'react-dom';
|
|
4
|
+
import { Primitive } from '../../../../../@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';
|
|
5
|
+
import { useLayoutEffect as useLayoutEffect2 } from '../../../../../@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';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var PORTAL_NAME = "Portal";
|
|
9
|
+
var Portal = React.forwardRef((props, forwardedRef) => {
|
|
10
|
+
const { container: containerProp, ...portalProps } = props;
|
|
11
|
+
const [mounted, setMounted] = React.useState(false);
|
|
12
|
+
useLayoutEffect2(() => setMounted(true), []);
|
|
13
|
+
const container = containerProp || mounted && globalThis?.document?.body;
|
|
14
|
+
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
15
|
+
});
|
|
16
|
+
Portal.displayName = PORTAL_NAME;
|
|
17
|
+
|
|
18
|
+
export { Portal };
|