@hirely/ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -8
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/ui/{accordion.es.js → accordion.js} +2 -2
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/{alert-dialog.es.js → alert-dialog.js} +3 -3
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/{alert-wrapper.es.js → alert-wrapper.js} +3 -3
- package/dist/components/ui/alert-wrapper.js.map +1 -0
- package/dist/components/ui/{alert.es.js → alert.js} +3 -3
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/{aspect-ratio.es.js → aspect-ratio.js} +2 -2
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/{attachment.es.js → attachment.js} +4 -4
- package/dist/components/ui/attachment.js.map +1 -0
- package/dist/components/ui/{avatar.es.js → avatar.js} +2 -2
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/{badge.es.js → badge.js} +3 -3
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/bouncy-accordion.d.ts +28 -0
- package/dist/components/ui/bouncy-accordion.js +148 -0
- package/dist/components/ui/bouncy-accordion.js.map +1 -0
- package/dist/components/ui/{breadcrumb.es.js → breadcrumb.js} +2 -2
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/{bubble.es.js → bubble.js} +3 -3
- package/dist/components/ui/bubble.js.map +1 -0
- package/dist/components/ui/{button-group.es.js → button-group.js} +4 -4
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/{button.es.js → button.js} +3 -3
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/{calendar.es.js → calendar.js} +3 -3
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/{card.es.js → card.js} +4 -4
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/{carousel.es.js → carousel.js} +4 -4
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/{chart.es.js → chart.js} +2 -2
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/{checkbox.es.js → checkbox.js} +2 -2
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/{collapsible.es.js → collapsible.js} +1 -1
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/{combobox.es.js → combobox.js} +4 -4
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/{command.es.js → command.js} +5 -5
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/{context-menu.es.js → context-menu.js} +2 -2
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dashboard-pagination.d.ts +7 -0
- package/dist/components/ui/{dialog.es.js → dialog.js} +3 -3
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/{drawer.es.js → drawer.js} +2 -2
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/{dropdown-menu.es.js → dropdown-menu.js} +2 -2
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/{empty.es.js → empty.js} +3 -3
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/{field.es.js → field.js} +5 -5
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/generate-ai-button.d.ts +10 -0
- package/dist/components/ui/generate-ai-button.js +20 -0
- package/dist/components/ui/generate-ai-button.js.map +1 -0
- package/dist/components/ui/{hover-card.es.js → hover-card.js} +2 -2
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/image-cropper.d.ts +19 -0
- package/dist/components/ui/image-cropper.js +155 -0
- package/dist/components/ui/image-cropper.js.map +1 -0
- package/dist/components/ui/image-upload.d.ts +30 -0
- package/dist/components/ui/image-upload.js +121 -0
- package/dist/components/ui/image-upload.js.map +1 -0
- package/dist/components/ui/{input-group.es.js → input-group.js} +6 -6
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/{input-otp.es.js → input-otp.js} +3 -3
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/{input.es.js → input.js} +2 -2
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/{item.es.js → item.js} +4 -4
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/{kbd.es.js → kbd.js} +2 -2
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/{label.es.js → label.js} +2 -2
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/{marker.es.js → marker.js} +3 -3
- package/dist/components/ui/marker.js.map +1 -0
- package/dist/components/ui/{menubar.es.js → menubar.js} +3 -3
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/{message-scroller.es.js → message-scroller.js} +3 -3
- package/dist/components/ui/message-scroller.js.map +1 -0
- package/dist/components/ui/{message.es.js → message.js} +2 -2
- package/dist/components/ui/message.js.map +1 -0
- package/dist/components/ui/{native-select.es.js → native-select.js} +2 -2
- package/dist/components/ui/native-select.js.map +1 -0
- package/dist/components/ui/{navigation-menu.es.js → navigation-menu.js} +3 -3
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/not-found-dashboard.d.ts +5 -0
- package/dist/components/ui/{pagination.es.js → pagination.js} +3 -3
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/{popover.es.js → popover.js} +2 -2
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/{progress.es.js → progress.js} +2 -2
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/{radio-group.es.js → radio-group.js} +2 -2
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/{resizable.es.js → resizable.js} +3 -3
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/{scroll-area.es.js → scroll-area.js} +2 -2
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/{select.es.js → select.js} +2 -2
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/{separator.es.js → separator.js} +2 -2
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/{sheet.es.js → sheet.js} +3 -3
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/{sidebar.es.js → sidebar.js} +10 -10
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/{skeleton.es.js → skeleton.js} +2 -2
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/{slider.es.js → slider.js} +4 -4
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/{sonner.es.js → sonner.js} +1 -1
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/{spinner.es.js → spinner.js} +2 -2
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/stats-header.d.ts +13 -0
- package/dist/components/ui/{switch.es.js → switch.js} +2 -2
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/{table.es.js → table.js} +2 -2
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/{tabs.es.js → tabs.js} +3 -3
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/text-header.d.ts +6 -0
- package/dist/components/ui/{textarea.es.js → textarea.js} +2 -2
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/{toggle-group.es.js → toggle-group.js} +3 -3
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/{toggle.es.js → toggle.js} +3 -3
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/{tooltip.es.js → tooltip.js} +2 -2
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/functions/cropImage.d.ts +15 -0
- package/dist/functions/cropImage.js +38 -0
- package/dist/functions/cropImage.js.map +1 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/{use-mobile.es.js → use-mobile.js} +1 -1
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +67 -0
- package/dist/lib/ease.d.ts +39 -0
- package/dist/lib/ease.js +11 -0
- package/dist/lib/ease.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/{index.es.js → index.js} +15 -15
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/{index.es.js → index.js} +5 -5
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/{index.es.js → index.js} +4 -4
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/{index.es.js → index.js} +3 -3
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/.bun/attr-accept@2.2.5/node_modules/attr-accept/dist/es/index.js +21 -0
- package/dist/node_modules/.bun/attr-accept@2.2.5/node_modules/attr-accept/dist/es/index.js.map +1 -0
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/{index.es.js → index.js} +2 -2
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/{clsx.es.js → clsx.js} +1 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/{chunk-NZJY6EH4.es.js → chunk-NZJY6EH4.js} +1 -1
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.js.map +1 -0
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/{index.es.js → index.js} +6 -6
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/{embla-carousel-react.esm.es.js → embla-carousel-react.esm.js} +3 -3
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/{embla-carousel-reactive-utils.esm.es.js → embla-carousel-reactive-utils.esm.js} +1 -1
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +1 -0
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/{embla-carousel.esm.es.js → embla-carousel.esm.js} +1 -1
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +1 -0
- package/dist/node_modules/.bun/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js +111 -0
- package/dist/node_modules/.bun/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js.map +1 -0
- package/dist/node_modules/.bun/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file.js +1236 -0
- package/dist/node_modules/.bun/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file.js.map +1 -0
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/{index.es.js → index.js} +1 -1
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.js.map +1 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/index.js +11 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/index.js.map +1 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/ExecutionEnvironment.js +17 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/ExecutionEnvironment.js.map +1 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js +79 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/UserAgent_DEPRECATED.js.map +1 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/isEventSupported.js +22 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/isEventSupported.js.map +1 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/normalizeWheel.js +24 -0
- package/dist/node_modules/.bun/normalize-wheel@1.0.1/node_modules/normalize-wheel/src/normalizeWheel.js.map +1 -0
- package/dist/node_modules/.bun/object-assign@4.1.1/node_modules/object-assign/index.js +41 -0
- package/dist/node_modules/.bun/object-assign@4.1.1/node_modules/object-assign/index.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js +46 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js +49 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +272 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/index.js +16 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/index.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/lib/has.js +10 -0
- package/dist/node_modules/.bun/prop-types@15.8.1/node_modules/prop-types/lib/has.js.map +1 -0
- package/dist/node_modules/.bun/react-dropzone@15.0.0_e14d3f224186685e/node_modules/react-dropzone/dist/es/index.js +485 -0
- package/dist/node_modules/.bun/react-dropzone@15.0.0_e14d3f224186685e/node_modules/react-dropzone/dist/es/index.js.map +1 -0
- package/dist/node_modules/.bun/react-dropzone@15.0.0_e14d3f224186685e/node_modules/react-dropzone/dist/es/utils/index.js +201 -0
- package/dist/node_modules/.bun/react-dropzone@15.0.0_e14d3f224186685e/node_modules/react-dropzone/dist/es/utils/index.js.map +1 -0
- package/dist/node_modules/.bun/react-easy-crop@6.2.2_7492c01c6988791b/node_modules/react-easy-crop/index.module.js +512 -0
- package/dist/node_modules/.bun/react-easy-crop@6.2.2_7492c01c6988791b/node_modules/react-easy-crop/index.module.js.map +1 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +84 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +64 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/{component.es.js → component.js} +5 -5
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/{constants.es.js → constants.js} +1 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.js +4 -0
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/{utils.es.js → utils.js} +1 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{Combination.es.js → Combination.js} +4 -4
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{SideEffect.es.js → SideEffect.js} +8 -8
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{UI.es.js → UI.js} +5 -5
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{aggresiveCapture.es.js → aggresiveCapture.js} +1 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{handleScroll.es.js → handleScroll.js} +1 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{medium.es.js → medium.js} +2 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/{sidecar.es.js → sidecar.js} +4 -4
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/{react-resizable-panels.es.js → react-resizable-panels.js} +1 -1
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/{component.es.js → component.js} +2 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/{hook.es.js → hook.js} +2 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.js +4 -0
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/{singleton.es.js → singleton.js} +2 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/{tslib.es6.es.js → tslib.es6.js} +30 -3
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/{assignRef.es.js → assignRef.js} +1 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/{useMergeRef.es.js → useMergeRef.js} +3 -3
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/{useRef.es.js → useRef.js} +1 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/{exports.es.js → exports.js} +2 -2
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/{medium.es.js → medium.js} +2 -2
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/package.json +296 -13
- package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
- package/dist/components/ui/accordion.cjs.js +0 -2
- package/dist/components/ui/accordion.cjs.js.map +0 -1
- package/dist/components/ui/accordion.es.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs.js +0 -2
- package/dist/components/ui/alert-dialog.cjs.js.map +0 -1
- package/dist/components/ui/alert-dialog.es.js.map +0 -1
- package/dist/components/ui/alert-wrapper.cjs.js +0 -2
- package/dist/components/ui/alert-wrapper.cjs.js.map +0 -1
- package/dist/components/ui/alert-wrapper.es.js.map +0 -1
- package/dist/components/ui/alert.cjs.js +0 -2
- package/dist/components/ui/alert.cjs.js.map +0 -1
- package/dist/components/ui/alert.es.js.map +0 -1
- package/dist/components/ui/aspect-ratio.cjs.js +0 -2
- package/dist/components/ui/aspect-ratio.cjs.js.map +0 -1
- package/dist/components/ui/aspect-ratio.es.js.map +0 -1
- package/dist/components/ui/attachment.cjs.js +0 -2
- package/dist/components/ui/attachment.cjs.js.map +0 -1
- package/dist/components/ui/attachment.es.js.map +0 -1
- package/dist/components/ui/avatar.cjs.js +0 -2
- package/dist/components/ui/avatar.cjs.js.map +0 -1
- package/dist/components/ui/avatar.es.js.map +0 -1
- package/dist/components/ui/badge.cjs.js +0 -2
- package/dist/components/ui/badge.cjs.js.map +0 -1
- package/dist/components/ui/badge.es.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs.js +0 -2
- package/dist/components/ui/breadcrumb.cjs.js.map +0 -1
- package/dist/components/ui/breadcrumb.es.js.map +0 -1
- package/dist/components/ui/bubble.cjs.js +0 -2
- package/dist/components/ui/bubble.cjs.js.map +0 -1
- package/dist/components/ui/bubble.es.js.map +0 -1
- package/dist/components/ui/button-group.cjs.js +0 -2
- package/dist/components/ui/button-group.cjs.js.map +0 -1
- package/dist/components/ui/button-group.es.js.map +0 -1
- package/dist/components/ui/button.cjs.js +0 -2
- package/dist/components/ui/button.cjs.js.map +0 -1
- package/dist/components/ui/button.es.js.map +0 -1
- package/dist/components/ui/calendar.cjs.js +0 -2
- package/dist/components/ui/calendar.cjs.js.map +0 -1
- package/dist/components/ui/calendar.es.js.map +0 -1
- package/dist/components/ui/card.cjs.js +0 -2
- package/dist/components/ui/card.cjs.js.map +0 -1
- package/dist/components/ui/card.es.js.map +0 -1
- package/dist/components/ui/carousel.cjs.js +0 -2
- package/dist/components/ui/carousel.cjs.js.map +0 -1
- package/dist/components/ui/carousel.es.js.map +0 -1
- package/dist/components/ui/chart.cjs.js +0 -8
- package/dist/components/ui/chart.cjs.js.map +0 -1
- package/dist/components/ui/chart.es.js.map +0 -1
- package/dist/components/ui/checkbox.cjs.js +0 -2
- package/dist/components/ui/checkbox.cjs.js.map +0 -1
- package/dist/components/ui/checkbox.es.js.map +0 -1
- package/dist/components/ui/collapsible.cjs.js +0 -2
- package/dist/components/ui/collapsible.cjs.js.map +0 -1
- package/dist/components/ui/collapsible.es.js.map +0 -1
- package/dist/components/ui/combobox.cjs.js +0 -2
- package/dist/components/ui/combobox.cjs.js.map +0 -1
- package/dist/components/ui/combobox.es.js.map +0 -1
- package/dist/components/ui/command.cjs.js +0 -2
- package/dist/components/ui/command.cjs.js.map +0 -1
- package/dist/components/ui/command.es.js.map +0 -1
- package/dist/components/ui/context-menu.cjs.js +0 -2
- package/dist/components/ui/context-menu.cjs.js.map +0 -1
- package/dist/components/ui/context-menu.es.js.map +0 -1
- package/dist/components/ui/dialog.cjs.js +0 -2
- package/dist/components/ui/dialog.cjs.js.map +0 -1
- package/dist/components/ui/dialog.es.js.map +0 -1
- package/dist/components/ui/drawer.cjs.js +0 -2
- package/dist/components/ui/drawer.cjs.js.map +0 -1
- package/dist/components/ui/drawer.es.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs.js +0 -2
- package/dist/components/ui/dropdown-menu.cjs.js.map +0 -1
- package/dist/components/ui/dropdown-menu.es.js.map +0 -1
- package/dist/components/ui/empty.cjs.js +0 -2
- package/dist/components/ui/empty.cjs.js.map +0 -1
- package/dist/components/ui/empty.es.js.map +0 -1
- package/dist/components/ui/field.cjs.js +0 -2
- package/dist/components/ui/field.cjs.js.map +0 -1
- package/dist/components/ui/field.es.js.map +0 -1
- package/dist/components/ui/hover-card.cjs.js +0 -2
- package/dist/components/ui/hover-card.cjs.js.map +0 -1
- package/dist/components/ui/hover-card.es.js.map +0 -1
- package/dist/components/ui/input-group.cjs.js +0 -2
- package/dist/components/ui/input-group.cjs.js.map +0 -1
- package/dist/components/ui/input-group.es.js.map +0 -1
- package/dist/components/ui/input-otp.cjs.js +0 -2
- package/dist/components/ui/input-otp.cjs.js.map +0 -1
- package/dist/components/ui/input-otp.es.js.map +0 -1
- package/dist/components/ui/input.cjs.js +0 -2
- package/dist/components/ui/input.cjs.js.map +0 -1
- package/dist/components/ui/input.es.js.map +0 -1
- package/dist/components/ui/item.cjs.js +0 -2
- package/dist/components/ui/item.cjs.js.map +0 -1
- package/dist/components/ui/item.es.js.map +0 -1
- package/dist/components/ui/kbd.cjs.js +0 -2
- package/dist/components/ui/kbd.cjs.js.map +0 -1
- package/dist/components/ui/kbd.es.js.map +0 -1
- package/dist/components/ui/label.cjs.js +0 -2
- package/dist/components/ui/label.cjs.js.map +0 -1
- package/dist/components/ui/label.es.js.map +0 -1
- package/dist/components/ui/marker.cjs.js +0 -2
- package/dist/components/ui/marker.cjs.js.map +0 -1
- package/dist/components/ui/marker.es.js.map +0 -1
- package/dist/components/ui/menubar.cjs.js +0 -2
- package/dist/components/ui/menubar.cjs.js.map +0 -1
- package/dist/components/ui/menubar.es.js.map +0 -1
- package/dist/components/ui/message-scroller.cjs.js +0 -2
- package/dist/components/ui/message-scroller.cjs.js.map +0 -1
- package/dist/components/ui/message-scroller.es.js.map +0 -1
- package/dist/components/ui/message.cjs.js +0 -2
- package/dist/components/ui/message.cjs.js.map +0 -1
- package/dist/components/ui/message.es.js.map +0 -1
- package/dist/components/ui/native-select.cjs.js +0 -2
- package/dist/components/ui/native-select.cjs.js.map +0 -1
- package/dist/components/ui/native-select.es.js.map +0 -1
- package/dist/components/ui/navigation-menu.cjs.js +0 -2
- package/dist/components/ui/navigation-menu.cjs.js.map +0 -1
- package/dist/components/ui/navigation-menu.es.js.map +0 -1
- package/dist/components/ui/pagination.cjs.js +0 -2
- package/dist/components/ui/pagination.cjs.js.map +0 -1
- package/dist/components/ui/pagination.es.js.map +0 -1
- package/dist/components/ui/popover.cjs.js +0 -2
- package/dist/components/ui/popover.cjs.js.map +0 -1
- package/dist/components/ui/popover.es.js.map +0 -1
- package/dist/components/ui/progress.cjs.js +0 -2
- package/dist/components/ui/progress.cjs.js.map +0 -1
- package/dist/components/ui/progress.es.js.map +0 -1
- package/dist/components/ui/radio-group.cjs.js +0 -2
- package/dist/components/ui/radio-group.cjs.js.map +0 -1
- package/dist/components/ui/radio-group.es.js.map +0 -1
- package/dist/components/ui/resizable.cjs.js +0 -2
- package/dist/components/ui/resizable.cjs.js.map +0 -1
- package/dist/components/ui/resizable.es.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs.js +0 -2
- package/dist/components/ui/scroll-area.cjs.js.map +0 -1
- package/dist/components/ui/scroll-area.es.js.map +0 -1
- package/dist/components/ui/select.cjs.js +0 -2
- package/dist/components/ui/select.cjs.js.map +0 -1
- package/dist/components/ui/select.es.js.map +0 -1
- package/dist/components/ui/separator.cjs.js +0 -2
- package/dist/components/ui/separator.cjs.js.map +0 -1
- package/dist/components/ui/separator.es.js.map +0 -1
- package/dist/components/ui/sheet.cjs.js +0 -2
- package/dist/components/ui/sheet.cjs.js.map +0 -1
- package/dist/components/ui/sheet.es.js.map +0 -1
- package/dist/components/ui/sidebar.cjs.js +0 -2
- package/dist/components/ui/sidebar.cjs.js.map +0 -1
- package/dist/components/ui/sidebar.es.js.map +0 -1
- package/dist/components/ui/skeleton.cjs.js +0 -2
- package/dist/components/ui/skeleton.cjs.js.map +0 -1
- package/dist/components/ui/skeleton.es.js.map +0 -1
- package/dist/components/ui/slider.cjs.js +0 -2
- package/dist/components/ui/slider.cjs.js.map +0 -1
- package/dist/components/ui/slider.es.js.map +0 -1
- package/dist/components/ui/sonner.cjs.js +0 -2
- package/dist/components/ui/sonner.cjs.js.map +0 -1
- package/dist/components/ui/sonner.es.js.map +0 -1
- package/dist/components/ui/spinner.cjs.js +0 -2
- package/dist/components/ui/spinner.cjs.js.map +0 -1
- package/dist/components/ui/spinner.es.js.map +0 -1
- package/dist/components/ui/switch.cjs.js +0 -2
- package/dist/components/ui/switch.cjs.js.map +0 -1
- package/dist/components/ui/switch.es.js.map +0 -1
- package/dist/components/ui/table.cjs.js +0 -2
- package/dist/components/ui/table.cjs.js.map +0 -1
- package/dist/components/ui/table.es.js.map +0 -1
- package/dist/components/ui/tabs.cjs.js +0 -2
- package/dist/components/ui/tabs.cjs.js.map +0 -1
- package/dist/components/ui/tabs.es.js.map +0 -1
- package/dist/components/ui/textarea.cjs.js +0 -2
- package/dist/components/ui/textarea.cjs.js.map +0 -1
- package/dist/components/ui/textarea.es.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs.js +0 -2
- package/dist/components/ui/toggle-group.cjs.js.map +0 -1
- package/dist/components/ui/toggle-group.es.js.map +0 -1
- package/dist/components/ui/toggle.cjs.js +0 -2
- package/dist/components/ui/toggle.cjs.js.map +0 -1
- package/dist/components/ui/toggle.es.js.map +0 -1
- package/dist/components/ui/tooltip.cjs.js +0 -2
- package/dist/components/ui/tooltip.cjs.js.map +0 -1
- package/dist/components/ui/tooltip.es.js.map +0 -1
- package/dist/hooks/index.cjs.js +0 -1
- package/dist/hooks/index.es.js +0 -2
- package/dist/hooks/use-mobile.cjs.js +0 -2
- package/dist/hooks/use-mobile.cjs.js.map +0 -1
- package/dist/hooks/use-mobile.es.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -63
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-dialog@1.1.19_ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/@radix-ui_react-use-layout-effect@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js +0 -2
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +0 -1
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js +0 -2
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs.js.map +0 -1
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.es.js.map +0 -1
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js +0 -2
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.cjs.js.map +0 -1
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/chunk-NZJY6EH4.es.js.map +0 -1
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/cmdk@1.1.1_ae2b4604ef263bc9/node_modules/cmdk/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js +0 -2
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js +0 -2
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel-react@8.6.0_e14d3f224186685e/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.es.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js +0 -2
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel-reactive-utils@8.6.0_3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.es.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js +0 -2
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.js.map +0 -1
- package/dist/node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.es.js.map +0 -1
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js +0 -2
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.es.js.map +0 -1
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js +0 -21
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.cjs.js.map +0 -1
- package/dist/node_modules/.bun/input-otp@1.4.2_7492c01c6988791b/node_modules/input-otp/dist/index.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js +0 -39
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/constants.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs.js +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/index.es.js +0 -4
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll-bar@2.3.8_93dbe784b8baa420/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js +0 -5
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/UI.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/medium.es.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js +0 -2
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/sidecar.es.js.map +0 -1
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js +0 -2
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-resizable-panels@4.12.1_7492c01c6988791b/node_modules/react-resizable-panels/dist/react-resizable-panels.es.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js +0 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/component.es.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js +0 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.cjs.js +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/index.es.js +0 -4
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js +0 -2
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.cjs.js.map +0 -1
- package/dist/node_modules/.bun/react-style-singleton@2.2.3_93dbe784b8baa420/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js +0 -2
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs.js.map +0 -1
- package/dist/node_modules/.bun/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js +0 -2
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/assignRef.es.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js +0 -2
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js +0 -2
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.cjs.js.map +0 -1
- package/dist/node_modules/.bun/use-callback-ref@1.3.3_93dbe784b8baa420/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +0 -1
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js +0 -2
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.cjs.js.map +0 -1
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/exports.es.js.map +0 -1
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js +0 -2
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.cjs.js.map +0 -1
- package/dist/node_modules/.bun/use-sidecar@1.1.3_93dbe784b8baa420/node_modules/use-sidecar/dist/es2015/medium.es.js.map +0 -1
- /package/dist/components/ui/{direction.es.js → direction.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.cjs.js","names":[],"sources":["../../../src/components/ui/toggle-group.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\"\nimport { ToggleGroup as ToggleGroupPrimitive } from \"@base-ui/react/toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\nimport { toggleVariants } from \"./toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: \"horizontal\" | \"vertical\"\n }\n>({\n size: \"default\",\n variant: \"default\",\n spacing: 2,\n orientation: \"horizontal\",\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n spacing = 2,\n orientation = \"horizontal\",\n children,\n ...props\n}: ToggleGroupPrimitive.Props &\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: \"horizontal\" | \"vertical\"\n }) {\n return (\n <ToggleGroupPrimitive\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n data-orientation={orientation}\n style={{ \"--gap\": spacing } as React.CSSProperties}\n className={cn(\n \"group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch\",\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider\n value={{ variant, size, spacing, orientation }}\n >\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant = \"default\",\n size = \"default\",\n ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <TogglePrimitive\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-spacing={context.spacing}\n className={cn(\n \"shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t\",\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n className\n )}\n {...props}\n >\n {children}\n </TogglePrimitive>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"mappings":"oVAUA,IAAM,EAAqB,EAAM,cAK/B,CACA,KAAM,UACN,QAAS,UACT,QAAS,EACT,YAAa,YACf,CAAC,EAED,SAAS,EAAY,CACnB,YACA,UACA,OACA,UAAU,EACV,cAAc,aACd,WACA,GAAG,GAKA,CACH,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,YAAD,CACE,YAAU,eACV,eAAc,EACd,YAAW,EACX,eAAc,EACd,mBAAkB,EAClB,MAAO,CAAE,QAAS,CAAQ,EAC1B,UAAW,EAAA,GACT,oMACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,IAAA,CAAC,EAAmB,SAApB,CACE,MAAO,CAAE,UAAS,OAAM,UAAS,aAAY,EAE5C,UAC0B,CAAA,CACT,CAAA,CAE1B,CAEA,SAAS,EAAgB,CACvB,YACA,WACA,UAAU,UACV,OAAO,UACP,GAAG,GAC2D,CAC9D,IAAM,EAAU,EAAM,WAAW,CAAkB,EAEnD,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,OAAD,CACE,YAAU,oBACV,eAAc,EAAQ,SAAW,EACjC,YAAW,EAAQ,MAAQ,EAC3B,eAAc,EAAQ,QACtB,UAAW,EAAA,GACT,m4BACA,EAAA,eAAe,CACb,QAAS,EAAQ,SAAW,EAC5B,KAAM,EAAQ,MAAQ,CACxB,CAAC,EACD,CACF,EACA,GAAI,EAEH,UACc,CAAA,CAErB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.es.js","names":[],"sources":["../../../src/components/ui/toggle-group.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\"\nimport { ToggleGroup as ToggleGroupPrimitive } from \"@base-ui/react/toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\nimport { toggleVariants } from \"./toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: \"horizontal\" | \"vertical\"\n }\n>({\n size: \"default\",\n variant: \"default\",\n spacing: 2,\n orientation: \"horizontal\",\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n spacing = 2,\n orientation = \"horizontal\",\n children,\n ...props\n}: ToggleGroupPrimitive.Props &\n VariantProps<typeof toggleVariants> & {\n spacing?: number\n orientation?: \"horizontal\" | \"vertical\"\n }) {\n return (\n <ToggleGroupPrimitive\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n data-spacing={spacing}\n data-orientation={orientation}\n style={{ \"--gap\": spacing } as React.CSSProperties}\n className={cn(\n \"group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch\",\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider\n value={{ variant, size, spacing, orientation }}\n >\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant = \"default\",\n size = \"default\",\n ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <TogglePrimitive\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-spacing={context.spacing}\n className={cn(\n \"shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t\",\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n className\n )}\n {...props}\n >\n {children}\n </TogglePrimitive>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"mappings":";;;;;;;;AAUA,IAAM,IAAqB,EAAM,cAK/B;CACA,MAAM;CACN,SAAS;CACT,SAAS;CACT,aAAa;AACf,CAAC;AAED,SAAS,EAAY,EACnB,cACA,YACA,SACA,aAAU,GACV,iBAAc,cACd,aACA,GAAG,KAKA;CACH,OACE,kBAAC,GAAD;EACE,aAAU;EACV,gBAAc;EACd,aAAW;EACX,gBAAc;EACd,oBAAkB;EAClB,OAAO,EAAE,SAAS,EAAQ;EAC1B,WAAW,EACT,qMACA,CACF;EACA,GAAI;YAEJ,kBAAC,EAAmB,UAApB;GACE,OAAO;IAAE;IAAS;IAAM;IAAS;GAAY;GAE5C;EAC0B,CAAA;CACT,CAAA;AAE1B;AAEA,SAAS,EAAgB,EACvB,cACA,aACA,aAAU,WACV,UAAO,WACP,GAAG,KAC2D;CAC9D,IAAM,IAAU,EAAM,WAAW,CAAkB;CAEnD,OACE,kBAAC,GAAD;EACE,aAAU;EACV,gBAAc,EAAQ,WAAW;EACjC,aAAW,EAAQ,QAAQ;EAC3B,gBAAc,EAAQ;EACtB,WAAW,EACT,o4BACA,EAAe;GACb,SAAS,EAAQ,WAAW;GAC5B,MAAM,EAAQ,QAAQ;EACxB,CAAC,GACD,CACF;EACA,GAAI;EAEH;CACc,CAAA;AAErB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";const e=require("../../node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js"),t=require("../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs.js");let n=require("react/jsx-runtime"),r=require("@base-ui/react/toggle");var i=t.cva(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`}},defaultVariants:{variant:`default`,size:`default`}});function a({className:t,variant:a=`default`,size:o=`default`,...s}){return(0,n.jsx)(r.Toggle,{"data-slot":`toggle`,className:e.cn(i({variant:a,size:o,className:t})),...s})}exports.Toggle=a,exports.toggleVariants=i;
|
|
2
|
-
//# sourceMappingURL=toggle.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.cjs.js","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":["\"use client\"\n\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst toggleVariants = cva(\n \"group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline: \"border border-input bg-transparent hover:bg-muted\",\n },\n size: {\n default:\n \"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n sm: \"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n lg: \"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Toggle({\n className,\n variant = \"default\",\n size = \"default\",\n ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive\n data-slot=\"toggle\"\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Toggle, toggleVariants }\n"],"mappings":"6SAOA,IAAM,EAAiB,EAAA,IACrB,shBACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iBACT,QAAS,mDACX,EACA,KAAM,CACJ,QACE,uFACF,GAAI,qLACJ,GAAI,sFACN,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,SACR,CACF,CACF,EAEA,SAAS,EAAO,CACd,YACA,UAAU,UACV,OAAO,UACP,GAAG,GAC2D,CAC9D,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,OAAD,CACE,YAAU,SACV,UAAW,EAAA,GAAG,EAAe,CAAE,UAAS,OAAM,WAAU,CAAC,CAAC,EAC1D,GAAI,CACL,CAAA,CAEL"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.es.js","names":[],"sources":["../../../src/components/ui/toggle.tsx"],"sourcesContent":["\"use client\"\n\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst toggleVariants = cva(\n \"group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline: \"border border-input bg-transparent hover:bg-muted\",\n },\n size: {\n default:\n \"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n sm: \"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5\",\n lg: \"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Toggle({\n className,\n variant = \"default\",\n size = \"default\",\n ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive\n data-slot=\"toggle\"\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Toggle, toggleVariants }\n"],"mappings":";;;;;;AAOA,IAAM,IAAiB,EACrB,uhBACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;EACX;EACA,MAAM;GACJ,SACE;GACF,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAEA,SAAS,EAAO,EACd,cACA,aAAU,WACV,UAAO,WACP,GAAG,KAC2D;CAC9D,OACE,kBAAC,GAAD;EACE,aAAU;EACV,WAAW,EAAG,EAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EAC1D,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../../node_modules/.bun/cnfast@0.0.8/node_modules/cnfast/dist/index.cjs.js");let t=require("react/jsx-runtime"),n=require("@base-ui/react/tooltip");function r({delay:e=0,...r}){return(0,t.jsx)(n.Tooltip.Provider,{"data-slot":`tooltip-provider`,delay:e,...r})}function i({...e}){return(0,t.jsx)(n.Tooltip.Root,{"data-slot":`tooltip`,...e})}function a({...e}){return(0,t.jsx)(n.Tooltip.Trigger,{"data-slot":`tooltip-trigger`,...e})}function o({className:r,side:i=`top`,sideOffset:a=4,align:o=`center`,alignOffset:s=0,children:c,...l}){return(0,t.jsx)(n.Tooltip.Portal,{children:(0,t.jsx)(n.Tooltip.Positioner,{align:o,alignOffset:s,side:i,sideOffset:a,className:`isolate z-50`,children:(0,t.jsxs)(n.Tooltip.Popup,{"data-slot":`tooltip-content`,className:e.cn(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),...l,children:[c,(0,t.jsx)(n.Tooltip.Arrow,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}exports.Tooltip=i,exports.TooltipContent=o,exports.TooltipProvider=r,exports.TooltipTrigger=a;
|
|
2
|
-
//# sourceMappingURL=tooltip.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.cjs.js","names":[],"sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from \"@base-ui/react/tooltip\"\n\nimport { cn } from \"../../lib/utils\"\n\nfunction TooltipProvider({\n delay = 0,\n ...props\n}: TooltipPrimitive.Provider.Props) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delay={delay}\n {...props}\n />\n )\n}\n\nfunction Tooltip({ ...props }: TooltipPrimitive.Root.Props) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\nfunction TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({\n className,\n side = \"top\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n children,\n ...props\n}: TooltipPrimitive.Popup.Props &\n Pick<\n TooltipPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\"\n >) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n className=\"isolate z-50\"\n >\n <TooltipPrimitive.Popup\n data-slot=\"tooltip-content\"\n className={cn(\n \"z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\",\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5\" />\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n )\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"mappings":"qKAIA,SAAS,EAAgB,CACvB,QAAQ,EACR,GAAG,GAC+B,CAClC,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,SAAlB,CACE,YAAU,mBACH,QACP,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAQ,CAAE,GAAG,GAAsC,CAC1D,OAAO,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,KAAlB,CAAuB,YAAU,UAAU,GAAI,CAAQ,CAAA,CAChE,CAEA,SAAS,EAAe,CAAE,GAAG,GAAyC,CACpE,OAAO,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,QAAlB,CAA0B,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CAC3E,CAEA,SAAS,EAAe,CACtB,YACA,OAAO,MACP,aAAa,EACb,QAAQ,SACR,cAAc,EACd,WACA,GAAG,GAKA,CACH,OACE,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,OAAlB,CAAA,UACE,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,WAAlB,CACS,QACM,cACP,OACM,aACZ,UAAU,yBAEV,EAAA,EAAA,KAAA,CAAC,EAAA,QAAiB,MAAlB,CACE,YAAU,kBACV,UAAW,EAAA,GACT,kwBACA,CACF,EACA,GAAI,WANN,CAQG,GACD,EAAA,EAAA,IAAA,CAAC,EAAA,QAAiB,MAAlB,CAAwB,UAAU,0hBAA4hB,CAAA,CACxiB,GACG,CAAA,CACN,CAAA,CAE7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.es.js","names":[],"sources":["../../../src/components/ui/tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from \"@base-ui/react/tooltip\"\n\nimport { cn } from \"../../lib/utils\"\n\nfunction TooltipProvider({\n delay = 0,\n ...props\n}: TooltipPrimitive.Provider.Props) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delay={delay}\n {...props}\n />\n )\n}\n\nfunction Tooltip({ ...props }: TooltipPrimitive.Root.Props) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n}\n\nfunction TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({\n className,\n side = \"top\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n children,\n ...props\n}: TooltipPrimitive.Popup.Props &\n Pick<\n TooltipPrimitive.Positioner.Props,\n \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\"\n >) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n className=\"isolate z-50\"\n >\n <TooltipPrimitive.Popup\n data-slot=\"tooltip-content\"\n className={cn(\n \"z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\",\n className\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5\" />\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n )\n}\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"mappings":";;;;AAIA,SAAS,EAAgB,EACvB,WAAQ,GACR,GAAG,KAC+B;CAClC,OACE,kBAAC,EAAiB,UAAlB;EACE,aAAU;EACH;EACP,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAQ,EAAE,GAAG,KAAsC;CAC1D,OAAO,kBAAC,EAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;CAAQ,CAAA;AAChE;AAEA,SAAS,EAAe,EAAE,GAAG,KAAyC;CACpE,OAAO,kBAAC,EAAiB,SAAlB;EAA0B,aAAU;EAAkB,GAAI;CAAQ,CAAA;AAC3E;AAEA,SAAS,EAAe,EACtB,cACA,UAAO,OACP,gBAAa,GACb,WAAQ,UACR,iBAAc,GACd,aACA,GAAG,KAKA;CACH,OACE,kBAAC,EAAiB,QAAlB,EAAA,UACE,kBAAC,EAAiB,YAAlB;EACS;EACM;EACP;EACM;EACZ,WAAU;YAEV,kBAAC,EAAiB,OAAlB;GACE,aAAU;GACV,WAAW,EACT,mwBACA,CACF;GACA,GAAI;aANN,CAQG,GACD,kBAAC,EAAiB,OAAlB,EAAwB,WAAU,2hBAA4hB,CAAA,CACxiB;;CACG,CAAA,EACN,CAAA;AAE7B"}
|
package/dist/hooks/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./use-mobile.cjs.js");exports.useIsMobile=e.useIsMobile;
|
package/dist/hooks/index.es.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../_virtual/_rolldown/runtime.cjs.js");let t=require("react");t=e.__toESM(t,1);var n=768;function r(){let[e,r]=t.useState(void 0);return t.useEffect(()=>{let e=window.matchMedia(`(max-width: ${n-1}px)`),t=()=>{r(window.innerWidth<n)};return e.addEventListener(`change`,t),r(window.innerWidth<n),()=>e.removeEventListener(`change`,t)},[]),!!e}exports.useIsMobile=r;
|
|
2
|
-
//# sourceMappingURL=use-mobile.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-mobile.cjs.js","names":[],"sources":["../../src/hooks/use-mobile.ts"],"sourcesContent":["import * as React from \"react\"\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n }\n mql.addEventListener(\"change\", onChange)\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n return () => mql.removeEventListener(\"change\", onChange)\n }, [])\n\n return !!isMobile\n}\n"],"mappings":"gGAEA,IAAM,EAAoB,IAE1B,SAAgB,GAAc,CAC5B,GAAM,CAAC,EAAU,GAAe,EAAM,SAA8B,IAAA,EAAS,EAY7E,OAVA,EAAM,cAAgB,CACpB,IAAM,EAAM,OAAO,WAAW,eAAe,EAAoB,EAAE,IAAI,EACjE,MAAiB,CACrB,EAAY,OAAO,WAAa,CAAiB,CACnD,EAGA,OAFA,EAAI,iBAAiB,SAAU,CAAQ,EACvC,EAAY,OAAO,WAAa,CAAiB,MACpC,EAAI,oBAAoB,SAAU,CAAQ,CACzD,EAAG,CAAC,CAAC,EAEE,CAAC,CAAC,CACX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-mobile.es.js","names":[],"sources":["../../src/hooks/use-mobile.ts"],"sourcesContent":["import * as React from \"react\"\n\nconst MOBILE_BREAKPOINT = 768\n\nexport function useIsMobile() {\n const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)\n\n React.useEffect(() => {\n const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)\n const onChange = () => {\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n }\n mql.addEventListener(\"change\", onChange)\n setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)\n return () => mql.removeEventListener(\"change\", onChange)\n }, [])\n\n return !!isMobile\n}\n"],"mappings":";;AAEA,IAAM,IAAoB;AAE1B,SAAgB,IAAc;CAC5B,IAAM,CAAC,GAAU,KAAe,EAAM,SAA8B,KAAA,CAAS;CAY7E,OAVA,EAAM,gBAAgB;EACpB,IAAM,IAAM,OAAO,WAAW,eAAe,IAAoB,EAAE,IAAI,GACjE,UAAiB;GACrB,EAAY,OAAO,aAAa,CAAiB;EACnD;EAGA,OAFA,EAAI,iBAAiB,UAAU,CAAQ,GACvC,EAAY,OAAO,aAAa,CAAiB,SACpC,EAAI,oBAAoB,UAAU,CAAQ;CACzD,GAAG,CAAC,CAAC,GAEE,CAAC,CAAC;AACX"}
|
package/dist/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./components/ui/accordion.cjs.js"),t=require("./components/ui/aspect-ratio.cjs.js"),n=require("./components/ui/avatar.cjs.js"),r=require("./components/ui/badge.cjs.js"),i=require("./components/ui/breadcrumb.cjs.js"),a=require("./components/ui/button.cjs.js"),ee=require("./components/ui/separator.cjs.js"),o=require("./components/ui/button-group.cjs.js"),s=require("./components/ui/card.cjs.js"),c=require("./components/ui/collapsible.cjs.js"),l=require("./components/ui/empty.cjs.js"),u=require("./components/ui/kbd.cjs.js"),te=require("./components/ui/label.cjs.js"),d=require("./components/ui/marker.cjs.js"),f=require("./components/ui/pagination.cjs.js"),p=require("./components/ui/progress.cjs.js"),m=require("./components/ui/resizable.cjs.js"),h=require("./components/ui/scroll-area.cjs.js"),ne=require("./components/ui/skeleton.cjs.js"),re=require("./components/ui/spinner.cjs.js"),g=require("./components/ui/tabs.cjs.js"),_=require("./components/ui/table.cjs.js"),v=require("./components/ui/alert.cjs.js"),ie=require("./components/ui/alert-wrapper.cjs.js"),y=require("./components/ui/alert-dialog.cjs.js"),b=require("./components/ui/sonner.cjs.js"),x=require("./components/ui/dialog.cjs.js"),S=require("./components/ui/drawer.cjs.js"),C=require("./components/ui/hover-card.cjs.js"),w=require("./components/ui/popover.cjs.js"),T=require("./components/ui/sheet.cjs.js"),E=require("./components/ui/tooltip.cjs.js"),D=require("./components/ui/context-menu.cjs.js"),O=require("./components/ui/dropdown-menu.cjs.js"),k=require("./components/ui/menubar.cjs.js"),A=require("./components/ui/navigation-menu.cjs.js"),ae=require("./hooks/use-mobile.cjs.js"),oe=require("./components/ui/input.cjs.js"),j=require("./components/ui/sidebar.cjs.js"),M=require("./components/ui/calendar.cjs.js"),N=require("./components/ui/carousel.cjs.js"),P=require("./components/ui/checkbox.cjs.js"),F=require("./components/ui/textarea.cjs.js"),I=require("./components/ui/input-group.cjs.js"),L=require("./components/ui/combobox.cjs.js"),R=require("./components/ui/command.cjs.js"),z=require("./components/ui/field.cjs.js"),B=require("./components/ui/input-otp.cjs.js"),V=require("./components/ui/native-select.cjs.js"),H=require("./components/ui/radio-group.cjs.js"),U=require("./components/ui/select.cjs.js"),se=require("./components/ui/slider.cjs.js"),ce=require("./components/ui/switch.cjs.js"),W=require("./components/ui/toggle.cjs.js"),G=require("./components/ui/toggle-group.cjs.js"),K=require("./components/ui/attachment.cjs.js"),q=require("./components/ui/bubble.cjs.js"),J=require("./components/ui/message.cjs.js"),Y=require("./components/ui/message-scroller.cjs.js"),X=require("./components/ui/item.cjs.js"),Z=require("./components/ui/chart.cjs.js");let Q=require("@base-ui/react/direction-provider"),$=require("@shadcn/react/message-scroller");exports.Accordion=e.Accordion,exports.AccordionContent=e.AccordionContent,exports.AccordionItem=e.AccordionItem,exports.AccordionTrigger=e.AccordionTrigger,exports.Alert=v.Alert,exports.AlertAction=v.AlertAction,exports.AlertDescription=v.AlertDescription,exports.AlertDialog=y.AlertDialog,exports.AlertDialogAction=y.AlertDialogAction,exports.AlertDialogCancel=y.AlertDialogCancel,exports.AlertDialogContent=y.AlertDialogContent,exports.AlertDialogDescription=y.AlertDialogDescription,exports.AlertDialogFooter=y.AlertDialogFooter,exports.AlertDialogHeader=y.AlertDialogHeader,exports.AlertDialogMedia=y.AlertDialogMedia,exports.AlertDialogOverlay=y.AlertDialogOverlay,exports.AlertDialogPortal=y.AlertDialogPortal,exports.AlertDialogTitle=y.AlertDialogTitle,exports.AlertDialogTrigger=y.AlertDialogTrigger,exports.AlertTitle=v.AlertTitle,exports.AlertWrapper=ie.AlertWrapper,exports.AspectRatio=t.AspectRatio,exports.Attachment=K.Attachment,exports.AttachmentAction=K.AttachmentAction,exports.AttachmentActions=K.AttachmentActions,exports.AttachmentContent=K.AttachmentContent,exports.AttachmentDescription=K.AttachmentDescription,exports.AttachmentGroup=K.AttachmentGroup,exports.AttachmentMedia=K.AttachmentMedia,exports.AttachmentTitle=K.AttachmentTitle,exports.AttachmentTrigger=K.AttachmentTrigger,exports.Avatar=n.Avatar,exports.AvatarBadge=n.AvatarBadge,exports.AvatarFallback=n.AvatarFallback,exports.AvatarGroup=n.AvatarGroup,exports.AvatarGroupCount=n.AvatarGroupCount,exports.AvatarImage=n.AvatarImage,exports.Badge=r.Badge,exports.Breadcrumb=i.Breadcrumb,exports.BreadcrumbEllipsis=i.BreadcrumbEllipsis,exports.BreadcrumbItem=i.BreadcrumbItem,exports.BreadcrumbLink=i.BreadcrumbLink,exports.BreadcrumbList=i.BreadcrumbList,exports.BreadcrumbPage=i.BreadcrumbPage,exports.BreadcrumbSeparator=i.BreadcrumbSeparator,exports.Bubble=q.Bubble,exports.BubbleContent=q.BubbleContent,exports.BubbleGroup=q.BubbleGroup,exports.BubbleReactions=q.BubbleReactions,exports.Button=a.Button,exports.ButtonGroup=o.ButtonGroup,exports.ButtonGroupSeparator=o.ButtonGroupSeparator,exports.ButtonGroupText=o.ButtonGroupText,exports.Calendar=M.Calendar,exports.CalendarDayButton=M.CalendarDayButton,exports.Card=s.Card,exports.CardAction=s.CardAction,exports.CardContent=s.CardContent,exports.CardDescription=s.CardDescription,exports.CardFooter=s.CardFooter,exports.CardHeader=s.CardHeader,exports.CardTitle=s.CardTitle,exports.Carousel=N.Carousel,exports.CarouselContent=N.CarouselContent,exports.CarouselItem=N.CarouselItem,exports.CarouselNext=N.CarouselNext,exports.CarouselPrevious=N.CarouselPrevious,exports.ChartContainer=Z.ChartContainer,exports.ChartLegend=Z.ChartLegend,exports.ChartLegendContent=Z.ChartLegendContent,exports.ChartStyle=Z.ChartStyle,exports.ChartTooltip=Z.ChartTooltip,exports.ChartTooltipContent=Z.ChartTooltipContent,exports.Checkbox=P.Checkbox,exports.Collapsible=c.Collapsible,exports.CollapsibleContent=c.CollapsibleContent,exports.CollapsibleTrigger=c.CollapsibleTrigger,exports.Combobox=L.Combobox,exports.ComboboxChip=L.ComboboxChip,exports.ComboboxChips=L.ComboboxChips,exports.ComboboxChipsInput=L.ComboboxChipsInput,exports.ComboboxCollection=L.ComboboxCollection,exports.ComboboxContent=L.ComboboxContent,exports.ComboboxEmpty=L.ComboboxEmpty,exports.ComboboxGroup=L.ComboboxGroup,exports.ComboboxInput=L.ComboboxInput,exports.ComboboxItem=L.ComboboxItem,exports.ComboboxLabel=L.ComboboxLabel,exports.ComboboxList=L.ComboboxList,exports.ComboboxSeparator=L.ComboboxSeparator,exports.ComboboxTrigger=L.ComboboxTrigger,exports.ComboboxValue=L.ComboboxValue,exports.Command=R.Command,exports.CommandDialog=R.CommandDialog,exports.CommandEmpty=R.CommandEmpty,exports.CommandGroup=R.CommandGroup,exports.CommandInput=R.CommandInput,exports.CommandItem=R.CommandItem,exports.CommandList=R.CommandList,exports.CommandSeparator=R.CommandSeparator,exports.CommandShortcut=R.CommandShortcut,exports.ContextMenu=D.ContextMenu,exports.ContextMenuCheckboxItem=D.ContextMenuCheckboxItem,exports.ContextMenuContent=D.ContextMenuContent,exports.ContextMenuGroup=D.ContextMenuGroup,exports.ContextMenuItem=D.ContextMenuItem,exports.ContextMenuLabel=D.ContextMenuLabel,exports.ContextMenuPortal=D.ContextMenuPortal,exports.ContextMenuRadioGroup=D.ContextMenuRadioGroup,exports.ContextMenuRadioItem=D.ContextMenuRadioItem,exports.ContextMenuSeparator=D.ContextMenuSeparator,exports.ContextMenuShortcut=D.ContextMenuShortcut,exports.ContextMenuSub=D.ContextMenuSub,exports.ContextMenuSubContent=D.ContextMenuSubContent,exports.ContextMenuSubTrigger=D.ContextMenuSubTrigger,exports.ContextMenuTrigger=D.ContextMenuTrigger,exports.Dialog=x.Dialog,exports.DialogClose=x.DialogClose,exports.DialogContent=x.DialogContent,exports.DialogDescription=x.DialogDescription,exports.DialogFooter=x.DialogFooter,exports.DialogHeader=x.DialogHeader,exports.DialogOverlay=x.DialogOverlay,exports.DialogPortal=x.DialogPortal,exports.DialogTitle=x.DialogTitle,exports.DialogTrigger=x.DialogTrigger,Object.defineProperty(exports,"DirectionProvider",{enumerable:!0,get:function(){return Q.DirectionProvider}}),exports.Drawer=S.Drawer,exports.DrawerClose=S.DrawerClose,exports.DrawerContent=S.DrawerContent,exports.DrawerDescription=S.DrawerDescription,exports.DrawerFooter=S.DrawerFooter,exports.DrawerHeader=S.DrawerHeader,exports.DrawerOverlay=S.DrawerOverlay,exports.DrawerPortal=S.DrawerPortal,exports.DrawerSwipeHandle=S.DrawerSwipeHandle,exports.DrawerTitle=S.DrawerTitle,exports.DrawerTrigger=S.DrawerTrigger,exports.DropdownMenu=O.DropdownMenu,exports.DropdownMenuCheckboxItem=O.DropdownMenuCheckboxItem,exports.DropdownMenuContent=O.DropdownMenuContent,exports.DropdownMenuGroup=O.DropdownMenuGroup,exports.DropdownMenuItem=O.DropdownMenuItem,exports.DropdownMenuLabel=O.DropdownMenuLabel,exports.DropdownMenuPortal=O.DropdownMenuPortal,exports.DropdownMenuRadioGroup=O.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=O.DropdownMenuRadioItem,exports.DropdownMenuSeparator=O.DropdownMenuSeparator,exports.DropdownMenuShortcut=O.DropdownMenuShortcut,exports.DropdownMenuSub=O.DropdownMenuSub,exports.DropdownMenuSubContent=O.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=O.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=O.DropdownMenuTrigger,exports.Empty=l.Empty,exports.EmptyContent=l.EmptyContent,exports.EmptyDescription=l.EmptyDescription,exports.EmptyHeader=l.EmptyHeader,exports.EmptyMedia=l.EmptyMedia,exports.EmptyTitle=l.EmptyTitle,exports.Field=z.Field,exports.FieldContent=z.FieldContent,exports.FieldDescription=z.FieldDescription,exports.FieldError=z.FieldError,exports.FieldGroup=z.FieldGroup,exports.FieldLabel=z.FieldLabel,exports.FieldLegend=z.FieldLegend,exports.FieldSeparator=z.FieldSeparator,exports.FieldSet=z.FieldSet,exports.FieldTitle=z.FieldTitle,exports.HoverCard=C.HoverCard,exports.HoverCardContent=C.HoverCardContent,exports.HoverCardTrigger=C.HoverCardTrigger,exports.Input=oe.Input,exports.InputGroup=I.InputGroup,exports.InputGroupAddon=I.InputGroupAddon,exports.InputGroupButton=I.InputGroupButton,exports.InputGroupInput=I.InputGroupInput,exports.InputGroupText=I.InputGroupText,exports.InputGroupTextarea=I.InputGroupTextarea,exports.InputOTP=B.InputOTP,exports.InputOTPGroup=B.InputOTPGroup,exports.InputOTPSeparator=B.InputOTPSeparator,exports.InputOTPSlot=B.InputOTPSlot,exports.Item=X.Item,exports.ItemActions=X.ItemActions,exports.ItemContent=X.ItemContent,exports.ItemDescription=X.ItemDescription,exports.ItemFooter=X.ItemFooter,exports.ItemGroup=X.ItemGroup,exports.ItemHeader=X.ItemHeader,exports.ItemMedia=X.ItemMedia,exports.ItemSeparator=X.ItemSeparator,exports.ItemTitle=X.ItemTitle,exports.Kbd=u.Kbd,exports.KbdGroup=u.KbdGroup,exports.Label=te.Label,exports.Marker=d.Marker,exports.MarkerContent=d.MarkerContent,exports.MarkerIcon=d.MarkerIcon,exports.Menubar=k.Menubar,exports.MenubarCheckboxItem=k.MenubarCheckboxItem,exports.MenubarContent=k.MenubarContent,exports.MenubarGroup=k.MenubarGroup,exports.MenubarItem=k.MenubarItem,exports.MenubarLabel=k.MenubarLabel,exports.MenubarMenu=k.MenubarMenu,exports.MenubarPortal=k.MenubarPortal,exports.MenubarRadioGroup=k.MenubarRadioGroup,exports.MenubarRadioItem=k.MenubarRadioItem,exports.MenubarSeparator=k.MenubarSeparator,exports.MenubarShortcut=k.MenubarShortcut,exports.MenubarSub=k.MenubarSub,exports.MenubarSubContent=k.MenubarSubContent,exports.MenubarSubTrigger=k.MenubarSubTrigger,exports.MenubarTrigger=k.MenubarTrigger,exports.Message=J.Message,exports.MessageAvatar=J.MessageAvatar,exports.MessageContent=J.MessageContent,exports.MessageFooter=J.MessageFooter,exports.MessageGroup=J.MessageGroup,exports.MessageHeader=J.MessageHeader,exports.MessageScroller=Y.MessageScroller,exports.MessageScrollerButton=Y.MessageScrollerButton,exports.MessageScrollerContent=Y.MessageScrollerContent,exports.MessageScrollerItem=Y.MessageScrollerItem,exports.MessageScrollerProvider=Y.MessageScrollerProvider,exports.MessageScrollerViewport=Y.MessageScrollerViewport,exports.NativeSelect=V.NativeSelect,exports.NativeSelectOptGroup=V.NativeSelectOptGroup,exports.NativeSelectOption=V.NativeSelectOption,exports.NavigationMenu=A.NavigationMenu,exports.NavigationMenuContent=A.NavigationMenuContent,exports.NavigationMenuIndicator=A.NavigationMenuIndicator,exports.NavigationMenuItem=A.NavigationMenuItem,exports.NavigationMenuLink=A.NavigationMenuLink,exports.NavigationMenuList=A.NavigationMenuList,exports.NavigationMenuPositioner=A.NavigationMenuPositioner,exports.NavigationMenuTrigger=A.NavigationMenuTrigger,exports.Pagination=f.Pagination,exports.PaginationContent=f.PaginationContent,exports.PaginationEllipsis=f.PaginationEllipsis,exports.PaginationItem=f.PaginationItem,exports.PaginationLink=f.PaginationLink,exports.PaginationNext=f.PaginationNext,exports.PaginationPrevious=f.PaginationPrevious,exports.Popover=w.Popover,exports.PopoverContent=w.PopoverContent,exports.PopoverDescription=w.PopoverDescription,exports.PopoverHeader=w.PopoverHeader,exports.PopoverTitle=w.PopoverTitle,exports.PopoverTrigger=w.PopoverTrigger,exports.Progress=p.Progress,exports.ProgressIndicator=p.ProgressIndicator,exports.ProgressLabel=p.ProgressLabel,exports.ProgressTrack=p.ProgressTrack,exports.ProgressValue=p.ProgressValue,exports.RadioGroup=H.RadioGroup,exports.RadioGroupItem=H.RadioGroupItem,exports.ResizableHandle=m.ResizableHandle,exports.ResizablePanel=m.ResizablePanel,exports.ResizablePanelGroup=m.ResizablePanelGroup,exports.ScrollArea=h.ScrollArea,exports.ScrollBar=h.ScrollBar,exports.Select=U.Select,exports.SelectContent=U.SelectContent,exports.SelectGroup=U.SelectGroup,exports.SelectItem=U.SelectItem,exports.SelectLabel=U.SelectLabel,exports.SelectScrollDownButton=U.SelectScrollDownButton,exports.SelectScrollUpButton=U.SelectScrollUpButton,exports.SelectSeparator=U.SelectSeparator,exports.SelectTrigger=U.SelectTrigger,exports.SelectValue=U.SelectValue,exports.Separator=ee.Separator,exports.Sheet=T.Sheet,exports.SheetClose=T.SheetClose,exports.SheetContent=T.SheetContent,exports.SheetDescription=T.SheetDescription,exports.SheetFooter=T.SheetFooter,exports.SheetHeader=T.SheetHeader,exports.SheetTitle=T.SheetTitle,exports.SheetTrigger=T.SheetTrigger,exports.Sidebar=j.Sidebar,exports.SidebarContent=j.SidebarContent,exports.SidebarFooter=j.SidebarFooter,exports.SidebarGroup=j.SidebarGroup,exports.SidebarGroupAction=j.SidebarGroupAction,exports.SidebarGroupContent=j.SidebarGroupContent,exports.SidebarGroupLabel=j.SidebarGroupLabel,exports.SidebarHeader=j.SidebarHeader,exports.SidebarInput=j.SidebarInput,exports.SidebarInset=j.SidebarInset,exports.SidebarMenu=j.SidebarMenu,exports.SidebarMenuAction=j.SidebarMenuAction,exports.SidebarMenuBadge=j.SidebarMenuBadge,exports.SidebarMenuButton=j.SidebarMenuButton,exports.SidebarMenuItem=j.SidebarMenuItem,exports.SidebarMenuSkeleton=j.SidebarMenuSkeleton,exports.SidebarMenuSub=j.SidebarMenuSub,exports.SidebarMenuSubButton=j.SidebarMenuSubButton,exports.SidebarMenuSubItem=j.SidebarMenuSubItem,exports.SidebarProvider=j.SidebarProvider,exports.SidebarRail=j.SidebarRail,exports.SidebarSeparator=j.SidebarSeparator,exports.SidebarTrigger=j.SidebarTrigger,exports.Skeleton=ne.Skeleton,exports.Slider=se.Slider,exports.Spinner=re.Spinner,exports.Switch=ce.Switch,exports.Table=_.Table,exports.TableBody=_.TableBody,exports.TableCaption=_.TableCaption,exports.TableCell=_.TableCell,exports.TableFooter=_.TableFooter,exports.TableHead=_.TableHead,exports.TableHeader=_.TableHeader,exports.TableRow=_.TableRow,exports.Tabs=g.Tabs,exports.TabsContent=g.TabsContent,exports.TabsList=g.TabsList,exports.TabsTrigger=g.TabsTrigger,exports.Textarea=F.Textarea,exports.Toaster=b.Toaster,exports.Toggle=W.Toggle,exports.ToggleGroup=G.ToggleGroup,exports.ToggleGroupItem=G.ToggleGroupItem,exports.Tooltip=E.Tooltip,exports.TooltipContent=E.TooltipContent,exports.TooltipProvider=E.TooltipProvider,exports.TooltipTrigger=E.TooltipTrigger,exports.badgeVariants=r.badgeVariants,exports.buttonGroupVariants=o.buttonGroupVariants,exports.buttonVariants=a.buttonVariants,exports.markerVariants=d.markerVariants,exports.navigationMenuTriggerStyle=A.navigationMenuTriggerStyle,exports.tabsListVariants=g.tabsListVariants,exports.toggleVariants=W.toggleVariants,exports.useCarousel=N.useCarousel,exports.useComboboxAnchor=L.useComboboxAnchor,Object.defineProperty(exports,"useDirection",{enumerable:!0,get:function(){return Q.useDirection}}),exports.useIsMobile=ae.useIsMobile,exports.useMessageScroller=$.useMessageScroller,exports.useMessageScrollerScrollable=$.useMessageScrollerScrollable,exports.useMessageScrollerVisibility=$.useMessageScrollerVisibility,exports.useSidebar=j.useSidebar;
|
package/dist/index.es.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r } from "./components/ui/accordion.es.js";
|
|
2
|
-
import { AspectRatio as i } from "./components/ui/aspect-ratio.es.js";
|
|
3
|
-
import { Avatar as a, AvatarBadge as o, AvatarFallback as s, AvatarGroup as c, AvatarGroupCount as l, AvatarImage as u } from "./components/ui/avatar.es.js";
|
|
4
|
-
import { Badge as d, badgeVariants as f } from "./components/ui/badge.es.js";
|
|
5
|
-
import { Breadcrumb as p, BreadcrumbEllipsis as m, BreadcrumbItem as h, BreadcrumbLink as g, BreadcrumbList as _, BreadcrumbPage as v, BreadcrumbSeparator as y } from "./components/ui/breadcrumb.es.js";
|
|
6
|
-
import { Button as b, buttonVariants as x } from "./components/ui/button.es.js";
|
|
7
|
-
import { Separator as S } from "./components/ui/separator.es.js";
|
|
8
|
-
import { ButtonGroup as C, ButtonGroupSeparator as w, ButtonGroupText as T, buttonGroupVariants as E } from "./components/ui/button-group.es.js";
|
|
9
|
-
import { Card as D, CardAction as O, CardContent as k, CardDescription as A, CardFooter as j, CardHeader as M, CardTitle as N } from "./components/ui/card.es.js";
|
|
10
|
-
import { Collapsible as P, CollapsibleContent as F, CollapsibleTrigger as I } from "./components/ui/collapsible.es.js";
|
|
11
|
-
import { DirectionProvider as L, useDirection as R } from "./components/ui/direction.es.js";
|
|
12
|
-
import { Empty as z, EmptyContent as B, EmptyDescription as V, EmptyHeader as H, EmptyMedia as U, EmptyTitle as W } from "./components/ui/empty.es.js";
|
|
13
|
-
import { Kbd as G, KbdGroup as K } from "./components/ui/kbd.es.js";
|
|
14
|
-
import { Label as q } from "./components/ui/label.es.js";
|
|
15
|
-
import { Marker as J, MarkerContent as Y, MarkerIcon as X, markerVariants as Z } from "./components/ui/marker.es.js";
|
|
16
|
-
import { Pagination as Q, PaginationContent as $, PaginationEllipsis as ee, PaginationItem as te, PaginationLink as ne, PaginationNext as re, PaginationPrevious as ie } from "./components/ui/pagination.es.js";
|
|
17
|
-
import { Progress as ae, ProgressIndicator as oe, ProgressLabel as se, ProgressTrack as ce, ProgressValue as le } from "./components/ui/progress.es.js";
|
|
18
|
-
import { ResizableHandle as ue, ResizablePanel as de, ResizablePanelGroup as fe } from "./components/ui/resizable.es.js";
|
|
19
|
-
import { ScrollArea as pe, ScrollBar as me } from "./components/ui/scroll-area.es.js";
|
|
20
|
-
import { Skeleton as he } from "./components/ui/skeleton.es.js";
|
|
21
|
-
import { Spinner as ge } from "./components/ui/spinner.es.js";
|
|
22
|
-
import { Tabs as _e, TabsContent as ve, TabsList as ye, TabsTrigger as be, tabsListVariants as xe } from "./components/ui/tabs.es.js";
|
|
23
|
-
import { Table as Se, TableBody as Ce, TableCaption as we, TableCell as Te, TableFooter as Ee, TableHead as De, TableHeader as Oe, TableRow as ke } from "./components/ui/table.es.js";
|
|
24
|
-
import { Alert as Ae, AlertAction as je, AlertDescription as Me, AlertTitle as Ne } from "./components/ui/alert.es.js";
|
|
25
|
-
import { AlertWrapper as Pe } from "./components/ui/alert-wrapper.es.js";
|
|
26
|
-
import { AlertDialog as Fe, AlertDialogAction as Ie, AlertDialogCancel as Le, AlertDialogContent as Re, AlertDialogDescription as ze, AlertDialogFooter as Be, AlertDialogHeader as Ve, AlertDialogMedia as He, AlertDialogOverlay as Ue, AlertDialogPortal as We, AlertDialogTitle as Ge, AlertDialogTrigger as Ke } from "./components/ui/alert-dialog.es.js";
|
|
27
|
-
import { Toaster as qe } from "./components/ui/sonner.es.js";
|
|
28
|
-
import { Dialog as Je, DialogClose as Ye, DialogContent as Xe, DialogDescription as Ze, DialogFooter as Qe, DialogHeader as $e, DialogOverlay as et, DialogPortal as tt, DialogTitle as nt, DialogTrigger as rt } from "./components/ui/dialog.es.js";
|
|
29
|
-
import { Drawer as it, DrawerClose as at, DrawerContent as ot, DrawerDescription as st, DrawerFooter as ct, DrawerHeader as lt, DrawerOverlay as ut, DrawerPortal as dt, DrawerSwipeHandle as ft, DrawerTitle as pt, DrawerTrigger as mt } from "./components/ui/drawer.es.js";
|
|
30
|
-
import { HoverCard as ht, HoverCardContent as gt, HoverCardTrigger as _t } from "./components/ui/hover-card.es.js";
|
|
31
|
-
import { Popover as vt, PopoverContent as yt, PopoverDescription as bt, PopoverHeader as xt, PopoverTitle as St, PopoverTrigger as Ct } from "./components/ui/popover.es.js";
|
|
32
|
-
import { Sheet as wt, SheetClose as Tt, SheetContent as Et, SheetDescription as Dt, SheetFooter as Ot, SheetHeader as kt, SheetTitle as At, SheetTrigger as jt } from "./components/ui/sheet.es.js";
|
|
33
|
-
import { Tooltip as Mt, TooltipContent as Nt, TooltipProvider as Pt, TooltipTrigger as Ft } from "./components/ui/tooltip.es.js";
|
|
34
|
-
import { ContextMenu as It, ContextMenuCheckboxItem as Lt, ContextMenuContent as Rt, ContextMenuGroup as zt, ContextMenuItem as Bt, ContextMenuLabel as Vt, ContextMenuPortal as Ht, ContextMenuRadioGroup as Ut, ContextMenuRadioItem as Wt, ContextMenuSeparator as Gt, ContextMenuShortcut as Kt, ContextMenuSub as qt, ContextMenuSubContent as Jt, ContextMenuSubTrigger as Yt, ContextMenuTrigger as Xt } from "./components/ui/context-menu.es.js";
|
|
35
|
-
import { DropdownMenu as Zt, DropdownMenuCheckboxItem as Qt, DropdownMenuContent as $t, DropdownMenuGroup as en, DropdownMenuItem as tn, DropdownMenuLabel as nn, DropdownMenuPortal as rn, DropdownMenuRadioGroup as an, DropdownMenuRadioItem as on, DropdownMenuSeparator as sn, DropdownMenuShortcut as cn, DropdownMenuSub as ln, DropdownMenuSubContent as un, DropdownMenuSubTrigger as dn, DropdownMenuTrigger as fn } from "./components/ui/dropdown-menu.es.js";
|
|
36
|
-
import { Menubar as pn, MenubarCheckboxItem as mn, MenubarContent as hn, MenubarGroup as gn, MenubarItem as _n, MenubarLabel as vn, MenubarMenu as yn, MenubarPortal as bn, MenubarRadioGroup as xn, MenubarRadioItem as Sn, MenubarSeparator as Cn, MenubarShortcut as wn, MenubarSub as Tn, MenubarSubContent as En, MenubarSubTrigger as Dn, MenubarTrigger as On } from "./components/ui/menubar.es.js";
|
|
37
|
-
import { NavigationMenu as kn, NavigationMenuContent as An, NavigationMenuIndicator as jn, NavigationMenuItem as Mn, NavigationMenuLink as Nn, NavigationMenuList as Pn, NavigationMenuPositioner as Fn, NavigationMenuTrigger as In, navigationMenuTriggerStyle as Ln } from "./components/ui/navigation-menu.es.js";
|
|
38
|
-
import { useIsMobile as Rn } from "./hooks/use-mobile.es.js";
|
|
39
|
-
import { Input as zn } from "./components/ui/input.es.js";
|
|
40
|
-
import { Sidebar as Bn, SidebarContent as Vn, SidebarFooter as Hn, SidebarGroup as Un, SidebarGroupAction as Wn, SidebarGroupContent as Gn, SidebarGroupLabel as Kn, SidebarHeader as qn, SidebarInput as Jn, SidebarInset as Yn, SidebarMenu as Xn, SidebarMenuAction as Zn, SidebarMenuBadge as Qn, SidebarMenuButton as $n, SidebarMenuItem as er, SidebarMenuSkeleton as tr, SidebarMenuSub as nr, SidebarMenuSubButton as rr, SidebarMenuSubItem as ir, SidebarProvider as ar, SidebarRail as or, SidebarSeparator as sr, SidebarTrigger as cr, useSidebar as lr } from "./components/ui/sidebar.es.js";
|
|
41
|
-
import { Calendar as ur, CalendarDayButton as dr } from "./components/ui/calendar.es.js";
|
|
42
|
-
import { Carousel as fr, CarouselContent as pr, CarouselItem as mr, CarouselNext as hr, CarouselPrevious as gr, useCarousel as _r } from "./components/ui/carousel.es.js";
|
|
43
|
-
import { Checkbox as vr } from "./components/ui/checkbox.es.js";
|
|
44
|
-
import { Textarea as yr } from "./components/ui/textarea.es.js";
|
|
45
|
-
import { InputGroup as br, InputGroupAddon as xr, InputGroupButton as Sr, InputGroupInput as Cr, InputGroupText as wr, InputGroupTextarea as Tr } from "./components/ui/input-group.es.js";
|
|
46
|
-
import { Combobox as Er, ComboboxChip as Dr, ComboboxChips as Or, ComboboxChipsInput as kr, ComboboxCollection as Ar, ComboboxContent as jr, ComboboxEmpty as Mr, ComboboxGroup as Nr, ComboboxInput as Pr, ComboboxItem as Fr, ComboboxLabel as Ir, ComboboxList as Lr, ComboboxSeparator as Rr, ComboboxTrigger as zr, ComboboxValue as Br, useComboboxAnchor as Vr } from "./components/ui/combobox.es.js";
|
|
47
|
-
import { Command as Hr, CommandDialog as Ur, CommandEmpty as Wr, CommandGroup as Gr, CommandInput as Kr, CommandItem as qr, CommandList as Jr, CommandSeparator as Yr, CommandShortcut as Xr } from "./components/ui/command.es.js";
|
|
48
|
-
import { Field as Zr, FieldContent as Qr, FieldDescription as $r, FieldError as ei, FieldGroup as ti, FieldLabel as ni, FieldLegend as ri, FieldSeparator as ii, FieldSet as ai, FieldTitle as oi } from "./components/ui/field.es.js";
|
|
49
|
-
import { InputOTP as si, InputOTPGroup as ci, InputOTPSeparator as li, InputOTPSlot as ui } from "./components/ui/input-otp.es.js";
|
|
50
|
-
import { NativeSelect as di, NativeSelectOptGroup as fi, NativeSelectOption as pi } from "./components/ui/native-select.es.js";
|
|
51
|
-
import { RadioGroup as mi, RadioGroupItem as hi } from "./components/ui/radio-group.es.js";
|
|
52
|
-
import { Select as gi, SelectContent as _i, SelectGroup as vi, SelectItem as yi, SelectLabel as bi, SelectScrollDownButton as xi, SelectScrollUpButton as Si, SelectSeparator as Ci, SelectTrigger as wi, SelectValue as Ti } from "./components/ui/select.es.js";
|
|
53
|
-
import { Slider as Ei } from "./components/ui/slider.es.js";
|
|
54
|
-
import { Switch as Di } from "./components/ui/switch.es.js";
|
|
55
|
-
import { Toggle as Oi, toggleVariants as ki } from "./components/ui/toggle.es.js";
|
|
56
|
-
import { ToggleGroup as Ai, ToggleGroupItem as ji } from "./components/ui/toggle-group.es.js";
|
|
57
|
-
import { Attachment as Mi, AttachmentAction as Ni, AttachmentActions as Pi, AttachmentContent as Fi, AttachmentDescription as Ii, AttachmentGroup as Li, AttachmentMedia as Ri, AttachmentTitle as zi, AttachmentTrigger as Bi } from "./components/ui/attachment.es.js";
|
|
58
|
-
import { Bubble as Vi, BubbleContent as Hi, BubbleGroup as Ui, BubbleReactions as Wi } from "./components/ui/bubble.es.js";
|
|
59
|
-
import { Message as Gi, MessageAvatar as Ki, MessageContent as qi, MessageFooter as Ji, MessageGroup as Yi, MessageHeader as Xi } from "./components/ui/message.es.js";
|
|
60
|
-
import { MessageScroller as Zi, MessageScrollerButton as Qi, MessageScrollerContent as $i, MessageScrollerItem as ea, MessageScrollerProvider as ta, MessageScrollerViewport as na, useMessageScroller as ra, useMessageScrollerScrollable as ia, useMessageScrollerVisibility as aa } from "./components/ui/message-scroller.es.js";
|
|
61
|
-
import { Item as oa, ItemActions as sa, ItemContent as ca, ItemDescription as la, ItemFooter as ua, ItemGroup as da, ItemHeader as fa, ItemMedia as pa, ItemSeparator as ma, ItemTitle as ha } from "./components/ui/item.es.js";
|
|
62
|
-
import { ChartContainer as ga, ChartLegend as _a, ChartLegendContent as va, ChartStyle as ya, ChartTooltip as ba, ChartTooltipContent as xa } from "./components/ui/chart.es.js";
|
|
63
|
-
export { e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, Ae as Alert, je as AlertAction, Me as AlertDescription, Fe as AlertDialog, Ie as AlertDialogAction, Le as AlertDialogCancel, Re as AlertDialogContent, ze as AlertDialogDescription, Be as AlertDialogFooter, Ve as AlertDialogHeader, He as AlertDialogMedia, Ue as AlertDialogOverlay, We as AlertDialogPortal, Ge as AlertDialogTitle, Ke as AlertDialogTrigger, Ne as AlertTitle, Pe as AlertWrapper, i as AspectRatio, Mi as Attachment, Ni as AttachmentAction, Pi as AttachmentActions, Fi as AttachmentContent, Ii as AttachmentDescription, Li as AttachmentGroup, Ri as AttachmentMedia, zi as AttachmentTitle, Bi as AttachmentTrigger, a as Avatar, o as AvatarBadge, s as AvatarFallback, c as AvatarGroup, l as AvatarGroupCount, u as AvatarImage, d as Badge, p as Breadcrumb, m as BreadcrumbEllipsis, h as BreadcrumbItem, g as BreadcrumbLink, _ as BreadcrumbList, v as BreadcrumbPage, y as BreadcrumbSeparator, Vi as Bubble, Hi as BubbleContent, Ui as BubbleGroup, Wi as BubbleReactions, b as Button, C as ButtonGroup, w as ButtonGroupSeparator, T as ButtonGroupText, ur as Calendar, dr as CalendarDayButton, D as Card, O as CardAction, k as CardContent, A as CardDescription, j as CardFooter, M as CardHeader, N as CardTitle, fr as Carousel, pr as CarouselContent, mr as CarouselItem, hr as CarouselNext, gr as CarouselPrevious, ga as ChartContainer, _a as ChartLegend, va as ChartLegendContent, ya as ChartStyle, ba as ChartTooltip, xa as ChartTooltipContent, vr as Checkbox, P as Collapsible, F as CollapsibleContent, I as CollapsibleTrigger, Er as Combobox, Dr as ComboboxChip, Or as ComboboxChips, kr as ComboboxChipsInput, Ar as ComboboxCollection, jr as ComboboxContent, Mr as ComboboxEmpty, Nr as ComboboxGroup, Pr as ComboboxInput, Fr as ComboboxItem, Ir as ComboboxLabel, Lr as ComboboxList, Rr as ComboboxSeparator, zr as ComboboxTrigger, Br as ComboboxValue, Hr as Command, Ur as CommandDialog, Wr as CommandEmpty, Gr as CommandGroup, Kr as CommandInput, qr as CommandItem, Jr as CommandList, Yr as CommandSeparator, Xr as CommandShortcut, It as ContextMenu, Lt as ContextMenuCheckboxItem, Rt as ContextMenuContent, zt as ContextMenuGroup, Bt as ContextMenuItem, Vt as ContextMenuLabel, Ht as ContextMenuPortal, Ut as ContextMenuRadioGroup, Wt as ContextMenuRadioItem, Gt as ContextMenuSeparator, Kt as ContextMenuShortcut, qt as ContextMenuSub, Jt as ContextMenuSubContent, Yt as ContextMenuSubTrigger, Xt as ContextMenuTrigger, Je as Dialog, Ye as DialogClose, Xe as DialogContent, Ze as DialogDescription, Qe as DialogFooter, $e as DialogHeader, et as DialogOverlay, tt as DialogPortal, nt as DialogTitle, rt as DialogTrigger, L as DirectionProvider, it as Drawer, at as DrawerClose, ot as DrawerContent, st as DrawerDescription, ct as DrawerFooter, lt as DrawerHeader, ut as DrawerOverlay, dt as DrawerPortal, ft as DrawerSwipeHandle, pt as DrawerTitle, mt as DrawerTrigger, Zt as DropdownMenu, Qt as DropdownMenuCheckboxItem, $t as DropdownMenuContent, en as DropdownMenuGroup, tn as DropdownMenuItem, nn as DropdownMenuLabel, rn as DropdownMenuPortal, an as DropdownMenuRadioGroup, on as DropdownMenuRadioItem, sn as DropdownMenuSeparator, cn as DropdownMenuShortcut, ln as DropdownMenuSub, un as DropdownMenuSubContent, dn as DropdownMenuSubTrigger, fn as DropdownMenuTrigger, z as Empty, B as EmptyContent, V as EmptyDescription, H as EmptyHeader, U as EmptyMedia, W as EmptyTitle, Zr as Field, Qr as FieldContent, $r as FieldDescription, ei as FieldError, ti as FieldGroup, ni as FieldLabel, ri as FieldLegend, ii as FieldSeparator, ai as FieldSet, oi as FieldTitle, ht as HoverCard, gt as HoverCardContent, _t as HoverCardTrigger, zn as Input, br as InputGroup, xr as InputGroupAddon, Sr as InputGroupButton, Cr as InputGroupInput, wr as InputGroupText, Tr as InputGroupTextarea, si as InputOTP, ci as InputOTPGroup, li as InputOTPSeparator, ui as InputOTPSlot, oa as Item, sa as ItemActions, ca as ItemContent, la as ItemDescription, ua as ItemFooter, da as ItemGroup, fa as ItemHeader, pa as ItemMedia, ma as ItemSeparator, ha as ItemTitle, G as Kbd, K as KbdGroup, q as Label, J as Marker, Y as MarkerContent, X as MarkerIcon, pn as Menubar, mn as MenubarCheckboxItem, hn as MenubarContent, gn as MenubarGroup, _n as MenubarItem, vn as MenubarLabel, yn as MenubarMenu, bn as MenubarPortal, xn as MenubarRadioGroup, Sn as MenubarRadioItem, Cn as MenubarSeparator, wn as MenubarShortcut, Tn as MenubarSub, En as MenubarSubContent, Dn as MenubarSubTrigger, On as MenubarTrigger, Gi as Message, Ki as MessageAvatar, qi as MessageContent, Ji as MessageFooter, Yi as MessageGroup, Xi as MessageHeader, Zi as MessageScroller, Qi as MessageScrollerButton, $i as MessageScrollerContent, ea as MessageScrollerItem, ta as MessageScrollerProvider, na as MessageScrollerViewport, di as NativeSelect, fi as NativeSelectOptGroup, pi as NativeSelectOption, kn as NavigationMenu, An as NavigationMenuContent, jn as NavigationMenuIndicator, Mn as NavigationMenuItem, Nn as NavigationMenuLink, Pn as NavigationMenuList, Fn as NavigationMenuPositioner, In as NavigationMenuTrigger, Q as Pagination, $ as PaginationContent, ee as PaginationEllipsis, te as PaginationItem, ne as PaginationLink, re as PaginationNext, ie as PaginationPrevious, vt as Popover, yt as PopoverContent, bt as PopoverDescription, xt as PopoverHeader, St as PopoverTitle, Ct as PopoverTrigger, ae as Progress, oe as ProgressIndicator, se as ProgressLabel, ce as ProgressTrack, le as ProgressValue, mi as RadioGroup, hi as RadioGroupItem, ue as ResizableHandle, de as ResizablePanel, fe as ResizablePanelGroup, pe as ScrollArea, me as ScrollBar, gi as Select, _i as SelectContent, vi as SelectGroup, yi as SelectItem, bi as SelectLabel, xi as SelectScrollDownButton, Si as SelectScrollUpButton, Ci as SelectSeparator, wi as SelectTrigger, Ti as SelectValue, S as Separator, wt as Sheet, Tt as SheetClose, Et as SheetContent, Dt as SheetDescription, Ot as SheetFooter, kt as SheetHeader, At as SheetTitle, jt as SheetTrigger, Bn as Sidebar, Vn as SidebarContent, Hn as SidebarFooter, Un as SidebarGroup, Wn as SidebarGroupAction, Gn as SidebarGroupContent, Kn as SidebarGroupLabel, qn as SidebarHeader, Jn as SidebarInput, Yn as SidebarInset, Xn as SidebarMenu, Zn as SidebarMenuAction, Qn as SidebarMenuBadge, $n as SidebarMenuButton, er as SidebarMenuItem, tr as SidebarMenuSkeleton, nr as SidebarMenuSub, rr as SidebarMenuSubButton, ir as SidebarMenuSubItem, ar as SidebarProvider, or as SidebarRail, sr as SidebarSeparator, cr as SidebarTrigger, he as Skeleton, Ei as Slider, ge as Spinner, Di as Switch, Se as Table, Ce as TableBody, we as TableCaption, Te as TableCell, Ee as TableFooter, De as TableHead, Oe as TableHeader, ke as TableRow, _e as Tabs, ve as TabsContent, ye as TabsList, be as TabsTrigger, yr as Textarea, qe as Toaster, Oi as Toggle, Ai as ToggleGroup, ji as ToggleGroupItem, Mt as Tooltip, Nt as TooltipContent, Pt as TooltipProvider, Ft as TooltipTrigger, f as badgeVariants, E as buttonGroupVariants, x as buttonVariants, Z as markerVariants, Ln as navigationMenuTriggerStyle, xe as tabsListVariants, ki as toggleVariants, _r as useCarousel, Vr as useComboboxAnchor, R as useDirection, Rn as useIsMobile, ra as useMessageScroller, ia as useMessageScrollerScrollable, aa as useMessageScrollerVisibility, lr as useSidebar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"AACmB,OAAO,OAAW,KAAe,OAAO,UAAY,OAAO,SAAS,cACvF,SAAS,EAAqB,EAAsB,EAAiB,CAAE,2BAA2B,IAAS,CAAC,EAAG,CAC7G,OAAO,SAAqB,EAAO,CAEjC,GADA,IAAuB,CAAK,EACxB,IAA6B,IAAS,CAAC,GAAS,CAAC,EAAM,iBACzD,OAAO,IAAkB,CAAK,CAElC,CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"AACmB,OAAO,SAAW,OAAe,OAAO,YAAY,OAAO,SAAS;AACvF,SAAS,EAAqB,GAAsB,GAAiB,EAAE,8BAA2B,OAAS,CAAC,GAAG;CAC7G,OAAO,SAAqB,GAAO;EAEjC,IADA,IAAuB,CAAK,GACxB,MAA6B,MAAS,CAAC,KAAS,CAAC,EAAM,kBACzD,OAAO,IAAkB,CAAK;CAElC;AACF"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react");t=e.__toESM(t,1);function n(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function r(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return!r&&typeof i==`function`&&(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];typeof r==`function`?r():n(e[t],null)}}}}function i(...e){return t.useCallback(r(...e),e)}exports.composeRefs=r,exports.useComposedRefs=i;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.3+93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"kHAEA,SAAS,EAAO,EAAK,EAAO,CAC1B,GAAI,OAAO,GAAQ,WACjB,OAAO,EAAI,CAAK,EACP,GAAQ,OACjB,EAAI,QAAU,EAElB,CACA,SAAS,EAAY,GAAG,EAAM,CAC5B,MAAQ,IAAS,CACf,IAAI,EAAa,GACX,EAAW,EAAK,IAAK,GAAQ,CACjC,IAAM,EAAU,EAAO,EAAK,CAAI,EAIhC,MAHI,CAAC,GAAc,OAAO,GAAW,aACnC,EAAa,IAER,CACT,CAAC,EACD,GAAI,EACF,UAAa,CACX,IAAK,IAAI,EAAI,EAAG,EAAI,EAAS,OAAQ,IAAK,CACxC,IAAM,EAAU,EAAS,GACrB,OAAO,GAAW,WACpB,EAAQ,EAER,EAAO,EAAK,GAAI,IAAI,CAExB,CACF,CAEJ,CACF,CACA,SAAS,EAAgB,GAAG,EAAM,CAChC,OAAOA,EAAM,YAAY,EAAY,GAAG,CAAI,EAAG,CAAI,CACrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-compose-refs@1.1.3+93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAO,GAAK,GAAO;CAC1B,IAAI,OAAO,KAAQ,YACjB,OAAO,EAAI,CAAK;CACX,AAAI,KAAQ,SACjB,EAAI,UAAU;AAElB;AACA,SAAS,EAAY,GAAG,GAAM;CAC5B,QAAQ,MAAS;EACf,IAAI,IAAa,IACX,IAAW,EAAK,KAAK,MAAQ;GACjC,IAAM,IAAU,EAAO,GAAK,CAAI;GAIhC,OAHI,CAAC,KAAc,OAAO,KAAW,eACnC,IAAa,KAER;EACT,CAAC;EACD,IAAI,GACF,aAAa;GACX,KAAK,IAAI,IAAI,GAAG,IAAI,EAAS,QAAQ,KAAK;IACxC,IAAM,IAAU,EAAS;IACzB,AAAI,OAAO,KAAW,aACpB,EAAQ,IAER,EAAO,EAAK,IAAI,IAAI;GAExB;EACF;CAEJ;AACF;AACA,SAAS,EAAgB,GAAG,GAAM;CAChC,OAAO,EAAM,YAAY,EAAY,GAAG,CAAI,GAAG,CAAI;AACrD"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react/jsx-runtime"),n=require("react");n=e.__toESM(n,1);function r(e,r=[]){let a=[];function o(r,i){let o=n.createContext(i);o.displayName=r+`Context`;let s=a.length;a=[...a,i];let c=r=>{let{scope:i,children:a,...c}=r,l=i?.[e]?.[s]||o,u=n.useMemo(()=>c,Object.values(c));return(0,t.jsx)(l.Provider,{value:u,children:a})};c.displayName=r+`Provider`;function l(t,a,c={}){let{optional:l=!1}=c,u=a?.[e]?.[s]||o,d=n.useContext(u);if(d)return d;if(i!==void 0)return i;if(!l)throw Error(`\`${t}\` must be used within \`${r}\``)}return[c,l]}let s=()=>{let t=a.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[o,i(s,...r)]}function i(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}exports.createContextScope=r;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":["React"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-context@1.2.0+93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n Context.displayName = rootComponentName + \"Context\";\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, options = {}) {\n const { optional = false } = options;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n BaseContext.displayName = rootComponentName + \"Context\";\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope, options = {}) {\n const { optional = false } = options;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"iJAsBA,SAAS,EAAmB,EAAW,EAAyB,CAAC,EAAG,CAClE,IAAI,EAAkB,CAAC,EACvB,SAAS,EAAe,EAAmB,EAAgB,CACzD,IAAM,EAAcA,EAAM,cAAc,CAAc,EACtD,EAAY,YAAc,EAAoB,UAC9C,IAAM,EAAQ,EAAgB,OAC9B,EAAkB,CAAC,GAAG,EAAiB,CAAc,EACrD,IAAM,EAAY,GAAU,CAC1B,GAAM,CAAE,QAAO,WAAU,GAAG,GAAY,EAClC,EAAU,IAAQ,EAAU,GAAG,IAAU,EACzC,EAAQA,EAAM,YAAc,EAAS,OAAO,OAAO,CAAO,CAAC,EACjE,OAAuB,EAAA,EAAA,IAAA,CAAI,EAAQ,SAAU,CAAE,QAAO,UAAS,CAAC,CAClE,EACA,EAAS,YAAc,EAAoB,WAC3C,SAAS,EAAY,EAAc,EAAO,EAAU,CAAC,EAAG,CACtD,GAAM,CAAE,WAAW,IAAU,EACvB,EAAU,IAAQ,EAAU,GAAG,IAAU,EACzC,EAAUA,EAAM,WAAW,CAAO,EACxC,GAAI,EAAS,OAAO,EACpB,GAAI,IAAmB,IAAK,GAAG,OAAO,EAClC,MACJ,MAAU,MAAM,KAAK,EAAa,2BAA2B,EAAkB,GAAG,CACpF,CACA,MAAO,CAAC,EAAU,CAAW,CAC/B,CACA,IAAM,MAAoB,CACxB,IAAM,EAAgB,EAAgB,IAAK,GAClCA,EAAM,cAAc,CAAc,CAC1C,EACD,OAAO,SAAkB,EAAO,CAC9B,IAAM,EAAW,IAAQ,IAAc,EACvC,OAAOA,EAAM,aACJ,EAAG,UAAU,KAAc,CAAE,GAAG,GAAQ,GAAY,CAAS,CAAE,GACtE,CAAC,EAAO,CAAQ,CAClB,CACF,CACF,EAEA,MADA,GAAY,UAAY,EACjB,CAAC,EAAgB,EAAqB,EAAa,GAAG,CAAsB,CAAC,CACtF,CACA,SAAS,EAAqB,GAAG,EAAQ,CACvC,IAAM,EAAY,EAAO,GACzB,GAAI,EAAO,SAAW,EAAG,OAAO,EAChC,IAAM,MAAoB,CACxB,IAAM,EAAa,EAAO,IAAK,IAAkB,CAC/C,SAAU,EAAa,EACvB,UAAW,EAAa,SAC1B,EAAE,EACF,OAAO,SAA2B,EAAgB,CAChD,IAAM,EAAa,EAAW,QAAQ,EAAa,CAAE,WAAU,eAAgB,CAE7E,IAAM,EADa,EAAS,CACE,CAAC,CAAC,UAAU,KAC1C,MAAO,CAAE,GAAG,EAAa,GAAG,CAAa,CAC3C,EAAG,CAAC,CAAC,EACL,OAAOA,EAAM,aAAe,EAAG,UAAU,EAAU,aAAc,CAAW,GAAI,CAAC,CAAU,CAAC,CAC9F,CACF,EAEA,MADA,GAAY,UAAY,EAAU,UAC3B,CACT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-context@1.2.0+93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n Context.displayName = rootComponentName + \"Context\";\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, options = {}) {\n const { optional = false } = options;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n BaseContext.displayName = rootComponentName + \"Context\";\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope, options = {}) {\n const { optional = false } = options;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n if (optional) return void 0;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAsBA,SAAS,EAAmB,GAAW,IAAyB,CAAC,GAAG;CAClE,IAAI,IAAkB,CAAC;CACvB,SAAS,EAAe,GAAmB,GAAgB;EACzD,IAAM,IAAc,EAAM,cAAc,CAAc;EACtD,EAAY,cAAc,IAAoB;EAC9C,IAAM,IAAQ,EAAgB;EAC9B,IAAkB,CAAC,GAAG,GAAiB,CAAc;EACrD,IAAM,KAAY,MAAU;GAC1B,IAAM,EAAE,UAAO,aAAU,GAAG,MAAY,GAClC,IAAU,IAAQ,EAAU,GAAG,MAAU,GACzC,IAAQ,EAAM,cAAc,GAAS,OAAO,OAAO,CAAO,CAAC;GACjE,OAAuB,kBAAI,EAAQ,UAAU;IAAE;IAAO;GAAS,CAAC;EAClE;EACA,EAAS,cAAc,IAAoB;EAC3C,SAAS,EAAY,GAAc,GAAO,IAAU,CAAC,GAAG;GACtD,IAAM,EAAE,cAAW,OAAU,GACvB,IAAU,IAAQ,EAAU,GAAG,MAAU,GACzC,IAAU,EAAM,WAAW,CAAO;GACxC,IAAI,GAAS,OAAO;GACpB,IAAI,MAAmB,KAAK,GAAG,OAAO;GAClC,QACJ,MAAU,MAAM,KAAK,EAAa,2BAA2B,EAAkB,GAAG;EACpF;EACA,OAAO,CAAC,GAAU,CAAW;CAC/B;CACA,IAAM,UAAoB;EACxB,IAAM,IAAgB,EAAgB,KAAK,MAClC,EAAM,cAAc,CAAc,CAC1C;EACD,OAAO,SAAkB,GAAO;GAC9B,IAAM,IAAW,IAAQ,MAAc;GACvC,OAAO,EAAM,eACJ,GAAG,UAAU,MAAc;IAAE,GAAG;KAAQ,IAAY;GAAS,EAAE,IACtE,CAAC,GAAO,CAAQ,CAClB;EACF;CACF;CAEA,OADA,EAAY,YAAY,GACjB,CAAC,GAAgB,EAAqB,GAAa,GAAG,CAAsB,CAAC;AACtF;AACA,SAAS,EAAqB,GAAG,GAAQ;CACvC,IAAM,IAAY,EAAO;CACzB,IAAI,EAAO,WAAW,GAAG,OAAO;CAChC,IAAM,UAAoB;EACxB,IAAM,IAAa,EAAO,KAAK,OAAkB;GAC/C,UAAU,EAAa;GACvB,WAAW,EAAa;EAC1B,EAAE;EACF,OAAO,SAA2B,GAAgB;GAChD,IAAM,IAAa,EAAW,QAAQ,GAAa,EAAE,aAAU,mBAAgB;IAE7E,IAAM,IADa,EAAS,CACE,CAAC,CAAC,UAAU;IAC1C,OAAO;KAAE,GAAG;KAAa,GAAG;IAAa;GAC3C,GAAG,CAAC,CAAC;GACL,OAAO,EAAM,eAAe,GAAG,UAAU,EAAU,cAAc,EAAW,IAAI,CAAC,CAAU,CAAC;EAC9F;CACF;CAEA,OADA,EAAY,YAAY,EAAU,WAC3B;AACT"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js"),n=require("../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js"),r=require("../../../../../@radix-ui_react-context@1.2.0_93dbe784b8baa420/node_modules/@radix-ui/react-context/dist/index.cjs.js"),i=require("../../../../../@radix-ui_react-id@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-id/dist/index.cjs.js"),a=require("../../../../../@radix-ui_react-use-controllable-state@1.2.3_93dbe784b8baa420/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.js"),o=require("../../../../../@radix-ui_react-slot@1.3.0_93dbe784b8baa420/node_modules/@radix-ui/react-slot/dist/index.cjs.js"),s=require("../../../../../@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js"),c=require("../../../../../@radix-ui_react-dismissable-layer@1.1.15_ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.js"),l=require("../../../../../@radix-ui_react-focus-scope@1.1.12_ae2b4604ef263bc9/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.js"),u=require("../../../../../@radix-ui_react-portal@1.1.13_ae2b4604ef263bc9/node_modules/@radix-ui/react-portal/dist/index.cjs.js"),d=require("../../../../../@radix-ui_react-presence@1.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-presence/dist/index.cjs.js"),f=require("../../../../../@radix-ui_react-focus-guards@1.1.4_93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.js"),p=require("../../../../../react-remove-scroll@2.7.2_93dbe784b8baa420/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.js"),m=require("../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs.js");let h=require("react/jsx-runtime"),g=require("react");g=e.__toESM(g,1);var _=`Dialog`,[v,y]=r.createContextScope(_),[b,x]=v(_),S=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=g.useRef(null),u=g.useRef(null),[d,f]=a.useControllableState({prop:r,defaultProp:o??!1,onChange:s,caller:_});return(0,h.jsx)(b,{scope:t,triggerRef:l,contentRef:u,contentId:i.useId(),titleId:i.useId(),descriptionId:i.useId(),open:d,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(e=>!e),[f]),modal:c,children:n})};S.displayName=_;var C=`DialogTrigger`,w=g.forwardRef((e,r)=>{let{__scopeDialog:i,...a}=e,o=x(C,i),c=n.useComposedRefs(r,o.triggerRef);return(0,h.jsx)(s.Primitive.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":W(o.open),...a,ref:c,onClick:t.composeEventHandlers(e.onClick,o.onOpenToggle)})});w.displayName=C;var T=`DialogPortal`,[E,D]=v(T,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=x(T,t);return(0,h.jsx)(E,{scope:t,forceMount:n,children:g.Children.map(r,e=>(0,h.jsx)(d.Presence,{present:n||a.open,children:(0,h.jsx)(u.Portal,{asChild:!0,container:i,children:e})}))})};O.displayName=T;var k=`DialogOverlay`,A=g.forwardRef((e,t)=>{let n=D(k,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(k,e.__scopeDialog);return a.modal?(0,h.jsx)(d.Presence,{present:r||a.open,children:(0,h.jsx)(M,{...i,ref:t})}):null});A.displayName=k;var j=o.createSlot(`DialogOverlay.RemoveScroll`),M=g.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,a=x(k,r),o=n.useComposedRefs(t,c.useDismissableLayerSurface());return(0,h.jsx)(p.default,{as:j,allowPinchZoom:!0,shards:[a.contentRef],children:(0,h.jsx)(s.Primitive.div,{"data-state":W(a.open),...i,ref:o,style:{pointerEvents:`auto`,...i.style}})})}),N=`DialogContent`,P=g.forwardRef((e,t)=>{let n=D(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=x(N,e.__scopeDialog);return(0,h.jsx)(d.Presence,{present:r||a.open,children:a.modal?(0,h.jsx)(F,{...i,ref:t}):(0,h.jsx)(I,{...i,ref:t})})});P.displayName=N;var F=g.forwardRef((e,r)=>{let i=x(N,e.__scopeDialog),a=g.useRef(null),o=n.useComposedRefs(r,i.contentRef,a);return g.useEffect(()=>{let e=a.current;if(e)return m.hideOthers(e)},[]),(0,h.jsx)(L,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.composeEventHandlers(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.composeEventHandlers(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.composeEventHandlers(e.onFocusOutside,e=>e.preventDefault())})}),I=g.forwardRef((e,t)=>{let n=x(N,e.__scopeDialog),r=g.useRef(!1),i=g.useRef(!1);return(0,h.jsx)(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),L=g.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=x(N,n);return f.useFocusGuards(),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,h.jsx)(c.DismissableLayer,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":W(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),R=`DialogTitle`,z=g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=x(R,n);return(0,h.jsx)(s.Primitive.h2,{id:i.titleId,...r,ref:t})});z.displayName=R;var B=`DialogDescription`,V=g.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=x(B,n);return(0,h.jsx)(s.Primitive.p,{id:i.descriptionId,...r,ref:t})});V.displayName=B;var H=`DialogClose`,U=g.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,a=x(H,r);return(0,h.jsx)(s.Primitive.button,{type:`button`,...i,ref:n,onClick:t.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});U.displayName=H;function W(e){return e?`open`:`closed`}exports.Close=U,exports.DialogClose=U,exports.Content=P,exports.DialogContent=P,exports.Description=V,exports.DialogDescription=V,exports.Dialog=S,exports.Root=S,exports.DialogOverlay=A,exports.Overlay=A,exports.DialogPortal=O,exports.Portal=O,exports.DialogTitle=z,exports.Title=z,exports.DialogTrigger=w,exports.Trigger=w;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":["createContextScope","React","useControllableState","useId","useComposedRefs","Primitive","composeEventHandlers","Presence","PortalPrimitive","createSlot","useDismissableLayerSurface","RemoveScroll","hideOthers","Fragment","FocusScope","DismissableLayer"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dialog@1.1.19+ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer, useDismissableLayerSurface } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n const registerDismissableSurface = useDismissableLayerSurface();\n const composedRefs = useComposedRefs(forwardedRef, registerDismissableSurface);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: composedRefs,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n useFocusGuards();\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: forwardedRef,\n deferPointerDownOutside: true,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ) });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nvar WarningProvider = (props) => {\n return props.children;\n};\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nexport {\n DialogClose as Close,\n DialogContent as Content,\n DialogDescription as Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n DialogOverlay as Overlay,\n DialogPortal as Portal,\n Dialog as Root,\n DialogTitle as Title,\n DialogTrigger as Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"y8DAmBA,IAAI,EAAc,SACd,CAAC,EAAqB,GAAqBA,EAAAA,mBAAmB,CAAW,EACzE,CAAC,EAAgB,GAAoB,EAAoB,CAAW,EACpE,EAAU,GAAU,CACtB,GAAM,CACJ,gBACA,WACA,KAAM,EACN,cACA,eACA,QAAQ,IACN,EACE,EAAaC,EAAM,OAAO,IAAI,EAC9B,EAAaA,EAAM,OAAO,IAAI,EAC9B,CAAC,EAAM,GAAWC,EAAAA,qBAAqB,CAC3C,KAAM,EACN,YAAa,GAAe,GAC5B,SAAU,EACV,OAAQ,CACV,CAAC,EACD,OAAuB,EAAA,EAAA,IAAA,CACrB,EACA,CACE,MAAO,EACP,aACA,a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,YAC3B,EAAO,IAAiB,CACvB,GAAM,CAAE,gBAAe,GAAG,GAAqB,EACzC,EAAU,EAAiB,EAAkB,CAAa,EAChE,OAAuB,EAAA,EAAA,IAAA,CAAII,EAAAA,UAAU,EAAG,CAAE,GAAI,EAAQ,cAAe,GAAG,EAAkB,IAAK,CAAa,CAAC,CAC/G,CACF,EACA,EAAkB,YAAc,EAChC,IAAI,EAAa,cACb,EAAcJ,EAAM,YACrB,EAAO,IAAiB,CACvB,GAAM,CAAE,gBAAe,GAAG,GAAe,EACnC,EAAU,EAAiB,EAAY,CAAa,EAC1D,OAAuB,EAAA,EAAA,IAAA,CACrBI,EAAAA,UAAU,OACV,CACE,KAAM,SACN,GAAG,EACH,IAAK,EACL,QAASC,EAAAA,qBAAqB,EAAM,YAAe,EAAQ,aAAa,EAAK,CAAC,CAChF,CACF,CACF,CACF,EACA,EAAY,YAAc,EAI1B,SAAS,EAAS,EAAM,CACtB,OAAO,EAAO,OAAS,QACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":["useId","PortalPrimitive","RemoveScroll"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dialog@1.1.19+ae2b4604ef263bc9/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer, useDismissableLayerSurface } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n const registerDismissableSurface = useDismissableLayerSurface();\n const composedRefs = useComposedRefs(forwardedRef, registerDismissableSurface);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: composedRefs,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n useFocusGuards();\n return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: forwardedRef,\n deferPointerDownOutside: true,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ) });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nvar WarningProvider = (props) => {\n return props.children;\n};\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nexport {\n DialogClose as Close,\n DialogContent as Content,\n DialogDescription as Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n DialogOverlay as Overlay,\n DialogPortal as Portal,\n Dialog as Root,\n DialogTitle as Title,\n DialogTrigger as Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,IAAI,IAAc,UACd,CAAC,GAAqB,KAAqB,EAAmB,CAAW,GACzE,CAAC,GAAgB,KAAoB,EAAoB,CAAW,GACpE,KAAU,MAAU;CACtB,IAAM,EACJ,kBACA,aACA,MAAM,GACN,gBACA,iBACA,WAAQ,OACN,GACE,IAAa,EAAM,OAAO,IAAI,GAC9B,IAAa,EAAM,OAAO,IAAI,GAC9B,CAAC,GAAM,KAAW,EAAqB;EAC3C,MAAM;EACN,aAAa,KAAe;EAC5B,UAAU;EACV,QAAQ;CACV,CAAC;CACD,OAAuB,kBACrB,GACA;EACE,OAAO;EACP;EACA;EACA,WAAWA,EAAM;EACjB,SAASA,EAAM;EACf,eAAeA,EAAM;EACrB;EACA,cAAc;EACd,cAAc,EAAM,kBAAk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0 @@
|
|
|
1
|
-
"use client";const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js"),t=require("../../../../../@radix-ui_primitive@1.1.5/node_modules/@radix-ui/primitive/dist/index.cjs.js"),n=require("../../../../../@radix-ui_react-compose-refs@1.1.3_93dbe784b8baa420/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.js"),r=require("../../../../../@radix-ui_react-primitive@2.1.7_ae2b4604ef263bc9/node_modules/@radix-ui/react-primitive/dist/index.cjs.js"),i=require("../../../../../@radix-ui_react-use-callback-ref@1.1.2_93dbe784b8baa420/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.js");let a=require("react/jsx-runtime"),o=require("react");o=e.__toESM(o,1);var s=`DismissableLayer`,c=`dismissableLayer.update`,l=`dismissableLayer.pointerDownOutside`,u=`dismissableLayer.focusOutside`,d,f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),p=o.forwardRef((e,s)=>{let{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:_,...x}=e,S=o.useContext(f),[C,w]=o.useState(null),T=C?.ownerDocument??globalThis?.document,[,E]=o.useState({}),D=n.useComposedRefs(s,w),O=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),A=k?O.indexOf(k):-1,j=C?O.indexOf(C):-1,M=S.layersWithOutsidePointerEventsDisabled.size>0,N=j>=A,P=o.useRef(!1),F=v(e=>{m?.(e),g?.(e),e.defaultPrevented||_?.()},{ownerDocument:T,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return N&&!t},[S.branches,N])}),I=y(e=>{if(u&&P.current)return;let t=e.target;[...S.branches].some(e=>e.contains(t))||(h?.(e),g?.(e),e.defaultPrevented||_?.())},T),L=C?j===O.length-1:!1,R=i.useCallbackRef(e=>{e.key===`Escape`&&(p?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))});return o.useEffect(()=>{if(L)return T.addEventListener(`keydown`,R,{capture:!0}),()=>T.removeEventListener(`keydown`,R,{capture:!0})},[T,L,R]),o.useEffect(()=>{if(C)return l&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(d=T.body.style.pointerEvents,T.body.style.pointerEvents=`none`),S.layersWithOutsidePointerEventsDisabled.add(C)),S.layers.add(C),b(),()=>{l&&(S.layersWithOutsidePointerEventsDisabled.delete(C),S.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=d))}},[C,T,l,S]),o.useEffect(()=>()=>{C&&(S.layers.delete(C),S.layersWithOutsidePointerEventsDisabled.delete(C),b())},[C,S]),o.useEffect(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(r.Primitive.div,{...x,ref:D,style:{pointerEvents:M?N?`auto`:`none`:void 0,...e.style},onFocusCapture:t.composeEventHandlers(e.onFocusCapture,I.onFocusCapture),onBlurCapture:t.composeEventHandlers(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:t.composeEventHandlers(e.onPointerDownCapture,F.onPointerDownCapture)})});p.displayName=s;var m=`DismissableLayerBranch`,h=o.forwardRef((e,t)=>{let i=o.useContext(f),s=o.useRef(null),c=n.useComposedRefs(t,s);return o.useEffect(()=>{let e=s.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,a.jsx)(r.Primitive.div,{...e,ref:c})});h.displayName=m;function g(){let e=o.useContext(f),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var _=()=>!0;function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=_}=t,u=i.useCallbackRef(e),d=o.useRef(!1),f=o.useRef(!1),p=o.useRef(new Map),m=o.useRef(()=>{});return o.useEffect(()=>{function e(){f.current=!1,a.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function i(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||p.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{f.current&&m.current()},0)}function o(e){f.current&&p.current.set(e.type,!1)}let h=i=>{if(i.target&&!d.current){let o=function(){n.removeEventListener(`click`,m.current);let r=t();e(),r||x(l,u,s,{discrete:!0})};if(!c(i.target)){n.removeEventListener(`click`,m.current),e(),d.current=!1;return}let s={originalEvent:i};f.current=!0,a.current=r&&i.button===0,p.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,m.current),m.current=o,n.addEventListener(`click`,m.current,{once:!0}))}else n.removeEventListener(`click`,m.current),e();d.current=!1},g=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of g)n.addEventListener(e,i,!0),n.addEventListener(e,o);let _=window.setTimeout(()=>{n.addEventListener(`pointerdown`,h)},0);return()=>{window.clearTimeout(_),n.removeEventListener(`pointerdown`,h),n.removeEventListener(`click`,m.current);for(let e of g)n.removeEventListener(e,i,!0),n.removeEventListener(e,o)}},[n,u,r,a,s,c]),{onPointerDownCapture:()=>d.current=!0}}function y(e,t=globalThis?.document){let n=i.useCallbackRef(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&x(u,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function b(){let e=new CustomEvent(c);document.dispatchEvent(e)}function x(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r.dispatchDiscreteCustomEvent(a,o):a.dispatchEvent(o)}exports.DismissableLayer=p,exports.DismissableLayerBranch=h,exports.useDismissableLayerSurface=g;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":["React","useComposedRefs","useCallbackRef","Primitive","composeEventHandlers"],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.15+ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set(),\n // Outside elements that belong to a layer's own dismiss affordance (eg, a\n // dialog overlay). Pressing them should dismiss the layer regardless of\n // whether or not they stop propagation.\n //\n // See https://github.com/radix-ui/primitives/issues/3346\n dismissableSurfaces: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n deferPointerDownOutside = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, setNode);\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const isDeferredPointerDownOutsideRef = React.useRef(false);\n const pointerDownOutside = usePointerDownOutside(\n (event) => {\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n },\n {\n ownerDocument,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces: context.dismissableSurfaces,\n shouldHandlePointerDownOutside: React.useCallback(\n (target) => {\n if (!(target instanceof Node)) {\n return false;\n }\n const isPointerDownOnBranch = [...context.branches].some(\n (branch) => branch.contains(target)\n );\n return isPointerEventsEnabled && !isPointerDownOnBranch;\n },\n [context.branches, isPointerEventsEnabled]\n )\n }\n );\n const focusOutside = useFocusOutside((event) => {\n if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const isHighestLayer = node ? index === layers.length - 1 : false;\n const handleKeyDown = useCallbackRef((event) => {\n if (event.key !== \"Escape\") {\n return;\n }\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n });\n React.useEffect(() => {\n if (!isHighestLayer) {\n return;\n }\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [ownerDocument, isHighestLayer, handleKeyDown]);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents) {\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction useDismissableLayerSurface() {\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n React.useEffect(() => {\n if (!node) {\n return;\n }\n context.dismissableSurfaces.add(node);\n return () => {\n context.dismissableSurfaces.delete(node);\n };\n }, [node, context.dismissableSurfaces]);\n return setNode;\n}\nvar IS_TRUE = () => true;\nfunction usePointerDownOutside(onPointerDownOutside, args) {\n const {\n ownerDocument = globalThis?.document,\n deferPointerDownOutside = false,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside = IS_TRUE\n } = args;\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const isPointerDownOutsideRef = React.useRef(false);\n const interceptedOutsideInteractionEventsRef = React.useRef(/* @__PURE__ */ new Map());\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n function resetOutsideInteraction() {\n isPointerDownOutsideRef.current = false;\n isDeferredPointerDownOutsideRef.current = false;\n interceptedOutsideInteractionEventsRef.current.clear();\n }\n function isOutsideInteractionIntercepted() {\n return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);\n }\n function handleInteractionCapture(event) {\n if (!isPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isDismissableSurface = target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target));\n if (!isDismissableSurface) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, true);\n }\n if (event.type === \"click\") {\n window.setTimeout(() => {\n if (isPointerDownOutsideRef.current) {\n handleClickRef.current();\n }\n }, 0);\n }\n }\n function handleInteractionBubble(event) {\n if (isPointerDownOutsideRef.current) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, false);\n }\n }\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();\n resetOutsideInteraction();\n if (!wasOutsideInteractionIntercepted) {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n }\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n if (!shouldHandlePointerDownOutside(event.target)) {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n isPointerInsideReactTreeRef.current = false;\n return;\n }\n const eventDetail = { originalEvent: event };\n isPointerDownOutsideRef.current = true;\n isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;\n interceptedOutsideInteractionEventsRef.current.clear();\n if (!deferPointerDownOutside || event.button !== 0) {\n handleAndDispatchPointerDownOutsideEvent2();\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const outsideInteractionEvents = [\n \"pointerup\",\n \"mousedown\",\n \"mouseup\",\n \"touchstart\",\n \"touchend\",\n \"click\"\n ];\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.addEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.addEventListener(eventName, handleInteractionBubble);\n }\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.removeEventListener(eventName, handleInteractionBubble);\n }\n };\n }, [\n ownerDocument,\n handlePointerDownOutside,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n Dismissable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EAAc,oBAAoB,UAAW,CAAW,CACvE,EAAG,CAAC,EAAe,CAAkB,CAAC,EAC/B,CACL,mBAAsB,EAA0B,QAAU,GAC1D,kBAAqB,EAA0B,QAAU,EAC3D,CACF,CACA,SAAS,GAAiB,CACxB,IAAM,EAAQ,IAAI,YAAY,CAAc,EAC5C,SAAS,cAAc,CAAK,CAC9B,CACA,SAAS,EAA6B,EAAM,EAAS,EAAQ,CAAE,YAAY,CACzE,IAAM,EAAS,EAAO,cAAc,OAC9B,EAAQ,IAAI,YAAY,EAAM,CAAE,QAAS,GAAO,WAAY,GAAM,QAAO,CAAC,EAC5E,GAAS,EAAO,iBAAiB,EAAM,EAAS,CAAE,KAAM,EAAK,CAAC,EAC9D,EACF,EAAA,4BAA4B,EAAQ,CAAK,EAEzC,EAAO,cAAc,CAAK,CAE9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.15+ae2b4604ef263bc9/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set(),\n // Outside elements that belong to a layer's own dismiss affordance (eg, a\n // dialog overlay). Pressing them should dismiss the layer regardless of\n // whether or not they stop propagation.\n //\n // See https://github.com/radix-ui/primitives/issues/3346\n dismissableSurfaces: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n deferPointerDownOutside = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, setNode);\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [\n ...context.layersWithOutsidePointerEventsDisabled\n ].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const isDeferredPointerDownOutsideRef = React.useRef(false);\n const pointerDownOutside = usePointerDownOutside(\n (event) => {\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n },\n {\n ownerDocument,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces: context.dismissableSurfaces,\n shouldHandlePointerDownOutside: React.useCallback(\n (target) => {\n if (!(target instanceof Node)) {\n return false;\n }\n const isPointerDownOnBranch = [...context.branches].some(\n (branch) => branch.contains(target)\n );\n return isPointerEventsEnabled && !isPointerDownOnBranch;\n },\n [context.branches, isPointerEventsEnabled]\n )\n }\n );\n const focusOutside = useFocusOutside((event) => {\n if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const isHighestLayer = node ? index === layers.length - 1 : false;\n const handleKeyDown = useCallbackRef((event) => {\n if (event.key !== \"Escape\") {\n return;\n }\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n });\n React.useEffect(() => {\n if (!isHighestLayer) {\n return;\n }\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [ownerDocument, isHighestLayer, handleKeyDown]);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents) {\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction useDismissableLayerSurface() {\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n React.useEffect(() => {\n if (!node) {\n return;\n }\n context.dismissableSurfaces.add(node);\n return () => {\n context.dismissableSurfaces.delete(node);\n };\n }, [node, context.dismissableSurfaces]);\n return setNode;\n}\nvar IS_TRUE = () => true;\nfunction usePointerDownOutside(onPointerDownOutside, args) {\n const {\n ownerDocument = globalThis?.document,\n deferPointerDownOutside = false,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside = IS_TRUE\n } = args;\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const isPointerDownOutsideRef = React.useRef(false);\n const interceptedOutsideInteractionEventsRef = React.useRef(/* @__PURE__ */ new Map());\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n function resetOutsideInteraction() {\n isPointerDownOutsideRef.current = false;\n isDeferredPointerDownOutsideRef.current = false;\n interceptedOutsideInteractionEventsRef.current.clear();\n }\n function isOutsideInteractionIntercepted() {\n return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);\n }\n function handleInteractionCapture(event) {\n if (!isPointerDownOutsideRef.current) {\n return;\n }\n const target = event.target;\n const isDismissableSurface = target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target));\n if (!isDismissableSurface) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, true);\n }\n if (event.type === \"click\") {\n window.setTimeout(() => {\n if (isPointerDownOutsideRef.current) {\n handleClickRef.current();\n }\n }, 0);\n }\n }\n function handleInteractionBubble(event) {\n if (isPointerDownOutsideRef.current) {\n interceptedOutsideInteractionEventsRef.current.set(event.type, false);\n }\n }\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();\n resetOutsideInteraction();\n if (!wasOutsideInteractionIntercepted) {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n }\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n if (!shouldHandlePointerDownOutside(event.target)) {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n isPointerInsideReactTreeRef.current = false;\n return;\n }\n const eventDetail = { originalEvent: event };\n isPointerDownOutsideRef.current = true;\n isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;\n interceptedOutsideInteractionEventsRef.current.clear();\n if (!deferPointerDownOutside || event.button !== 0) {\n handleAndDispatchPointerDownOutsideEvent2();\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n resetOutsideInteraction();\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const outsideInteractionEvents = [\n \"pointerup\",\n \"mousedown\",\n \"mouseup\",\n \"touchstart\",\n \"touchend\",\n \"click\"\n ];\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.addEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.addEventListener(eventName, handleInteractionBubble);\n }\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n for (const eventName of outsideInteractionEvents) {\n ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);\n ownerDocument.removeEventListener(eventName, handleInteractionBubble);\n }\n };\n }, [\n ownerDocument,\n handlePointerDownOutside,\n deferPointerDownOutside,\n isDeferredPointerDownOutsideRef,\n dismissableSurfaces,\n shouldHandlePointerDownOutside\n ]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root,\n useDismissableLayerSurface\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AASA,IAAI,IAAyB,oBACzB,IAAiB,2BACjB,IAAuB,uCACvB,IAAgB,iCAChB,GACA,IAA0B,EAAM,cAAc;CAChD,wBAAwB,IAAI,IAAI;CAChC,wDAAwD,IAAI,IAAI;CAChE,0BAA0B,IAAI,IAAI;CAMlC,qCAAqC,IAAI,IAAI;AAC/C,CAAC,GACG,IAAmB,EAAM,YAC1B,GAAO,MAAiB;CACvB,IAAM,EACJ,iCAA8B,IAC9B,6BAA0B,IAC1B,oBACA,yBACA,mBACA,sBACA,cACA,GAAG,MACD,GACE,IAAU,EAAM,WAAW,CAAuB,GAClD,CAAC,GAAM,KAAW,EAAM,SAAS,IAAI,GACrC,IAAgB,GAAM,iBAAiB,YAAY,UACnD,GAAG,KAAS,EAAM,SAAS,CAAC,CAAC,GAC7B,IAAe,EAAgB,GAAc,CAAO,GACpD,IAAS,MAAM,KAAK,EAAQ,MAAM,GAClC,CAAC,KAAgD,CACrD,GAAG,EAAQ,sCACb,CAAC,CAAC,MAAM,EAAE,GACJ,IAAoD,IAA+C,EAAO,QAAQ,CAA4C,IAAI,IAClK,IAAQ,IAAO,EAAO,QAAQ,CAAI,IAAI,IACtC,IAA8B,EAAQ,uCAAuC,OAAO,GACpF,IAAyB,KAAS,GAClC,IAAkC,EAAM,OAAO,EAAK,GACpD,IAAqB,GACxB,MAAU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,GAAgB,IAAgB,YAAY,UAAU;CAC7E,IAAM,IAAqB,EAAe,CAAc,GAClD,IAA4B,EAAM,OAAO,EAAK;CAapD,OAZA,EAAM,gBAAgB;EACpB,IAAM,KAAe,MAAU;GAC7B,AAAI,EAAM,UAAU,CAAC,EAA0B,WAE7C,EAA6B,GAAe,GAAoB,EAD1C,eAAe,EACqC,GAAG,EAC3E,UAAU,GACZ,CAAC;EAEL;EAEA,OADA,EAAc,iBAAiB,WAAW,CAAW,SACxC,EAAc,oBAAoB,WAAW,CAAW;CACvE,GAAG,CAAC,GAAe,CAAkB,CAAC,GAC/B;EACL,sBAAsB,EAA0B,UAAU;EAC1D,qBAAqB,EAA0B,UAAU;CAC3D;AACF;AACA,SAAS,IAAiB;CACxB,IAAM,IAAQ,IAAI,YAAY,CAAc;CAC5C,SAAS,cAAc,CAAK;AAC9B;AACA,SAAS,EAA6B,GAAM,GAAS,GAAQ,EAAE,eAAY;CACzE,IAAM,IAAS,EAAO,cAAc,QAC9B,IAAQ,IAAI,YAAY,GAAM;EAAE,SAAS;EAAO,YAAY;EAAM;CAAO,CAAC;CAEhF,AADI,KAAS,EAAO,iBAAiB,GAAM,GAAS,EAAE,MAAM,GAAK,CAAC,GAC9D,IACF,EAA4B,GAAQ,CAAK,IAEzC,EAAO,cAAc,CAAK;AAE9B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";const e=require("../../../../../../../_virtual/_rolldown/runtime.cjs.js");let t=require("react");t=e.__toESM(t,1);var n=0,r=null;function i(){t.useEffect(()=>{r||={start:a(),end:a()};let{start:e,end:t}=r;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),n++,()=>{n===1&&(r?.start.remove(),r?.end.remove(),r=null),n=Math.max(0,n-1)}},[])}function a(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}exports.useFocusGuards=i;
|
|
2
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","names":[],"sources":["../../../../../../../../../../node_modules/.bun/@radix-ui+react-focus-guards@1.1.4+93dbe784b8baa420/node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/focus-guards.tsx\nimport * as React from \"react\";\nvar count = 0;\nvar guards = null;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n if (!guards) {\n guards = { start: createFocusGuard(), end: createFocusGuard() };\n }\n const { start, end } = guards;\n if (document.body.firstElementChild !== start) {\n document.body.insertAdjacentElement(\"afterbegin\", start);\n }\n if (document.body.lastElementChild !== end) {\n document.body.insertAdjacentElement(\"beforeend\", end);\n }\n count++;\n return () => {\n if (count === 1) {\n guards?.start.remove();\n guards?.end.remove();\n guards = null;\n }\n count = Math.max(0, count - 1);\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.outline = \"none\";\n element.style.opacity = \"0\";\n element.style.position = \"fixed\";\n element.style.pointerEvents = \"none\";\n return element;\n}\nexport {\n FocusGuards,\n FocusGuards as Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":"+HAIA,IAAI,EAAQ,EACR,EAAS,KAKb,SAAS,GAAiB,CACxB,EAAM,cAAgB,CACpB,AACE,IAAS,CAAE,MAAO,EAAiB,EAAG,IAAK,EAAiB,CAAE,EAEhE,GAAM,CAAE,QAAO,OAAQ,EAQvB,OAPI,SAAS,KAAK,oBAAsB,GACtC,SAAS,KAAK,sBAAsB,aAAc,CAAK,EAErD,SAAS,KAAK,mBAAqB,GACrC,SAAS,KAAK,sBAAsB,YAAa,CAAG,EAEtD,QACa,CACP,IAAU,IACZ,GAAQ,MAAM,OAAO,EACrB,GAAQ,IAAI,OAAO,EACnB,EAAS,MAEX,EAAQ,KAAK,IAAI,EAAG,EAAQ,CAAC,CAC/B,CACF,EAAG,CAAC,CAAC,CACP,CACA,SAAS,GAAmB,CAC1B,IAAM,EAAU,SAAS,cAAc,MAAM,EAO7C,OANA,EAAQ,aAAa,yBAA0B,EAAE,EACjD,EAAQ,SAAW,EACnB,EAAQ,MAAM,QAAU,OACxB,EAAQ,MAAM,QAAU,IACxB,EAAQ,MAAM,SAAW,QACzB,EAAQ,MAAM,cAAgB,OACvB,CACT"}
|