@embeddr/react-ui 0.1.2 → 0.1.4
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/LICENSE.md +164 -164
- package/README.md +43 -10
- package/dist/context/EmbeddrContext.d.ts +8 -0
- package/dist/context/EmbeddrContext.d.ts.map +1 -0
- package/dist/context/EmbeddrContext.js +14 -0
- package/dist/context/EmbeddrContext.js.map +1 -0
- package/dist/context/ImageDialogContext.d.ts +1 -2
- package/dist/context/ImageDialogContext.d.ts.map +1 -1
- package/dist/context/ImageDialogContext.js +3 -14
- package/dist/context/ImageDialogContext.js.map +1 -1
- package/dist/context/index.d.ts +3 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +3 -0
- package/dist/context/index.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useExternalNav.d.ts +1 -1
- package/dist/hooks/useExternalNav.d.ts.map +1 -1
- package/dist/hooks/useExternalNav.js +8 -11
- package/dist/hooks/useExternalNav.js.map +1 -1
- package/dist/hooks/useImageDialog.d.ts +1 -1
- package/dist/hooks/useImageDialog.d.ts.map +1 -1
- package/dist/hooks/useImageDialog.js +10 -0
- package/dist/hooks/useImageDialog.js.map +1 -0
- package/dist/hooks/useLocalStorage.d.ts +2 -0
- package/dist/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage.js +37 -0
- package/dist/hooks/useLocalStorage.js.map +1 -0
- package/dist/index.d.ts +6 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -125
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +5 -8
- package/dist/lib/utils.js.map +1 -1
- package/dist/providers/{ExternalNav.d.ts → ExternalNavProvider.d.ts} +1 -1
- package/dist/providers/ExternalNavProvider.d.ts.map +1 -0
- package/dist/providers/ExternalNavProvider.js +26 -0
- package/dist/providers/ExternalNavProvider.js.map +1 -0
- package/dist/providers/ImageDialogProvider.d.ts.map +1 -1
- package/dist/providers/ImageDialogProvider.js +157 -132
- package/dist/providers/ImageDialogProvider.js.map +1 -1
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +3 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/types/domain.d.ts +73 -0
- package/dist/types/domain.d.ts.map +1 -0
- package/dist/types/domain.js +2 -0
- package/dist/types/domain.js.map +1 -0
- package/dist/types/gallery.d.ts +1 -0
- package/dist/types/gallery.d.ts.map +1 -1
- package/dist/types/gallery.js +2 -0
- package/dist/types/gallery.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/plugin.d.ts +94 -0
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +2 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/ui/accordion.js +15 -62
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +8 -0
- package/dist/ui/aspect-ratio.js.map +1 -0
- package/dist/ui/avatar.js +12 -49
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +20 -37
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.js +29 -0
- package/dist/ui/breadcrumb.js.map +1 -0
- package/dist/ui/button.d.ts +4 -4
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +33 -53
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.js +19 -96
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.js +10 -0
- package/dist/ui/checkbox.js.map +1 -0
- package/dist/ui/context-menu.d.ts +28 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +34 -0
- package/dist/ui/context-menu.js.map +1 -0
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +27 -128
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/draggable-panel.d.ts +47 -0
- package/dist/ui/draggable-panel.d.ts.map +1 -0
- package/dist/ui/draggable-panel.js +178 -0
- package/dist/ui/draggable-panel.js.map +1 -0
- package/dist/ui/dropdown-menu.js +37 -220
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/index.d.ts +31 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +31 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input-group.d.ts +6 -6
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +49 -138
- package/dist/ui/input-group.js.map +1 -1
- package/dist/ui/input.js +7 -22
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.js +8 -23
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/lightbox/ComparisonSlider.d.ts +7 -0
- package/dist/ui/lightbox/ComparisonSlider.d.ts.map +1 -0
- package/dist/ui/lightbox/ComparisonSlider.js +62 -0
- package/dist/ui/lightbox/ComparisonSlider.js.map +1 -0
- package/dist/ui/lightbox/GalleryPicker.js +15 -61
- package/dist/ui/lightbox/GalleryPicker.js.map +1 -1
- package/dist/ui/lightbox/ImageThumbnailStrip.d.ts.map +1 -1
- package/dist/ui/lightbox/ImageThumbnailStrip.js +24 -94
- package/dist/ui/lightbox/ImageThumbnailStrip.js.map +1 -1
- package/dist/ui/lightbox/LightboxViewer.d.ts.map +1 -1
- package/dist/ui/lightbox/LightboxViewer.js +50 -112
- package/dist/ui/lightbox/LightboxViewer.js.map +1 -1
- package/dist/ui/lightbox/MediaCanvas.d.ts +13 -0
- package/dist/ui/lightbox/MediaCanvas.d.ts.map +1 -0
- package/dist/ui/lightbox/MediaCanvas.js +18 -0
- package/dist/ui/lightbox/MediaCanvas.js.map +1 -0
- package/dist/ui/lightbox/PannableImage.d.ts +3 -2
- package/dist/ui/lightbox/PannableImage.d.ts.map +1 -1
- package/dist/ui/lightbox/PannableImage.js +327 -222
- package/dist/ui/lightbox/PannableImage.js.map +1 -1
- package/dist/ui/lightbox/PannableVideo.d.ts +9 -0
- package/dist/ui/lightbox/PannableVideo.d.ts.map +1 -0
- package/dist/ui/lightbox/PannableVideo.js +183 -0
- package/dist/ui/lightbox/PannableVideo.js.map +1 -0
- package/dist/ui/lightbox/index.d.ts +8 -0
- package/dist/ui/lightbox/index.d.ts.map +1 -0
- package/dist/ui/lightbox/index.js +8 -0
- package/dist/ui/lightbox/index.js.map +1 -0
- package/dist/ui/menubar.js +55 -0
- package/dist/ui/menubar.js.map +1 -0
- package/dist/ui/progress.js +8 -32
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/resizable.js +13 -47
- package/dist/ui/resizable.js.map +1 -1
- package/dist/ui/scroll-area.js +11 -65
- package/dist/ui/scroll-area.js.map +1 -1
- package/dist/ui/select.js +29 -172
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.js +8 -27
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/skeleton.js +6 -17
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/slider.js +13 -63
- package/dist/ui/slider.js.map +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/dist/ui/sonner.js +24 -40
- package/dist/ui/sonner.js.map +1 -1
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +7 -20
- package/dist/ui/spinner.js.map +1 -1
- package/dist/ui/switch.js +8 -32
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.js +29 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.js +15 -68
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/textarea.js +7 -19
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/tooltip.js +14 -53
- package/dist/ui/tooltip.js.map +1 -1
- package/package.json +29 -12
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -528
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -403
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -209
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -131
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.3/node_modules/@radix-ui/primitive/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7__mszl4mxerbyoklygdzmmz7z344/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.7_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7__mszl4mxerbyoklygdzmmz7z344/node_modules/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-context/dist/index.js +0 -54
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-context/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.7__@types__3rf2o2lqjhudzepmewjxnjpij4/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.7__@types__3rf2o2lqjhudzepmewjxnjpij4/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7_khjb2df42vo4osw72fyixnkybq/node_modules/@radix-ui/react-popper/dist/index.js +0 -220
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7_khjb2df42vo4osw72fyixnkybq/node_modules/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7_wazm3ifinqzsamvsqllqreat3m/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.9_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2.7_wazm3ifinqzsamvsqllqreat3m/node_modules/@radix-ui/react-portal/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2_g7nvzcflnhogkdp32witcuayfy/node_modules/@radix-ui/react-presence/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.5_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2_g7nvzcflnhogkdp32witcuayfy/node_modules/@radix-ui/react-presence/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19._vrijsupjqixawruberrfb56pbm/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19._vrijsupjqixawruberrfb56pbm/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19._4sfldbbhvd3xapj4euqmtg5wga/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19._4sfldbbhvd3xapj4euqmtg5wga/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2._lz7pdiyrbpqbbsap76pucwgg5i/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -339
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.7__@types_react@19.2._lz7pdiyrbpqbbsap76pucwgg5i/node_modules/@radix-ui/react-tooltip/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -53
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -15
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.js +0 -28
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.7__@types_rea_xyyq4kaffb3s2ucmc374detnx4/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.7__@types_rea_xyyq4kaffb3s2ucmc374detnx4/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.4_@types_react-dom@19.2.3_@types_react@19.2.7__@types_rea_uxirz2wej36zwyzefmreqngy74/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.4_@types_react-dom@19.2.3_@types_react@19.2.7__@types_rea_uxirz2wej36zwyzefmreqngy74/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -36
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/Icon.js +0 -36
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/Icon.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -22
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -15
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/check.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/check.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-down.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/circle-check.js +0 -10
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/circle-check.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/circle.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/circle.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/grip-vertical.js +0 -14
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/grip-vertical.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/info.js +0 -11
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/info.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/loader-circle.js +0 -7
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/loader-circle.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/octagon-x.js +0 -17
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/octagon-x.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/pause.js +0 -10
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/pause.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/play.js +0 -15
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/play.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +0 -10
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/rotate-cw.js +0 -10
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/rotate-cw.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -17
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/triangle-alert.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/x.js +0 -10
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/icons/x.js.map +0 -1
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -19
- package/dist/node_modules/.pnpm/lucide-react@0.562.0_react@19.2.3/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2766
- package/dist/node_modules/.pnpm/tailwind-merge@3.4.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/providers/ExternalNav.d.ts.map +0 -1
- package/dist/providers/ExternalNav.js +0 -55
- package/dist/providers/ExternalNav.js.map +0 -1
- package/dist/providers/ImageDialog.d.ts +0 -2
- package/dist/providers/ImageDialog.d.ts.map +0 -1
package/dist/ui/card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sources":["../../src/ui/card.tsx"],"
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/ui/card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,SAAS,IAAI,CAAC,EACZ,SAAS,EACT,IAAI,GAAG,SAAS,EAChB,GAAG,KAAK,EACkD;IAC1D,OAAO,CACL,2BACY,MAAM,eACL,IAAI,EACf,SAAS,EAAE,EAAE,CACX,uVAAuV,EACvV,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,oSAAoS,EACpS,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACrE,OAAO,CACL,2BACY,YAAY,EACtB,SAAS,EAAE,EAAE,CACX,uDAAuD,EACvD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IAC3E,OAAO,CACL,2BACY,kBAAkB,EAC5B,SAAS,EAAE,EAAE,CAAC,uCAAuC,EAAE,SAAS,CAAC,KAC7D,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,gEAAgE,EAChE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACvE,OAAO,CACL,2BACY,cAAc,EACxB,SAAS,EAAE,EAAE,CAAC,qCAAqC,EAAE,SAAS,CAAC,KAC3D,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B;IACtE,OAAO,CACL,2BACY,aAAa,EACvB,SAAS,EAAE,EAAE,CACX,mEAAmE,EACnE,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
+
import { CheckIcon } from "lucide-react";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
function Checkbox({ className, ...props }) {
|
|
7
|
+
return (_jsx(CheckboxPrimitive.Root, { "data-slot": "checkbox", className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { "data-slot": "checkbox-indicator", className: "grid place-content-center text-current transition-none", children: _jsx(CheckIcon, { className: "size-3.5" }) }) }));
|
|
8
|
+
}
|
|
9
|
+
export { Checkbox };
|
|
10
|
+
//# sourceMappingURL=checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,SAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EAC4C;IACpD,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,iBACX,UAAU,EACpB,SAAS,EAAE,EAAE,CACX,geAAge,EAChe,SAAS,CACV,KACG,KAAK,YAET,KAAC,iBAAiB,CAAC,SAAS,iBAChB,oBAAoB,EAC9B,SAAS,EAAC,wDAAwD,YAElE,KAAC,SAAS,IAAC,SAAS,EAAC,UAAU,GAAG,GACN,GACP,CAC1B,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
3
|
+
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
4
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
5
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
7
|
+
declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
8
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const ContextNewLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const ContextMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextNewLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
28
|
+
//# sourceMappingURL=context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/ui/context-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB,sHAA+B,CAAC;AAExD,QAAA,MAAM,gBAAgB,mHAA6B,CAAC;AAEpD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,cAAc,oDAA2B,CAAC;AAEhD,QAAA,MAAM,qBAAqB,wHAAkC,CAAC;AAE9D,QAAA,MAAM,qBAAqB;YAGf,OAAO;wCAejB,CAAC;AAGH,QAAA,MAAM,qBAAqB,2KAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKActB,CAAC;AAGH,QAAA,MAAM,eAAe;YAGT,OAAO;wCAYjB,CAAC;AAGH,QAAA,MAAM,uBAAuB,6KAoB3B,CAAC;AAIH,QAAA,MAAM,oBAAoB,0KAmBxB,CAAC;AAGH,QAAA,MAAM,eAAe;YAGT,OAAO;wCAYjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,0KASxB,CAAC;AAGH,QAAA,MAAM,mBAAmB;8BAGtB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAC;AAGF,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
const ContextMenu = ContextMenuPrimitive.Root;
|
|
7
|
+
const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
8
|
+
const ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
9
|
+
const ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
10
|
+
const ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
11
|
+
const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
12
|
+
const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(ContextMenuPrimitive.SubTrigger, { ref: ref, className: cn("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto h-4 w-4" })] })));
|
|
13
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
14
|
+
const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.SubContent, { ref: ref, className: cn("z-[9999] min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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", className), ...props })));
|
|
15
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
16
|
+
const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { ref: ref, className: cn("z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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", className), ...props }) })));
|
|
17
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
18
|
+
const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(ContextMenuPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className), ...props })));
|
|
19
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
20
|
+
const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (_jsxs(ContextMenuPrimitive.CheckboxItem, { ref: ref, className: cn("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), checked: checked, ...props, children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: "h-4 w-4" }) }) }), children] })));
|
|
21
|
+
ContextMenuCheckboxItem.displayName =
|
|
22
|
+
ContextMenuPrimitive.CheckboxItem.displayName;
|
|
23
|
+
const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(ContextMenuPrimitive.RadioItem, { ref: ref, className: cn("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [_jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(ContextMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }), children] })));
|
|
24
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
25
|
+
const ContextNewLabel = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(ContextMenuPrimitive.Label, { ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className), ...props })));
|
|
26
|
+
ContextNewLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
27
|
+
const ContextMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.Separator, { ref: ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props })));
|
|
28
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
29
|
+
const ContextMenuShortcut = ({ className, ...props }) => {
|
|
30
|
+
return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
|
|
31
|
+
};
|
|
32
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
33
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextNewLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
34
|
+
//# s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CAAC,CAClC,KAAC,oBAAoB,CAAC,SAAS,IAC7B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,KACjD,KAAK,GACT,CACH,CAAC,CAAC;AACH,oBAAoB,CAAC,WAAW,GAAG,oBAAoB,CAAC,SAAS,CAAC,WAAW,CAAC;AAE9E,MAAM,mBAAmB,GAAG,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EAC8B,EAAE,EAAE;IAC1C,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,uDAAuD,EACvD,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AACF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
|
package/dist/ui/dialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,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BAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CA2BA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQ1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC"}
|
package/dist/ui/dialog.js
CHANGED
|
@@ -1,138 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ a(o.Root, { "data-slot": "dialog", ...t });
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import { XIcon } from "lucide-react";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
function Dialog({ ...props }) {
|
|
7
|
+
return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
10
8
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
}) {
|
|
14
|
-
return /* @__PURE__ */ a(o.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
9
|
+
function DialogTrigger({ ...props }) {
|
|
10
|
+
return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
15
11
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ a(o.Portal, { "data-slot": "dialog-portal", ...t });
|
|
12
|
+
function DialogPortal({ ...props }) {
|
|
13
|
+
return _jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
20
14
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
}) {
|
|
24
|
-
return /* @__PURE__ */ a(o.Close, { "data-slot": "dialog-close", ...t });
|
|
15
|
+
function DialogClose({ ...props }) {
|
|
16
|
+
return _jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
25
17
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
...e
|
|
29
|
-
}) {
|
|
30
|
-
return /* @__PURE__ */ a(
|
|
31
|
-
o.Overlay,
|
|
32
|
-
{
|
|
33
|
-
"data-slot": "dialog-overlay",
|
|
34
|
-
className: n(
|
|
35
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
|
|
36
|
-
t
|
|
37
|
-
),
|
|
38
|
-
...e
|
|
39
|
-
}
|
|
40
|
-
);
|
|
18
|
+
function DialogOverlay({ className, ...props }) {
|
|
19
|
+
return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn("dark data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className), ...props }));
|
|
41
20
|
}
|
|
42
|
-
function
|
|
43
|
-
className:
|
|
44
|
-
children: e,
|
|
45
|
-
showCloseButton: l = !0,
|
|
46
|
-
...s
|
|
47
|
-
}) {
|
|
48
|
-
return /* @__PURE__ */ i(d, { "data-slot": "dialog-portal", children: [
|
|
49
|
-
/* @__PURE__ */ a(g, {}),
|
|
50
|
-
/* @__PURE__ */ i(
|
|
51
|
-
o.Content,
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "dialog-content",
|
|
54
|
-
className: n(
|
|
55
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
|
|
56
|
-
t
|
|
57
|
-
),
|
|
58
|
-
...s,
|
|
59
|
-
children: [
|
|
60
|
-
e,
|
|
61
|
-
l && /* @__PURE__ */ i(
|
|
62
|
-
o.Close,
|
|
63
|
-
{
|
|
64
|
-
"data-slot": "dialog-close",
|
|
65
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ a(r, {}),
|
|
68
|
-
/* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] });
|
|
21
|
+
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
22
|
+
return (_jsx(DialogPortal, { "data-slot": "dialog-portal", children: _jsxs("div", { className: "tailwind contents", children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn("dark bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-4rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 outline-none ", className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": "dialog-close", className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }))] })] }) }));
|
|
76
23
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
79
|
-
"div",
|
|
80
|
-
{
|
|
81
|
-
"data-slot": "dialog-header",
|
|
82
|
-
className: n("flex flex-col gap-2 text-center sm:text-left", t),
|
|
83
|
-
...e
|
|
84
|
-
}
|
|
85
|
-
);
|
|
24
|
+
function DialogHeader({ className, ...props }) {
|
|
25
|
+
return (_jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className), ...props }));
|
|
86
26
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
-
"div",
|
|
90
|
-
{
|
|
91
|
-
"data-slot": "dialog-footer",
|
|
92
|
-
className: n(
|
|
93
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
94
|
-
t
|
|
95
|
-
),
|
|
96
|
-
...e
|
|
97
|
-
}
|
|
98
|
-
);
|
|
27
|
+
function DialogFooter({ className, ...props }) {
|
|
28
|
+
return (_jsx("div", { "data-slot": "dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props }));
|
|
99
29
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
...e
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ a(
|
|
105
|
-
o.Title,
|
|
106
|
-
{
|
|
107
|
-
"data-slot": "dialog-title",
|
|
108
|
-
className: n("text-lg leading-none font-semibold", t),
|
|
109
|
-
...e
|
|
110
|
-
}
|
|
111
|
-
);
|
|
30
|
+
function DialogTitle({ className, ...props }) {
|
|
31
|
+
return (_jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn("text-lg leading-none font-semibold", className), ...props }));
|
|
112
32
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
...e
|
|
116
|
-
}) {
|
|
117
|
-
return /* @__PURE__ */ a(
|
|
118
|
-
o.Description,
|
|
119
|
-
{
|
|
120
|
-
"data-slot": "dialog-description",
|
|
121
|
-
className: n("text-muted-foreground text-sm", t),
|
|
122
|
-
...e
|
|
123
|
-
}
|
|
124
|
-
);
|
|
33
|
+
function DialogDescription({ className, ...props }) {
|
|
34
|
+
return (_jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn("text-muted-foreground text-sm", className), ...props }));
|
|
125
35
|
}
|
|
126
|
-
export {
|
|
127
|
-
|
|
128
|
-
v as DialogClose,
|
|
129
|
-
D as DialogContent,
|
|
130
|
-
N as DialogDescription,
|
|
131
|
-
h as DialogFooter,
|
|
132
|
-
b as DialogHeader,
|
|
133
|
-
g as DialogOverlay,
|
|
134
|
-
d as DialogPortal,
|
|
135
|
-
y as DialogTitle,
|
|
136
|
-
x as DialogTrigger
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=dialog.js.map
|
|
36
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
37
|
+
//# sourceMappingURL=dialog.js.map
|
package/dist/ui/dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../src/ui/dialog.tsx"],"
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,SAAS,MAAM,CAAC,EACd,GAAG,KAAK,EAC0C;IAClD,OAAO,KAAC,eAAe,CAAC,IAAI,iBAAW,QAAQ,KAAK,KAAK,GAAI,CAAC;AAChE,CAAC;AAED,SAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EAC6C;IACrD,OAAO,KAAC,eAAe,CAAC,OAAO,iBAAW,gBAAgB,KAAK,KAAK,GAAI,CAAC;AAC3E,CAAC;AAED,SAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EAC4C;IACpD,OAAO,KAAC,eAAe,CAAC,MAAM,iBAAW,eAAe,KAAK,KAAK,GAAI,CAAC;AACzE,CAAC;AAED,SAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EAC2C;IACnD,OAAO,KAAC,eAAe,CAAC,KAAK,iBAAW,cAAc,KAAK,KAAK,GAAI,CAAC;AACvE,CAAC;AAED,SAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EAC6C;IACrD,OAAO,CACL,KAAC,eAAe,CAAC,OAAO,iBACZ,gBAAgB,EAC1B,SAAS,EAAE,EAAE,CACX,6JAA6J,EAC7J,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ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,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface DraggablePanelProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
position?: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
onPositionChange?: (pos: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}) => void;
|
|
16
|
+
size?: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
onSizeChange?: (size: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
}) => void;
|
|
24
|
+
defaultPosition?: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
};
|
|
28
|
+
defaultSize?: {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
className?: string;
|
|
33
|
+
minWidth?: number;
|
|
34
|
+
minHeight?: number;
|
|
35
|
+
pinned?: boolean;
|
|
36
|
+
onPinChange?: (pinned: boolean) => void;
|
|
37
|
+
onDragEnd?: () => void;
|
|
38
|
+
zIndex?: number;
|
|
39
|
+
onFocus?: () => void;
|
|
40
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
|
41
|
+
showTitle?: boolean;
|
|
42
|
+
onShowTitleChange?: (show: boolean) => void;
|
|
43
|
+
hideHeader?: boolean;
|
|
44
|
+
transparent?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function DraggablePanel({ id, title, children, isOpen, onClose, position: controlledPosition, onPositionChange: controlledOnPositionChange, size: controlledSize, onSizeChange: controlledOnSizeChange, defaultPosition, defaultSize, className, minWidth, minHeight, pinned, onPinChange, onDragEnd, zIndex, onFocus, onMouseDown, showTitle: controlledShowTitle, onShowTitleChange, hideHeader, transparent, }: DraggablePanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
+
//# sourceMappingURL=draggable-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draggable-panel.d.ts","sourceRoot":"","sources":["../../src/ui/draggable-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA0B3D,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3D,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjE,eAAe,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EAAE,kBAAkB,EAC5B,gBAAgB,EAAE,0BAA0B,EAC5C,IAAI,EAAE,cAAc,EACpB,YAAY,EAAE,sBAAsB,EACpC,eAAoC,EACpC,WAAyC,EACzC,SAAS,EACT,QAAc,EACd,SAAe,EACf,MAAc,EACd,WAAW,EACX,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,SAAS,EAAE,mBAAmB,EAC9B,iBAAiB,EACjB,UAAkB,EAClB,WAAmB,GACpB,EAAE,mBAAmB,kDAkUrB"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { ArrowDown, ArrowUp, ChevronDown, ChevronUp, Eye, EyeOff, Pin, PinOff, Settings, X, } from "lucide-react";
|
|
4
|
+
import { cn } from "../lib/utils";
|
|
5
|
+
import { useLocalStorage } from "../hooks/useLocalStorage";
|
|
6
|
+
import { Card } from "./card";
|
|
7
|
+
import { Button } from "./button";
|
|
8
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "./dropdown-menu";
|
|
9
|
+
export function DraggablePanel({ id, title, children, isOpen, onClose, position: controlledPosition, onPositionChange: controlledOnPositionChange, size: controlledSize, onSizeChange: controlledOnSizeChange, defaultPosition = { x: 100, y: 100 }, defaultSize = { width: 300, height: 200 }, className, minWidth = 200, minHeight = 150, pinned = false, onPinChange, onDragEnd, zIndex, onFocus, onMouseDown, showTitle: controlledShowTitle, onShowTitleChange, hideHeader = false, transparent = false, }) {
|
|
10
|
+
// Internal state for uncontrolled mode
|
|
11
|
+
const [internalPosition, setInternalPosition] = useLocalStorage(id ? `panel-${id}-position` : "temp-panel-position", defaultPosition);
|
|
12
|
+
const [internalSize, setInternalSize] = useLocalStorage(id ? `panel-${id}-size` : "temp-panel-size", defaultSize);
|
|
13
|
+
const position = controlledPosition || internalPosition;
|
|
14
|
+
const size = controlledSize || internalSize;
|
|
15
|
+
const onPositionChange = (pos) => {
|
|
16
|
+
if (controlledOnPositionChange) {
|
|
17
|
+
controlledOnPositionChange(pos);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
setInternalPosition(pos);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const onSizeChange = (s) => {
|
|
24
|
+
if (controlledOnSizeChange) {
|
|
25
|
+
controlledOnSizeChange(s);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
setInternalSize(s);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
32
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
33
|
+
const [isFolded, setIsFolded] = useState(false);
|
|
34
|
+
const [titlePosition, setTitlePosition] = useState("top");
|
|
35
|
+
const [internalShowTitle, setInternalShowTitle] = useState(true);
|
|
36
|
+
const showTitle = hideHeader
|
|
37
|
+
? false
|
|
38
|
+
: controlledShowTitle ?? internalShowTitle;
|
|
39
|
+
const setShowTitle = (show) => {
|
|
40
|
+
setInternalShowTitle(show);
|
|
41
|
+
onShowTitleChange?.(show);
|
|
42
|
+
};
|
|
43
|
+
const panelRef = useRef(null);
|
|
44
|
+
const dragStartRef = useRef({ x: 0, y: 0 });
|
|
45
|
+
const initialPosRef = useRef({ x: 0, y: 0 });
|
|
46
|
+
const initialSizeRef = useRef({ width: 0, height: 0 });
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (isOpen) {
|
|
49
|
+
// Ensure panel is within viewport when opened
|
|
50
|
+
const { innerWidth, innerHeight } = window;
|
|
51
|
+
onPositionChange({
|
|
52
|
+
x: Math.min(Math.max(0, position.x), innerWidth - size.width),
|
|
53
|
+
y: Math.min(Math.max(0, position.y), innerHeight - size.height),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}, [isOpen]);
|
|
57
|
+
const handleMouseDown = (e) => {
|
|
58
|
+
onFocus?.();
|
|
59
|
+
if (pinned)
|
|
60
|
+
return;
|
|
61
|
+
const target = e.target;
|
|
62
|
+
if (target instanceof HTMLButtonElement ||
|
|
63
|
+
target instanceof HTMLInputElement ||
|
|
64
|
+
target instanceof HTMLTextAreaElement ||
|
|
65
|
+
target instanceof HTMLSelectElement ||
|
|
66
|
+
target.closest("button") ||
|
|
67
|
+
target.closest("input") ||
|
|
68
|
+
target.closest("textarea") ||
|
|
69
|
+
target.closest("select") ||
|
|
70
|
+
target.closest(".resize-handle") ||
|
|
71
|
+
target.closest(".no-drag")) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
e.preventDefault(); // Prevent text selection and other default behaviors
|
|
75
|
+
setIsDragging(true);
|
|
76
|
+
dragStartRef.current = { x: e.clientX, y: e.clientY };
|
|
77
|
+
initialPosRef.current = { ...position };
|
|
78
|
+
};
|
|
79
|
+
const toggleFold = () => {
|
|
80
|
+
const newFolded = !isFolded;
|
|
81
|
+
setIsFolded(newFolded);
|
|
82
|
+
if (titlePosition === "bottom") {
|
|
83
|
+
// Estimate header height (p-2 = 8px*2 + h-6 = 24px + border = ~41px)
|
|
84
|
+
const HEADER_HEIGHT = 41;
|
|
85
|
+
const delta = size.height - HEADER_HEIGHT;
|
|
86
|
+
if (newFolded) {
|
|
87
|
+
// Folding: Move top DOWN so bottom stays fixed
|
|
88
|
+
onPositionChange({ ...position, y: position.y + delta });
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
// Unfolding: Move top UP so bottom stays fixed
|
|
92
|
+
onPositionChange({ ...position, y: position.y - delta });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const handleResizeStart = (e) => {
|
|
97
|
+
e.stopPropagation();
|
|
98
|
+
onFocus?.();
|
|
99
|
+
setIsResizing(true);
|
|
100
|
+
dragStartRef.current = { x: e.clientX, y: e.clientY };
|
|
101
|
+
initialSizeRef.current = { ...size };
|
|
102
|
+
};
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
const handleMouseMove = (e) => {
|
|
105
|
+
if (isDragging) {
|
|
106
|
+
const dx = e.clientX - dragStartRef.current.x;
|
|
107
|
+
const dy = e.clientY - dragStartRef.current.y;
|
|
108
|
+
onPositionChange({
|
|
109
|
+
x: initialPosRef.current.x + dx,
|
|
110
|
+
y: initialPosRef.current.y + dy,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
else if (isResizing) {
|
|
114
|
+
const dx = e.clientX - dragStartRef.current.x;
|
|
115
|
+
const dy = e.clientY - dragStartRef.current.y;
|
|
116
|
+
onSizeChange({
|
|
117
|
+
width: Math.max(minWidth, initialSizeRef.current.width + dx),
|
|
118
|
+
height: Math.max(minHeight, initialSizeRef.current.height + dy),
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const handleMouseUp = () => {
|
|
123
|
+
if (isDragging) {
|
|
124
|
+
onDragEnd?.();
|
|
125
|
+
}
|
|
126
|
+
setIsDragging(false);
|
|
127
|
+
setIsResizing(false);
|
|
128
|
+
};
|
|
129
|
+
if (isDragging || isResizing) {
|
|
130
|
+
window.addEventListener("mousemove", handleMouseMove);
|
|
131
|
+
window.addEventListener("mouseup", handleMouseUp);
|
|
132
|
+
}
|
|
133
|
+
return () => {
|
|
134
|
+
window.removeEventListener("mousemove", handleMouseMove);
|
|
135
|
+
window.removeEventListener("mouseup", handleMouseUp);
|
|
136
|
+
};
|
|
137
|
+
}, [
|
|
138
|
+
isDragging,
|
|
139
|
+
isResizing,
|
|
140
|
+
minWidth,
|
|
141
|
+
minHeight,
|
|
142
|
+
onPositionChange,
|
|
143
|
+
onSizeChange,
|
|
144
|
+
onDragEnd,
|
|
145
|
+
]);
|
|
146
|
+
if (!isOpen)
|
|
147
|
+
return null;
|
|
148
|
+
const headerContent = (_jsxs("div", { className: cn("flex items-center justify-between p-2 border-b select-none shrink-0 bg-muted/50", pinned ? "cursor-default" : "cursor-move", titlePosition === "bottom" && "border-t border-b-0"), onMouseDown: handleMouseDown, onContextMenu: (e) => {
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
setShowTitle(true);
|
|
151
|
+
}, children: [_jsx("div", { className: "font-medium text-sm px-2 flex items-center gap-2", children: title }), _jsxs("div", { className: "flex items-center gap-1", children: [_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon-sm", className: "h-6 w-6", children: _jsx(Settings, { className: "h-3 w-3" }) }) }), _jsxs(DropdownMenuContent, { align: "end", className: "z-[100]", children: [_jsx(DropdownMenuLabel, { children: "Panel Settings" }), _jsx(DropdownMenuSeparator, {}), onPinChange && (_jsx(DropdownMenuItem, { onClick: () => onPinChange(!pinned), children: pinned ? (_jsxs(_Fragment, { children: [_jsx(PinOff, { className: "mr-2 h-4 w-4" }), " Unpin"] })) : (_jsxs(_Fragment, { children: [_jsx(Pin, { className: "mr-2 h-4 w-4" }), " Pin"] })) })), _jsx(DropdownMenuItem, { onClick: () => setTitlePosition(titlePosition === "top" ? "bottom" : "top"), children: titlePosition === "top" ? (_jsxs(_Fragment, { children: [_jsx(ArrowDown, { className: "mr-2 h-4 w-4" }), " Title Bottom"] })) : (_jsxs(_Fragment, { children: [_jsx(ArrowUp, { className: "mr-2 h-4 w-4" }), " Title Top"] })) }), _jsxs(DropdownMenuItem, { onClick: () => setShowTitle(false), children: [_jsx(EyeOff, { className: "mr-2 h-4 w-4" }), " Hide Title"] })] })] }), _jsx(Button, { variant: "ghost", size: "icon-sm", className: "h-6 w-6", onClick: toggleFold, children: isFolded ? (titlePosition === "top" ? (_jsx(ChevronDown, { className: "h-4 w-4" })) : (_jsx(ChevronUp, { className: "h-4 w-4" }))) : titlePosition === "top" ? (_jsx(ChevronUp, { className: "h-4 w-4" })) : (_jsx(ChevronDown, { className: "h-4 w-4" })) }), _jsx(Button, { variant: "ghost", size: "icon-sm", className: "h-6 w-6", onClick: onClose, children: _jsx(X, { className: "h-4 w-4" }) })] })] }));
|
|
152
|
+
// If title is hidden, we show a small drag handle on hover or right click area
|
|
153
|
+
// If hideHeader is true, we still want this handle if the user needs a way to drag without clicking the content
|
|
154
|
+
// But if the content is fully interactive (like a button), this top strip is the ONLY way to drag.
|
|
155
|
+
const hiddenTitleHandle = (!showTitle || hideHeader) && (_jsx("div", { className: cn("absolute top-0 left-0 right-0 h-3 z-50 cursor-move transition-colors", !transparent && "hover:bg-primary/20"), onMouseDown: handleMouseDown, onContextMenu: (e) => {
|
|
156
|
+
if (!hideHeader) {
|
|
157
|
+
e.preventDefault();
|
|
158
|
+
setShowTitle(true);
|
|
159
|
+
}
|
|
160
|
+
}, title: hideHeader ? "Drag to move" : "Right click to show title" }));
|
|
161
|
+
return (_jsxs(Card, { ref: panelRef, className: cn("fixed flex shadow-xl border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 transition-colors duration-200", transparent &&
|
|
162
|
+
"bg-transparent border-none shadow-none backdrop-blur-none", titlePosition === "bottom" ? "flex-col-reverse" : "flex-col", className), style: {
|
|
163
|
+
left: position.x,
|
|
164
|
+
top: position.y,
|
|
165
|
+
width: size.width,
|
|
166
|
+
height: isFolded ? "auto" : size.height,
|
|
167
|
+
zIndex: zIndex ?? 50,
|
|
168
|
+
}, onMouseDown: (e) => {
|
|
169
|
+
onFocus?.();
|
|
170
|
+
onMouseDown?.(e);
|
|
171
|
+
if (hideHeader) {
|
|
172
|
+
handleMouseDown(e);
|
|
173
|
+
}
|
|
174
|
+
}, children: [hiddenTitleHandle, showTitle && headerContent, !isFolded && (_jsx("div", { className: "flex-1 min-h-0 overflow-hidden relative", children: children })), !isFolded && (_jsx("div", { className: cn("absolute bottom-0 right-0 w-4 h-4 cursor-se-resize resize-handle flex items-center justify-center z-50", transparent
|
|
175
|
+
? "opacity-0 hover:opacity-100"
|
|
176
|
+
: "opacity-50 hover:opacity-100"), onMouseDown: handleResizeStart, children: _jsx("div", { className: "w-2 h-2 border-r-2 border-b-2 border-foreground/50" }) }))] }));
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=draggable-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draggable-panel.js","sourceRoot":"","sources":["../../src/ui/draggable-panel.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EACL,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,GAAG,EACH,MAAM,EACN,GAAG,EACH,MAAM,EACN,QAAQ,EACR,CAAC,GACF,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;A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