msw-dev-tool 1.1.21 → 1.1.23
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/dist/cjs/_virtual/_commonjsHelpers.js +11 -0
- package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/cjs/_virtual/index.js +6 -0
- package/dist/cjs/_virtual/index.js.map +1 -0
- package/dist/cjs/const/handler.js +10 -0
- package/dist/cjs/const/handler.js.map +1 -0
- package/dist/cjs/index.js +5 -29765
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/handlerStore.js +114 -0
- package/dist/cjs/lib/handlerStore.js.map +1 -0
- package/dist/cjs/lib/type.js +41 -0
- package/dist/cjs/lib/type.js.map +1 -0
- package/dist/cjs/lib/util.js +96 -0
- package/dist/cjs/lib/util.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.js +818 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +739 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +378 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +176 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +160 -0
- package/dist/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_number@1.1.0/node_modules/@radix-ui/number/dist/index.js +9 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_number@1.1.0/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js +14 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-arrow@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_x6p6stvosyj5xtena3xfahoytu/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-arrow@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_x6p6stvosyj5xtena3xfahoytu/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js +71 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +62 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js +102 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-dialog@1.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._tj6htj5pmg2es74uknz4aewlhy/node_modules/@radix-ui/react-dialog/dist/index.js +358 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-dialog@1.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._tj6htj5pmg2es74uknz4aewlhy/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js +40 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +51 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_fadkqkpo6fm4ufegukbxon2hs4/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_fadkqkpo6fm4ufegukbxon2hs4/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +181 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +37 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-label@2.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_2cqdrul4wd4nqxmfcrqwokv4ti/node_modules/@radix-ui/react-label/dist/index.js +45 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-label@2.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_2cqdrul4wd4nqxmfcrqwokv4ti/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-popper@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vskr4u3q77jmhehtw5db7awfeq/node_modules/@radix-ui/react-popper/dist/index.js +308 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-popper@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vskr4u3q77jmhehtw5db7awfeq/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js +152 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js +65 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-scroll-area@1.2.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_xx7wjcphuyz2zijkk43rojvdle/node_modules/@radix-ui/react-scroll-area/dist/index.js +752 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-scroll-area@1.2.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_xx7wjcphuyz2zijkk43rojvdle/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-select@2.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._h3snaisb2dmidicxlzdds2tiqu/node_modules/@radix-ui/react-select/dist/index.js +1168 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-select@2.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._h3snaisb2dmidicxlzdds2tiqu/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +106 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-tooltip@1.1.8_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3_zlakc5i4tpx4eat4ixff5zh6tq/node_modules/@radix-ui/react-tooltip/dist/index.js +407 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-tooltip@1.1.8_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3_zlakc5i4tpx4eat4ixff5zh6tq/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +68 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +37 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js +58 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.js +36 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js +11 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.js +33 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.props.js +8 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/button.js +29 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/button.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.js +36 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.props.js +8 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.js +33 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js +9 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.js +32 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js +15 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js +35 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js +9 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/slot.js +8 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/slot.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.js +32 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.js +39 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.props.js +11 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.js +36 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js +12 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.js +32 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.props.js +15 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.js +34 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js +10 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/visually-hidden.js +8 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/visually-hidden.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js +11 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js +11 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js +12 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js +27 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js +8 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js +7 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js +9 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/height.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/height.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js +10 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js +7 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/width.props.js +6 -0
- package/dist/cjs/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/width.props.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.6.3/node_modules/tslib/tslib.es6.js +60 -0
- package/dist/cjs/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.6.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.js +137 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +3012 -0
- package/dist/cjs/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js +139 -0
- package/dist/cjs/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +87 -0
- package/dist/cjs/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +15 -0
- package/dist/cjs/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +13 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +37 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +12 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +53 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +28 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +16 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +50 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +37 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +113 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
- package/dist/cjs/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
- package/dist/cjs/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +70 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
- package/dist/cjs/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
- package/dist/cjs/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
- package/dist/cjs/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e/node_modules/vaul/dist/index.js +1681 -0
- package/dist/cjs/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e/node_modules/vaul/dist/index.js.map +1 -0
- package/dist/cjs/store/uiControlStore.js +13 -0
- package/dist/cjs/store/uiControlStore.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/KeyValueInputList.js +71 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/KeyValueInputList.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/PathParamSetter.js +26 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/PathParamSetter.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/RequestPreview.js +71 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/RequestPreview.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/index.js +57 -0
- package/dist/cjs/ui/DevToolContent/HandlerDebugger/index.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerTable/BehaviorSelect.js +40 -0
- package/dist/cjs/ui/DevToolContent/HandlerTable/BehaviorSelect.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/HandlerTable/index.js +27 -0
- package/dist/cjs/ui/DevToolContent/HandlerTable/index.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/ToolButtonGroup.js +18 -0
- package/dist/cjs/ui/DevToolContent/ToolButtonGroup.js.map +1 -0
- package/dist/cjs/ui/DevToolContent/hook/useFlattenHandlersTable.js +75 -0
- package/dist/cjs/ui/DevToolContent/hook/useFlattenHandlersTable.js.map +1 -0
- package/dist/cjs/ui/MSWDevTool.js +59 -0
- package/dist/cjs/ui/MSWDevTool.js.map +1 -0
- package/dist/cjs/ui/ThemeProvider.js +19 -0
- package/dist/cjs/ui/ThemeProvider.js.map +1 -0
- package/dist/cjs/ui/Trigger.js +23 -0
- package/dist/cjs/ui/Trigger.js.map +1 -0
- package/dist/cjs/utils/url.js +43 -0
- package/dist/cjs/utils/url.js.map +1 -0
- package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
- package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/esm/_virtual/index.js +4 -0
- package/dist/esm/_virtual/index.js.map +1 -0
- package/dist/esm/const/handler.js +7 -0
- package/dist/esm/const/handler.js.map +1 -0
- package/dist/esm/index.js +2 -29748
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/handlerStore.js +110 -0
- package/dist/esm/lib/handlerStore.js.map +1 -0
- package/dist/esm/lib/type.js +37 -0
- package/dist/esm/lib/type.js.map +1 -0
- package/dist/esm/lib/util.js +88 -0
- package/dist/esm/lib/util.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.js +807 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_core@1.6.9/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +727 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +348 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_react-dom@2.1.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +155 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
- package/dist/esm/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_number@1.1.0/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_number@1.1.0/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-arrow@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_x6p6stvosyj5xtena3xfahoytu/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-arrow@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_x6p6stvosyj5xtena3xfahoytu/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js +69 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-collection@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@1_tagbd57u5fsqga6qdjecsll7fm/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +40 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-context@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-dialog@1.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._tj6htj5pmg2es74uknz4aewlhy/node_modules/@radix-ui/react-dialog/dist/index.js +320 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-dialog@1.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._tj6htj5pmg2es74uknz4aewlhy/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js +17 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-direction@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.5_@types_react-dom@18.3.5_@types_react@18.3.18__@types__nitdfoqpcbroetgllwgz3is5ai/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.1_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_fadkqkpo6fm4ufegukbxon2hs4/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_fadkqkpo6fm4ufegukbxon2hs4/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +173 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@18.3.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-id@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-label@2.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_2cqdrul4wd4nqxmfcrqwokv4ti/node_modules/@radix-ui/react-label/dist/index.js +24 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-label@2.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.1_2cqdrul4wd4nqxmfcrqwokv4ti/node_modules/@radix-ui/react-label/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-popper@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vskr4u3q77jmhehtw5db7awfeq/node_modules/@radix-ui/react-popper/dist/index.js +279 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-popper@1.2.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._vskr4u3q77jmhehtw5db7awfeq/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-portal@1.1.4_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._ulc3jfxcmrz2rfz7bui53djdtu/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js +131 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-presence@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18._pqwkltkxenlrsgmgun6icjiigu/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js +42 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-primitive@2.0.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18_sejcxqoscaweil2bvgwwavaoha/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-scroll-area@1.2.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_xx7wjcphuyz2zijkk43rojvdle/node_modules/@radix-ui/react-scroll-area/dist/index.js +721 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-scroll-area@1.2.3_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@_xx7wjcphuyz2zijkk43rojvdle/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-select@2.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._h3snaisb2dmidicxlzdds2tiqu/node_modules/@radix-ui/react-select/dist/index.js +1130 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-select@2.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._h3snaisb2dmidicxlzdds2tiqu/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +83 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-slot@1.1.2_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-tooltip@1.1.8_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3_zlakc5i4tpx4eat4ixff5zh6tq/node_modules/@radix-ui/react-tooltip/dist/index.js +381 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-tooltip@1.1.8_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3_zlakc5i4tpx4eat4ixff5zh6tq/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +47 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +16 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-use-size@1.1.0_@types_react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js +36 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_re_omyrydx3gc2oidaiqb4gsovieq/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.js +15 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js +9 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.js +12 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.props.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/box.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/button.js +8 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/button.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.js +15 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.props.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/container.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.js +12 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js +7 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.js +11 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js +13 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js +14 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js +7 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/slot.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/slot.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.js +11 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.js +12 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.props.js +7 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/table.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.js +14 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js +9 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.js +11 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.props.js +13 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/text.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.js +12 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js +8 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/visually-hidden.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/components/visually-hidden.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js +9 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js +9 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js +8 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js +6 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/height.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/height.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js +8 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/width.props.js +4 -0
- package/dist/esm/node_modules/.pnpm/@radix-ui_themes@3.2.1_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_rea_l62yjk6twgw4yi4chvzddg3hmm/node_modules/@radix-ui/themes/dist/esm/props/width.props.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.6.3/node_modules/tslib/tslib.es6.js +57 -0
- package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.6.3/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.js +75 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_react-table@8.20.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-table/build/lib/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js +2970 -0
- package/dist/esm/node_modules/.pnpm/@tanstack_table-core@8.20.5/node_modules/@tanstack/table-core/build/lib/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js +137 -0
- package/dist/esm/node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +83 -0
- package/dist/esm/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +13 -0
- package/dist/esm/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +35 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +51 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +26 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +46 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +35 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/esm/node_modules/.pnpm/react-remove-scroll@2.6.3_@types_react@18.3.18_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
- package/dist/esm/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@18.3.18_react@18.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +49 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
- package/dist/esm/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.18_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
- package/dist/esm/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/dist/esm/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.18_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/esm/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e/node_modules/vaul/dist/index.js +1655 -0
- package/dist/esm/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3.18_react-dom@18.3._7iqkcrcg5qjc3n2ixm6rnrnx3e/node_modules/vaul/dist/index.js.map +1 -0
- package/dist/esm/store/uiControlStore.js +9 -0
- package/dist/esm/store/uiControlStore.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/KeyValueInputList.js +69 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/KeyValueInputList.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/PathParamSetter.js +24 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/PathParamSetter.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/RequestPreview.js +69 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/RequestPreview.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/index.js +55 -0
- package/dist/esm/ui/DevToolContent/HandlerDebugger/index.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerTable/BehaviorSelect.js +38 -0
- package/dist/esm/ui/DevToolContent/HandlerTable/BehaviorSelect.js.map +1 -0
- package/dist/esm/ui/DevToolContent/HandlerTable/index.js +25 -0
- package/dist/esm/ui/DevToolContent/HandlerTable/index.js.map +1 -0
- package/dist/esm/ui/DevToolContent/ToolButtonGroup.js +16 -0
- package/dist/esm/ui/DevToolContent/ToolButtonGroup.js.map +1 -0
- package/dist/esm/ui/DevToolContent/hook/useFlattenHandlersTable.js +73 -0
- package/dist/esm/ui/DevToolContent/hook/useFlattenHandlersTable.js.map +1 -0
- package/dist/esm/ui/MSWDevTool.js +57 -0
- package/dist/esm/ui/MSWDevTool.js.map +1 -0
- package/dist/esm/ui/ThemeProvider.js +17 -0
- package/dist/esm/ui/ThemeProvider.js.map +1 -0
- package/dist/esm/ui/Trigger.js +21 -0
- package/dist/esm/ui/Trigger.js.map +1 -0
- package/dist/esm/utils/url.js +39 -0
- package/dist/esm/utils/url.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,1655 @@
|
|
1
|
+
import { Overlay as Overlay$1, Content as Content$1, Trigger, Close, Title, Description, Root as Root$1, Portal as Portal$1 } from '../../../../@radix-ui_react-dialog@1.1.6_@types_react-dom@18.3.5_@types_react@18.3.18__@types_react@18.3._tj6htj5pmg2es74uknz4aewlhy/node_modules/@radix-ui/react-dialog/dist/index.js';
|
2
|
+
import * as React from 'react';
|
3
|
+
import React__default, { useMemo, useLayoutEffect, useEffect } from 'react';
|
4
|
+
|
5
|
+
function __insertCSS(code) {
|
6
|
+
if (!code || typeof document == 'undefined') return
|
7
|
+
let head = document.head || document.getElementsByTagName('head')[0];
|
8
|
+
let style = document.createElement('style');
|
9
|
+
style.type = 'text/css';
|
10
|
+
head.appendChild(style)
|
11
|
+
;style.styleSheet ? (style.styleSheet.cssText = code) : style.appendChild(document.createTextNode(code));
|
12
|
+
}
|
13
|
+
|
14
|
+
const DrawerContext = React__default.createContext({
|
15
|
+
drawerRef: {
|
16
|
+
current: null
|
17
|
+
},
|
18
|
+
overlayRef: {
|
19
|
+
current: null
|
20
|
+
},
|
21
|
+
onPress: ()=>{},
|
22
|
+
onRelease: ()=>{},
|
23
|
+
onDrag: ()=>{},
|
24
|
+
onNestedDrag: ()=>{},
|
25
|
+
onNestedOpenChange: ()=>{},
|
26
|
+
onNestedRelease: ()=>{},
|
27
|
+
openProp: undefined,
|
28
|
+
dismissible: false,
|
29
|
+
isOpen: false,
|
30
|
+
isDragging: false,
|
31
|
+
keyboardIsOpen: {
|
32
|
+
current: false
|
33
|
+
},
|
34
|
+
snapPointsOffset: null,
|
35
|
+
snapPoints: null,
|
36
|
+
handleOnly: false,
|
37
|
+
modal: false,
|
38
|
+
shouldFade: false,
|
39
|
+
activeSnapPoint: null,
|
40
|
+
onOpenChange: ()=>{},
|
41
|
+
setActiveSnapPoint: ()=>{},
|
42
|
+
closeDrawer: ()=>{},
|
43
|
+
direction: 'bottom',
|
44
|
+
shouldAnimate: {
|
45
|
+
current: true
|
46
|
+
},
|
47
|
+
shouldScaleBackground: false,
|
48
|
+
setBackgroundColorOnScale: true,
|
49
|
+
noBodyStyles: false,
|
50
|
+
container: null,
|
51
|
+
autoFocus: false
|
52
|
+
});
|
53
|
+
const useDrawerContext = ()=>{
|
54
|
+
const context = React__default.useContext(DrawerContext);
|
55
|
+
if (!context) {
|
56
|
+
throw new Error('useDrawerContext must be used within a Drawer.Root');
|
57
|
+
}
|
58
|
+
return context;
|
59
|
+
};
|
60
|
+
|
61
|
+
__insertCSS("[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(\n[data-state=closed]\n){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}");
|
62
|
+
|
63
|
+
function isMobileFirefox() {
|
64
|
+
const userAgent = navigator.userAgent;
|
65
|
+
return typeof window !== 'undefined' && (/Firefox/.test(userAgent) && /Mobile/.test(userAgent) || // Android Firefox
|
66
|
+
/FxiOS/.test(userAgent) // iOS Firefox
|
67
|
+
);
|
68
|
+
}
|
69
|
+
function isMac() {
|
70
|
+
return testPlatform(/^Mac/);
|
71
|
+
}
|
72
|
+
function isIPhone() {
|
73
|
+
return testPlatform(/^iPhone/);
|
74
|
+
}
|
75
|
+
function isSafari() {
|
76
|
+
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
77
|
+
}
|
78
|
+
function isIPad() {
|
79
|
+
return testPlatform(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
80
|
+
isMac() && navigator.maxTouchPoints > 1;
|
81
|
+
}
|
82
|
+
function isIOS() {
|
83
|
+
return isIPhone() || isIPad();
|
84
|
+
}
|
85
|
+
function testPlatform(re) {
|
86
|
+
return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.platform) : undefined;
|
87
|
+
}
|
88
|
+
|
89
|
+
// This code comes from https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/overlays/src/usePreventScroll.ts
|
90
|
+
const KEYBOARD_BUFFER = 24;
|
91
|
+
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
92
|
+
function chain$1(...callbacks) {
|
93
|
+
return (...args)=>{
|
94
|
+
for (let callback of callbacks){
|
95
|
+
if (typeof callback === 'function') {
|
96
|
+
callback(...args);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
};
|
100
|
+
}
|
101
|
+
// @ts-ignore
|
102
|
+
const visualViewport = typeof document !== 'undefined' && window.visualViewport;
|
103
|
+
function isScrollable(node) {
|
104
|
+
let style = window.getComputedStyle(node);
|
105
|
+
return /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY);
|
106
|
+
}
|
107
|
+
function getScrollParent(node) {
|
108
|
+
if (isScrollable(node)) {
|
109
|
+
node = node.parentElement;
|
110
|
+
}
|
111
|
+
while(node && !isScrollable(node)){
|
112
|
+
node = node.parentElement;
|
113
|
+
}
|
114
|
+
return node || document.scrollingElement || document.documentElement;
|
115
|
+
}
|
116
|
+
// HTML input types that do not cause the software keyboard to appear.
|
117
|
+
const nonTextInputTypes = new Set([
|
118
|
+
'checkbox',
|
119
|
+
'radio',
|
120
|
+
'range',
|
121
|
+
'color',
|
122
|
+
'file',
|
123
|
+
'image',
|
124
|
+
'button',
|
125
|
+
'submit',
|
126
|
+
'reset'
|
127
|
+
]);
|
128
|
+
// The number of active usePreventScroll calls. Used to determine whether to revert back to the original page style/scroll position
|
129
|
+
let preventScrollCount = 0;
|
130
|
+
let restore;
|
131
|
+
/**
|
132
|
+
* Prevents scrolling on the document body on mount, and
|
133
|
+
* restores it on unmount. Also ensures that content does not
|
134
|
+
* shift due to the scrollbars disappearing.
|
135
|
+
*/ function usePreventScroll(options = {}) {
|
136
|
+
let { isDisabled } = options;
|
137
|
+
useIsomorphicLayoutEffect(()=>{
|
138
|
+
if (isDisabled) {
|
139
|
+
return;
|
140
|
+
}
|
141
|
+
preventScrollCount++;
|
142
|
+
if (preventScrollCount === 1) {
|
143
|
+
if (isIOS()) {
|
144
|
+
restore = preventScrollMobileSafari();
|
145
|
+
}
|
146
|
+
}
|
147
|
+
return ()=>{
|
148
|
+
preventScrollCount--;
|
149
|
+
if (preventScrollCount === 0) {
|
150
|
+
restore == null ? void 0 : restore();
|
151
|
+
}
|
152
|
+
};
|
153
|
+
}, [
|
154
|
+
isDisabled
|
155
|
+
]);
|
156
|
+
}
|
157
|
+
// Mobile Safari is a whole different beast. Even with overflow: hidden,
|
158
|
+
// it still scrolls the page in many situations:
|
159
|
+
//
|
160
|
+
// 1. When the bottom toolbar and address bar are collapsed, page scrolling is always allowed.
|
161
|
+
// 2. When the keyboard is visible, the viewport does not resize. Instead, the keyboard covers part of
|
162
|
+
// it, so it becomes scrollable.
|
163
|
+
// 3. When tapping on an input, the page always scrolls so that the input is centered in the visual viewport.
|
164
|
+
// This may cause even fixed position elements to scroll off the screen.
|
165
|
+
// 4. When using the next/previous buttons in the keyboard to navigate between inputs, the whole page always
|
166
|
+
// scrolls, even if the input is inside a nested scrollable element that could be scrolled instead.
|
167
|
+
//
|
168
|
+
// In order to work around these cases, and prevent scrolling without jankiness, we do a few things:
|
169
|
+
//
|
170
|
+
// 1. Prevent default on `touchmove` events that are not in a scrollable element. This prevents touch scrolling
|
171
|
+
// on the window.
|
172
|
+
// 2. Prevent default on `touchmove` events inside a scrollable element when the scroll position is at the
|
173
|
+
// top or bottom. This avoids the whole page scrolling instead, but does prevent overscrolling.
|
174
|
+
// 3. Prevent default on `touchend` events on input elements and handle focusing the element ourselves.
|
175
|
+
// 4. When focusing an input, apply a transform to trick Safari into thinking the input is at the top
|
176
|
+
// of the page, which prevents it from scrolling the page. After the input is focused, scroll the element
|
177
|
+
// into view ourselves, without scrolling the whole page.
|
178
|
+
// 5. Offset the body by the scroll position using a negative margin and scroll to the top. This should appear the
|
179
|
+
// same visually, but makes the actual scroll position always zero. This is required to make all of the
|
180
|
+
// above work or Safari will still try to scroll the page when focusing an input.
|
181
|
+
// 6. As a last resort, handle window scroll events, and scroll back to the top. This can happen when attempting
|
182
|
+
// to navigate to an input with the next/previous buttons that's outside a modal.
|
183
|
+
function preventScrollMobileSafari() {
|
184
|
+
let scrollable;
|
185
|
+
let lastY = 0;
|
186
|
+
let onTouchStart = (e)=>{
|
187
|
+
// Store the nearest scrollable parent element from the element that the user touched.
|
188
|
+
scrollable = getScrollParent(e.target);
|
189
|
+
if (scrollable === document.documentElement && scrollable === document.body) {
|
190
|
+
return;
|
191
|
+
}
|
192
|
+
lastY = e.changedTouches[0].pageY;
|
193
|
+
};
|
194
|
+
let onTouchMove = (e)=>{
|
195
|
+
// Prevent scrolling the window.
|
196
|
+
if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
|
197
|
+
e.preventDefault();
|
198
|
+
return;
|
199
|
+
}
|
200
|
+
// Prevent scrolling up when at the top and scrolling down when at the bottom
|
201
|
+
// of a nested scrollable area, otherwise mobile Safari will start scrolling
|
202
|
+
// the window instead. Unfortunately, this disables bounce scrolling when at
|
203
|
+
// the top but it's the best we can do.
|
204
|
+
let y = e.changedTouches[0].pageY;
|
205
|
+
let scrollTop = scrollable.scrollTop;
|
206
|
+
let bottom = scrollable.scrollHeight - scrollable.clientHeight;
|
207
|
+
if (bottom === 0) {
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
if (scrollTop <= 0 && y > lastY || scrollTop >= bottom && y < lastY) {
|
211
|
+
e.preventDefault();
|
212
|
+
}
|
213
|
+
lastY = y;
|
214
|
+
};
|
215
|
+
let onTouchEnd = (e)=>{
|
216
|
+
let target = e.target;
|
217
|
+
// Apply this change if we're not already focused on the target element
|
218
|
+
if (isInput(target) && target !== document.activeElement) {
|
219
|
+
e.preventDefault();
|
220
|
+
// Apply a transform to trick Safari into thinking the input is at the top of the page
|
221
|
+
// so it doesn't try to scroll it into view. When tapping on an input, this needs to
|
222
|
+
// be done before the "focus" event, so we have to focus the element ourselves.
|
223
|
+
target.style.transform = 'translateY(-2000px)';
|
224
|
+
target.focus();
|
225
|
+
requestAnimationFrame(()=>{
|
226
|
+
target.style.transform = '';
|
227
|
+
});
|
228
|
+
}
|
229
|
+
};
|
230
|
+
let onFocus = (e)=>{
|
231
|
+
let target = e.target;
|
232
|
+
if (isInput(target)) {
|
233
|
+
// Transform also needs to be applied in the focus event in cases where focus moves
|
234
|
+
// other than tapping on an input directly, e.g. the next/previous buttons in the
|
235
|
+
// software keyboard. In these cases, it seems applying the transform in the focus event
|
236
|
+
// is good enough, whereas when tapping an input, it must be done before the focus event. 🤷♂️
|
237
|
+
target.style.transform = 'translateY(-2000px)';
|
238
|
+
requestAnimationFrame(()=>{
|
239
|
+
target.style.transform = '';
|
240
|
+
// This will have prevented the browser from scrolling the focused element into view,
|
241
|
+
// so we need to do this ourselves in a way that doesn't cause the whole page to scroll.
|
242
|
+
if (visualViewport) {
|
243
|
+
if (visualViewport.height < window.innerHeight) {
|
244
|
+
// If the keyboard is already visible, do this after one additional frame
|
245
|
+
// to wait for the transform to be removed.
|
246
|
+
requestAnimationFrame(()=>{
|
247
|
+
scrollIntoView(target);
|
248
|
+
});
|
249
|
+
} else {
|
250
|
+
// Otherwise, wait for the visual viewport to resize before scrolling so we can
|
251
|
+
// measure the correct position to scroll to.
|
252
|
+
visualViewport.addEventListener('resize', ()=>scrollIntoView(target), {
|
253
|
+
once: true
|
254
|
+
});
|
255
|
+
}
|
256
|
+
}
|
257
|
+
});
|
258
|
+
}
|
259
|
+
};
|
260
|
+
let onWindowScroll = ()=>{
|
261
|
+
// Last resort. If the window scrolled, scroll it back to the top.
|
262
|
+
// It should always be at the top because the body will have a negative margin (see below).
|
263
|
+
window.scrollTo(0, 0);
|
264
|
+
};
|
265
|
+
// Record the original scroll position so we can restore it.
|
266
|
+
// Then apply a negative margin to the body to offset it by the scroll position. This will
|
267
|
+
// enable us to scroll the window to the top, which is required for the rest of this to work.
|
268
|
+
let scrollX = window.pageXOffset;
|
269
|
+
let scrollY = window.pageYOffset;
|
270
|
+
let restoreStyles = chain$1(setStyle(document.documentElement, 'paddingRight', `${window.innerWidth - document.documentElement.clientWidth}px`));
|
271
|
+
// Scroll to the top. The negative margin on the body will make this appear the same.
|
272
|
+
window.scrollTo(0, 0);
|
273
|
+
let removeEvents = chain$1(addEvent(document, 'touchstart', onTouchStart, {
|
274
|
+
passive: false,
|
275
|
+
capture: true
|
276
|
+
}), addEvent(document, 'touchmove', onTouchMove, {
|
277
|
+
passive: false,
|
278
|
+
capture: true
|
279
|
+
}), addEvent(document, 'touchend', onTouchEnd, {
|
280
|
+
passive: false,
|
281
|
+
capture: true
|
282
|
+
}), addEvent(document, 'focus', onFocus, true), addEvent(window, 'scroll', onWindowScroll));
|
283
|
+
return ()=>{
|
284
|
+
// Restore styles and scroll the page back to where it was.
|
285
|
+
restoreStyles();
|
286
|
+
removeEvents();
|
287
|
+
window.scrollTo(scrollX, scrollY);
|
288
|
+
};
|
289
|
+
}
|
290
|
+
// Sets a CSS property on an element, and returns a function to revert it to the previous value.
|
291
|
+
function setStyle(element, style, value) {
|
292
|
+
// https://github.com/microsoft/TypeScript/issues/17827#issuecomment-391663310
|
293
|
+
// @ts-ignore
|
294
|
+
let cur = element.style[style];
|
295
|
+
// @ts-ignore
|
296
|
+
element.style[style] = value;
|
297
|
+
return ()=>{
|
298
|
+
// @ts-ignore
|
299
|
+
element.style[style] = cur;
|
300
|
+
};
|
301
|
+
}
|
302
|
+
// Adds an event listener to an element, and returns a function to remove it.
|
303
|
+
function addEvent(target, event, handler, options) {
|
304
|
+
// @ts-ignore
|
305
|
+
target.addEventListener(event, handler, options);
|
306
|
+
return ()=>{
|
307
|
+
// @ts-ignore
|
308
|
+
target.removeEventListener(event, handler, options);
|
309
|
+
};
|
310
|
+
}
|
311
|
+
function scrollIntoView(target) {
|
312
|
+
let root = document.scrollingElement || document.documentElement;
|
313
|
+
while(target && target !== root){
|
314
|
+
// Find the parent scrollable element and adjust the scroll position if the target is not already in view.
|
315
|
+
let scrollable = getScrollParent(target);
|
316
|
+
if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== target) {
|
317
|
+
let scrollableTop = scrollable.getBoundingClientRect().top;
|
318
|
+
let targetTop = target.getBoundingClientRect().top;
|
319
|
+
let targetBottom = target.getBoundingClientRect().bottom;
|
320
|
+
// Buffer is needed for some edge cases
|
321
|
+
const keyboardHeight = scrollable.getBoundingClientRect().bottom + KEYBOARD_BUFFER;
|
322
|
+
if (targetBottom > keyboardHeight) {
|
323
|
+
scrollable.scrollTop += targetTop - scrollableTop;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
// @ts-ignore
|
327
|
+
target = scrollable.parentElement;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
function isInput(target) {
|
331
|
+
return target instanceof HTMLInputElement && !nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
332
|
+
}
|
333
|
+
|
334
|
+
// This code comes from https://github.com/radix-ui/primitives/tree/main/packages/react/compose-refs
|
335
|
+
/**
|
336
|
+
* Set a given ref to a given value
|
337
|
+
* This utility takes care of different types of refs: callback refs and RefObject(s)
|
338
|
+
*/ function setRef(ref, value) {
|
339
|
+
if (typeof ref === 'function') {
|
340
|
+
ref(value);
|
341
|
+
} else if (ref !== null && ref !== undefined) {
|
342
|
+
ref.current = value;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
/**
|
346
|
+
* A utility to compose multiple refs together
|
347
|
+
* Accepts callback refs and RefObject(s)
|
348
|
+
*/ function composeRefs(...refs) {
|
349
|
+
return (node)=>refs.forEach((ref)=>setRef(ref, node));
|
350
|
+
}
|
351
|
+
/**
|
352
|
+
* A custom hook that composes multiple refs
|
353
|
+
* Accepts callback refs and RefObject(s)
|
354
|
+
*/ function useComposedRefs(...refs) {
|
355
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
356
|
+
return React.useCallback(composeRefs(...refs), refs);
|
357
|
+
}
|
358
|
+
|
359
|
+
const cache = new WeakMap();
|
360
|
+
function set(el, styles, ignoreCache = false) {
|
361
|
+
if (!el || !(el instanceof HTMLElement)) return;
|
362
|
+
let originalStyles = {};
|
363
|
+
Object.entries(styles).forEach(([key, value])=>{
|
364
|
+
if (key.startsWith('--')) {
|
365
|
+
el.style.setProperty(key, value);
|
366
|
+
return;
|
367
|
+
}
|
368
|
+
originalStyles[key] = el.style[key];
|
369
|
+
el.style[key] = value;
|
370
|
+
});
|
371
|
+
if (ignoreCache) return;
|
372
|
+
cache.set(el, originalStyles);
|
373
|
+
}
|
374
|
+
function reset(el, prop) {
|
375
|
+
if (!el || !(el instanceof HTMLElement)) return;
|
376
|
+
let originalStyles = cache.get(el);
|
377
|
+
if (!originalStyles) {
|
378
|
+
return;
|
379
|
+
}
|
380
|
+
{
|
381
|
+
el.style[prop] = originalStyles[prop];
|
382
|
+
}
|
383
|
+
}
|
384
|
+
const isVertical = (direction)=>{
|
385
|
+
switch(direction){
|
386
|
+
case 'top':
|
387
|
+
case 'bottom':
|
388
|
+
return true;
|
389
|
+
case 'left':
|
390
|
+
case 'right':
|
391
|
+
return false;
|
392
|
+
default:
|
393
|
+
return direction;
|
394
|
+
}
|
395
|
+
};
|
396
|
+
function getTranslate(element, direction) {
|
397
|
+
if (!element) {
|
398
|
+
return null;
|
399
|
+
}
|
400
|
+
const style = window.getComputedStyle(element);
|
401
|
+
const transform = // @ts-ignore
|
402
|
+
style.transform || style.webkitTransform || style.mozTransform;
|
403
|
+
let mat = transform.match(/^matrix3d\((.+)\)$/);
|
404
|
+
if (mat) {
|
405
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix3d
|
406
|
+
return parseFloat(mat[1].split(', ')[isVertical(direction) ? 13 : 12]);
|
407
|
+
}
|
408
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix
|
409
|
+
mat = transform.match(/^matrix\((.+)\)$/);
|
410
|
+
return mat ? parseFloat(mat[1].split(', ')[isVertical(direction) ? 5 : 4]) : null;
|
411
|
+
}
|
412
|
+
function dampenValue(v) {
|
413
|
+
return 8 * (Math.log(v + 1) - 2);
|
414
|
+
}
|
415
|
+
function assignStyle(element, style) {
|
416
|
+
if (!element) return ()=>{};
|
417
|
+
const prevStyle = element.style.cssText;
|
418
|
+
Object.assign(element.style, style);
|
419
|
+
return ()=>{
|
420
|
+
element.style.cssText = prevStyle;
|
421
|
+
};
|
422
|
+
}
|
423
|
+
/**
|
424
|
+
* Receives functions as arguments and returns a new function that calls all.
|
425
|
+
*/ function chain(...fns) {
|
426
|
+
return (...args)=>{
|
427
|
+
for (const fn of fns){
|
428
|
+
if (typeof fn === 'function') {
|
429
|
+
// @ts-ignore
|
430
|
+
fn(...args);
|
431
|
+
}
|
432
|
+
}
|
433
|
+
};
|
434
|
+
}
|
435
|
+
|
436
|
+
const TRANSITIONS = {
|
437
|
+
DURATION: 0.5,
|
438
|
+
EASE: [
|
439
|
+
0.32,
|
440
|
+
0.72,
|
441
|
+
0,
|
442
|
+
1
|
443
|
+
]
|
444
|
+
};
|
445
|
+
const VELOCITY_THRESHOLD = 0.4;
|
446
|
+
const CLOSE_THRESHOLD = 0.25;
|
447
|
+
const SCROLL_LOCK_TIMEOUT = 100;
|
448
|
+
const BORDER_RADIUS = 8;
|
449
|
+
const NESTED_DISPLACEMENT = 16;
|
450
|
+
const WINDOW_TOP_OFFSET = 26;
|
451
|
+
const DRAG_CLASS = 'vaul-dragging';
|
452
|
+
|
453
|
+
// This code comes from https://github.com/radix-ui/primitives/blob/main/packages/react/use-controllable-state/src/useControllableState.tsx
|
454
|
+
function useCallbackRef(callback) {
|
455
|
+
const callbackRef = React__default.useRef(callback);
|
456
|
+
React__default.useEffect(()=>{
|
457
|
+
callbackRef.current = callback;
|
458
|
+
});
|
459
|
+
// https://github.com/facebook/react/issues/19240
|
460
|
+
return React__default.useMemo(()=>(...args)=>callbackRef.current == null ? void 0 : callbackRef.current.call(callbackRef, ...args), []);
|
461
|
+
}
|
462
|
+
function useUncontrolledState({ defaultProp, onChange }) {
|
463
|
+
const uncontrolledState = React__default.useState(defaultProp);
|
464
|
+
const [value] = uncontrolledState;
|
465
|
+
const prevValueRef = React__default.useRef(value);
|
466
|
+
const handleChange = useCallbackRef(onChange);
|
467
|
+
React__default.useEffect(()=>{
|
468
|
+
if (prevValueRef.current !== value) {
|
469
|
+
handleChange(value);
|
470
|
+
prevValueRef.current = value;
|
471
|
+
}
|
472
|
+
}, [
|
473
|
+
value,
|
474
|
+
prevValueRef,
|
475
|
+
handleChange
|
476
|
+
]);
|
477
|
+
return uncontrolledState;
|
478
|
+
}
|
479
|
+
function useControllableState({ prop, defaultProp, onChange = ()=>{} }) {
|
480
|
+
const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({
|
481
|
+
defaultProp,
|
482
|
+
onChange
|
483
|
+
});
|
484
|
+
const isControlled = prop !== undefined;
|
485
|
+
const value = isControlled ? prop : uncontrolledProp;
|
486
|
+
const handleChange = useCallbackRef(onChange);
|
487
|
+
const setValue = React__default.useCallback((nextValue)=>{
|
488
|
+
if (isControlled) {
|
489
|
+
const setter = nextValue;
|
490
|
+
const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
|
491
|
+
if (value !== prop) handleChange(value);
|
492
|
+
} else {
|
493
|
+
setUncontrolledProp(nextValue);
|
494
|
+
}
|
495
|
+
}, [
|
496
|
+
isControlled,
|
497
|
+
prop,
|
498
|
+
setUncontrolledProp,
|
499
|
+
handleChange
|
500
|
+
]);
|
501
|
+
return [
|
502
|
+
value,
|
503
|
+
setValue
|
504
|
+
];
|
505
|
+
}
|
506
|
+
|
507
|
+
function useSnapPoints({ activeSnapPointProp, setActiveSnapPointProp, snapPoints, drawerRef, overlayRef, fadeFromIndex, onSnapPointChange, direction = 'bottom', container, snapToSequentialPoint }) {
|
508
|
+
const [activeSnapPoint, setActiveSnapPoint] = useControllableState({
|
509
|
+
prop: activeSnapPointProp,
|
510
|
+
defaultProp: snapPoints == null ? void 0 : snapPoints[0],
|
511
|
+
onChange: setActiveSnapPointProp
|
512
|
+
});
|
513
|
+
const [windowDimensions, setWindowDimensions] = React__default.useState(typeof window !== 'undefined' ? {
|
514
|
+
innerWidth: window.innerWidth,
|
515
|
+
innerHeight: window.innerHeight
|
516
|
+
} : undefined);
|
517
|
+
React__default.useEffect(()=>{
|
518
|
+
function onResize() {
|
519
|
+
setWindowDimensions({
|
520
|
+
innerWidth: window.innerWidth,
|
521
|
+
innerHeight: window.innerHeight
|
522
|
+
});
|
523
|
+
}
|
524
|
+
window.addEventListener('resize', onResize);
|
525
|
+
return ()=>window.removeEventListener('resize', onResize);
|
526
|
+
}, []);
|
527
|
+
const isLastSnapPoint = React__default.useMemo(()=>activeSnapPoint === (snapPoints == null ? void 0 : snapPoints[snapPoints.length - 1]) || null, [
|
528
|
+
snapPoints,
|
529
|
+
activeSnapPoint
|
530
|
+
]);
|
531
|
+
const activeSnapPointIndex = React__default.useMemo(()=>{
|
532
|
+
var _snapPoints_findIndex;
|
533
|
+
return (_snapPoints_findIndex = snapPoints == null ? void 0 : snapPoints.findIndex((snapPoint)=>snapPoint === activeSnapPoint)) != null ? _snapPoints_findIndex : null;
|
534
|
+
}, [
|
535
|
+
snapPoints,
|
536
|
+
activeSnapPoint
|
537
|
+
]);
|
538
|
+
const shouldFade = snapPoints && snapPoints.length > 0 && (fadeFromIndex || fadeFromIndex === 0) && !Number.isNaN(fadeFromIndex) && snapPoints[fadeFromIndex] === activeSnapPoint || !snapPoints;
|
539
|
+
const snapPointsOffset = React__default.useMemo(()=>{
|
540
|
+
const containerSize = container ? {
|
541
|
+
width: container.getBoundingClientRect().width,
|
542
|
+
height: container.getBoundingClientRect().height
|
543
|
+
} : typeof window !== 'undefined' ? {
|
544
|
+
width: window.innerWidth,
|
545
|
+
height: window.innerHeight
|
546
|
+
} : {
|
547
|
+
width: 0,
|
548
|
+
height: 0
|
549
|
+
};
|
550
|
+
var _snapPoints_map;
|
551
|
+
return (_snapPoints_map = snapPoints == null ? void 0 : snapPoints.map((snapPoint)=>{
|
552
|
+
const isPx = typeof snapPoint === 'string';
|
553
|
+
let snapPointAsNumber = 0;
|
554
|
+
if (isPx) {
|
555
|
+
snapPointAsNumber = parseInt(snapPoint, 10);
|
556
|
+
}
|
557
|
+
if (isVertical(direction)) {
|
558
|
+
const height = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.height : 0;
|
559
|
+
if (windowDimensions) {
|
560
|
+
return direction === 'bottom' ? containerSize.height - height : -containerSize.height + height;
|
561
|
+
}
|
562
|
+
return height;
|
563
|
+
}
|
564
|
+
const width = isPx ? snapPointAsNumber : windowDimensions ? snapPoint * containerSize.width : 0;
|
565
|
+
if (windowDimensions) {
|
566
|
+
return direction === 'right' ? containerSize.width - width : -containerSize.width + width;
|
567
|
+
}
|
568
|
+
return width;
|
569
|
+
})) != null ? _snapPoints_map : [];
|
570
|
+
}, [
|
571
|
+
snapPoints,
|
572
|
+
windowDimensions,
|
573
|
+
container
|
574
|
+
]);
|
575
|
+
const activeSnapPointOffset = React__default.useMemo(()=>activeSnapPointIndex !== null ? snapPointsOffset == null ? void 0 : snapPointsOffset[activeSnapPointIndex] : null, [
|
576
|
+
snapPointsOffset,
|
577
|
+
activeSnapPointIndex
|
578
|
+
]);
|
579
|
+
const snapToPoint = React__default.useCallback((dimension)=>{
|
580
|
+
var _snapPointsOffset_findIndex;
|
581
|
+
const newSnapPointIndex = (_snapPointsOffset_findIndex = snapPointsOffset == null ? void 0 : snapPointsOffset.findIndex((snapPointDim)=>snapPointDim === dimension)) != null ? _snapPointsOffset_findIndex : null;
|
582
|
+
onSnapPointChange(newSnapPointIndex);
|
583
|
+
set(drawerRef.current, {
|
584
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
585
|
+
transform: isVertical(direction) ? `translate3d(0, ${dimension}px, 0)` : `translate3d(${dimension}px, 0, 0)`
|
586
|
+
});
|
587
|
+
if (snapPointsOffset && newSnapPointIndex !== snapPointsOffset.length - 1 && fadeFromIndex !== undefined && newSnapPointIndex !== fadeFromIndex && newSnapPointIndex < fadeFromIndex) {
|
588
|
+
set(overlayRef.current, {
|
589
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
590
|
+
opacity: '0'
|
591
|
+
});
|
592
|
+
} else {
|
593
|
+
set(overlayRef.current, {
|
594
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
595
|
+
opacity: '1'
|
596
|
+
});
|
597
|
+
}
|
598
|
+
setActiveSnapPoint(snapPoints == null ? void 0 : snapPoints[Math.max(newSnapPointIndex, 0)]);
|
599
|
+
}, [
|
600
|
+
drawerRef.current,
|
601
|
+
snapPoints,
|
602
|
+
snapPointsOffset,
|
603
|
+
fadeFromIndex,
|
604
|
+
overlayRef,
|
605
|
+
setActiveSnapPoint
|
606
|
+
]);
|
607
|
+
React__default.useEffect(()=>{
|
608
|
+
if (activeSnapPoint || activeSnapPointProp) {
|
609
|
+
var _snapPoints_findIndex;
|
610
|
+
const newIndex = (_snapPoints_findIndex = snapPoints == null ? void 0 : snapPoints.findIndex((snapPoint)=>snapPoint === activeSnapPointProp || snapPoint === activeSnapPoint)) != null ? _snapPoints_findIndex : -1;
|
611
|
+
if (snapPointsOffset && newIndex !== -1 && typeof snapPointsOffset[newIndex] === 'number') {
|
612
|
+
snapToPoint(snapPointsOffset[newIndex]);
|
613
|
+
}
|
614
|
+
}
|
615
|
+
}, [
|
616
|
+
activeSnapPoint,
|
617
|
+
activeSnapPointProp,
|
618
|
+
snapPoints,
|
619
|
+
snapPointsOffset,
|
620
|
+
snapToPoint
|
621
|
+
]);
|
622
|
+
function onRelease({ draggedDistance, closeDrawer, velocity, dismissible }) {
|
623
|
+
if (fadeFromIndex === undefined) return;
|
624
|
+
const currentPosition = direction === 'bottom' || direction === 'right' ? (activeSnapPointOffset != null ? activeSnapPointOffset : 0) - draggedDistance : (activeSnapPointOffset != null ? activeSnapPointOffset : 0) + draggedDistance;
|
625
|
+
const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;
|
626
|
+
const isFirst = activeSnapPointIndex === 0;
|
627
|
+
const hasDraggedUp = draggedDistance > 0;
|
628
|
+
if (isOverlaySnapPoint) {
|
629
|
+
set(overlayRef.current, {
|
630
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`
|
631
|
+
});
|
632
|
+
}
|
633
|
+
if (!snapToSequentialPoint && velocity > 2 && !hasDraggedUp) {
|
634
|
+
if (dismissible) closeDrawer();
|
635
|
+
else snapToPoint(snapPointsOffset[0]); // snap to initial point
|
636
|
+
return;
|
637
|
+
}
|
638
|
+
if (!snapToSequentialPoint && velocity > 2 && hasDraggedUp && snapPointsOffset && snapPoints) {
|
639
|
+
snapToPoint(snapPointsOffset[snapPoints.length - 1]);
|
640
|
+
return;
|
641
|
+
}
|
642
|
+
// Find the closest snap point to the current position
|
643
|
+
const closestSnapPoint = snapPointsOffset == null ? void 0 : snapPointsOffset.reduce((prev, curr)=>{
|
644
|
+
if (typeof prev !== 'number' || typeof curr !== 'number') return prev;
|
645
|
+
return Math.abs(curr - currentPosition) < Math.abs(prev - currentPosition) ? curr : prev;
|
646
|
+
});
|
647
|
+
const dim = isVertical(direction) ? window.innerHeight : window.innerWidth;
|
648
|
+
if (velocity > VELOCITY_THRESHOLD && Math.abs(draggedDistance) < dim * 0.4) {
|
649
|
+
const dragDirection = hasDraggedUp ? 1 : -1; // 1 = up, -1 = down
|
650
|
+
// Don't do anything if we swipe upwards while being on the last snap point
|
651
|
+
if (dragDirection > 0 && isLastSnapPoint && snapPoints) {
|
652
|
+
snapToPoint(snapPointsOffset[snapPoints.length - 1]);
|
653
|
+
return;
|
654
|
+
}
|
655
|
+
if (isFirst && dragDirection < 0 && dismissible) {
|
656
|
+
closeDrawer();
|
657
|
+
}
|
658
|
+
if (activeSnapPointIndex === null) return;
|
659
|
+
snapToPoint(snapPointsOffset[activeSnapPointIndex + dragDirection]);
|
660
|
+
return;
|
661
|
+
}
|
662
|
+
snapToPoint(closestSnapPoint);
|
663
|
+
}
|
664
|
+
function onDrag({ draggedDistance }) {
|
665
|
+
if (activeSnapPointOffset === null) return;
|
666
|
+
const newValue = direction === 'bottom' || direction === 'right' ? activeSnapPointOffset - draggedDistance : activeSnapPointOffset + draggedDistance;
|
667
|
+
// Don't do anything if we exceed the last(biggest) snap point
|
668
|
+
if ((direction === 'bottom' || direction === 'right') && newValue < snapPointsOffset[snapPointsOffset.length - 1]) {
|
669
|
+
return;
|
670
|
+
}
|
671
|
+
if ((direction === 'top' || direction === 'left') && newValue > snapPointsOffset[snapPointsOffset.length - 1]) {
|
672
|
+
return;
|
673
|
+
}
|
674
|
+
set(drawerRef.current, {
|
675
|
+
transform: isVertical(direction) ? `translate3d(0, ${newValue}px, 0)` : `translate3d(${newValue}px, 0, 0)`
|
676
|
+
});
|
677
|
+
}
|
678
|
+
function getPercentageDragged(absDraggedDistance, isDraggingDown) {
|
679
|
+
if (!snapPoints || typeof activeSnapPointIndex !== 'number' || !snapPointsOffset || fadeFromIndex === undefined) return null;
|
680
|
+
// If this is true we are dragging to a snap point that is supposed to have an overlay
|
681
|
+
const isOverlaySnapPoint = activeSnapPointIndex === fadeFromIndex - 1;
|
682
|
+
const isOverlaySnapPointOrHigher = activeSnapPointIndex >= fadeFromIndex;
|
683
|
+
if (isOverlaySnapPointOrHigher && isDraggingDown) {
|
684
|
+
return 0;
|
685
|
+
}
|
686
|
+
// Don't animate, but still use this one if we are dragging away from the overlaySnapPoint
|
687
|
+
if (isOverlaySnapPoint && !isDraggingDown) return 1;
|
688
|
+
if (!shouldFade && !isOverlaySnapPoint) return null;
|
689
|
+
// Either fadeFrom index or the one before
|
690
|
+
const targetSnapPointIndex = isOverlaySnapPoint ? activeSnapPointIndex + 1 : activeSnapPointIndex - 1;
|
691
|
+
// Get the distance from overlaySnapPoint to the one before or vice-versa to calculate the opacity percentage accordingly
|
692
|
+
const snapPointDistance = isOverlaySnapPoint ? snapPointsOffset[targetSnapPointIndex] - snapPointsOffset[targetSnapPointIndex - 1] : snapPointsOffset[targetSnapPointIndex + 1] - snapPointsOffset[targetSnapPointIndex];
|
693
|
+
const percentageDragged = absDraggedDistance / Math.abs(snapPointDistance);
|
694
|
+
if (isOverlaySnapPoint) {
|
695
|
+
return 1 - percentageDragged;
|
696
|
+
} else {
|
697
|
+
return percentageDragged;
|
698
|
+
}
|
699
|
+
}
|
700
|
+
return {
|
701
|
+
isLastSnapPoint,
|
702
|
+
activeSnapPoint,
|
703
|
+
shouldFade,
|
704
|
+
getPercentageDragged,
|
705
|
+
setActiveSnapPoint,
|
706
|
+
activeSnapPointIndex,
|
707
|
+
onRelease,
|
708
|
+
onDrag,
|
709
|
+
snapPointsOffset
|
710
|
+
};
|
711
|
+
}
|
712
|
+
|
713
|
+
const noop = ()=>()=>{};
|
714
|
+
function useScaleBackground() {
|
715
|
+
const { direction, isOpen, shouldScaleBackground, setBackgroundColorOnScale, noBodyStyles } = useDrawerContext();
|
716
|
+
const timeoutIdRef = React__default.useRef(null);
|
717
|
+
const initialBackgroundColor = useMemo(()=>document.body.style.backgroundColor, []);
|
718
|
+
function getScale() {
|
719
|
+
return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;
|
720
|
+
}
|
721
|
+
React__default.useEffect(()=>{
|
722
|
+
if (isOpen && shouldScaleBackground) {
|
723
|
+
if (timeoutIdRef.current) clearTimeout(timeoutIdRef.current);
|
724
|
+
const wrapper = document.querySelector('[data-vaul-drawer-wrapper]') || document.querySelector('[vaul-drawer-wrapper]');
|
725
|
+
if (!wrapper) return;
|
726
|
+
chain(setBackgroundColorOnScale && !noBodyStyles ? assignStyle(document.body, {
|
727
|
+
background: 'black'
|
728
|
+
}) : noop, assignStyle(wrapper, {
|
729
|
+
transformOrigin: isVertical(direction) ? 'top' : 'left',
|
730
|
+
transitionProperty: 'transform, border-radius',
|
731
|
+
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
732
|
+
transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(',')})`
|
733
|
+
}));
|
734
|
+
const wrapperStylesCleanup = assignStyle(wrapper, {
|
735
|
+
borderRadius: `${BORDER_RADIUS}px`,
|
736
|
+
overflow: 'hidden',
|
737
|
+
...isVertical(direction) ? {
|
738
|
+
transform: `scale(${getScale()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
|
739
|
+
} : {
|
740
|
+
transform: `scale(${getScale()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
|
741
|
+
}
|
742
|
+
});
|
743
|
+
return ()=>{
|
744
|
+
wrapperStylesCleanup();
|
745
|
+
timeoutIdRef.current = window.setTimeout(()=>{
|
746
|
+
if (initialBackgroundColor) {
|
747
|
+
document.body.style.background = initialBackgroundColor;
|
748
|
+
} else {
|
749
|
+
document.body.style.removeProperty('background');
|
750
|
+
}
|
751
|
+
}, TRANSITIONS.DURATION * 1000);
|
752
|
+
};
|
753
|
+
}
|
754
|
+
}, [
|
755
|
+
isOpen,
|
756
|
+
shouldScaleBackground,
|
757
|
+
initialBackgroundColor
|
758
|
+
]);
|
759
|
+
}
|
760
|
+
|
761
|
+
let previousBodyPosition = null;
|
762
|
+
/**
|
763
|
+
* This hook is necessary to prevent buggy behavior on iOS devices (need to test on Android).
|
764
|
+
* I won't get into too much detail about what bugs it solves, but so far I've found that setting the body to `position: fixed` is the most reliable way to prevent those bugs.
|
765
|
+
* Issues that this hook solves:
|
766
|
+
* https://github.com/emilkowalski/vaul/issues/435
|
767
|
+
* https://github.com/emilkowalski/vaul/issues/433
|
768
|
+
* And more that I discovered, but were just not reported.
|
769
|
+
*/ function usePositionFixed({ isOpen, modal, nested, hasBeenOpened, preventScrollRestoration, noBodyStyles }) {
|
770
|
+
const [activeUrl, setActiveUrl] = React__default.useState(()=>typeof window !== 'undefined' ? window.location.href : '');
|
771
|
+
const scrollPos = React__default.useRef(0);
|
772
|
+
const setPositionFixed = React__default.useCallback(()=>{
|
773
|
+
// All browsers on iOS will return true here.
|
774
|
+
if (!isSafari()) return;
|
775
|
+
// If previousBodyPosition is already set, don't set it again.
|
776
|
+
if (previousBodyPosition === null && isOpen && !noBodyStyles) {
|
777
|
+
previousBodyPosition = {
|
778
|
+
position: document.body.style.position,
|
779
|
+
top: document.body.style.top,
|
780
|
+
left: document.body.style.left,
|
781
|
+
height: document.body.style.height,
|
782
|
+
right: 'unset'
|
783
|
+
};
|
784
|
+
// Update the dom inside an animation frame
|
785
|
+
const { scrollX, innerHeight } = window;
|
786
|
+
document.body.style.setProperty('position', 'fixed', 'important');
|
787
|
+
Object.assign(document.body.style, {
|
788
|
+
top: `${-scrollPos.current}px`,
|
789
|
+
left: `${-scrollX}px`,
|
790
|
+
right: '0px',
|
791
|
+
height: 'auto'
|
792
|
+
});
|
793
|
+
window.setTimeout(()=>window.requestAnimationFrame(()=>{
|
794
|
+
// Attempt to check if the bottom bar appeared due to the position change
|
795
|
+
const bottomBarHeight = innerHeight - window.innerHeight;
|
796
|
+
if (bottomBarHeight && scrollPos.current >= innerHeight) {
|
797
|
+
// Move the content further up so that the bottom bar doesn't hide it
|
798
|
+
document.body.style.top = `${-(scrollPos.current + bottomBarHeight)}px`;
|
799
|
+
}
|
800
|
+
}), 300);
|
801
|
+
}
|
802
|
+
}, [
|
803
|
+
isOpen
|
804
|
+
]);
|
805
|
+
const restorePositionSetting = React__default.useCallback(()=>{
|
806
|
+
// All browsers on iOS will return true here.
|
807
|
+
if (!isSafari()) return;
|
808
|
+
if (previousBodyPosition !== null && !noBodyStyles) {
|
809
|
+
// Convert the position from "px" to Int
|
810
|
+
const y = -parseInt(document.body.style.top, 10);
|
811
|
+
const x = -parseInt(document.body.style.left, 10);
|
812
|
+
// Restore styles
|
813
|
+
Object.assign(document.body.style, previousBodyPosition);
|
814
|
+
window.requestAnimationFrame(()=>{
|
815
|
+
if (preventScrollRestoration && activeUrl !== window.location.href) {
|
816
|
+
setActiveUrl(window.location.href);
|
817
|
+
return;
|
818
|
+
}
|
819
|
+
window.scrollTo(x, y);
|
820
|
+
});
|
821
|
+
previousBodyPosition = null;
|
822
|
+
}
|
823
|
+
}, [
|
824
|
+
activeUrl
|
825
|
+
]);
|
826
|
+
React__default.useEffect(()=>{
|
827
|
+
function onScroll() {
|
828
|
+
scrollPos.current = window.scrollY;
|
829
|
+
}
|
830
|
+
onScroll();
|
831
|
+
window.addEventListener('scroll', onScroll);
|
832
|
+
return ()=>{
|
833
|
+
window.removeEventListener('scroll', onScroll);
|
834
|
+
};
|
835
|
+
}, []);
|
836
|
+
React__default.useEffect(()=>{
|
837
|
+
if (!modal) return;
|
838
|
+
return ()=>{
|
839
|
+
if (typeof document === 'undefined') return;
|
840
|
+
// Another drawer is opened, safe to ignore the execution
|
841
|
+
const hasDrawerOpened = !!document.querySelector('[data-vaul-drawer]');
|
842
|
+
if (hasDrawerOpened) return;
|
843
|
+
restorePositionSetting();
|
844
|
+
};
|
845
|
+
}, [
|
846
|
+
modal,
|
847
|
+
restorePositionSetting
|
848
|
+
]);
|
849
|
+
React__default.useEffect(()=>{
|
850
|
+
if (nested || !hasBeenOpened) return;
|
851
|
+
// This is needed to force Safari toolbar to show **before** the drawer starts animating to prevent a gnarly shift from happening
|
852
|
+
if (isOpen) {
|
853
|
+
// avoid for standalone mode (PWA)
|
854
|
+
const isStandalone = window.matchMedia('(display-mode: standalone)').matches;
|
855
|
+
!isStandalone && setPositionFixed();
|
856
|
+
if (!modal) {
|
857
|
+
window.setTimeout(()=>{
|
858
|
+
restorePositionSetting();
|
859
|
+
}, 500);
|
860
|
+
}
|
861
|
+
} else {
|
862
|
+
restorePositionSetting();
|
863
|
+
}
|
864
|
+
}, [
|
865
|
+
isOpen,
|
866
|
+
hasBeenOpened,
|
867
|
+
activeUrl,
|
868
|
+
modal,
|
869
|
+
nested,
|
870
|
+
setPositionFixed,
|
871
|
+
restorePositionSetting
|
872
|
+
]);
|
873
|
+
return {
|
874
|
+
restorePositionSetting
|
875
|
+
};
|
876
|
+
}
|
877
|
+
|
878
|
+
function Root({ open: openProp, onOpenChange, children, onDrag: onDragProp, onRelease: onReleaseProp, snapPoints, shouldScaleBackground = false, setBackgroundColorOnScale = true, closeThreshold = CLOSE_THRESHOLD, scrollLockTimeout = SCROLL_LOCK_TIMEOUT, dismissible = true, handleOnly = false, fadeFromIndex = snapPoints && snapPoints.length - 1, activeSnapPoint: activeSnapPointProp, setActiveSnapPoint: setActiveSnapPointProp, fixed, modal = true, onClose, nested, noBodyStyles = false, direction = 'bottom', defaultOpen = false, disablePreventScroll = true, snapToSequentialPoint = false, preventScrollRestoration = false, repositionInputs = true, onAnimationEnd, container, autoFocus = false }) {
|
879
|
+
var _drawerRef_current, _drawerRef_current1;
|
880
|
+
const [isOpen = false, setIsOpen] = useControllableState({
|
881
|
+
defaultProp: defaultOpen,
|
882
|
+
prop: openProp,
|
883
|
+
onChange: (o)=>{
|
884
|
+
onOpenChange == null ? void 0 : onOpenChange(o);
|
885
|
+
if (!o && !nested) {
|
886
|
+
restorePositionSetting();
|
887
|
+
}
|
888
|
+
setTimeout(()=>{
|
889
|
+
onAnimationEnd == null ? void 0 : onAnimationEnd(o);
|
890
|
+
}, TRANSITIONS.DURATION * 1000);
|
891
|
+
if (o && !modal) {
|
892
|
+
if (typeof window !== 'undefined') {
|
893
|
+
window.requestAnimationFrame(()=>{
|
894
|
+
document.body.style.pointerEvents = 'auto';
|
895
|
+
});
|
896
|
+
}
|
897
|
+
}
|
898
|
+
if (!o) {
|
899
|
+
// This will be removed when the exit animation ends (`500ms`)
|
900
|
+
document.body.style.pointerEvents = 'auto';
|
901
|
+
}
|
902
|
+
}
|
903
|
+
});
|
904
|
+
const [hasBeenOpened, setHasBeenOpened] = React__default.useState(false);
|
905
|
+
const [isDragging, setIsDragging] = React__default.useState(false);
|
906
|
+
const [justReleased, setJustReleased] = React__default.useState(false);
|
907
|
+
const overlayRef = React__default.useRef(null);
|
908
|
+
const openTime = React__default.useRef(null);
|
909
|
+
const dragStartTime = React__default.useRef(null);
|
910
|
+
const dragEndTime = React__default.useRef(null);
|
911
|
+
const lastTimeDragPrevented = React__default.useRef(null);
|
912
|
+
const isAllowedToDrag = React__default.useRef(false);
|
913
|
+
const nestedOpenChangeTimer = React__default.useRef(null);
|
914
|
+
const pointerStart = React__default.useRef(0);
|
915
|
+
const keyboardIsOpen = React__default.useRef(false);
|
916
|
+
const shouldAnimate = React__default.useRef(!defaultOpen);
|
917
|
+
const previousDiffFromInitial = React__default.useRef(0);
|
918
|
+
const drawerRef = React__default.useRef(null);
|
919
|
+
const drawerHeightRef = React__default.useRef(((_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.getBoundingClientRect().height) || 0);
|
920
|
+
const drawerWidthRef = React__default.useRef(((_drawerRef_current1 = drawerRef.current) == null ? void 0 : _drawerRef_current1.getBoundingClientRect().width) || 0);
|
921
|
+
const initialDrawerHeight = React__default.useRef(0);
|
922
|
+
const onSnapPointChange = React__default.useCallback((activeSnapPointIndex)=>{
|
923
|
+
// Change openTime ref when we reach the last snap point to prevent dragging for 500ms incase it's scrollable.
|
924
|
+
if (snapPoints && activeSnapPointIndex === snapPointsOffset.length - 1) openTime.current = new Date();
|
925
|
+
}, []);
|
926
|
+
const { activeSnapPoint, activeSnapPointIndex, setActiveSnapPoint, onRelease: onReleaseSnapPoints, snapPointsOffset, onDrag: onDragSnapPoints, shouldFade, getPercentageDragged: getSnapPointsPercentageDragged } = useSnapPoints({
|
927
|
+
snapPoints,
|
928
|
+
activeSnapPointProp,
|
929
|
+
setActiveSnapPointProp,
|
930
|
+
drawerRef,
|
931
|
+
fadeFromIndex,
|
932
|
+
overlayRef,
|
933
|
+
onSnapPointChange,
|
934
|
+
direction,
|
935
|
+
container,
|
936
|
+
snapToSequentialPoint
|
937
|
+
});
|
938
|
+
usePreventScroll({
|
939
|
+
isDisabled: !isOpen || isDragging || !modal || justReleased || !hasBeenOpened || !repositionInputs || !disablePreventScroll
|
940
|
+
});
|
941
|
+
const { restorePositionSetting } = usePositionFixed({
|
942
|
+
isOpen,
|
943
|
+
modal,
|
944
|
+
nested: nested != null ? nested : false,
|
945
|
+
hasBeenOpened,
|
946
|
+
preventScrollRestoration,
|
947
|
+
noBodyStyles
|
948
|
+
});
|
949
|
+
function getScale() {
|
950
|
+
return (window.innerWidth - WINDOW_TOP_OFFSET) / window.innerWidth;
|
951
|
+
}
|
952
|
+
function onPress(event) {
|
953
|
+
var _drawerRef_current, _drawerRef_current1;
|
954
|
+
if (!dismissible && !snapPoints) return;
|
955
|
+
if (drawerRef.current && !drawerRef.current.contains(event.target)) return;
|
956
|
+
drawerHeightRef.current = ((_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.getBoundingClientRect().height) || 0;
|
957
|
+
drawerWidthRef.current = ((_drawerRef_current1 = drawerRef.current) == null ? void 0 : _drawerRef_current1.getBoundingClientRect().width) || 0;
|
958
|
+
setIsDragging(true);
|
959
|
+
dragStartTime.current = new Date();
|
960
|
+
// iOS doesn't trigger mouseUp after scrolling so we need to listen to touched in order to disallow dragging
|
961
|
+
if (isIOS()) {
|
962
|
+
window.addEventListener('touchend', ()=>isAllowedToDrag.current = false, {
|
963
|
+
once: true
|
964
|
+
});
|
965
|
+
}
|
966
|
+
// Ensure we maintain correct pointer capture even when going outside of the drawer
|
967
|
+
event.target.setPointerCapture(event.pointerId);
|
968
|
+
pointerStart.current = isVertical(direction) ? event.pageY : event.pageX;
|
969
|
+
}
|
970
|
+
function shouldDrag(el, isDraggingInDirection) {
|
971
|
+
var _window_getSelection;
|
972
|
+
let element = el;
|
973
|
+
const highlightedText = (_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString();
|
974
|
+
const swipeAmount = drawerRef.current ? getTranslate(drawerRef.current, direction) : null;
|
975
|
+
const date = new Date();
|
976
|
+
// Fixes https://github.com/emilkowalski/vaul/issues/483
|
977
|
+
if (element.tagName === 'SELECT') {
|
978
|
+
return false;
|
979
|
+
}
|
980
|
+
if (element.hasAttribute('data-vaul-no-drag') || element.closest('[data-vaul-no-drag]')) {
|
981
|
+
return false;
|
982
|
+
}
|
983
|
+
if (direction === 'right' || direction === 'left') {
|
984
|
+
return true;
|
985
|
+
}
|
986
|
+
// Allow scrolling when animating
|
987
|
+
if (openTime.current && date.getTime() - openTime.current.getTime() < 500) {
|
988
|
+
return false;
|
989
|
+
}
|
990
|
+
if (swipeAmount !== null) {
|
991
|
+
if (direction === 'bottom' ? swipeAmount > 0 : swipeAmount < 0) {
|
992
|
+
return true;
|
993
|
+
}
|
994
|
+
}
|
995
|
+
// Don't drag if there's highlighted text
|
996
|
+
if (highlightedText && highlightedText.length > 0) {
|
997
|
+
return false;
|
998
|
+
}
|
999
|
+
// Disallow dragging if drawer was scrolled within `scrollLockTimeout`
|
1000
|
+
if (lastTimeDragPrevented.current && date.getTime() - lastTimeDragPrevented.current.getTime() < scrollLockTimeout && swipeAmount === 0) {
|
1001
|
+
lastTimeDragPrevented.current = date;
|
1002
|
+
return false;
|
1003
|
+
}
|
1004
|
+
if (isDraggingInDirection) {
|
1005
|
+
lastTimeDragPrevented.current = date;
|
1006
|
+
// We are dragging down so we should allow scrolling
|
1007
|
+
return false;
|
1008
|
+
}
|
1009
|
+
// Keep climbing up the DOM tree as long as there's a parent
|
1010
|
+
while(element){
|
1011
|
+
// Check if the element is scrollable
|
1012
|
+
if (element.scrollHeight > element.clientHeight) {
|
1013
|
+
if (element.scrollTop !== 0) {
|
1014
|
+
lastTimeDragPrevented.current = new Date();
|
1015
|
+
// The element is scrollable and not scrolled to the top, so don't drag
|
1016
|
+
return false;
|
1017
|
+
}
|
1018
|
+
if (element.getAttribute('role') === 'dialog') {
|
1019
|
+
return true;
|
1020
|
+
}
|
1021
|
+
}
|
1022
|
+
// Move up to the parent element
|
1023
|
+
element = element.parentNode;
|
1024
|
+
}
|
1025
|
+
// No scrollable parents not scrolled to the top found, so drag
|
1026
|
+
return true;
|
1027
|
+
}
|
1028
|
+
function onDrag(event) {
|
1029
|
+
if (!drawerRef.current) {
|
1030
|
+
return;
|
1031
|
+
}
|
1032
|
+
// We need to know how much of the drawer has been dragged in percentages so that we can transform background accordingly
|
1033
|
+
if (isDragging) {
|
1034
|
+
const directionMultiplier = direction === 'bottom' || direction === 'right' ? 1 : -1;
|
1035
|
+
const draggedDistance = (pointerStart.current - (isVertical(direction) ? event.pageY : event.pageX)) * directionMultiplier;
|
1036
|
+
const isDraggingInDirection = draggedDistance > 0;
|
1037
|
+
// Pre condition for disallowing dragging in the close direction.
|
1038
|
+
const noCloseSnapPointsPreCondition = snapPoints && !dismissible && !isDraggingInDirection;
|
1039
|
+
// Disallow dragging down to close when first snap point is the active one and dismissible prop is set to false.
|
1040
|
+
if (noCloseSnapPointsPreCondition && activeSnapPointIndex === 0) return;
|
1041
|
+
// We need to capture last time when drag with scroll was triggered and have a timeout between
|
1042
|
+
const absDraggedDistance = Math.abs(draggedDistance);
|
1043
|
+
const wrapper = document.querySelector('[data-vaul-drawer-wrapper]');
|
1044
|
+
const drawerDimension = direction === 'bottom' || direction === 'top' ? drawerHeightRef.current : drawerWidthRef.current;
|
1045
|
+
// Calculate the percentage dragged, where 1 is the closed position
|
1046
|
+
let percentageDragged = absDraggedDistance / drawerDimension;
|
1047
|
+
const snapPointPercentageDragged = getSnapPointsPercentageDragged(absDraggedDistance, isDraggingInDirection);
|
1048
|
+
if (snapPointPercentageDragged !== null) {
|
1049
|
+
percentageDragged = snapPointPercentageDragged;
|
1050
|
+
}
|
1051
|
+
// Disallow close dragging beyond the smallest snap point.
|
1052
|
+
if (noCloseSnapPointsPreCondition && percentageDragged >= 1) {
|
1053
|
+
return;
|
1054
|
+
}
|
1055
|
+
if (!isAllowedToDrag.current && !shouldDrag(event.target, isDraggingInDirection)) return;
|
1056
|
+
drawerRef.current.classList.add(DRAG_CLASS);
|
1057
|
+
// If shouldDrag gave true once after pressing down on the drawer, we set isAllowedToDrag to true and it will remain true until we let go, there's no reason to disable dragging mid way, ever, and that's the solution to it
|
1058
|
+
isAllowedToDrag.current = true;
|
1059
|
+
set(drawerRef.current, {
|
1060
|
+
transition: 'none'
|
1061
|
+
});
|
1062
|
+
set(overlayRef.current, {
|
1063
|
+
transition: 'none'
|
1064
|
+
});
|
1065
|
+
if (snapPoints) {
|
1066
|
+
onDragSnapPoints({
|
1067
|
+
draggedDistance
|
1068
|
+
});
|
1069
|
+
}
|
1070
|
+
// Run this only if snapPoints are not defined or if we are at the last snap point (highest one)
|
1071
|
+
if (isDraggingInDirection && !snapPoints) {
|
1072
|
+
const dampenedDraggedDistance = dampenValue(draggedDistance);
|
1073
|
+
const translateValue = Math.min(dampenedDraggedDistance * -1, 0) * directionMultiplier;
|
1074
|
+
set(drawerRef.current, {
|
1075
|
+
transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`
|
1076
|
+
});
|
1077
|
+
return;
|
1078
|
+
}
|
1079
|
+
const opacityValue = 1 - percentageDragged;
|
1080
|
+
if (shouldFade || fadeFromIndex && activeSnapPointIndex === fadeFromIndex - 1) {
|
1081
|
+
onDragProp == null ? void 0 : onDragProp(event, percentageDragged);
|
1082
|
+
set(overlayRef.current, {
|
1083
|
+
opacity: `${opacityValue}`,
|
1084
|
+
transition: 'none'
|
1085
|
+
}, true);
|
1086
|
+
}
|
1087
|
+
if (wrapper && overlayRef.current && shouldScaleBackground) {
|
1088
|
+
// Calculate percentageDragged as a fraction (0 to 1)
|
1089
|
+
const scaleValue = Math.min(getScale() + percentageDragged * (1 - getScale()), 1);
|
1090
|
+
const borderRadiusValue = 8 - percentageDragged * 8;
|
1091
|
+
const translateValue = Math.max(0, 14 - percentageDragged * 14);
|
1092
|
+
set(wrapper, {
|
1093
|
+
borderRadius: `${borderRadiusValue}px`,
|
1094
|
+
transform: isVertical(direction) ? `scale(${scaleValue}) translate3d(0, ${translateValue}px, 0)` : `scale(${scaleValue}) translate3d(${translateValue}px, 0, 0)`,
|
1095
|
+
transition: 'none'
|
1096
|
+
}, true);
|
1097
|
+
}
|
1098
|
+
if (!snapPoints) {
|
1099
|
+
const translateValue = absDraggedDistance * directionMultiplier;
|
1100
|
+
set(drawerRef.current, {
|
1101
|
+
transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`
|
1102
|
+
});
|
1103
|
+
}
|
1104
|
+
}
|
1105
|
+
}
|
1106
|
+
React__default.useEffect(()=>{
|
1107
|
+
window.requestAnimationFrame(()=>{
|
1108
|
+
shouldAnimate.current = true;
|
1109
|
+
});
|
1110
|
+
}, []);
|
1111
|
+
React__default.useEffect(()=>{
|
1112
|
+
var _window_visualViewport;
|
1113
|
+
function onVisualViewportChange() {
|
1114
|
+
if (!drawerRef.current || !repositionInputs) return;
|
1115
|
+
const focusedElement = document.activeElement;
|
1116
|
+
if (isInput(focusedElement) || keyboardIsOpen.current) {
|
1117
|
+
var _window_visualViewport;
|
1118
|
+
const visualViewportHeight = ((_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.height) || 0;
|
1119
|
+
const totalHeight = window.innerHeight;
|
1120
|
+
// This is the height of the keyboard
|
1121
|
+
let diffFromInitial = totalHeight - visualViewportHeight;
|
1122
|
+
const drawerHeight = drawerRef.current.getBoundingClientRect().height || 0;
|
1123
|
+
// Adjust drawer height only if it's tall enough
|
1124
|
+
const isTallEnough = drawerHeight > totalHeight * 0.8;
|
1125
|
+
if (!initialDrawerHeight.current) {
|
1126
|
+
initialDrawerHeight.current = drawerHeight;
|
1127
|
+
}
|
1128
|
+
const offsetFromTop = drawerRef.current.getBoundingClientRect().top;
|
1129
|
+
// visualViewport height may change due to somq e subtle changes to the keyboard. Checking if the height changed by 60 or more will make sure that they keyboard really changed its open state.
|
1130
|
+
if (Math.abs(previousDiffFromInitial.current - diffFromInitial) > 60) {
|
1131
|
+
keyboardIsOpen.current = !keyboardIsOpen.current;
|
1132
|
+
}
|
1133
|
+
if (snapPoints && snapPoints.length > 0 && snapPointsOffset && activeSnapPointIndex) {
|
1134
|
+
const activeSnapPointHeight = snapPointsOffset[activeSnapPointIndex] || 0;
|
1135
|
+
diffFromInitial += activeSnapPointHeight;
|
1136
|
+
}
|
1137
|
+
previousDiffFromInitial.current = diffFromInitial;
|
1138
|
+
// We don't have to change the height if the input is in view, when we are here we are in the opened keyboard state so we can correctly check if the input is in view
|
1139
|
+
if (drawerHeight > visualViewportHeight || keyboardIsOpen.current) {
|
1140
|
+
const height = drawerRef.current.getBoundingClientRect().height;
|
1141
|
+
let newDrawerHeight = height;
|
1142
|
+
if (height > visualViewportHeight) {
|
1143
|
+
newDrawerHeight = visualViewportHeight - (isTallEnough ? offsetFromTop : WINDOW_TOP_OFFSET);
|
1144
|
+
}
|
1145
|
+
// When fixed, don't move the drawer upwards if there's space, but rather only change it's height so it's fully scrollable when the keyboard is open
|
1146
|
+
if (fixed) {
|
1147
|
+
drawerRef.current.style.height = `${height - Math.max(diffFromInitial, 0)}px`;
|
1148
|
+
} else {
|
1149
|
+
drawerRef.current.style.height = `${Math.max(newDrawerHeight, visualViewportHeight - offsetFromTop)}px`;
|
1150
|
+
}
|
1151
|
+
} else if (!isMobileFirefox()) {
|
1152
|
+
drawerRef.current.style.height = `${initialDrawerHeight.current}px`;
|
1153
|
+
}
|
1154
|
+
if (snapPoints && snapPoints.length > 0 && !keyboardIsOpen.current) {
|
1155
|
+
drawerRef.current.style.bottom = `0px`;
|
1156
|
+
} else {
|
1157
|
+
// Negative bottom value would never make sense
|
1158
|
+
drawerRef.current.style.bottom = `${Math.max(diffFromInitial, 0)}px`;
|
1159
|
+
}
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
(_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.addEventListener('resize', onVisualViewportChange);
|
1163
|
+
return ()=>{
|
1164
|
+
var _window_visualViewport;
|
1165
|
+
return (_window_visualViewport = window.visualViewport) == null ? void 0 : _window_visualViewport.removeEventListener('resize', onVisualViewportChange);
|
1166
|
+
};
|
1167
|
+
}, [
|
1168
|
+
activeSnapPointIndex,
|
1169
|
+
snapPoints,
|
1170
|
+
snapPointsOffset
|
1171
|
+
]);
|
1172
|
+
function closeDrawer(fromWithin) {
|
1173
|
+
cancelDrag();
|
1174
|
+
onClose == null ? void 0 : onClose();
|
1175
|
+
if (!fromWithin) {
|
1176
|
+
setIsOpen(false);
|
1177
|
+
}
|
1178
|
+
setTimeout(()=>{
|
1179
|
+
if (snapPoints) {
|
1180
|
+
setActiveSnapPoint(snapPoints[0]);
|
1181
|
+
}
|
1182
|
+
}, TRANSITIONS.DURATION * 1000); // seconds to ms
|
1183
|
+
}
|
1184
|
+
function resetDrawer() {
|
1185
|
+
if (!drawerRef.current) return;
|
1186
|
+
const wrapper = document.querySelector('[data-vaul-drawer-wrapper]');
|
1187
|
+
const currentSwipeAmount = getTranslate(drawerRef.current, direction);
|
1188
|
+
set(drawerRef.current, {
|
1189
|
+
transform: 'translate3d(0, 0, 0)',
|
1190
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`
|
1191
|
+
});
|
1192
|
+
set(overlayRef.current, {
|
1193
|
+
transition: `opacity ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
1194
|
+
opacity: '1'
|
1195
|
+
});
|
1196
|
+
// Don't reset background if swiped upwards
|
1197
|
+
if (shouldScaleBackground && currentSwipeAmount && currentSwipeAmount > 0 && isOpen) {
|
1198
|
+
set(wrapper, {
|
1199
|
+
borderRadius: `${BORDER_RADIUS}px`,
|
1200
|
+
overflow: 'hidden',
|
1201
|
+
...isVertical(direction) ? {
|
1202
|
+
transform: `scale(${getScale()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
1203
|
+
transformOrigin: 'top'
|
1204
|
+
} : {
|
1205
|
+
transform: `scale(${getScale()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
|
1206
|
+
transformOrigin: 'left'
|
1207
|
+
},
|
1208
|
+
transitionProperty: 'transform, border-radius',
|
1209
|
+
transitionDuration: `${TRANSITIONS.DURATION}s`,
|
1210
|
+
transitionTimingFunction: `cubic-bezier(${TRANSITIONS.EASE.join(',')})`
|
1211
|
+
}, true);
|
1212
|
+
}
|
1213
|
+
}
|
1214
|
+
function cancelDrag() {
|
1215
|
+
if (!isDragging || !drawerRef.current) return;
|
1216
|
+
drawerRef.current.classList.remove(DRAG_CLASS);
|
1217
|
+
isAllowedToDrag.current = false;
|
1218
|
+
setIsDragging(false);
|
1219
|
+
dragEndTime.current = new Date();
|
1220
|
+
}
|
1221
|
+
function onRelease(event) {
|
1222
|
+
if (!isDragging || !drawerRef.current) return;
|
1223
|
+
drawerRef.current.classList.remove(DRAG_CLASS);
|
1224
|
+
isAllowedToDrag.current = false;
|
1225
|
+
setIsDragging(false);
|
1226
|
+
dragEndTime.current = new Date();
|
1227
|
+
const swipeAmount = getTranslate(drawerRef.current, direction);
|
1228
|
+
if (!event || !shouldDrag(event.target, false) || !swipeAmount || Number.isNaN(swipeAmount)) return;
|
1229
|
+
if (dragStartTime.current === null) return;
|
1230
|
+
const timeTaken = dragEndTime.current.getTime() - dragStartTime.current.getTime();
|
1231
|
+
const distMoved = pointerStart.current - (isVertical(direction) ? event.pageY : event.pageX);
|
1232
|
+
const velocity = Math.abs(distMoved) / timeTaken;
|
1233
|
+
if (velocity > 0.05) {
|
1234
|
+
// `justReleased` is needed to prevent the drawer from focusing on an input when the drag ends, as it's not the intent most of the time.
|
1235
|
+
setJustReleased(true);
|
1236
|
+
setTimeout(()=>{
|
1237
|
+
setJustReleased(false);
|
1238
|
+
}, 200);
|
1239
|
+
}
|
1240
|
+
if (snapPoints) {
|
1241
|
+
const directionMultiplier = direction === 'bottom' || direction === 'right' ? 1 : -1;
|
1242
|
+
onReleaseSnapPoints({
|
1243
|
+
draggedDistance: distMoved * directionMultiplier,
|
1244
|
+
closeDrawer,
|
1245
|
+
velocity,
|
1246
|
+
dismissible
|
1247
|
+
});
|
1248
|
+
onReleaseProp == null ? void 0 : onReleaseProp(event, true);
|
1249
|
+
return;
|
1250
|
+
}
|
1251
|
+
// Moved upwards, don't do anything
|
1252
|
+
if (direction === 'bottom' || direction === 'right' ? distMoved > 0 : distMoved < 0) {
|
1253
|
+
resetDrawer();
|
1254
|
+
onReleaseProp == null ? void 0 : onReleaseProp(event, true);
|
1255
|
+
return;
|
1256
|
+
}
|
1257
|
+
if (velocity > VELOCITY_THRESHOLD) {
|
1258
|
+
closeDrawer();
|
1259
|
+
onReleaseProp == null ? void 0 : onReleaseProp(event, false);
|
1260
|
+
return;
|
1261
|
+
}
|
1262
|
+
var _drawerRef_current_getBoundingClientRect_height;
|
1263
|
+
const visibleDrawerHeight = Math.min((_drawerRef_current_getBoundingClientRect_height = drawerRef.current.getBoundingClientRect().height) != null ? _drawerRef_current_getBoundingClientRect_height : 0, window.innerHeight);
|
1264
|
+
var _drawerRef_current_getBoundingClientRect_width;
|
1265
|
+
const visibleDrawerWidth = Math.min((_drawerRef_current_getBoundingClientRect_width = drawerRef.current.getBoundingClientRect().width) != null ? _drawerRef_current_getBoundingClientRect_width : 0, window.innerWidth);
|
1266
|
+
const isHorizontalSwipe = direction === 'left' || direction === 'right';
|
1267
|
+
if (Math.abs(swipeAmount) >= (isHorizontalSwipe ? visibleDrawerWidth : visibleDrawerHeight) * closeThreshold) {
|
1268
|
+
closeDrawer();
|
1269
|
+
onReleaseProp == null ? void 0 : onReleaseProp(event, false);
|
1270
|
+
return;
|
1271
|
+
}
|
1272
|
+
onReleaseProp == null ? void 0 : onReleaseProp(event, true);
|
1273
|
+
resetDrawer();
|
1274
|
+
}
|
1275
|
+
React__default.useEffect(()=>{
|
1276
|
+
// Trigger enter animation without using CSS animation
|
1277
|
+
if (isOpen) {
|
1278
|
+
set(document.documentElement, {
|
1279
|
+
scrollBehavior: 'auto'
|
1280
|
+
});
|
1281
|
+
openTime.current = new Date();
|
1282
|
+
}
|
1283
|
+
return ()=>{
|
1284
|
+
reset(document.documentElement, 'scrollBehavior');
|
1285
|
+
};
|
1286
|
+
}, [
|
1287
|
+
isOpen
|
1288
|
+
]);
|
1289
|
+
function onNestedOpenChange(o) {
|
1290
|
+
const scale = o ? (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth : 1;
|
1291
|
+
const initialTranslate = o ? -NESTED_DISPLACEMENT : 0;
|
1292
|
+
if (nestedOpenChangeTimer.current) {
|
1293
|
+
window.clearTimeout(nestedOpenChangeTimer.current);
|
1294
|
+
}
|
1295
|
+
set(drawerRef.current, {
|
1296
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
1297
|
+
transform: isVertical(direction) ? `scale(${scale}) translate3d(0, ${initialTranslate}px, 0)` : `scale(${scale}) translate3d(${initialTranslate}px, 0, 0)`
|
1298
|
+
});
|
1299
|
+
if (!o && drawerRef.current) {
|
1300
|
+
nestedOpenChangeTimer.current = setTimeout(()=>{
|
1301
|
+
const translateValue = getTranslate(drawerRef.current, direction);
|
1302
|
+
set(drawerRef.current, {
|
1303
|
+
transition: 'none',
|
1304
|
+
transform: isVertical(direction) ? `translate3d(0, ${translateValue}px, 0)` : `translate3d(${translateValue}px, 0, 0)`
|
1305
|
+
});
|
1306
|
+
}, 500);
|
1307
|
+
}
|
1308
|
+
}
|
1309
|
+
function onNestedDrag(_event, percentageDragged) {
|
1310
|
+
if (percentageDragged < 0) return;
|
1311
|
+
const initialScale = (window.innerWidth - NESTED_DISPLACEMENT) / window.innerWidth;
|
1312
|
+
const newScale = initialScale + percentageDragged * (1 - initialScale);
|
1313
|
+
const newTranslate = -NESTED_DISPLACEMENT + percentageDragged * NESTED_DISPLACEMENT;
|
1314
|
+
set(drawerRef.current, {
|
1315
|
+
transform: isVertical(direction) ? `scale(${newScale}) translate3d(0, ${newTranslate}px, 0)` : `scale(${newScale}) translate3d(${newTranslate}px, 0, 0)`,
|
1316
|
+
transition: 'none'
|
1317
|
+
});
|
1318
|
+
}
|
1319
|
+
function onNestedRelease(_event, o) {
|
1320
|
+
const dim = isVertical(direction) ? window.innerHeight : window.innerWidth;
|
1321
|
+
const scale = o ? (dim - NESTED_DISPLACEMENT) / dim : 1;
|
1322
|
+
const translate = o ? -NESTED_DISPLACEMENT : 0;
|
1323
|
+
if (o) {
|
1324
|
+
set(drawerRef.current, {
|
1325
|
+
transition: `transform ${TRANSITIONS.DURATION}s cubic-bezier(${TRANSITIONS.EASE.join(',')})`,
|
1326
|
+
transform: isVertical(direction) ? `scale(${scale}) translate3d(0, ${translate}px, 0)` : `scale(${scale}) translate3d(${translate}px, 0, 0)`
|
1327
|
+
});
|
1328
|
+
}
|
1329
|
+
}
|
1330
|
+
React__default.useEffect(()=>{
|
1331
|
+
if (!modal) {
|
1332
|
+
// Need to do this manually unfortunately
|
1333
|
+
window.requestAnimationFrame(()=>{
|
1334
|
+
document.body.style.pointerEvents = 'auto';
|
1335
|
+
});
|
1336
|
+
}
|
1337
|
+
}, [
|
1338
|
+
modal
|
1339
|
+
]);
|
1340
|
+
return /*#__PURE__*/ React__default.createElement(Root$1, {
|
1341
|
+
defaultOpen: defaultOpen,
|
1342
|
+
onOpenChange: (open)=>{
|
1343
|
+
if (!dismissible && !open) return;
|
1344
|
+
if (open) {
|
1345
|
+
setHasBeenOpened(true);
|
1346
|
+
} else {
|
1347
|
+
closeDrawer(true);
|
1348
|
+
}
|
1349
|
+
setIsOpen(open);
|
1350
|
+
},
|
1351
|
+
open: isOpen
|
1352
|
+
}, /*#__PURE__*/ React__default.createElement(DrawerContext.Provider, {
|
1353
|
+
value: {
|
1354
|
+
activeSnapPoint,
|
1355
|
+
snapPoints,
|
1356
|
+
setActiveSnapPoint,
|
1357
|
+
drawerRef,
|
1358
|
+
overlayRef,
|
1359
|
+
onOpenChange,
|
1360
|
+
onPress,
|
1361
|
+
onRelease,
|
1362
|
+
onDrag,
|
1363
|
+
dismissible,
|
1364
|
+
shouldAnimate,
|
1365
|
+
handleOnly,
|
1366
|
+
isOpen,
|
1367
|
+
isDragging,
|
1368
|
+
shouldFade,
|
1369
|
+
closeDrawer,
|
1370
|
+
onNestedDrag,
|
1371
|
+
onNestedOpenChange,
|
1372
|
+
onNestedRelease,
|
1373
|
+
keyboardIsOpen,
|
1374
|
+
modal,
|
1375
|
+
snapPointsOffset,
|
1376
|
+
activeSnapPointIndex,
|
1377
|
+
direction,
|
1378
|
+
shouldScaleBackground,
|
1379
|
+
setBackgroundColorOnScale,
|
1380
|
+
noBodyStyles,
|
1381
|
+
container,
|
1382
|
+
autoFocus
|
1383
|
+
}
|
1384
|
+
}, children));
|
1385
|
+
}
|
1386
|
+
const Overlay = /*#__PURE__*/ React__default.forwardRef(function({ ...rest }, ref) {
|
1387
|
+
const { overlayRef, snapPoints, onRelease, shouldFade, isOpen, modal, shouldAnimate } = useDrawerContext();
|
1388
|
+
const composedRef = useComposedRefs(ref, overlayRef);
|
1389
|
+
const hasSnapPoints = snapPoints && snapPoints.length > 0;
|
1390
|
+
// Overlay is the component that is locking scroll, removing it will unlock the scroll without having to dig into Radix's Dialog library
|
1391
|
+
if (!modal) {
|
1392
|
+
return null;
|
1393
|
+
}
|
1394
|
+
const onMouseUp = React__default.useCallback((event)=>onRelease(event), [
|
1395
|
+
onRelease
|
1396
|
+
]);
|
1397
|
+
return /*#__PURE__*/ React__default.createElement(Overlay$1, {
|
1398
|
+
onMouseUp: onMouseUp,
|
1399
|
+
ref: composedRef,
|
1400
|
+
"data-vaul-overlay": "",
|
1401
|
+
"data-vaul-snap-points": isOpen && hasSnapPoints ? 'true' : 'false',
|
1402
|
+
"data-vaul-snap-points-overlay": isOpen && shouldFade ? 'true' : 'false',
|
1403
|
+
"data-vaul-animate": (shouldAnimate == null ? void 0 : shouldAnimate.current) ? 'true' : 'false',
|
1404
|
+
...rest
|
1405
|
+
});
|
1406
|
+
});
|
1407
|
+
Overlay.displayName = 'Drawer.Overlay';
|
1408
|
+
const Content = /*#__PURE__*/ React__default.forwardRef(function({ onPointerDownOutside, style, onOpenAutoFocus, ...rest }, ref) {
|
1409
|
+
const { drawerRef, onPress, onRelease, onDrag, keyboardIsOpen, snapPointsOffset, activeSnapPointIndex, modal, isOpen, direction, snapPoints, container, handleOnly, shouldAnimate, autoFocus } = useDrawerContext();
|
1410
|
+
// Needed to use transition instead of animations
|
1411
|
+
const [delayedSnapPoints, setDelayedSnapPoints] = React__default.useState(false);
|
1412
|
+
const composedRef = useComposedRefs(ref, drawerRef);
|
1413
|
+
const pointerStartRef = React__default.useRef(null);
|
1414
|
+
const lastKnownPointerEventRef = React__default.useRef(null);
|
1415
|
+
const wasBeyondThePointRef = React__default.useRef(false);
|
1416
|
+
const hasSnapPoints = snapPoints && snapPoints.length > 0;
|
1417
|
+
useScaleBackground();
|
1418
|
+
const isDeltaInDirection = (delta, direction, threshold = 0)=>{
|
1419
|
+
if (wasBeyondThePointRef.current) return true;
|
1420
|
+
const deltaY = Math.abs(delta.y);
|
1421
|
+
const deltaX = Math.abs(delta.x);
|
1422
|
+
const isDeltaX = deltaX > deltaY;
|
1423
|
+
const dFactor = [
|
1424
|
+
'bottom',
|
1425
|
+
'right'
|
1426
|
+
].includes(direction) ? 1 : -1;
|
1427
|
+
if (direction === 'left' || direction === 'right') {
|
1428
|
+
const isReverseDirection = delta.x * dFactor < 0;
|
1429
|
+
if (!isReverseDirection && deltaX >= 0 && deltaX <= threshold) {
|
1430
|
+
return isDeltaX;
|
1431
|
+
}
|
1432
|
+
} else {
|
1433
|
+
const isReverseDirection = delta.y * dFactor < 0;
|
1434
|
+
if (!isReverseDirection && deltaY >= 0 && deltaY <= threshold) {
|
1435
|
+
return !isDeltaX;
|
1436
|
+
}
|
1437
|
+
}
|
1438
|
+
wasBeyondThePointRef.current = true;
|
1439
|
+
return true;
|
1440
|
+
};
|
1441
|
+
React__default.useEffect(()=>{
|
1442
|
+
if (hasSnapPoints) {
|
1443
|
+
window.requestAnimationFrame(()=>{
|
1444
|
+
setDelayedSnapPoints(true);
|
1445
|
+
});
|
1446
|
+
}
|
1447
|
+
}, []);
|
1448
|
+
function handleOnPointerUp(event) {
|
1449
|
+
pointerStartRef.current = null;
|
1450
|
+
wasBeyondThePointRef.current = false;
|
1451
|
+
onRelease(event);
|
1452
|
+
}
|
1453
|
+
return /*#__PURE__*/ React__default.createElement(Content$1, {
|
1454
|
+
"data-vaul-drawer-direction": direction,
|
1455
|
+
"data-vaul-drawer": "",
|
1456
|
+
"data-vaul-delayed-snap-points": delayedSnapPoints ? 'true' : 'false',
|
1457
|
+
"data-vaul-snap-points": isOpen && hasSnapPoints ? 'true' : 'false',
|
1458
|
+
"data-vaul-custom-container": container ? 'true' : 'false',
|
1459
|
+
"data-vaul-animate": (shouldAnimate == null ? void 0 : shouldAnimate.current) ? 'true' : 'false',
|
1460
|
+
...rest,
|
1461
|
+
ref: composedRef,
|
1462
|
+
style: snapPointsOffset && snapPointsOffset.length > 0 ? {
|
1463
|
+
'--snap-point-height': `${snapPointsOffset[activeSnapPointIndex != null ? activeSnapPointIndex : 0]}px`,
|
1464
|
+
...style
|
1465
|
+
} : style,
|
1466
|
+
onPointerDown: (event)=>{
|
1467
|
+
if (handleOnly) return;
|
1468
|
+
rest.onPointerDown == null ? void 0 : rest.onPointerDown.call(rest, event);
|
1469
|
+
pointerStartRef.current = {
|
1470
|
+
x: event.pageX,
|
1471
|
+
y: event.pageY
|
1472
|
+
};
|
1473
|
+
onPress(event);
|
1474
|
+
},
|
1475
|
+
onOpenAutoFocus: (e)=>{
|
1476
|
+
onOpenAutoFocus == null ? void 0 : onOpenAutoFocus(e);
|
1477
|
+
if (!autoFocus) {
|
1478
|
+
e.preventDefault();
|
1479
|
+
}
|
1480
|
+
},
|
1481
|
+
onPointerDownOutside: (e)=>{
|
1482
|
+
onPointerDownOutside == null ? void 0 : onPointerDownOutside(e);
|
1483
|
+
if (!modal || e.defaultPrevented) {
|
1484
|
+
e.preventDefault();
|
1485
|
+
return;
|
1486
|
+
}
|
1487
|
+
if (keyboardIsOpen.current) {
|
1488
|
+
keyboardIsOpen.current = false;
|
1489
|
+
}
|
1490
|
+
},
|
1491
|
+
onFocusOutside: (e)=>{
|
1492
|
+
if (!modal) {
|
1493
|
+
e.preventDefault();
|
1494
|
+
return;
|
1495
|
+
}
|
1496
|
+
},
|
1497
|
+
onPointerMove: (event)=>{
|
1498
|
+
lastKnownPointerEventRef.current = event;
|
1499
|
+
if (handleOnly) return;
|
1500
|
+
rest.onPointerMove == null ? void 0 : rest.onPointerMove.call(rest, event);
|
1501
|
+
if (!pointerStartRef.current) return;
|
1502
|
+
const yPosition = event.pageY - pointerStartRef.current.y;
|
1503
|
+
const xPosition = event.pageX - pointerStartRef.current.x;
|
1504
|
+
const swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;
|
1505
|
+
const delta = {
|
1506
|
+
x: xPosition,
|
1507
|
+
y: yPosition
|
1508
|
+
};
|
1509
|
+
const isAllowedToSwipe = isDeltaInDirection(delta, direction, swipeStartThreshold);
|
1510
|
+
if (isAllowedToSwipe) onDrag(event);
|
1511
|
+
else if (Math.abs(xPosition) > swipeStartThreshold || Math.abs(yPosition) > swipeStartThreshold) {
|
1512
|
+
pointerStartRef.current = null;
|
1513
|
+
}
|
1514
|
+
},
|
1515
|
+
onPointerUp: (event)=>{
|
1516
|
+
rest.onPointerUp == null ? void 0 : rest.onPointerUp.call(rest, event);
|
1517
|
+
pointerStartRef.current = null;
|
1518
|
+
wasBeyondThePointRef.current = false;
|
1519
|
+
onRelease(event);
|
1520
|
+
},
|
1521
|
+
onPointerOut: (event)=>{
|
1522
|
+
rest.onPointerOut == null ? void 0 : rest.onPointerOut.call(rest, event);
|
1523
|
+
handleOnPointerUp(lastKnownPointerEventRef.current);
|
1524
|
+
},
|
1525
|
+
onContextMenu: (event)=>{
|
1526
|
+
rest.onContextMenu == null ? void 0 : rest.onContextMenu.call(rest, event);
|
1527
|
+
if (lastKnownPointerEventRef.current) {
|
1528
|
+
handleOnPointerUp(lastKnownPointerEventRef.current);
|
1529
|
+
}
|
1530
|
+
}
|
1531
|
+
});
|
1532
|
+
});
|
1533
|
+
Content.displayName = 'Drawer.Content';
|
1534
|
+
const LONG_HANDLE_PRESS_TIMEOUT = 250;
|
1535
|
+
const DOUBLE_TAP_TIMEOUT = 120;
|
1536
|
+
const Handle = /*#__PURE__*/ React__default.forwardRef(function({ preventCycle = false, children, ...rest }, ref) {
|
1537
|
+
const { closeDrawer, isDragging, snapPoints, activeSnapPoint, setActiveSnapPoint, dismissible, handleOnly, isOpen, onPress, onDrag } = useDrawerContext();
|
1538
|
+
const closeTimeoutIdRef = React__default.useRef(null);
|
1539
|
+
const shouldCancelInteractionRef = React__default.useRef(false);
|
1540
|
+
function handleStartCycle() {
|
1541
|
+
// Stop if this is the second click of a double click
|
1542
|
+
if (shouldCancelInteractionRef.current) {
|
1543
|
+
handleCancelInteraction();
|
1544
|
+
return;
|
1545
|
+
}
|
1546
|
+
window.setTimeout(()=>{
|
1547
|
+
handleCycleSnapPoints();
|
1548
|
+
}, DOUBLE_TAP_TIMEOUT);
|
1549
|
+
}
|
1550
|
+
function handleCycleSnapPoints() {
|
1551
|
+
// Prevent accidental taps while resizing drawer
|
1552
|
+
if (isDragging || preventCycle || shouldCancelInteractionRef.current) {
|
1553
|
+
handleCancelInteraction();
|
1554
|
+
return;
|
1555
|
+
}
|
1556
|
+
// Make sure to clear the timeout id if the user releases the handle before the cancel timeout
|
1557
|
+
handleCancelInteraction();
|
1558
|
+
if (!snapPoints || snapPoints.length === 0) {
|
1559
|
+
if (!dismissible) {
|
1560
|
+
closeDrawer();
|
1561
|
+
}
|
1562
|
+
return;
|
1563
|
+
}
|
1564
|
+
const isLastSnapPoint = activeSnapPoint === snapPoints[snapPoints.length - 1];
|
1565
|
+
if (isLastSnapPoint && dismissible) {
|
1566
|
+
closeDrawer();
|
1567
|
+
return;
|
1568
|
+
}
|
1569
|
+
const currentSnapIndex = snapPoints.findIndex((point)=>point === activeSnapPoint);
|
1570
|
+
if (currentSnapIndex === -1) return; // activeSnapPoint not found in snapPoints
|
1571
|
+
const nextSnapPoint = snapPoints[currentSnapIndex + 1];
|
1572
|
+
setActiveSnapPoint(nextSnapPoint);
|
1573
|
+
}
|
1574
|
+
function handleStartInteraction() {
|
1575
|
+
closeTimeoutIdRef.current = window.setTimeout(()=>{
|
1576
|
+
// Cancel click interaction on a long press
|
1577
|
+
shouldCancelInteractionRef.current = true;
|
1578
|
+
}, LONG_HANDLE_PRESS_TIMEOUT);
|
1579
|
+
}
|
1580
|
+
function handleCancelInteraction() {
|
1581
|
+
if (closeTimeoutIdRef.current) {
|
1582
|
+
window.clearTimeout(closeTimeoutIdRef.current);
|
1583
|
+
}
|
1584
|
+
shouldCancelInteractionRef.current = false;
|
1585
|
+
}
|
1586
|
+
return /*#__PURE__*/ React__default.createElement("div", {
|
1587
|
+
onClick: handleStartCycle,
|
1588
|
+
onPointerCancel: handleCancelInteraction,
|
1589
|
+
onPointerDown: (e)=>{
|
1590
|
+
if (handleOnly) onPress(e);
|
1591
|
+
handleStartInteraction();
|
1592
|
+
},
|
1593
|
+
onPointerMove: (e)=>{
|
1594
|
+
if (handleOnly) onDrag(e);
|
1595
|
+
},
|
1596
|
+
// onPointerUp is already handled by the content component
|
1597
|
+
ref: ref,
|
1598
|
+
"data-vaul-drawer-visible": isOpen ? 'true' : 'false',
|
1599
|
+
"data-vaul-handle": "",
|
1600
|
+
"aria-hidden": "true",
|
1601
|
+
...rest
|
1602
|
+
}, /*#__PURE__*/ React__default.createElement("span", {
|
1603
|
+
"data-vaul-handle-hitarea": "",
|
1604
|
+
"aria-hidden": "true"
|
1605
|
+
}, children));
|
1606
|
+
});
|
1607
|
+
Handle.displayName = 'Drawer.Handle';
|
1608
|
+
function NestedRoot({ onDrag, onOpenChange, open: nestedIsOpen, ...rest }) {
|
1609
|
+
const { onNestedDrag, onNestedOpenChange, onNestedRelease } = useDrawerContext();
|
1610
|
+
if (!onNestedDrag) {
|
1611
|
+
throw new Error('Drawer.NestedRoot must be placed in another drawer');
|
1612
|
+
}
|
1613
|
+
return /*#__PURE__*/ React__default.createElement(Root, {
|
1614
|
+
nested: true,
|
1615
|
+
open: nestedIsOpen,
|
1616
|
+
onClose: ()=>{
|
1617
|
+
onNestedOpenChange(false);
|
1618
|
+
},
|
1619
|
+
onDrag: (e, p)=>{
|
1620
|
+
onNestedDrag(e, p);
|
1621
|
+
onDrag == null ? void 0 : onDrag(e, p);
|
1622
|
+
},
|
1623
|
+
onOpenChange: (o)=>{
|
1624
|
+
if (o) {
|
1625
|
+
onNestedOpenChange(o);
|
1626
|
+
}
|
1627
|
+
onOpenChange == null ? void 0 : onOpenChange(o);
|
1628
|
+
},
|
1629
|
+
onRelease: onNestedRelease,
|
1630
|
+
...rest
|
1631
|
+
});
|
1632
|
+
}
|
1633
|
+
function Portal(props) {
|
1634
|
+
const context = useDrawerContext();
|
1635
|
+
const { container = context.container, ...portalProps } = props;
|
1636
|
+
return /*#__PURE__*/ React__default.createElement(Portal$1, {
|
1637
|
+
container: container,
|
1638
|
+
...portalProps
|
1639
|
+
});
|
1640
|
+
}
|
1641
|
+
const Drawer = {
|
1642
|
+
Root,
|
1643
|
+
NestedRoot,
|
1644
|
+
Content,
|
1645
|
+
Overlay,
|
1646
|
+
Trigger: Trigger,
|
1647
|
+
Portal,
|
1648
|
+
Handle,
|
1649
|
+
Close: Close,
|
1650
|
+
Title: Title,
|
1651
|
+
Description: Description
|
1652
|
+
};
|
1653
|
+
|
1654
|
+
export { Content, Drawer, Handle, NestedRoot, Overlay, Portal, Root };
|
1655
|
+
//# sourceMappingURL=index.js.map
|