@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
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { __toESM as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_normalize_wheel as t } from "../../../normalize-wheel@1.0.1/node_modules/normalize-wheel/index.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
//#region ../../node_modules/.bun/react-easy-crop@6.2.2+7492c01c6988791b/node_modules/react-easy-crop/index.module.mjs
|
|
5
|
+
var r = /* @__PURE__ */ e(t(), 1);
|
|
6
|
+
function i(e) {
|
|
7
|
+
"@babel/helpers - typeof";
|
|
8
|
+
return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9
|
+
return typeof e;
|
|
10
|
+
} : function(e) {
|
|
11
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
12
|
+
}, i(e);
|
|
13
|
+
}
|
|
14
|
+
function a(e, t) {
|
|
15
|
+
if (i(e) != "object" || !e) return e;
|
|
16
|
+
var n = e[Symbol.toPrimitive];
|
|
17
|
+
if (n !== void 0) {
|
|
18
|
+
var r = n.call(e, t || "default");
|
|
19
|
+
if (i(r) != "object") return r;
|
|
20
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
+
}
|
|
22
|
+
return (t === "string" ? String : Number)(e);
|
|
23
|
+
}
|
|
24
|
+
function o(e) {
|
|
25
|
+
var t = a(e, "string");
|
|
26
|
+
return i(t) == "symbol" ? t : t + "";
|
|
27
|
+
}
|
|
28
|
+
function s(e, t, n) {
|
|
29
|
+
return (t = o(t)) in e ? Object.defineProperty(e, t, {
|
|
30
|
+
value: n,
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
configurable: !0,
|
|
33
|
+
writable: !0
|
|
34
|
+
}) : e[t] = n, e;
|
|
35
|
+
}
|
|
36
|
+
function c(e, t) {
|
|
37
|
+
var n = Object.keys(e);
|
|
38
|
+
if (Object.getOwnPropertySymbols) {
|
|
39
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
40
|
+
t && (r = r.filter(function(t) {
|
|
41
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
42
|
+
})), n.push.apply(n, r);
|
|
43
|
+
}
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
function l(e) {
|
|
47
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
48
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
49
|
+
t % 2 ? c(Object(n), !0).forEach(function(t) {
|
|
50
|
+
s(e, t, n[t]);
|
|
51
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach(function(t) {
|
|
52
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return e;
|
|
56
|
+
}
|
|
57
|
+
function u(e, t, n, r, i, a = 0) {
|
|
58
|
+
let { width: o, height: s } = w(e, t, a), c = Math.min(o, n), l = Math.min(s, r);
|
|
59
|
+
return c > l * i ? {
|
|
60
|
+
width: l * i,
|
|
61
|
+
height: l
|
|
62
|
+
} : {
|
|
63
|
+
width: c,
|
|
64
|
+
height: c / i
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function d(e) {
|
|
68
|
+
return e.width > e.height ? e.width / e.naturalWidth : e.height / e.naturalHeight;
|
|
69
|
+
}
|
|
70
|
+
function f(e, t, n, r, i = 0) {
|
|
71
|
+
let { width: a, height: o } = w(t.width, t.height, i);
|
|
72
|
+
return {
|
|
73
|
+
x: p(e.x, a, n.width, r),
|
|
74
|
+
y: p(e.y, o, n.height, r)
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function p(e, t, n, r) {
|
|
78
|
+
let i = Math.abs(t * r / 2 - n / 2);
|
|
79
|
+
return T(e, -i, i);
|
|
80
|
+
}
|
|
81
|
+
function m(e, t) {
|
|
82
|
+
return Math.sqrt((e.y - t.y) ** 2 + (e.x - t.x) ** 2);
|
|
83
|
+
}
|
|
84
|
+
function h(e, t) {
|
|
85
|
+
return Math.atan2(t.y - e.y, t.x - e.x) * 180 / Math.PI;
|
|
86
|
+
}
|
|
87
|
+
function g(e, t, n, r, i, a = 0, o = !0) {
|
|
88
|
+
let s = o ? _ : v, c = w(t.width, t.height, a), u = w(t.naturalWidth, t.naturalHeight, a), d = {
|
|
89
|
+
x: s(100, ((c.width - n.width / i) / 2 - e.x / i) / c.width * 100),
|
|
90
|
+
y: s(100, ((c.height - n.height / i) / 2 - e.y / i) / c.height * 100),
|
|
91
|
+
width: s(100, n.width / c.width * 100 / i),
|
|
92
|
+
height: s(100, n.height / c.height * 100 / i)
|
|
93
|
+
}, f = Math.round(s(u.width, d.width * u.width / 100)), p = Math.round(s(u.height, d.height * u.height / 100)), m = u.width >= u.height * r ? {
|
|
94
|
+
width: Math.round(p * r),
|
|
95
|
+
height: p
|
|
96
|
+
} : {
|
|
97
|
+
width: f,
|
|
98
|
+
height: Math.round(f / r)
|
|
99
|
+
};
|
|
100
|
+
return {
|
|
101
|
+
croppedAreaPercentages: d,
|
|
102
|
+
croppedAreaPixels: l(l({}, m), {}, {
|
|
103
|
+
x: Math.round(s(u.width - m.width, d.x * u.width / 100)),
|
|
104
|
+
y: Math.round(s(u.height - m.height, d.y * u.height / 100))
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function _(e, t) {
|
|
109
|
+
return Math.min(e, Math.max(0, t));
|
|
110
|
+
}
|
|
111
|
+
function v(e, t) {
|
|
112
|
+
return t;
|
|
113
|
+
}
|
|
114
|
+
function y(e, t, n, r, i, a) {
|
|
115
|
+
let o = w(t.width, t.height, n), s = T(r.width / o.width * (100 / e.width), i, a);
|
|
116
|
+
return {
|
|
117
|
+
crop: {
|
|
118
|
+
x: s * o.width / 2 - r.width / 2 - o.width * s * (e.x / 100),
|
|
119
|
+
y: s * o.height / 2 - r.height / 2 - o.height * s * (e.y / 100)
|
|
120
|
+
},
|
|
121
|
+
zoom: s
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function b(e, t, n) {
|
|
125
|
+
let r = d(t);
|
|
126
|
+
return n.height > n.width ? n.height / (e.height * r) : n.width / (e.width * r);
|
|
127
|
+
}
|
|
128
|
+
function x(e, t, n = 0, r, i, a) {
|
|
129
|
+
let o = w(t.naturalWidth, t.naturalHeight, n), s = T(b(e, t, r), i, a), c = r.height > r.width ? r.height / e.height : r.width / e.width;
|
|
130
|
+
return {
|
|
131
|
+
crop: {
|
|
132
|
+
x: ((o.width - e.width) / 2 - e.x) * c,
|
|
133
|
+
y: ((o.height - e.height) / 2 - e.y) * c
|
|
134
|
+
},
|
|
135
|
+
zoom: s
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function S(e, t) {
|
|
139
|
+
return {
|
|
140
|
+
x: (t.x + e.x) / 2,
|
|
141
|
+
y: (t.y + e.y) / 2
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function C(e) {
|
|
145
|
+
return e * Math.PI / 180;
|
|
146
|
+
}
|
|
147
|
+
function w(e, t, n) {
|
|
148
|
+
let r = C(n);
|
|
149
|
+
return {
|
|
150
|
+
width: Math.abs(Math.cos(r) * e) + Math.abs(Math.sin(r) * t),
|
|
151
|
+
height: Math.abs(Math.sin(r) * e) + Math.abs(Math.cos(r) * t)
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function T(e, t, n) {
|
|
155
|
+
return Math.min(Math.max(e, t), n);
|
|
156
|
+
}
|
|
157
|
+
function E(...e) {
|
|
158
|
+
return e.filter((e) => typeof e == "string" && e.length > 0).join(" ").trim();
|
|
159
|
+
}
|
|
160
|
+
var D = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n max-width: unset; /* prevent global img/video reset rules from constraining the cropper media */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n", O = 250, k = 1, A = 3, j = 1, M = class e extends n.Component {
|
|
161
|
+
constructor(...t) {
|
|
162
|
+
super(...t), this.cropperRef = n.createRef(), this.imageRef = n.createRef(), this.videoRef = n.createRef(), this.containerPosition = {
|
|
163
|
+
x: 0,
|
|
164
|
+
y: 0
|
|
165
|
+
}, this.containerRef = null, this.styleRef = null, this.containerRect = null, this.mediaSize = {
|
|
166
|
+
width: 0,
|
|
167
|
+
height: 0,
|
|
168
|
+
naturalWidth: 0,
|
|
169
|
+
naturalHeight: 0
|
|
170
|
+
}, this.dragStartPosition = {
|
|
171
|
+
x: 0,
|
|
172
|
+
y: 0
|
|
173
|
+
}, this.dragStartCrop = {
|
|
174
|
+
x: 0,
|
|
175
|
+
y: 0
|
|
176
|
+
}, this.gestureZoomStart = 0, this.gestureRotationStart = 0, this.isTouching = !1, this.lastPinchDistance = 0, this.lastPinchRotation = 0, this.rafDragTimeout = null, this.rafPinchTimeout = null, this.wheelTimer = null, this.resizeEmitTimer = null, this.currentDoc = typeof document < "u" ? document : null, this.currentWindow = typeof window < "u" ? window : null, this.resizeObserver = null, this.previousCropSize = null, this.isInitialized = !1, this.dragInteractionSource = null, this.state = {
|
|
177
|
+
cropSize: null,
|
|
178
|
+
hasWheelJustStarted: !1,
|
|
179
|
+
mediaObjectFit: void 0
|
|
180
|
+
}, this.initResizeObserver = () => {
|
|
181
|
+
if (window.ResizeObserver === void 0 || !this.containerRef) return;
|
|
182
|
+
let e = !0;
|
|
183
|
+
this.resizeObserver = new window.ResizeObserver((t) => {
|
|
184
|
+
if (e) {
|
|
185
|
+
e = !1;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
this.computeSizes({ isResizeTriggered: !0 });
|
|
189
|
+
}), this.resizeObserver.observe(this.containerRef);
|
|
190
|
+
}, this.onWindowResize = () => {
|
|
191
|
+
this.computeSizes({ isResizeTriggered: !0 });
|
|
192
|
+
}, this.preventZoomSafari = (e) => e.preventDefault(), this.cleanEvents = () => {
|
|
193
|
+
this.currentDoc && (this.currentDoc.removeEventListener("mousemove", this.onMouseMove), this.currentDoc.removeEventListener("mouseup", this.onDragStopped), this.currentDoc.removeEventListener("touchmove", this.onTouchMove), this.currentDoc.removeEventListener("touchend", this.onDragStopped), this.currentDoc.removeEventListener("gesturechange", this.onGestureChange), this.currentDoc.removeEventListener("gestureend", this.onGestureEnd), this.currentDoc.removeEventListener("scroll", this.onScroll));
|
|
194
|
+
}, this.clearScrollEvent = () => {
|
|
195
|
+
this.containerRef && this.containerRef.removeEventListener("wheel", this.onWheel), this.wheelTimer && clearTimeout(this.wheelTimer);
|
|
196
|
+
}, this.onMediaLoad = () => {
|
|
197
|
+
let e = this.computeSizes();
|
|
198
|
+
e && (this.previousCropSize = e, this.emitCropData(), this.setInitialCrop(e), this.isInitialized = !0), this.props.onMediaLoaded && this.props.onMediaLoaded(this.mediaSize);
|
|
199
|
+
}, this.setInitialCrop = (e) => {
|
|
200
|
+
if (this.props.initialCroppedAreaPercentages) {
|
|
201
|
+
let { crop: t, zoom: n } = y(this.props.initialCroppedAreaPercentages, this.mediaSize, this.props.rotation, e, this.props.minZoom, this.props.maxZoom);
|
|
202
|
+
this.props.onCropChange(t), this.props.onZoomChange && this.props.onZoomChange(n);
|
|
203
|
+
} else if (this.props.initialCroppedAreaPixels) {
|
|
204
|
+
let { crop: t, zoom: n } = x(this.props.initialCroppedAreaPixels, this.mediaSize, this.props.rotation, e, this.props.minZoom, this.props.maxZoom);
|
|
205
|
+
this.props.onCropChange(t), this.props.onZoomChange && this.props.onZoomChange(n);
|
|
206
|
+
}
|
|
207
|
+
}, this.computeSizes = ({ isResizeTriggered: e = !1 } = {}) => {
|
|
208
|
+
let t = this.imageRef.current || this.videoRef.current;
|
|
209
|
+
if (t && this.containerRef) {
|
|
210
|
+
this.containerRect = this.containerRef.getBoundingClientRect(), this.saveContainerPosition();
|
|
211
|
+
let n = this.containerRect.width / this.containerRect.height, r = this.imageRef.current?.naturalWidth || this.videoRef.current?.videoWidth || 0, i = this.imageRef.current?.naturalHeight || this.videoRef.current?.videoHeight || 0, a = t.offsetWidth < r || t.offsetHeight < i, o = r / i, s;
|
|
212
|
+
if (a) switch (this.state.mediaObjectFit) {
|
|
213
|
+
default:
|
|
214
|
+
case "contain":
|
|
215
|
+
s = n > o ? {
|
|
216
|
+
width: this.containerRect.height * o,
|
|
217
|
+
height: this.containerRect.height
|
|
218
|
+
} : {
|
|
219
|
+
width: this.containerRect.width,
|
|
220
|
+
height: this.containerRect.width / o
|
|
221
|
+
};
|
|
222
|
+
break;
|
|
223
|
+
case "horizontal-cover":
|
|
224
|
+
s = {
|
|
225
|
+
width: this.containerRect.width,
|
|
226
|
+
height: this.containerRect.width / o
|
|
227
|
+
};
|
|
228
|
+
break;
|
|
229
|
+
case "vertical-cover":
|
|
230
|
+
s = {
|
|
231
|
+
width: this.containerRect.height * o,
|
|
232
|
+
height: this.containerRect.height
|
|
233
|
+
};
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
else s = {
|
|
237
|
+
width: t.offsetWidth,
|
|
238
|
+
height: t.offsetHeight
|
|
239
|
+
};
|
|
240
|
+
this.mediaSize = l(l({}, s), {}, {
|
|
241
|
+
naturalWidth: r,
|
|
242
|
+
naturalHeight: i
|
|
243
|
+
}), this.props.setMediaSize && this.props.setMediaSize(this.mediaSize);
|
|
244
|
+
let c = this.props.cropSize ? this.props.cropSize : u(this.mediaSize.width, this.mediaSize.height, this.containerRect.width, this.containerRect.height, this.props.aspect, this.props.rotation);
|
|
245
|
+
return (this.state.cropSize?.height !== c.height || this.state.cropSize?.width !== c.width) && this.props.onCropSizeChange && this.props.onCropSizeChange(c), this.setState({ cropSize: c }, () => this.recomputeCropPosition({ isResizeTriggered: e })), this.props.setCropSize && this.props.setCropSize(c), c;
|
|
246
|
+
}
|
|
247
|
+
}, this.saveContainerPosition = () => {
|
|
248
|
+
if (this.containerRef) {
|
|
249
|
+
let e = this.containerRef.getBoundingClientRect();
|
|
250
|
+
this.containerPosition = {
|
|
251
|
+
x: e.left,
|
|
252
|
+
y: e.top
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
}, this.onMouseDown = (t) => {
|
|
256
|
+
this.currentDoc && (t.preventDefault(), this.currentDoc.addEventListener("mousemove", this.onMouseMove), this.currentDoc.addEventListener("mouseup", this.onDragStopped), this.saveContainerPosition(), this.onDragStart(e.getMousePoint(t), "mouse"));
|
|
257
|
+
}, this.onMouseMove = (t) => this.onDrag(e.getMousePoint(t)), this.onScroll = (e) => {
|
|
258
|
+
this.currentDoc && (e.preventDefault(), this.saveContainerPosition());
|
|
259
|
+
}, this.onTouchStart = (t) => {
|
|
260
|
+
this.currentDoc && (this.isTouching = !0, !(this.props.onTouchRequest && !this.props.onTouchRequest(t)) && (this.currentDoc.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), this.currentDoc.addEventListener("touchend", this.onDragStopped), this.saveContainerPosition(), t.touches.length === 2 ? this.onPinchStart(t) : t.touches.length === 1 && this.onDragStart(e.getTouchPoint(t.touches[0]), "touch")));
|
|
261
|
+
}, this.onTouchMove = (t) => {
|
|
262
|
+
t.preventDefault(), t.touches.length === 2 ? this.onPinchMove(t) : t.touches.length === 1 && this.onDrag(e.getTouchPoint(t.touches[0]));
|
|
263
|
+
}, this.onGestureStart = (e) => {
|
|
264
|
+
this.currentDoc && (e.preventDefault(), this.currentDoc.addEventListener("gesturechange", this.onGestureChange), this.currentDoc.addEventListener("gestureend", this.onGestureEnd), this.gestureZoomStart = this.props.zoom, this.gestureRotationStart = this.props.rotation);
|
|
265
|
+
}, this.onGestureChange = (t) => {
|
|
266
|
+
if (t.preventDefault(), this.isTouching) return;
|
|
267
|
+
let n = e.getMousePoint(t), r = this.gestureZoomStart - 1 + t.scale;
|
|
268
|
+
if (this.setNewZoom(r, n, { shouldUpdatePosition: !0 }), this.props.onRotationChange) {
|
|
269
|
+
let e = this.gestureRotationStart + t.rotation;
|
|
270
|
+
this.props.onRotationChange(e);
|
|
271
|
+
}
|
|
272
|
+
}, this.onGestureEnd = (e) => {
|
|
273
|
+
this.cleanEvents();
|
|
274
|
+
}, this.onDragStart = ({ x: e, y: t }, n) => {
|
|
275
|
+
var r, i;
|
|
276
|
+
this.dragStartPosition = {
|
|
277
|
+
x: e,
|
|
278
|
+
y: t
|
|
279
|
+
}, this.dragStartCrop = l({}, this.props.crop), this.dragInteractionSource = n, (r = (i = this.props).onInteractionStart) == null || r.call(i, { source: n });
|
|
280
|
+
}, this.onDrag = ({ x: e, y: t }) => {
|
|
281
|
+
this.currentWindow && (this.rafDragTimeout && this.currentWindow.cancelAnimationFrame(this.rafDragTimeout), this.rafDragTimeout = this.currentWindow.requestAnimationFrame(() => {
|
|
282
|
+
if (!this.state.cropSize || e === void 0 || t === void 0) return;
|
|
283
|
+
let n = e - this.dragStartPosition.x, r = t - this.dragStartPosition.y, i = {
|
|
284
|
+
x: this.dragStartCrop.x + n,
|
|
285
|
+
y: this.dragStartCrop.y + r
|
|
286
|
+
}, a = this.props.restrictPosition ? f(i, this.mediaSize, this.state.cropSize, this.props.zoom, this.props.rotation) : i;
|
|
287
|
+
this.props.onCropChange(a);
|
|
288
|
+
}));
|
|
289
|
+
}, this.onDragStopped = () => {
|
|
290
|
+
var e, t;
|
|
291
|
+
this.isTouching = !1, this.cleanEvents(), this.emitCropData(), (e = (t = this.props).onInteractionEnd) == null || e.call(t, { source: this.dragInteractionSource ?? "mouse" }), this.dragInteractionSource = null;
|
|
292
|
+
}, this.onWheel = (t) => {
|
|
293
|
+
if (!this.currentWindow || this.props.onWheelRequest && !this.props.onWheelRequest(t)) return;
|
|
294
|
+
t.preventDefault();
|
|
295
|
+
let n = e.getMousePoint(t), { pixelY: i } = (0, r.default)(t), a = this.props.zoom - i * this.props.zoomSpeed / 200;
|
|
296
|
+
this.setNewZoom(a, n, { shouldUpdatePosition: !0 }), this.state.hasWheelJustStarted || this.setState({ hasWheelJustStarted: !0 }, () => {
|
|
297
|
+
var e;
|
|
298
|
+
return (e = this.props).onInteractionStart?.call(e, { source: "wheel" });
|
|
299
|
+
}), this.wheelTimer && clearTimeout(this.wheelTimer), this.wheelTimer = this.currentWindow.setTimeout(() => this.setState({ hasWheelJustStarted: !1 }, () => {
|
|
300
|
+
var e;
|
|
301
|
+
return (e = this.props).onInteractionEnd?.call(e, { source: "wheel" });
|
|
302
|
+
}), 250);
|
|
303
|
+
}, this.getPointOnContainer = ({ x: e, y: t }, n) => {
|
|
304
|
+
if (!this.containerRect) throw Error("The Cropper is not mounted");
|
|
305
|
+
return {
|
|
306
|
+
x: this.containerRect.width / 2 - (e - n.x),
|
|
307
|
+
y: this.containerRect.height / 2 - (t - n.y)
|
|
308
|
+
};
|
|
309
|
+
}, this.getPointOnMedia = ({ x: e, y: t }) => {
|
|
310
|
+
let { crop: n, zoom: r } = this.props;
|
|
311
|
+
return {
|
|
312
|
+
x: (e + n.x) / r,
|
|
313
|
+
y: (t + n.y) / r
|
|
314
|
+
};
|
|
315
|
+
}, this.setNewZoom = (e, t, { shouldUpdatePosition: n = !0 } = {}) => {
|
|
316
|
+
if (!this.state.cropSize || !this.props.onZoomChange) return;
|
|
317
|
+
let r = T(e, this.props.minZoom, this.props.maxZoom);
|
|
318
|
+
if (n) {
|
|
319
|
+
let e = this.getPointOnContainer(t, this.containerPosition), n = this.getPointOnMedia(e), i = {
|
|
320
|
+
x: n.x * r - e.x,
|
|
321
|
+
y: n.y * r - e.y
|
|
322
|
+
}, a = this.props.restrictPosition ? f(i, this.mediaSize, this.state.cropSize, r, this.props.rotation) : i;
|
|
323
|
+
this.props.onCropChange(a);
|
|
324
|
+
}
|
|
325
|
+
this.props.onZoomChange(r);
|
|
326
|
+
}, this.getCropData = () => this.state.cropSize ? g(this.props.restrictPosition ? f(this.props.crop, this.mediaSize, this.state.cropSize, this.props.zoom, this.props.rotation) : this.props.crop, this.mediaSize, this.state.cropSize, this.getAspect(), this.props.zoom, this.props.rotation, this.props.restrictPosition) : null, this.emitCropData = () => {
|
|
327
|
+
this.resizeEmitTimer &&= (clearTimeout(this.resizeEmitTimer), null);
|
|
328
|
+
let e = this.getCropData();
|
|
329
|
+
if (!e) return;
|
|
330
|
+
let { croppedAreaPercentages: t, croppedAreaPixels: n } = e;
|
|
331
|
+
this.props.onCropComplete && this.props.onCropComplete(t, n), this.props.onCropAreaChange && this.props.onCropAreaChange(t, n);
|
|
332
|
+
}, this.emitCropAreaChange = () => {
|
|
333
|
+
let e = this.getCropData();
|
|
334
|
+
if (!e) return;
|
|
335
|
+
let { croppedAreaPercentages: t, croppedAreaPixels: n } = e;
|
|
336
|
+
this.props.onCropAreaChange && this.props.onCropAreaChange(t, n);
|
|
337
|
+
}, this.recomputeCropPosition = ({ isResizeTriggered: e = !1 } = {}) => {
|
|
338
|
+
if (!this.state.cropSize) return;
|
|
339
|
+
let t = this.props.crop;
|
|
340
|
+
if (this.isInitialized && this.previousCropSize?.width && this.previousCropSize?.height && (Math.abs(this.previousCropSize.width - this.state.cropSize.width) > 1e-6 || Math.abs(this.previousCropSize.height - this.state.cropSize.height) > 1e-6)) {
|
|
341
|
+
let e = this.state.cropSize.width / this.previousCropSize.width, n = this.state.cropSize.height / this.previousCropSize.height;
|
|
342
|
+
t = {
|
|
343
|
+
x: this.props.crop.x * e,
|
|
344
|
+
y: this.props.crop.y * n
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
let n = this.props.restrictPosition ? f(t, this.mediaSize, this.state.cropSize, this.props.zoom, this.props.rotation) : t;
|
|
348
|
+
this.previousCropSize = this.state.cropSize, this.props.onCropChange(n), e ? this.debouncedEmitCropData() : this.emitCropData();
|
|
349
|
+
}, this.debouncedEmitCropData = () => {
|
|
350
|
+
this.currentWindow && (this.resizeEmitTimer && clearTimeout(this.resizeEmitTimer), this.resizeEmitTimer = this.currentWindow.setTimeout(() => {
|
|
351
|
+
this.emitCropData();
|
|
352
|
+
}, O));
|
|
353
|
+
}, this.onKeyDown = (e) => {
|
|
354
|
+
let { crop: t, onCropChange: n, keyboardStep: r, zoom: i, rotation: a } = this.props, o = r;
|
|
355
|
+
if (!this.state.cropSize) return;
|
|
356
|
+
e.shiftKey && (o *= .2);
|
|
357
|
+
let s = l({}, t);
|
|
358
|
+
switch (e.key) {
|
|
359
|
+
case "ArrowUp":
|
|
360
|
+
s.y -= o, e.preventDefault();
|
|
361
|
+
break;
|
|
362
|
+
case "ArrowDown":
|
|
363
|
+
s.y += o, e.preventDefault();
|
|
364
|
+
break;
|
|
365
|
+
case "ArrowLeft":
|
|
366
|
+
s.x -= o, e.preventDefault();
|
|
367
|
+
break;
|
|
368
|
+
case "ArrowRight":
|
|
369
|
+
s.x += o, e.preventDefault();
|
|
370
|
+
break;
|
|
371
|
+
default: return;
|
|
372
|
+
}
|
|
373
|
+
if (this.props.restrictPosition && (s = f(s, this.mediaSize, this.state.cropSize, i, a)), !e.repeat) {
|
|
374
|
+
var c, u;
|
|
375
|
+
(c = (u = this.props).onInteractionStart) == null || c.call(u, { source: "keyboard" });
|
|
376
|
+
}
|
|
377
|
+
n(s);
|
|
378
|
+
}, this.onKeyUp = (e) => {
|
|
379
|
+
var t, n;
|
|
380
|
+
switch (e.key) {
|
|
381
|
+
case "ArrowUp":
|
|
382
|
+
case "ArrowDown":
|
|
383
|
+
case "ArrowLeft":
|
|
384
|
+
case "ArrowRight":
|
|
385
|
+
e.preventDefault();
|
|
386
|
+
break;
|
|
387
|
+
default: return;
|
|
388
|
+
}
|
|
389
|
+
this.emitCropData(), (t = (n = this.props).onInteractionEnd) == null || t.call(n, { source: "keyboard" });
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
componentDidMount() {
|
|
393
|
+
!this.currentDoc || !this.currentWindow || (this.containerRef && (this.containerRef.ownerDocument && (this.currentDoc = this.containerRef.ownerDocument), this.currentDoc.defaultView && (this.currentWindow = this.currentDoc.defaultView), this.initResizeObserver(), window.ResizeObserver === void 0 && this.currentWindow.addEventListener("resize", this.onWindowResize), this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, { passive: !1 }), this.containerRef.addEventListener("gesturestart", this.onGestureStart)), this.currentDoc.addEventListener("scroll", this.onScroll), this.props.disableAutomaticStylesInjection || (this.styleRef = this.currentDoc.createElement("style"), this.styleRef.setAttribute("type", "text/css"), this.props.nonce && this.styleRef.setAttribute("nonce", this.props.nonce), this.styleRef.innerHTML = D, this.currentDoc.head.appendChild(this.styleRef)), this.imageRef.current && this.imageRef.current.complete && this.onMediaLoad(), this.props.setImageRef && this.props.setImageRef(this.imageRef), this.props.setVideoRef && this.props.setVideoRef(this.videoRef), this.props.setCropperRef && this.props.setCropperRef(this.cropperRef));
|
|
394
|
+
}
|
|
395
|
+
componentWillUnmount() {
|
|
396
|
+
var e;
|
|
397
|
+
if (!(!this.currentDoc || !this.currentWindow)) {
|
|
398
|
+
if (window.ResizeObserver === void 0 && this.currentWindow.removeEventListener("resize", this.onWindowResize), (e = this.resizeObserver) == null || e.disconnect(), this.resizeEmitTimer && clearTimeout(this.resizeEmitTimer), this.containerRef && this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari), this.styleRef) {
|
|
399
|
+
var t;
|
|
400
|
+
(t = this.styleRef.parentNode) == null || t.removeChild(this.styleRef);
|
|
401
|
+
}
|
|
402
|
+
this.cleanEvents(), this.props.zoomWithScroll && this.clearScrollEvent();
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
componentDidUpdate(e) {
|
|
406
|
+
if (e.rotation === this.props.rotation ? e.aspect === this.props.aspect && e.objectFit === this.props.objectFit ? e.zoom === this.props.zoom ? e.cropSize?.height !== this.props.cropSize?.height || e.cropSize?.width !== this.props.cropSize?.width ? this.computeSizes() : (e.crop?.x !== this.props.crop?.x || e.crop?.y !== this.props.crop?.y) && this.emitCropAreaChange() : this.recomputeCropPosition() : this.computeSizes() : (this.computeSizes(), this.recomputeCropPosition()), e.zoomWithScroll !== this.props.zoomWithScroll && this.containerRef && (this.props.zoomWithScroll ? this.containerRef.addEventListener("wheel", this.onWheel, { passive: !1 }) : this.clearScrollEvent()), e.video !== this.props.video) {
|
|
407
|
+
var t;
|
|
408
|
+
(t = this.videoRef.current) == null || t.load();
|
|
409
|
+
}
|
|
410
|
+
let n = this.getObjectFit();
|
|
411
|
+
n !== this.state.mediaObjectFit && this.setState({ mediaObjectFit: n }, this.computeSizes);
|
|
412
|
+
}
|
|
413
|
+
getAspect() {
|
|
414
|
+
let { cropSize: e, aspect: t } = this.props;
|
|
415
|
+
return e ? e.width / e.height : t;
|
|
416
|
+
}
|
|
417
|
+
getObjectFit() {
|
|
418
|
+
if (this.props.objectFit === "cover") {
|
|
419
|
+
if ((this.imageRef.current || this.videoRef.current) && this.containerRef) {
|
|
420
|
+
this.containerRect = this.containerRef.getBoundingClientRect();
|
|
421
|
+
let e = this.containerRect.width / this.containerRect.height;
|
|
422
|
+
return (this.imageRef.current?.naturalWidth || this.videoRef.current?.videoWidth || 0) / (this.imageRef.current?.naturalHeight || this.videoRef.current?.videoHeight || 0) < e ? "horizontal-cover" : "vertical-cover";
|
|
423
|
+
}
|
|
424
|
+
return "horizontal-cover";
|
|
425
|
+
}
|
|
426
|
+
return this.props.objectFit;
|
|
427
|
+
}
|
|
428
|
+
onPinchStart(t) {
|
|
429
|
+
let n = e.getTouchPoint(t.touches[0]), r = e.getTouchPoint(t.touches[1]);
|
|
430
|
+
this.lastPinchDistance = m(n, r), this.lastPinchRotation = h(n, r), this.onDragStart(S(n, r), "touch");
|
|
431
|
+
}
|
|
432
|
+
onPinchMove(t) {
|
|
433
|
+
if (!this.currentDoc || !this.currentWindow) return;
|
|
434
|
+
let n = e.getTouchPoint(t.touches[0]), r = e.getTouchPoint(t.touches[1]), i = S(n, r);
|
|
435
|
+
this.onDrag(i), this.rafPinchTimeout && this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout), this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(() => {
|
|
436
|
+
let e = m(n, r), t = this.props.zoom * (e / this.lastPinchDistance);
|
|
437
|
+
this.setNewZoom(t, i, { shouldUpdatePosition: !1 }), this.lastPinchDistance = e;
|
|
438
|
+
let a = h(n, r), o = this.props.rotation + (a - this.lastPinchRotation);
|
|
439
|
+
this.props.onRotationChange && this.props.onRotationChange(o), this.lastPinchRotation = a;
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
render() {
|
|
443
|
+
let { image: e, video: t, mediaProps: r, cropperProps: i, transform: a, crop: { x: o, y: s }, rotation: c, zoom: u, cropShape: d, showGrid: f, roundCropAreaPixels: p, style: { containerStyle: m, cropAreaStyle: h, mediaStyle: g }, classes: { containerClassName: _, cropAreaClassName: v, mediaClassName: y } } = this.props, b = this.state.mediaObjectFit ?? this.getObjectFit();
|
|
444
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
445
|
+
onMouseDown: this.onMouseDown,
|
|
446
|
+
onTouchStart: this.onTouchStart,
|
|
447
|
+
ref: (e) => this.containerRef = e,
|
|
448
|
+
"data-testid": "container",
|
|
449
|
+
style: m,
|
|
450
|
+
className: E("reactEasyCrop_Container", _)
|
|
451
|
+
}, e ? /* @__PURE__ */ n.createElement("img", l(l({
|
|
452
|
+
alt: "",
|
|
453
|
+
className: E("reactEasyCrop_Image", b === "contain" && "reactEasyCrop_Contain", b === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", b === "vertical-cover" && "reactEasyCrop_Cover_Vertical", y)
|
|
454
|
+
}, r), {}, {
|
|
455
|
+
src: e,
|
|
456
|
+
ref: this.imageRef,
|
|
457
|
+
style: l(l({}, g), {}, { transform: a || `translate(${o}px, ${s}px) rotate(${c}deg) scale(${u})` }),
|
|
458
|
+
onLoad: this.onMediaLoad
|
|
459
|
+
})) : t && /* @__PURE__ */ n.createElement("video", l(l({
|
|
460
|
+
autoPlay: !0,
|
|
461
|
+
playsInline: !0,
|
|
462
|
+
loop: !0,
|
|
463
|
+
muted: !0,
|
|
464
|
+
className: E("reactEasyCrop_Video", b === "contain" && "reactEasyCrop_Contain", b === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", b === "vertical-cover" && "reactEasyCrop_Cover_Vertical", y)
|
|
465
|
+
}, r), {}, {
|
|
466
|
+
ref: this.videoRef,
|
|
467
|
+
onLoadedMetadata: this.onMediaLoad,
|
|
468
|
+
style: l(l({}, g), {}, { transform: a || `translate(${o}px, ${s}px) rotate(${c}deg) scale(${u})` }),
|
|
469
|
+
controls: !1
|
|
470
|
+
}), (Array.isArray(t) ? t : [{ src: t }]).map((e) => /* @__PURE__ */ n.createElement("source", l({ key: e.src }, e)))), this.state.cropSize && /* @__PURE__ */ n.createElement("div", l({
|
|
471
|
+
ref: this.cropperRef,
|
|
472
|
+
style: l(l({}, h), {}, {
|
|
473
|
+
width: p ? Math.round(this.state.cropSize.width) : this.state.cropSize.width,
|
|
474
|
+
height: p ? Math.round(this.state.cropSize.height) : this.state.cropSize.height
|
|
475
|
+
}),
|
|
476
|
+
tabIndex: 0,
|
|
477
|
+
onKeyDown: this.onKeyDown,
|
|
478
|
+
onKeyUp: this.onKeyUp,
|
|
479
|
+
"data-testid": "cropper",
|
|
480
|
+
className: E("reactEasyCrop_CropArea", d === "round" && "reactEasyCrop_CropAreaRound", f && "reactEasyCrop_CropAreaGrid", v)
|
|
481
|
+
}, i)));
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
M.defaultProps = {
|
|
485
|
+
zoom: 1,
|
|
486
|
+
rotation: 0,
|
|
487
|
+
aspect: 4 / 3,
|
|
488
|
+
maxZoom: A,
|
|
489
|
+
minZoom: k,
|
|
490
|
+
cropShape: "rect",
|
|
491
|
+
objectFit: "contain",
|
|
492
|
+
showGrid: !0,
|
|
493
|
+
style: {},
|
|
494
|
+
classes: {},
|
|
495
|
+
mediaProps: {},
|
|
496
|
+
cropperProps: {},
|
|
497
|
+
zoomSpeed: 1,
|
|
498
|
+
restrictPosition: !0,
|
|
499
|
+
zoomWithScroll: !0,
|
|
500
|
+
keyboardStep: j
|
|
501
|
+
}, M.getMousePoint = (e) => ({
|
|
502
|
+
x: Number(e.clientX),
|
|
503
|
+
y: Number(e.clientY)
|
|
504
|
+
}), M.getTouchPoint = (e) => ({
|
|
505
|
+
x: Number(e.clientX),
|
|
506
|
+
y: Number(e.clientY)
|
|
507
|
+
});
|
|
508
|
+
var N = M;
|
|
509
|
+
//#endregion
|
|
510
|
+
export { N as default, y as getInitialCropFromCroppedAreaPercentages, x as getInitialCropFromCroppedAreaPixels };
|
|
511
|
+
|
|
512
|
+
//# sourceMappingURL=index.module.js.map
|