@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,224 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const React = require('react');
|
|
5
|
+
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');
|
|
6
|
+
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');
|
|
7
|
+
const index = 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');
|
|
8
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
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 AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
25
|
+
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
26
|
+
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
27
|
+
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
28
|
+
var FocusScope = React__namespace.forwardRef((props, forwardedRef) => {
|
|
29
|
+
const {
|
|
30
|
+
loop = false,
|
|
31
|
+
trapped = false,
|
|
32
|
+
onMountAutoFocus: onMountAutoFocusProp,
|
|
33
|
+
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
34
|
+
...scopeProps
|
|
35
|
+
} = props;
|
|
36
|
+
const [container, setContainer] = React__namespace.useState(null);
|
|
37
|
+
const onMountAutoFocus = index.useCallbackRef(onMountAutoFocusProp);
|
|
38
|
+
const onUnmountAutoFocus = index.useCallbackRef(onUnmountAutoFocusProp);
|
|
39
|
+
const lastFocusedElementRef = React__namespace.useRef(null);
|
|
40
|
+
const composedRefs = index$1.useComposedRefs(forwardedRef, (node) => setContainer(node));
|
|
41
|
+
const focusScope = React__namespace.useRef({
|
|
42
|
+
paused: false,
|
|
43
|
+
pause() {
|
|
44
|
+
this.paused = true;
|
|
45
|
+
},
|
|
46
|
+
resume() {
|
|
47
|
+
this.paused = false;
|
|
48
|
+
}
|
|
49
|
+
}).current;
|
|
50
|
+
React__namespace.useEffect(() => {
|
|
51
|
+
if (trapped) {
|
|
52
|
+
let handleFocusIn2 = function(event) {
|
|
53
|
+
if (focusScope.paused || !container) return;
|
|
54
|
+
const target = event.target;
|
|
55
|
+
if (container.contains(target)) {
|
|
56
|
+
lastFocusedElementRef.current = target;
|
|
57
|
+
} else {
|
|
58
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
59
|
+
}
|
|
60
|
+
}, handleFocusOut2 = function(event) {
|
|
61
|
+
if (focusScope.paused || !container) return;
|
|
62
|
+
const relatedTarget = event.relatedTarget;
|
|
63
|
+
if (relatedTarget === null) return;
|
|
64
|
+
if (!container.contains(relatedTarget)) {
|
|
65
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
66
|
+
}
|
|
67
|
+
}, handleMutations2 = function(mutations) {
|
|
68
|
+
const focusedElement = document.activeElement;
|
|
69
|
+
if (focusedElement !== document.body) return;
|
|
70
|
+
for (const mutation of mutations) {
|
|
71
|
+
if (mutation.removedNodes.length > 0) focus(container);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
document.addEventListener("focusin", handleFocusIn2);
|
|
75
|
+
document.addEventListener("focusout", handleFocusOut2);
|
|
76
|
+
const mutationObserver = new MutationObserver(handleMutations2);
|
|
77
|
+
if (container) mutationObserver.observe(container, { childList: true, subtree: true });
|
|
78
|
+
return () => {
|
|
79
|
+
document.removeEventListener("focusin", handleFocusIn2);
|
|
80
|
+
document.removeEventListener("focusout", handleFocusOut2);
|
|
81
|
+
mutationObserver.disconnect();
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}, [trapped, container, focusScope.paused]);
|
|
85
|
+
React__namespace.useEffect(() => {
|
|
86
|
+
if (container) {
|
|
87
|
+
focusScopesStack.add(focusScope);
|
|
88
|
+
const previouslyFocusedElement = document.activeElement;
|
|
89
|
+
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
|
|
90
|
+
if (!hasFocusedCandidate) {
|
|
91
|
+
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
92
|
+
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
93
|
+
container.dispatchEvent(mountEvent);
|
|
94
|
+
if (!mountEvent.defaultPrevented) {
|
|
95
|
+
focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
96
|
+
if (document.activeElement === previouslyFocusedElement) {
|
|
97
|
+
focus(container);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return () => {
|
|
102
|
+
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
103
|
+
setTimeout(() => {
|
|
104
|
+
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
105
|
+
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
106
|
+
container.dispatchEvent(unmountEvent);
|
|
107
|
+
if (!unmountEvent.defaultPrevented) {
|
|
108
|
+
focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
109
|
+
}
|
|
110
|
+
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
111
|
+
focusScopesStack.remove(focusScope);
|
|
112
|
+
}, 0);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
|
|
116
|
+
const handleKeyDown = React__namespace.useCallback(
|
|
117
|
+
(event) => {
|
|
118
|
+
if (!loop && !trapped) return;
|
|
119
|
+
if (focusScope.paused) return;
|
|
120
|
+
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
121
|
+
const focusedElement = document.activeElement;
|
|
122
|
+
if (isTabKey && focusedElement) {
|
|
123
|
+
const container2 = event.currentTarget;
|
|
124
|
+
const [first, last] = getTabbableEdges(container2);
|
|
125
|
+
const hasTabbableElementsInside = first && last;
|
|
126
|
+
if (!hasTabbableElementsInside) {
|
|
127
|
+
if (focusedElement === container2) event.preventDefault();
|
|
128
|
+
} else {
|
|
129
|
+
if (!event.shiftKey && focusedElement === last) {
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
if (loop) focus(first, { select: true });
|
|
132
|
+
} else if (event.shiftKey && focusedElement === first) {
|
|
133
|
+
event.preventDefault();
|
|
134
|
+
if (loop) focus(last, { select: true });
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
[loop, trapped, focusScope.paused]
|
|
140
|
+
);
|
|
141
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$2.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
142
|
+
});
|
|
143
|
+
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
144
|
+
function focusFirst(candidates, { select = false } = {}) {
|
|
145
|
+
const previouslyFocusedElement = document.activeElement;
|
|
146
|
+
for (const candidate of candidates) {
|
|
147
|
+
focus(candidate, { select });
|
|
148
|
+
if (document.activeElement !== previouslyFocusedElement) return;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function getTabbableEdges(container) {
|
|
152
|
+
const candidates = getTabbableCandidates(container);
|
|
153
|
+
const first = findVisible(candidates, container);
|
|
154
|
+
const last = findVisible(candidates.reverse(), container);
|
|
155
|
+
return [first, last];
|
|
156
|
+
}
|
|
157
|
+
function getTabbableCandidates(container) {
|
|
158
|
+
const nodes = [];
|
|
159
|
+
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
160
|
+
acceptNode: (node) => {
|
|
161
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
162
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
163
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
167
|
+
return nodes;
|
|
168
|
+
}
|
|
169
|
+
function findVisible(elements, container) {
|
|
170
|
+
for (const element of elements) {
|
|
171
|
+
if (!isHidden(element, { upTo: container })) return element;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function isHidden(node, { upTo }) {
|
|
175
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
176
|
+
while (node) {
|
|
177
|
+
if (upTo !== void 0 && node === upTo) return false;
|
|
178
|
+
if (getComputedStyle(node).display === "none") return true;
|
|
179
|
+
node = node.parentElement;
|
|
180
|
+
}
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
function isSelectableInput(element) {
|
|
184
|
+
return element instanceof HTMLInputElement && "select" in element;
|
|
185
|
+
}
|
|
186
|
+
function focus(element, { select = false } = {}) {
|
|
187
|
+
if (element && element.focus) {
|
|
188
|
+
const previouslyFocusedElement = document.activeElement;
|
|
189
|
+
element.focus({ preventScroll: true });
|
|
190
|
+
if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
|
|
191
|
+
element.select();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var focusScopesStack = createFocusScopesStack();
|
|
195
|
+
function createFocusScopesStack() {
|
|
196
|
+
let stack = [];
|
|
197
|
+
return {
|
|
198
|
+
add(focusScope) {
|
|
199
|
+
const activeFocusScope = stack[0];
|
|
200
|
+
if (focusScope !== activeFocusScope) {
|
|
201
|
+
activeFocusScope?.pause();
|
|
202
|
+
}
|
|
203
|
+
stack = arrayRemove(stack, focusScope);
|
|
204
|
+
stack.unshift(focusScope);
|
|
205
|
+
},
|
|
206
|
+
remove(focusScope) {
|
|
207
|
+
stack = arrayRemove(stack, focusScope);
|
|
208
|
+
stack[0]?.resume();
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function arrayRemove(array, item) {
|
|
213
|
+
const updatedArray = [...array];
|
|
214
|
+
const index = updatedArray.indexOf(item);
|
|
215
|
+
if (index !== -1) {
|
|
216
|
+
updatedArray.splice(index, 1);
|
|
217
|
+
}
|
|
218
|
+
return updatedArray;
|
|
219
|
+
}
|
|
220
|
+
function removeLinks(items) {
|
|
221
|
+
return items.filter((item) => item.tagName !== "A");
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
exports.FocusScope = FocusScope;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
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';
|
|
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 { 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';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
9
|
+
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
10
|
+
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
11
|
+
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
12
|
+
var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
13
|
+
const {
|
|
14
|
+
loop = false,
|
|
15
|
+
trapped = false,
|
|
16
|
+
onMountAutoFocus: onMountAutoFocusProp,
|
|
17
|
+
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
18
|
+
...scopeProps
|
|
19
|
+
} = props;
|
|
20
|
+
const [container, setContainer] = React.useState(null);
|
|
21
|
+
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
22
|
+
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
23
|
+
const lastFocusedElementRef = React.useRef(null);
|
|
24
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
|
|
25
|
+
const focusScope = React.useRef({
|
|
26
|
+
paused: false,
|
|
27
|
+
pause() {
|
|
28
|
+
this.paused = true;
|
|
29
|
+
},
|
|
30
|
+
resume() {
|
|
31
|
+
this.paused = false;
|
|
32
|
+
}
|
|
33
|
+
}).current;
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (trapped) {
|
|
36
|
+
let handleFocusIn2 = function(event) {
|
|
37
|
+
if (focusScope.paused || !container) return;
|
|
38
|
+
const target = event.target;
|
|
39
|
+
if (container.contains(target)) {
|
|
40
|
+
lastFocusedElementRef.current = target;
|
|
41
|
+
} else {
|
|
42
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
43
|
+
}
|
|
44
|
+
}, handleFocusOut2 = function(event) {
|
|
45
|
+
if (focusScope.paused || !container) return;
|
|
46
|
+
const relatedTarget = event.relatedTarget;
|
|
47
|
+
if (relatedTarget === null) return;
|
|
48
|
+
if (!container.contains(relatedTarget)) {
|
|
49
|
+
focus(lastFocusedElementRef.current, { select: true });
|
|
50
|
+
}
|
|
51
|
+
}, handleMutations2 = function(mutations) {
|
|
52
|
+
const focusedElement = document.activeElement;
|
|
53
|
+
if (focusedElement !== document.body) return;
|
|
54
|
+
for (const mutation of mutations) {
|
|
55
|
+
if (mutation.removedNodes.length > 0) focus(container);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
document.addEventListener("focusin", handleFocusIn2);
|
|
59
|
+
document.addEventListener("focusout", handleFocusOut2);
|
|
60
|
+
const mutationObserver = new MutationObserver(handleMutations2);
|
|
61
|
+
if (container) mutationObserver.observe(container, { childList: true, subtree: true });
|
|
62
|
+
return () => {
|
|
63
|
+
document.removeEventListener("focusin", handleFocusIn2);
|
|
64
|
+
document.removeEventListener("focusout", handleFocusOut2);
|
|
65
|
+
mutationObserver.disconnect();
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}, [trapped, container, focusScope.paused]);
|
|
69
|
+
React.useEffect(() => {
|
|
70
|
+
if (container) {
|
|
71
|
+
focusScopesStack.add(focusScope);
|
|
72
|
+
const previouslyFocusedElement = document.activeElement;
|
|
73
|
+
const hasFocusedCandidate = container.contains(previouslyFocusedElement);
|
|
74
|
+
if (!hasFocusedCandidate) {
|
|
75
|
+
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
76
|
+
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
77
|
+
container.dispatchEvent(mountEvent);
|
|
78
|
+
if (!mountEvent.defaultPrevented) {
|
|
79
|
+
focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
80
|
+
if (document.activeElement === previouslyFocusedElement) {
|
|
81
|
+
focus(container);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return () => {
|
|
86
|
+
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
89
|
+
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
90
|
+
container.dispatchEvent(unmountEvent);
|
|
91
|
+
if (!unmountEvent.defaultPrevented) {
|
|
92
|
+
focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
93
|
+
}
|
|
94
|
+
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
95
|
+
focusScopesStack.remove(focusScope);
|
|
96
|
+
}, 0);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
|
|
100
|
+
const handleKeyDown = React.useCallback(
|
|
101
|
+
(event) => {
|
|
102
|
+
if (!loop && !trapped) return;
|
|
103
|
+
if (focusScope.paused) return;
|
|
104
|
+
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
105
|
+
const focusedElement = document.activeElement;
|
|
106
|
+
if (isTabKey && focusedElement) {
|
|
107
|
+
const container2 = event.currentTarget;
|
|
108
|
+
const [first, last] = getTabbableEdges(container2);
|
|
109
|
+
const hasTabbableElementsInside = first && last;
|
|
110
|
+
if (!hasTabbableElementsInside) {
|
|
111
|
+
if (focusedElement === container2) event.preventDefault();
|
|
112
|
+
} else {
|
|
113
|
+
if (!event.shiftKey && focusedElement === last) {
|
|
114
|
+
event.preventDefault();
|
|
115
|
+
if (loop) focus(first, { select: true });
|
|
116
|
+
} else if (event.shiftKey && focusedElement === first) {
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
if (loop) focus(last, { select: true });
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
[loop, trapped, focusScope.paused]
|
|
124
|
+
);
|
|
125
|
+
return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
126
|
+
});
|
|
127
|
+
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
128
|
+
function focusFirst(candidates, { select = false } = {}) {
|
|
129
|
+
const previouslyFocusedElement = document.activeElement;
|
|
130
|
+
for (const candidate of candidates) {
|
|
131
|
+
focus(candidate, { select });
|
|
132
|
+
if (document.activeElement !== previouslyFocusedElement) return;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function getTabbableEdges(container) {
|
|
136
|
+
const candidates = getTabbableCandidates(container);
|
|
137
|
+
const first = findVisible(candidates, container);
|
|
138
|
+
const last = findVisible(candidates.reverse(), container);
|
|
139
|
+
return [first, last];
|
|
140
|
+
}
|
|
141
|
+
function getTabbableCandidates(container) {
|
|
142
|
+
const nodes = [];
|
|
143
|
+
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
144
|
+
acceptNode: (node) => {
|
|
145
|
+
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
146
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
147
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
151
|
+
return nodes;
|
|
152
|
+
}
|
|
153
|
+
function findVisible(elements, container) {
|
|
154
|
+
for (const element of elements) {
|
|
155
|
+
if (!isHidden(element, { upTo: container })) return element;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function isHidden(node, { upTo }) {
|
|
159
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
160
|
+
while (node) {
|
|
161
|
+
if (upTo !== void 0 && node === upTo) return false;
|
|
162
|
+
if (getComputedStyle(node).display === "none") return true;
|
|
163
|
+
node = node.parentElement;
|
|
164
|
+
}
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
function isSelectableInput(element) {
|
|
168
|
+
return element instanceof HTMLInputElement && "select" in element;
|
|
169
|
+
}
|
|
170
|
+
function focus(element, { select = false } = {}) {
|
|
171
|
+
if (element && element.focus) {
|
|
172
|
+
const previouslyFocusedElement = document.activeElement;
|
|
173
|
+
element.focus({ preventScroll: true });
|
|
174
|
+
if (element !== previouslyFocusedElement && isSelectableInput(element) && select)
|
|
175
|
+
element.select();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
var focusScopesStack = createFocusScopesStack();
|
|
179
|
+
function createFocusScopesStack() {
|
|
180
|
+
let stack = [];
|
|
181
|
+
return {
|
|
182
|
+
add(focusScope) {
|
|
183
|
+
const activeFocusScope = stack[0];
|
|
184
|
+
if (focusScope !== activeFocusScope) {
|
|
185
|
+
activeFocusScope?.pause();
|
|
186
|
+
}
|
|
187
|
+
stack = arrayRemove(stack, focusScope);
|
|
188
|
+
stack.unshift(focusScope);
|
|
189
|
+
},
|
|
190
|
+
remove(focusScope) {
|
|
191
|
+
stack = arrayRemove(stack, focusScope);
|
|
192
|
+
stack[0]?.resume();
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function arrayRemove(array, item) {
|
|
197
|
+
const updatedArray = [...array];
|
|
198
|
+
const index = updatedArray.indexOf(item);
|
|
199
|
+
if (index !== -1) {
|
|
200
|
+
updatedArray.splice(index, 1);
|
|
201
|
+
}
|
|
202
|
+
return updatedArray;
|
|
203
|
+
}
|
|
204
|
+
function removeLinks(items) {
|
|
205
|
+
return items.filter((item) => item.tagName !== "A");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export { FocusScope };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
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');
|
|
5
|
+
|
|
6
|
+
function _interopNamespaceCompat(e) {
|
|
7
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
8
|
+
const n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
n[k] = e[k];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
n.default = e;
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
19
|
+
|
|
20
|
+
// packages/react/id/src/id.tsx
|
|
21
|
+
var useReactId = React__namespace[" useId ".trim().toString()] || (() => void 0);
|
|
22
|
+
var count = 0;
|
|
23
|
+
function useId(deterministicId) {
|
|
24
|
+
const [id, setId] = React__namespace.useState(useReactId());
|
|
25
|
+
index.useLayoutEffect(() => {
|
|
26
|
+
setId((reactId) => reactId ?? String(count++));
|
|
27
|
+
}, [deterministicId]);
|
|
28
|
+
return deterministicId || (id ? `radix-${id}` : "");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.useId = useId;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
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';
|
|
3
|
+
|
|
4
|
+
// packages/react/id/src/id.tsx
|
|
5
|
+
var useReactId = React[" useId ".trim().toString()] || (() => void 0);
|
|
6
|
+
var count = 0;
|
|
7
|
+
function useId(deterministicId) {
|
|
8
|
+
const [id, setId] = React.useState(useReactId());
|
|
9
|
+
useLayoutEffect2(() => {
|
|
10
|
+
setId((reactId) => reactId ?? String(count++));
|
|
11
|
+
}, [deterministicId]);
|
|
12
|
+
return deterministicId || (id ? `radix-${id}` : "");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { useId };
|