@embeddr/react-ui 0.1.3 → 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 +2 -7
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.js","sources":["../../src/ui/input-group.tsx"],"
|
|
1
|
+
{"version":3,"file":"input-group.js","sour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AAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACyB;IACjC,OAAO,CACL,KAAC,QAAQ,iBACG,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACX,mHAAmH,EACnH,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,CAAC"}
|
package/dist/ui/input.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
3
|
-
import { cn
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
"input",
|
|
7
|
-
{
|
|
8
|
-
type: i,
|
|
9
|
-
"data-slot": "input",
|
|
10
|
-
className: o(
|
|
11
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-border h-9 w-full min-w-0 border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
14
|
-
e
|
|
15
|
-
),
|
|
16
|
-
...r
|
|
17
|
-
}
|
|
18
|
-
);
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
function Input({ className, type, ...props }) {
|
|
5
|
+
return (_jsx("input", { type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-border h-9 w-full min-w-0 border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className), ...props }));
|
|
19
6
|
}
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=input.js.map
|
|
7
|
+
export { Input };
|
|
8
|
+
//# sourceMappingURL=input.js.map
|
package/dist/ui/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../src/ui/input.tsx"],"
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,SAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAiC;IACzE,OAAO,CACL,gBACE,IAAI,EAAE,IAAI,eACA,OAAO,EACjB,SAAS,EAAE,EAAE,CACX,mbAAmb,EACnb,+EAA+E,EAC/E,wGAAwG,EACxG,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/ui/label.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { cn
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
...t
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ o(
|
|
10
|
-
a.Root,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "label",
|
|
13
|
-
className: r(
|
|
14
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
-
e
|
|
16
|
-
),
|
|
17
|
-
...t
|
|
18
|
-
}
|
|
19
|
-
);
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
import { cn } from "../lib/utils";
|
|
5
|
+
function Label({ className, ...props }) {
|
|
6
|
+
return (_jsx(LabelPrimitive.Root, { "data-slot": "label", className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className), ...props }));
|
|
20
7
|
}
|
|
21
|
-
export {
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=label.js.map
|
|
8
|
+
export { Label };
|
|
9
|
+
//# sourceMappingURL=label.js.map
|
package/dist/ui/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sources":["../../src/ui/label.tsx"],"
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,SAAS,KAAK,CAAC,EACb,SAAS,EACT,GAAG,KAAK,EACyC;IACjD,OAAO,CACL,KAAC,cAAc,CAAC,IAAI,iBACR,OAAO,EACjB,SAAS,EAAE,EAAE,CACX,qNAAqN,EACrN,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ComparisonSliderProps {
|
|
2
|
+
before: string;
|
|
3
|
+
after: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ComparisonSlider({ before, after, className, }: ComparisonSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ComparisonSlider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComparisonSlider.d.ts","sourceRoot":"","sources":["../../../src/ui/lightbox/ComparisonSlider.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAK,EACL,SAAS,GACV,EAAE,qBAAqB,2CAmGvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
3
|
+
export function ComparisonSlider({ before, after, className, }) {
|
|
4
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
5
|
+
const containerRef = useRef(null);
|
|
6
|
+
const handleRef = useRef(null);
|
|
7
|
+
const topImageRef = useRef(null);
|
|
8
|
+
const positionRef = useRef(50);
|
|
9
|
+
const updatePosition = (clientX) => {
|
|
10
|
+
if (containerRef.current && handleRef.current && topImageRef.current) {
|
|
11
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
12
|
+
const x = Math.max(0, Math.min(clientX - rect.left, rect.width));
|
|
13
|
+
const percent = Math.max(0, Math.min((x / rect.width) * 100, 100));
|
|
14
|
+
positionRef.current = percent;
|
|
15
|
+
handleRef.current.style.left = `${percent}%`;
|
|
16
|
+
topImageRef.current.style.clipPath = `inset(0 ${100 - percent}% 0 0)`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const onMouseDown = (e) => {
|
|
20
|
+
setIsDragging(true);
|
|
21
|
+
updatePosition(e.clientX);
|
|
22
|
+
};
|
|
23
|
+
const onTouchStart = (e) => {
|
|
24
|
+
setIsDragging(true);
|
|
25
|
+
if (e.touches && e.touches[0]) {
|
|
26
|
+
updatePosition(e.touches[0].clientX);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
const onMouseUp = () => setIsDragging(false);
|
|
31
|
+
const onTouchEnd = () => setIsDragging(false);
|
|
32
|
+
const onMouseMove = (e) => {
|
|
33
|
+
if (isDragging) {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
requestAnimationFrame(() => updatePosition(e.clientX));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const onTouchMove = (e) => {
|
|
39
|
+
if (isDragging) {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
if (e.touches && e.touches[0]) {
|
|
42
|
+
const clientX = e.touches[0].clientX;
|
|
43
|
+
requestAnimationFrame(() => updatePosition(clientX));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
if (isDragging) {
|
|
48
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
49
|
+
window.addEventListener("mouseup", onMouseUp);
|
|
50
|
+
window.addEventListener("touchmove", onTouchMove, { passive: false });
|
|
51
|
+
window.addEventListener("touchend", onTouchEnd);
|
|
52
|
+
}
|
|
53
|
+
return () => {
|
|
54
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
55
|
+
window.removeEventListener("mouseup", onMouseUp);
|
|
56
|
+
window.removeEventListener("touchmove", onTouchMove);
|
|
57
|
+
window.removeEventListener("touchend", onTouchEnd);
|
|
58
|
+
};
|
|
59
|
+
}, [isDragging]);
|
|
60
|
+
return (_jsxs("div", { ref: containerRef, className: `relative w-full h-full select-none overflow-hidden bg-black/5 touch-none cursor-ew-resize ${className || ""}`, onMouseDown: onMouseDown, onTouchStart: onTouchStart, children: [_jsx("img", { src: after, className: "absolute inset-0 w-full h-full object-contain pointer-events-none", draggable: false, alt: "After" }), _jsx("div", { ref: topImageRef, className: "absolute inset-0 w-full h-full overflow-hidden", style: { clipPath: `inset(0 50% 0 0)` }, children: _jsx("img", { src: before, className: "absolute inset-0 w-full h-full object-contain pointer-events-none", draggable: false, alt: "Before" }) }), _jsx("div", { ref: handleRef, className: "absolute top-0 bottom-0 w-0.5 bg-background/40 cursor-ew-resize z-10 hover:bg-primary transition-colors", style: { left: `50%` } })] }));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=ComparisonSlider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComparisonSlider.js","sourceRoot":"","sources":["../../../src/ui/lightbox/ComparisonSlider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQ3D,MAAM,UAAU,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAK,EACL,SAAS,GACa;IACtB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC/C,MAAM,WAAW,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE;QACzC,IAAI,YAAY,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACrE,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;YAC1D,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAA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ACT,SAAS,IAAI,EACf,EAAE,EACF,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,aAE1B,cACE,GAAG,EAAE,KAAK,EACV,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,KAAK,EAChB,GAAG,EAAC,OAAO,GACX,EACF,cACE,GAAG,EAAE,WAAW,EAChB,SAAS,EAAC,gDAAgD,EAC1D,KAAK,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAEvC,cACE,GAAG,EAAE,MAAM,EACX,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,KAAK,EAChB,GAAG,EAAC,QAAQ,GACZ,GACE,EACN,cACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAC,yGAAyG,EACnH,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GACjB,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,62 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
onClick: () => a(!i),
|
|
16
|
-
className: "cursor-pointer w-full flex items-center justify-between px-4 py-3 bg-background/40 border-b border-border hover:bg-secondary/20 transition-colors select-none",
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: o && /* @__PURE__ */ t(l, { children: [
|
|
19
|
-
/* @__PURE__ */ e(
|
|
20
|
-
"img",
|
|
21
|
-
{
|
|
22
|
-
src: o.thumbnail,
|
|
23
|
-
alt: o.name,
|
|
24
|
-
className: "w-8 h-8 object-cover rounded"
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ t("div", { className: "text-left", children: [
|
|
28
|
-
/* @__PURE__ */ e("div", { className: "font-medium text-sm", children: o.name }),
|
|
29
|
-
o.description && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: o.description })
|
|
30
|
-
] })
|
|
31
|
-
] }) }),
|
|
32
|
-
i ? /* @__PURE__ */ e(u, { className: "w-4 h-4 text-muted-foreground" }) : /* @__PURE__ */ e(b, { className: "w-4 h-4 text-muted-foreground" })
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
i && /* @__PURE__ */ e("div", { className: "overflow-hidden bg-background/95 backdrop-blur-sm border-b border-border", children: /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2 p-4 max-h-64 overflow-y-auto", children: s.map((r) => /* @__PURE__ */ t(
|
|
37
|
-
"button",
|
|
38
|
-
{
|
|
39
|
-
onClick: () => {
|
|
40
|
-
d(r.id), a(!1);
|
|
41
|
-
},
|
|
42
|
-
className: `cursor-pointer relative w-20 h-20 rounded-lg overflow-hidden border-2 transition-all hover:scale-105 shrink-0 ${r.id === n ? "border-primary ring-2 ring-primary/50" : "border-border hover:border-primary/50"}`,
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ e(
|
|
45
|
-
"img",
|
|
46
|
-
{
|
|
47
|
-
src: r.thumbnail,
|
|
48
|
-
alt: r.name,
|
|
49
|
-
className: "w-full h-full object-cover"
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-linear-to-t from-background via-background/60 to-transparent flex items-end p-1", children: /* @__PURE__ */ e("span", { className: "text-xs font-medium truncate w-full text-center leading-tight", children: r.name }) })
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
r.id
|
|
56
|
-
)) }) })
|
|
57
|
-
] });
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { useImageDialog } from "@embeddr/react-ui/hooks";
|
|
5
|
+
export const GalleryPicker = ({ currentGalleryId, onGalleryChange, }) => {
|
|
6
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
7
|
+
const { galleries } = useImageDialog();
|
|
8
|
+
const currentGallery = galleries.find((g) => g.id === currentGalleryId);
|
|
9
|
+
return (_jsxs("div", { className: "relative w-full", children: [_jsxs("div", { onClick: () => setIsOpen(!isOpen), className: "cursor-pointer w-full flex items-center justify-between px-4 py-3 bg-background/40 border-b border-border hover:bg-secondary/20 transition-colors select-none", children: [_jsx("div", { className: "flex items-center gap-3", children: currentGallery && (_jsxs(_Fragment, { children: [_jsx("img", { src: currentGallery.thumbnail, alt: currentGallery.name, className: "w-8 h-8 object-cover rounded" }), _jsxs("div", { className: "text-left", children: [_jsx("div", { className: "font-medium text-sm", children: currentGallery.name }), currentGallery.description && (_jsx("div", { className: "text-xs text-muted-foreground", children: currentGallery.description }))] })] })) }), isOpen ? (_jsx(ChevronUp, { className: "w-4 h-4 text-muted-foreground" })) : (_jsx(ChevronDown, { className: "w-4 h-4 text-muted-foreground" }))] }), isOpen && (_jsx("div", { className: "overflow-hidden bg-background/95 backdrop-blur-sm border-b border-border", children: _jsx("div", { className: "flex flex-wrap gap-2 p-4 max-h-64 overflow-y-auto", children: galleries.map((gallery) => (_jsxs("button", { onClick: () => {
|
|
10
|
+
onGalleryChange(gallery.id);
|
|
11
|
+
setIsOpen(false);
|
|
12
|
+
}, className: `cursor-pointer relative w-20 h-20 rounded-lg overflow-hidden border-2 transition-all hover:scale-105 shrink-0 ${gallery.id === currentGalleryId
|
|
13
|
+
? "border-primary ring-2 ring-primary/50"
|
|
14
|
+
: "border-border hover:border-primary/50"}`, children: [_jsx("img", { src: gallery.thumbnail, alt: gallery.name, className: "w-full h-full object-cover" }), _jsx("div", { className: "absolute inset-0 bg-linear-to-t from-background via-background/60 to-transparent flex items-end p-1", children: _jsx("span", { className: "text-xs font-medium truncate w-full text-center leading-tight", children: gallery.name }) })] }, gallery.id))) }) }))] }));
|
|
58
15
|
};
|
|
59
|
-
|
|
60
|
-
g as GalleryPicker
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=GalleryPicker.js.map
|
|
16
|
+
//# sourceMappingURL=GalleryPicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryPicker.js","sources":["../../../src/ui/lightbox/GalleryPicker.tsx"],"
|
|
1
|
+
{"version":3,"file":"GalleryPicker.js","sourceRoot":"","sources":["../../../src/ui/lightbox/GalleryPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAQzD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,gBAAgB,EAChB,eAAe,GACI,EAAE,EAAE;IACvB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,EAAE,CAAC;IAEvC,MAAM,cAAc,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,gBAAgB,CAAC,CAAC;IAExE,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAE9B,eACE,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,EACjC,SAAS,EAAC,+JAA+J,aAEzK,cAAK,SAAS,EAAC,yBAAyB,YACrC,cAAc,IAAI,CACjB,8BACE,cACE,GAAG,EAAE,cAAc,CAAC,SAAS,EAC7B,GAAG,EAAE,cAAc,CAAC,IAAI,EACxB,SAAS,EAAC,8BAA8B,GACxC,EACF,eAAK,SAAS,EAAC,WAAW,aACxB,cAAK,SAAS,EAAC,qBAAqB,YAAE,cA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,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,6DAMjC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ImageThumbnailStrip.d.ts","sourceRoot":"","sources":["../../../src/ui/lightbox/ImageThumbnailStrip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAEnD,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,6DAMjC,wBAAwB,4CAuG1B,CAAC"}
|
|
@@ -1,96 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
o && o.scrollIntoView({
|
|
18
|
-
behavior: "smooth",
|
|
19
|
-
block: "nearest",
|
|
20
|
-
inline: "center"
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}, [t, s]), /* @__PURE__ */ a("div", { className: "relative w-full flex flex-col-reverse", children: [
|
|
24
|
-
/* @__PURE__ */ a(
|
|
25
|
-
"div",
|
|
26
|
-
{
|
|
27
|
-
onClick: d,
|
|
28
|
-
className: "cursor-pointer w-full flex items-center justify-between px-4 py-3 hover:bg-background/40 backdrop-blur-sm border-t border-border bg-secondary/20 transition-colors select-none focus:outline-none focus:ring-0",
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: r && /* @__PURE__ */ a(h, { children: [
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
"img",
|
|
33
|
-
{
|
|
34
|
-
src: r.thumbnail || r.src,
|
|
35
|
-
alt: r.title || `Image ${t + 1}`,
|
|
36
|
-
className: "w-10 h-10 object-cover rounded"
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ a("div", { className: "text-left", children: [
|
|
40
|
-
/* @__PURE__ */ e("div", { className: "font-medium text-sm", children: r.title || `Image ${t + 1}` }),
|
|
41
|
-
/* @__PURE__ */ a("div", { className: "text-xs text-muted-foreground", children: [
|
|
42
|
-
t + 1,
|
|
43
|
-
" / ",
|
|
44
|
-
l.images.length
|
|
45
|
-
] })
|
|
46
|
-
] })
|
|
47
|
-
] }) }),
|
|
48
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
49
|
-
r?.description && /* @__PURE__ */ e(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
onClick: (o) => {
|
|
53
|
-
o.stopPropagation(), f(!c);
|
|
54
|
-
},
|
|
55
|
-
className: "p-1 hover:bg-primary/20 rounded transition-colors cursor-pointer",
|
|
56
|
-
children: /* @__PURE__ */ e(g, { className: "w-4 h-4" })
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
s ? /* @__PURE__ */ e(v, { className: "w-4 h-4 text-muted-foreground" }) : /* @__PURE__ */ e(N, { className: "w-4 h-4 text-muted-foreground" })
|
|
60
|
-
] })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
s && /* @__PURE__ */ a("div", { className: "w-full bg-background/80 backdrop-blur-md border-t border-border p-2 animate-in slide-in-from-bottom-10 fade-in duration-200", children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
ref: n,
|
|
69
|
-
className: "flex gap-2 overflow-x-auto pb-2 scrollbar-thin scrollbar-thumb-secondary scrollbar-track-transparent px-2",
|
|
70
|
-
children: l.images.map((o, i) => /* @__PURE__ */ e(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
onClick: () => m(i),
|
|
74
|
-
className: `relative flex-shrink-0 cursor-pointer transition-all duration-200 ${i === t ? "ring-2 ring-primary scale-105 z-10" : "opacity-70 hover:opacity-100 hover:scale-105"}`,
|
|
75
|
-
children: /* @__PURE__ */ e(
|
|
76
|
-
"img",
|
|
77
|
-
{
|
|
78
|
-
src: o.thumbnail || o.src,
|
|
79
|
-
alt: o.title || `Thumbnail ${i + 1}`,
|
|
80
|
-
className: "h-20 w-auto object-cover rounded-sm",
|
|
81
|
-
loading: "lazy"
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
},
|
|
85
|
-
i
|
|
86
|
-
))
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, ChevronUp, Info } from "lucide-react";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
export const ImageThumbnailStrip = ({ gallery, currentIndex, onImageChange, isOpen, onToggle, }) => {
|
|
5
|
+
const [showInfo, setShowInfo] = useState(false);
|
|
6
|
+
const scrollContainerRef = useRef(null);
|
|
7
|
+
const currentImage = gallery.images[currentIndex];
|
|
8
|
+
// Auto-scroll to current image
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (isOpen && scrollContainerRef.current) {
|
|
11
|
+
const thumbnail = scrollContainerRef.current.children[currentIndex];
|
|
12
|
+
thumbnail.scrollIntoView({
|
|
13
|
+
behavior: "smooth",
|
|
14
|
+
block: "nearest",
|
|
15
|
+
inline: "center",
|
|
16
|
+
});
|
|
87
17
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
18
|
+
}, [currentIndex, isOpen]);
|
|
19
|
+
return (_jsxs("div", { className: "relative w-full flex flex-col-reverse", children: [_jsxs("div", { onClick: onToggle, className: "cursor-pointer w-full flex items-center justify-between px-4 py-3 hover:bg-background/40 backdrop-blur-sm border-t border-border bg-secondary/20 transition-colors select-none focus:outline-none focus:ring-0", children: [_jsx("div", { className: "flex items-center gap-3", children: currentImage && (_jsxs(_Fragment, { children: [_jsx("img", { src: currentImage.thumbnail || currentImage.src, alt: currentImage.title || `Image ${currentIndex + 1}`, className: "w-10 h-10 object-cover rounded" }), _jsxs("div", { className: "text-left", children: [_jsx("div", { className: "font-medium text-sm", children: currentImage.title || `Image ${currentIndex + 1}` }), _jsxs("div", { className: "text-xs text-muted-foreground", children: [currentIndex + 1, " / ", gallery.images.length] })] })] })) }), _jsxs("div", { className: "flex items-center gap-2", children: [currentImage?.description && (_jsx("div", { onClick: (e) => {
|
|
20
|
+
e.stopPropagation();
|
|
21
|
+
setShowInfo(!showInfo);
|
|
22
|
+
}, className: "p-1 hover:bg-primary/20 rounded transition-colors cursor-pointer", children: _jsx(Info, { className: "w-4 h-4" }) })), isOpen ? (_jsx(ChevronDown, { className: "w-4 h-4 text-muted-foreground" })) : (_jsx(ChevronUp, { className: "w-4 h-4 text-muted-foreground" }))] })] }), isOpen && (_jsxs("div", { className: "w-full bg-background/80 backdrop-blur-md border-t border-border p-2 animate-in slide-in-from-bottom-10 fade-in duration-200", children: [_jsx("div", { ref: scrollContainerRef, className: "flex gap-2 overflow-x-auto pb-2 scrollbar-thin scrollbar-thumb-secondary scrollbar-track-transparent px-2", children: gallery.images.map((img, idx) => (_jsx("div", { onClick: () => onImageChange(idx), className: `relative flex-shrink-0 cursor-pointer transition-all duration-200 ${idx === currentIndex
|
|
23
|
+
? "ring-2 ring-primary scale-105 z-10"
|
|
24
|
+
: "opacity-70 hover:opacity-100 hover:scale-105"}`, children: _jsx("img", { src: img.thumbnail || img.src, alt: img.title || `Thumbnail ${idx + 1}`, className: "h-20 w-auto object-cover rounded-sm", loading: "lazy" }) }, idx))) }), showInfo && currentImage?.description && (_jsx("div", { className: "p-4 text-sm text-muted-foreground border-t border-border mt-2", children: currentImage.description }))] }))] }));
|
|
92
25
|
};
|
|
93
|
-
|
|
94
|
-
j as ImageThumbnailStrip
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=ImageThumbnailStrip.js.map
|
|
26
|
+
//# sourceMappingURL=ImageThumbnailStrip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageThumbnailStrip.js","sources":["../../../src/ui/lightbox/ImageThumbnailStrip.tsx"],"
|
|
1
|
+
{"version":3,"file":"ImageThumbnailStrip.js","sourceRoot":"","sources":["../../../src/ui/lightbox/ImageThumbnailStrip.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAWpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,aAAa,EACb,MAAM,EACN,QAAQ,GACiB,EAAE,EAAE;IAC7B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAExD,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAElD,+BAA+B;IAC/B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,MAAM,IAAI,kBAAkB,CAAC,OAAO,EAAE,CAAC;YACzC,MAAM,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CACnD,YAAY,CACE,CAAC;YACjB,SAAS,CAAC,cAAc,CAAC;gBACvB,QAAQ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