✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
104 lines
5.1 KiB
TypeScript
104 lines
5.1 KiB
TypeScript
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
import * as React from 'react';
|
|
import { DismissableLayer } from '@radix-ui/react-dismissable-layer';
|
|
import { FocusScope } from '@radix-ui/react-focus-scope';
|
|
import { Portal as Portal$1 } from '@radix-ui/react-portal';
|
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
|
|
declare const createDialogScope: _radix_ui_react_context.CreateScope;
|
|
interface DialogProps {
|
|
children?: React.ReactNode;
|
|
open?: boolean;
|
|
defaultOpen?: boolean;
|
|
onOpenChange?(open: boolean): void;
|
|
modal?: boolean;
|
|
}
|
|
declare const Dialog: React.FC<DialogProps>;
|
|
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
interface DialogTriggerProps extends PrimitiveButtonProps {
|
|
}
|
|
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
|
|
interface DialogPortalProps {
|
|
children?: React.ReactNode;
|
|
/**
|
|
* Specify a container element to portal the content into.
|
|
*/
|
|
container?: PortalProps['container'];
|
|
/**
|
|
* Used to force mounting when more control is needed. Useful when
|
|
* controlling animation with React animation libraries.
|
|
*/
|
|
forceMount?: true;
|
|
}
|
|
declare const DialogPortal: React.FC<DialogPortalProps>;
|
|
interface DialogOverlayProps extends DialogOverlayImplProps {
|
|
/**
|
|
* Used to force mounting when more control is needed. Useful when
|
|
* controlling animation with React animation libraries.
|
|
*/
|
|
forceMount?: true;
|
|
}
|
|
declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
interface DialogOverlayImplProps extends PrimitiveDivProps {
|
|
}
|
|
interface DialogContentProps extends DialogContentTypeProps {
|
|
/**
|
|
* Used to force mounting when more control is needed. Useful when
|
|
* controlling animation with React animation libraries.
|
|
*/
|
|
forceMount?: true;
|
|
}
|
|
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
interface DialogContentTypeProps extends Omit<DialogContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
|
|
}
|
|
type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
|
|
type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
|
|
interface DialogContentImplProps extends Omit<DismissableLayerProps, 'onDismiss'> {
|
|
/**
|
|
* When `true`, focus cannot escape the `Content` via keyboard,
|
|
* pointer, or a programmatic focus.
|
|
* @defaultValue false
|
|
*/
|
|
trapFocus?: FocusScopeProps['trapped'];
|
|
/**
|
|
* Event handler called when auto-focusing on open.
|
|
* Can be prevented.
|
|
*/
|
|
onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
|
|
/**
|
|
* Event handler called when auto-focusing on close.
|
|
* Can be prevented.
|
|
*/
|
|
onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
|
|
}
|
|
type PrimitiveHeading2Props = React.ComponentPropsWithoutRef<typeof Primitive.h2>;
|
|
interface DialogTitleProps extends PrimitiveHeading2Props {
|
|
}
|
|
declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
type PrimitiveParagraphProps = React.ComponentPropsWithoutRef<typeof Primitive.p>;
|
|
interface DialogDescriptionProps extends PrimitiveParagraphProps {
|
|
}
|
|
declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
interface DialogCloseProps extends PrimitiveButtonProps {
|
|
}
|
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
declare const WarningProvider: React.FC<{
|
|
contentName: string;
|
|
titleName: string;
|
|
docsSlug: string;
|
|
} & {
|
|
children: React.ReactNode;
|
|
}>;
|
|
declare const Root: React.FC<DialogProps>;
|
|
declare const Trigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
declare const Portal: React.FC<DialogPortalProps>;
|
|
declare const Overlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
declare const Content: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
declare const Title: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
declare const Description: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
declare const Close: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
|
|
export { Close, Content, Description, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };
|