design-zystem 1.0.442 → 1.0.444
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/dist/ui/index.d.mts +28 -21
- package/dist/ui/index.d.ts +28 -21
- package/dist/ui/index.js +73 -41
- package/dist/ui/index.mjs +73 -41
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -2055,35 +2055,42 @@ interface DatePickerProps {
|
|
|
2055
2055
|
declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
|
|
2056
2056
|
|
|
2057
2057
|
declare const ZONE_POSITIONS: {
|
|
2058
|
-
readonly front: readonly [
|
|
2059
|
-
readonly hood: readonly [
|
|
2060
|
-
readonly windshield: readonly [
|
|
2061
|
-
readonly roof: readonly [
|
|
2062
|
-
readonly trunk: readonly [
|
|
2063
|
-
readonly rear: readonly [
|
|
2064
|
-
readonly
|
|
2065
|
-
readonly
|
|
2066
|
-
readonly
|
|
2067
|
-
readonly
|
|
2068
|
-
readonly
|
|
2069
|
-
readonly
|
|
2070
|
-
readonly
|
|
2071
|
-
readonly
|
|
2072
|
-
readonly
|
|
2073
|
-
readonly
|
|
2074
|
-
readonly
|
|
2075
|
-
readonly
|
|
2058
|
+
readonly front: readonly [32, 70];
|
|
2059
|
+
readonly hood: readonly [62, 70];
|
|
2060
|
+
readonly windshield: readonly [86, 70];
|
|
2061
|
+
readonly roof: readonly [128, 70];
|
|
2062
|
+
readonly trunk: readonly [188, 70];
|
|
2063
|
+
readonly rear: readonly [208, 70];
|
|
2064
|
+
readonly frontRightCorner: readonly [44, 36];
|
|
2065
|
+
readonly frontLeftCorner: readonly [44, 104];
|
|
2066
|
+
readonly frontRightWheel: readonly [66, 25];
|
|
2067
|
+
readonly frontLeftWheel: readonly [66, 115];
|
|
2068
|
+
readonly frontRightSide: readonly [104, 31];
|
|
2069
|
+
readonly frontLeftSide: readonly [104, 109];
|
|
2070
|
+
readonly rearRightSide: readonly [146, 31];
|
|
2071
|
+
readonly rearLeftSide: readonly [146, 109];
|
|
2072
|
+
readonly rearRightWheel: readonly [174, 25];
|
|
2073
|
+
readonly rearLeftWheel: readonly [174, 115];
|
|
2074
|
+
readonly rearRightCorner: readonly [196, 36];
|
|
2075
|
+
readonly rearLeftCorner: readonly [196, 104];
|
|
2076
2076
|
};
|
|
2077
2077
|
type VehicleDamageZone = keyof typeof ZONE_POSITIONS;
|
|
2078
2078
|
declare const VEHICLE_DAMAGE_ZONES: VehicleDamageZone[];
|
|
2079
2079
|
interface VehicleDamageMark {
|
|
2080
2080
|
zone: VehicleDamageZone;
|
|
2081
|
-
|
|
2081
|
+
content?: string;
|
|
2082
2082
|
label?: string;
|
|
2083
|
-
tone?: 'danger' | 'warning';
|
|
2083
|
+
tone?: 'danger' | 'warning' | 'neutral';
|
|
2084
|
+
}
|
|
2085
|
+
interface VehicleDamageMapSideLabels {
|
|
2086
|
+
front: string;
|
|
2087
|
+
rear: string;
|
|
2088
|
+
left: string;
|
|
2089
|
+
right: string;
|
|
2084
2090
|
}
|
|
2085
2091
|
interface VehicleDamageMapProps extends HTMLAttributes<HTMLDivElement> {
|
|
2086
2092
|
marks: VehicleDamageMark[];
|
|
2093
|
+
sideLabels?: VehicleDamageMapSideLabels;
|
|
2087
2094
|
selectedZone?: VehicleDamageZone | null;
|
|
2088
2095
|
onZoneClick?: (zone: VehicleDamageZone) => void;
|
|
2089
2096
|
width?: number;
|
|
@@ -2346,4 +2353,4 @@ interface TourTargetProps {
|
|
|
2346
2353
|
declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
|
|
2347
2354
|
declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
|
|
2348
2355
|
|
|
2349
|
-
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerAction, type BannerJustify, type BannerProps, type BannerToggle, Box, type BoxProps, Bulk, type BulkProps, type BulkSection, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, ColorTokenPicker, type ColorTokenPickerProps, DatePicker, type DatePickerMode, type DatePickerProps, type DatePreset, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, EmailInput, type EmailInputProps, EmptyState, type EmptyStateProps, FAB_EDGE_MARGIN, FAB_SIZE, FilePicker, type FilePickerProps, FileUploadZone, type FileUploadZoneProps, type FloatingAction, FloatingButton, type FloatingButtonProps, type FloatingSafeArea, Gantt, type GanttBand, type GanttBar, type GanttDay, GanttDot, type GanttProps, type GanttRow, GanttSwatch, type HeaderCheckState, type HexColor, HistoryButton, type HistoryButtonProps, type HistoryChange, HistoryDrawer, type HistoryDrawerProps, type HistoryEntry, type HistoryFilter, HistoryList, type HistoryListProps, Icon, IconBadge, type IconBadgeProps, type IconColor, type IconFamily, type IconProps, type IconSize, type IconTabItem, IconTabs, type IconTabsProps, IconTooltip, type IconTooltipProps, type IconVariant, Image, type ImageProps, InfoTooltip, type InfoTooltipProps, type InfoTooltipVariant, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, type ItemMediaProps, type ItemProps, ItemTitle, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, Message, MessageDateSeparator, type MessageDateSeparatorProps, type MessageProps, MessageScroller, type MessageScrollerProps, type MessageSeparatorTone, type MessageVariant, MetricCard, type MetricCardProps, Modal, ModalBody, ModalClose, ModalDescription, ModalFooter, ModalHeader, type ModalProps, ModalTitle, type MultiSelectProps, type OptimizeImageOptions, type OptimizeImageResult, PageContainer, type PageContainerProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PdfPreview, type PdfPreviewProps, PhoneInput, type PhoneInputMeta, type PhoneInputProps, Popover, type PopoverMenuItem, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressMarker, type ProgressSegment, Radio, type RadioOption, type RadioProps, type RowId, type RowSelection, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectGroup, type SelectItem, type SelectOption, type SelectProps, Sidebar, SidebarActionCard, type SidebarActionCardProps, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuSearchInput, type SidebarMenuSearchInputProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarSupportInfo, type SidebarSupportInfoProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserMenu, type SidebarUserMenuAction, type SidebarUserMenuLeafAction, type SidebarUserMenuProps, type SingleSelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Stepper, type StepperProps, Switch, type SwitchProps, TOUR_TARGET_ATTRIBUTE, type TabItem, Table, type TableAction, TableActionsCell, type TableActionsCellProps, type TableAlertAction, TableAlertRow, type TableAlertRowProps, type TableAlertTone, TableCell, type TableCellProps, type TableCellTheme, TableClientCell, type TableClientCellProps, type TableColumnsAlign, type TableEmptyState, TableExpandedRow, type TableExpandedRowProps, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, TablePersonCell, type TablePersonCellProps, type TableProps, TableRow, type TableRowProps, TableSectionRow, type TableSectionRowProps, TableSelectCell, type TableSelectCellProps, TableSelectHeaderCell, type TableSelectHeaderCellProps, type TableSelection, TableStatusCell, type TableStatusCellProps, TableSubgroupRow, type TableSubgroupRowProps, type TableToolbarProps, type TableToolbarSearch, type TableToolbarStatusFilter, type TableVariant, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagLevelPickerSize, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Tile, type TileProps, type TileVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, Tour, type TourCloseReason, type TourLabels, type TourPlacement, type TourProps, type TourStep, TourTarget, type TourTargetProps, type UseRowSelectionOptions, VEHICLE_DAMAGE_ZONES, VehicleDamageMap, type VehicleDamageMapProps, type VehicleDamageMark, type VehicleDamageZone, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, buttonGroupVariants, buttonVariants, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVideoDuration, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getElapsedTime, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getPastelColorPair, getRelativeTime, isHoliday, isSameDay, isolateCity, linkVariants, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize, useRowSelection };
|
|
2356
|
+
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerAction, type BannerJustify, type BannerProps, type BannerToggle, Box, type BoxProps, Bulk, type BulkProps, type BulkSection, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, ColorTokenPicker, type ColorTokenPickerProps, DatePicker, type DatePickerMode, type DatePickerProps, type DatePreset, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, EmailInput, type EmailInputProps, EmptyState, type EmptyStateProps, FAB_EDGE_MARGIN, FAB_SIZE, FilePicker, type FilePickerProps, FileUploadZone, type FileUploadZoneProps, type FloatingAction, FloatingButton, type FloatingButtonProps, type FloatingSafeArea, Gantt, type GanttBand, type GanttBar, type GanttDay, GanttDot, type GanttProps, type GanttRow, GanttSwatch, type HeaderCheckState, type HexColor, HistoryButton, type HistoryButtonProps, type HistoryChange, HistoryDrawer, type HistoryDrawerProps, type HistoryEntry, type HistoryFilter, HistoryList, type HistoryListProps, Icon, IconBadge, type IconBadgeProps, type IconColor, type IconFamily, type IconProps, type IconSize, type IconTabItem, IconTabs, type IconTabsProps, IconTooltip, type IconTooltipProps, type IconVariant, Image, type ImageProps, InfoTooltip, type InfoTooltipProps, type InfoTooltipVariant, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, type ItemMediaProps, type ItemProps, ItemTitle, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, Message, MessageDateSeparator, type MessageDateSeparatorProps, type MessageProps, MessageScroller, type MessageScrollerProps, type MessageSeparatorTone, type MessageVariant, MetricCard, type MetricCardProps, Modal, ModalBody, ModalClose, ModalDescription, ModalFooter, ModalHeader, type ModalProps, ModalTitle, type MultiSelectProps, type OptimizeImageOptions, type OptimizeImageResult, PageContainer, type PageContainerProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PdfPreview, type PdfPreviewProps, PhoneInput, type PhoneInputMeta, type PhoneInputProps, Popover, type PopoverMenuItem, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressMarker, type ProgressSegment, Radio, type RadioOption, type RadioProps, type RowId, type RowSelection, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectGroup, type SelectItem, type SelectOption, type SelectProps, Sidebar, SidebarActionCard, type SidebarActionCardProps, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuSearchInput, type SidebarMenuSearchInputProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarSupportInfo, type SidebarSupportInfoProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserMenu, type SidebarUserMenuAction, type SidebarUserMenuLeafAction, type SidebarUserMenuProps, type SingleSelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Stepper, type StepperProps, Switch, type SwitchProps, TOUR_TARGET_ATTRIBUTE, type TabItem, Table, type TableAction, TableActionsCell, type TableActionsCellProps, type TableAlertAction, TableAlertRow, type TableAlertRowProps, type TableAlertTone, TableCell, type TableCellProps, type TableCellTheme, TableClientCell, type TableClientCellProps, type TableColumnsAlign, type TableEmptyState, TableExpandedRow, type TableExpandedRowProps, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, TablePersonCell, type TablePersonCellProps, type TableProps, TableRow, type TableRowProps, TableSectionRow, type TableSectionRowProps, TableSelectCell, type TableSelectCellProps, TableSelectHeaderCell, type TableSelectHeaderCellProps, type TableSelection, TableStatusCell, type TableStatusCellProps, TableSubgroupRow, type TableSubgroupRowProps, type TableToolbarProps, type TableToolbarSearch, type TableToolbarStatusFilter, type TableVariant, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagLevelPickerSize, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Tile, type TileProps, type TileVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, Tour, type TourCloseReason, type TourLabels, type TourPlacement, type TourProps, type TourStep, TourTarget, type TourTargetProps, type UseRowSelectionOptions, VEHICLE_DAMAGE_ZONES, VehicleDamageMap, type VehicleDamageMapProps, type VehicleDamageMapSideLabels, type VehicleDamageMark, type VehicleDamageZone, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, buttonGroupVariants, buttonVariants, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVideoDuration, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getElapsedTime, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getPastelColorPair, getRelativeTime, isHoliday, isSameDay, isolateCity, linkVariants, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize, useRowSelection };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -2055,35 +2055,42 @@ interface DatePickerProps {
|
|
|
2055
2055
|
declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
|
|
2056
2056
|
|
|
2057
2057
|
declare const ZONE_POSITIONS: {
|
|
2058
|
-
readonly front: readonly [
|
|
2059
|
-
readonly hood: readonly [
|
|
2060
|
-
readonly windshield: readonly [
|
|
2061
|
-
readonly roof: readonly [
|
|
2062
|
-
readonly trunk: readonly [
|
|
2063
|
-
readonly rear: readonly [
|
|
2064
|
-
readonly
|
|
2065
|
-
readonly
|
|
2066
|
-
readonly
|
|
2067
|
-
readonly
|
|
2068
|
-
readonly
|
|
2069
|
-
readonly
|
|
2070
|
-
readonly
|
|
2071
|
-
readonly
|
|
2072
|
-
readonly
|
|
2073
|
-
readonly
|
|
2074
|
-
readonly
|
|
2075
|
-
readonly
|
|
2058
|
+
readonly front: readonly [32, 70];
|
|
2059
|
+
readonly hood: readonly [62, 70];
|
|
2060
|
+
readonly windshield: readonly [86, 70];
|
|
2061
|
+
readonly roof: readonly [128, 70];
|
|
2062
|
+
readonly trunk: readonly [188, 70];
|
|
2063
|
+
readonly rear: readonly [208, 70];
|
|
2064
|
+
readonly frontRightCorner: readonly [44, 36];
|
|
2065
|
+
readonly frontLeftCorner: readonly [44, 104];
|
|
2066
|
+
readonly frontRightWheel: readonly [66, 25];
|
|
2067
|
+
readonly frontLeftWheel: readonly [66, 115];
|
|
2068
|
+
readonly frontRightSide: readonly [104, 31];
|
|
2069
|
+
readonly frontLeftSide: readonly [104, 109];
|
|
2070
|
+
readonly rearRightSide: readonly [146, 31];
|
|
2071
|
+
readonly rearLeftSide: readonly [146, 109];
|
|
2072
|
+
readonly rearRightWheel: readonly [174, 25];
|
|
2073
|
+
readonly rearLeftWheel: readonly [174, 115];
|
|
2074
|
+
readonly rearRightCorner: readonly [196, 36];
|
|
2075
|
+
readonly rearLeftCorner: readonly [196, 104];
|
|
2076
2076
|
};
|
|
2077
2077
|
type VehicleDamageZone = keyof typeof ZONE_POSITIONS;
|
|
2078
2078
|
declare const VEHICLE_DAMAGE_ZONES: VehicleDamageZone[];
|
|
2079
2079
|
interface VehicleDamageMark {
|
|
2080
2080
|
zone: VehicleDamageZone;
|
|
2081
|
-
|
|
2081
|
+
content?: string;
|
|
2082
2082
|
label?: string;
|
|
2083
|
-
tone?: 'danger' | 'warning';
|
|
2083
|
+
tone?: 'danger' | 'warning' | 'neutral';
|
|
2084
|
+
}
|
|
2085
|
+
interface VehicleDamageMapSideLabels {
|
|
2086
|
+
front: string;
|
|
2087
|
+
rear: string;
|
|
2088
|
+
left: string;
|
|
2089
|
+
right: string;
|
|
2084
2090
|
}
|
|
2085
2091
|
interface VehicleDamageMapProps extends HTMLAttributes<HTMLDivElement> {
|
|
2086
2092
|
marks: VehicleDamageMark[];
|
|
2093
|
+
sideLabels?: VehicleDamageMapSideLabels;
|
|
2087
2094
|
selectedZone?: VehicleDamageZone | null;
|
|
2088
2095
|
onZoneClick?: (zone: VehicleDamageZone) => void;
|
|
2089
2096
|
width?: number;
|
|
@@ -2346,4 +2353,4 @@ interface TourTargetProps {
|
|
|
2346
2353
|
declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
|
|
2347
2354
|
declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
|
|
2348
2355
|
|
|
2349
|
-
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerAction, type BannerJustify, type BannerProps, type BannerToggle, Box, type BoxProps, Bulk, type BulkProps, type BulkSection, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, ColorTokenPicker, type ColorTokenPickerProps, DatePicker, type DatePickerMode, type DatePickerProps, type DatePreset, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, EmailInput, type EmailInputProps, EmptyState, type EmptyStateProps, FAB_EDGE_MARGIN, FAB_SIZE, FilePicker, type FilePickerProps, FileUploadZone, type FileUploadZoneProps, type FloatingAction, FloatingButton, type FloatingButtonProps, type FloatingSafeArea, Gantt, type GanttBand, type GanttBar, type GanttDay, GanttDot, type GanttProps, type GanttRow, GanttSwatch, type HeaderCheckState, type HexColor, HistoryButton, type HistoryButtonProps, type HistoryChange, HistoryDrawer, type HistoryDrawerProps, type HistoryEntry, type HistoryFilter, HistoryList, type HistoryListProps, Icon, IconBadge, type IconBadgeProps, type IconColor, type IconFamily, type IconProps, type IconSize, type IconTabItem, IconTabs, type IconTabsProps, IconTooltip, type IconTooltipProps, type IconVariant, Image, type ImageProps, InfoTooltip, type InfoTooltipProps, type InfoTooltipVariant, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, type ItemMediaProps, type ItemProps, ItemTitle, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, Message, MessageDateSeparator, type MessageDateSeparatorProps, type MessageProps, MessageScroller, type MessageScrollerProps, type MessageSeparatorTone, type MessageVariant, MetricCard, type MetricCardProps, Modal, ModalBody, ModalClose, ModalDescription, ModalFooter, ModalHeader, type ModalProps, ModalTitle, type MultiSelectProps, type OptimizeImageOptions, type OptimizeImageResult, PageContainer, type PageContainerProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PdfPreview, type PdfPreviewProps, PhoneInput, type PhoneInputMeta, type PhoneInputProps, Popover, type PopoverMenuItem, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressMarker, type ProgressSegment, Radio, type RadioOption, type RadioProps, type RowId, type RowSelection, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectGroup, type SelectItem, type SelectOption, type SelectProps, Sidebar, SidebarActionCard, type SidebarActionCardProps, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuSearchInput, type SidebarMenuSearchInputProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarSupportInfo, type SidebarSupportInfoProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserMenu, type SidebarUserMenuAction, type SidebarUserMenuLeafAction, type SidebarUserMenuProps, type SingleSelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Stepper, type StepperProps, Switch, type SwitchProps, TOUR_TARGET_ATTRIBUTE, type TabItem, Table, type TableAction, TableActionsCell, type TableActionsCellProps, type TableAlertAction, TableAlertRow, type TableAlertRowProps, type TableAlertTone, TableCell, type TableCellProps, type TableCellTheme, TableClientCell, type TableClientCellProps, type TableColumnsAlign, type TableEmptyState, TableExpandedRow, type TableExpandedRowProps, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, TablePersonCell, type TablePersonCellProps, type TableProps, TableRow, type TableRowProps, TableSectionRow, type TableSectionRowProps, TableSelectCell, type TableSelectCellProps, TableSelectHeaderCell, type TableSelectHeaderCellProps, type TableSelection, TableStatusCell, type TableStatusCellProps, TableSubgroupRow, type TableSubgroupRowProps, type TableToolbarProps, type TableToolbarSearch, type TableToolbarStatusFilter, type TableVariant, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagLevelPickerSize, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Tile, type TileProps, type TileVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, Tour, type TourCloseReason, type TourLabels, type TourPlacement, type TourProps, type TourStep, TourTarget, type TourTargetProps, type UseRowSelectionOptions, VEHICLE_DAMAGE_ZONES, VehicleDamageMap, type VehicleDamageMapProps, type VehicleDamageMark, type VehicleDamageZone, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, buttonGroupVariants, buttonVariants, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVideoDuration, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getElapsedTime, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getPastelColorPair, getRelativeTime, isHoliday, isSameDay, isolateCity, linkVariants, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize, useRowSelection };
|
|
2356
|
+
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Banner, type BannerAction, type BannerJustify, type BannerProps, type BannerToggle, Box, type BoxProps, Bulk, type BulkProps, type BulkSection, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, ColorTokenPicker, type ColorTokenPickerProps, DatePicker, type DatePickerMode, type DatePickerProps, type DatePreset, Divider, type DividerProps, Drawer, DrawerBody, DrawerClose, DrawerDescription, type DrawerDirection, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, EmailInput, type EmailInputProps, EmptyState, type EmptyStateProps, FAB_EDGE_MARGIN, FAB_SIZE, FilePicker, type FilePickerProps, FileUploadZone, type FileUploadZoneProps, type FloatingAction, FloatingButton, type FloatingButtonProps, type FloatingSafeArea, Gantt, type GanttBand, type GanttBar, type GanttDay, GanttDot, type GanttProps, type GanttRow, GanttSwatch, type HeaderCheckState, type HexColor, HistoryButton, type HistoryButtonProps, type HistoryChange, HistoryDrawer, type HistoryDrawerProps, type HistoryEntry, type HistoryFilter, HistoryList, type HistoryListProps, Icon, IconBadge, type IconBadgeProps, type IconColor, type IconFamily, type IconProps, type IconSize, type IconTabItem, IconTabs, type IconTabsProps, IconTooltip, type IconTooltipProps, type IconVariant, Image, type ImageProps, InfoTooltip, type InfoTooltipProps, type InfoTooltipVariant, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemMedia, type ItemMediaProps, type ItemProps, ItemTitle, Label, type LabelProps, Layout, type LayoutProps, Link, type LinkProps, Message, MessageDateSeparator, type MessageDateSeparatorProps, type MessageProps, MessageScroller, type MessageScrollerProps, type MessageSeparatorTone, type MessageVariant, MetricCard, type MetricCardProps, Modal, ModalBody, ModalClose, ModalDescription, ModalFooter, ModalHeader, type ModalProps, ModalTitle, type MultiSelectProps, type OptimizeImageOptions, type OptimizeImageResult, PageContainer, type PageContainerProps, Pagination, type PaginationProps, PasswordInput, type PasswordInputProps, PdfPreview, type PdfPreviewProps, PhoneInput, type PhoneInputMeta, type PhoneInputProps, Popover, type PopoverMenuItem, type PopoverProps, ProgressBar, type ProgressBarProps, type ProgressMarker, type ProgressSegment, Radio, type RadioOption, type RadioProps, type RowId, type RowSelection, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectGroup, type SelectItem, type SelectOption, type SelectProps, Sidebar, SidebarActionCard, type SidebarActionCardProps, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuSearchInput, type SidebarMenuSearchInputProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarMenuSubItemProps, type SidebarMenuSubProps, type SidebarProps, SidebarSupportInfo, type SidebarSupportInfoProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserMenu, type SidebarUserMenuAction, type SidebarUserMenuLeafAction, type SidebarUserMenuProps, type SingleSelectProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, type SpinnerSize, Stepper, type StepperProps, Switch, type SwitchProps, TOUR_TARGET_ATTRIBUTE, type TabItem, Table, type TableAction, TableActionsCell, type TableActionsCellProps, type TableAlertAction, TableAlertRow, type TableAlertRowProps, type TableAlertTone, TableCell, type TableCellProps, type TableCellTheme, TableClientCell, type TableClientCellProps, type TableColumnsAlign, type TableEmptyState, TableExpandedRow, type TableExpandedRowProps, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, TablePersonCell, type TablePersonCellProps, type TableProps, TableRow, type TableRowProps, TableSectionRow, type TableSectionRowProps, TableSelectCell, type TableSelectCellProps, TableSelectHeaderCell, type TableSelectHeaderCellProps, type TableSelection, TableStatusCell, type TableStatusCellProps, TableSubgroupRow, type TableSubgroupRowProps, type TableToolbarProps, type TableToolbarSearch, type TableToolbarStatusFilter, type TableVariant, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagLevelPickerSize, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Tile, type TileProps, type TileVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, Tour, type TourCloseReason, type TourLabels, type TourPlacement, type TourProps, type TourStep, TourTarget, type TourTargetProps, type UseRowSelectionOptions, VEHICLE_DAMAGE_ZONES, VehicleDamageMap, type VehicleDamageMapProps, type VehicleDamageMapSideLabels, type VehicleDamageMark, type VehicleDamageZone, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, buttonGroupVariants, buttonVariants, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVideoDuration, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getElapsedTime, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getPastelColorPair, getRelativeTime, isHoliday, isSameDay, isolateCity, linkVariants, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize, useRowSelection };
|
package/dist/ui/index.js
CHANGED
|
@@ -9776,36 +9776,39 @@ var DatePicker = ({
|
|
|
9776
9776
|
// src/ui/components/ui/VehicleDamageMap.tsx
|
|
9777
9777
|
var import_react65 = require("react");
|
|
9778
9778
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
9779
|
-
var WIDTH =
|
|
9780
|
-
var HEIGHT =
|
|
9779
|
+
var WIDTH = 240;
|
|
9780
|
+
var HEIGHT = 140;
|
|
9781
9781
|
var ZONE_POSITIONS = {
|
|
9782
|
-
front: [
|
|
9783
|
-
hood: [
|
|
9784
|
-
windshield: [
|
|
9785
|
-
roof: [
|
|
9786
|
-
trunk: [
|
|
9787
|
-
rear: [
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9782
|
+
front: [32, 70],
|
|
9783
|
+
hood: [62, 70],
|
|
9784
|
+
windshield: [86, 70],
|
|
9785
|
+
roof: [128, 70],
|
|
9786
|
+
trunk: [188, 70],
|
|
9787
|
+
rear: [208, 70],
|
|
9788
|
+
frontRightCorner: [44, 36],
|
|
9789
|
+
frontLeftCorner: [44, 104],
|
|
9790
|
+
frontRightWheel: [66, 25],
|
|
9791
|
+
frontLeftWheel: [66, 115],
|
|
9792
|
+
frontRightSide: [104, 31],
|
|
9793
|
+
frontLeftSide: [104, 109],
|
|
9794
|
+
rearRightSide: [146, 31],
|
|
9795
|
+
rearLeftSide: [146, 109],
|
|
9796
|
+
rearRightWheel: [174, 25],
|
|
9797
|
+
rearLeftWheel: [174, 115],
|
|
9798
|
+
rearRightCorner: [196, 36],
|
|
9799
|
+
rearLeftCorner: [196, 104]
|
|
9800
9800
|
};
|
|
9801
9801
|
var VEHICLE_DAMAGE_ZONES = Object.keys(
|
|
9802
9802
|
ZONE_POSITIONS
|
|
9803
9803
|
);
|
|
9804
9804
|
var TONES = {
|
|
9805
9805
|
danger: colors.red_500,
|
|
9806
|
-
warning: colors.orange_500
|
|
9806
|
+
warning: colors.orange_500,
|
|
9807
|
+
neutral: colors.grey_500
|
|
9807
9808
|
};
|
|
9808
|
-
var VehicleOutline = (
|
|
9809
|
+
var VehicleOutline = ({
|
|
9810
|
+
sideLabels
|
|
9811
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
9809
9812
|
"svg",
|
|
9810
9813
|
{
|
|
9811
9814
|
viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
|
|
@@ -9813,39 +9816,69 @@ var VehicleOutline = () => /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
|
9813
9816
|
"aria-hidden": true,
|
|
9814
9817
|
children: [
|
|
9815
9818
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("g", { fill: colors.grey_600, children: [
|
|
9816
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "
|
|
9817
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "
|
|
9818
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "
|
|
9819
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "
|
|
9819
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
|
|
9820
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
|
|
9821
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
|
|
9822
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
|
|
9820
9823
|
] }),
|
|
9821
9824
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
|
|
9822
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ellipse", { cx: "
|
|
9823
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ellipse", { cx: "
|
|
9824
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "
|
|
9825
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
|
|
9826
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
|
|
9827
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "M34 48 Q34 28 58 28 H184 Q206 28 206 48 V92 Q206 112 184 112 H58 Q34 112 34 92 Z" })
|
|
9825
9828
|
] }),
|
|
9826
9829
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
|
|
9827
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "
|
|
9828
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "
|
|
9830
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
|
|
9831
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
|
|
9829
9832
|
] }),
|
|
9830
9833
|
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9831
9834
|
"rect",
|
|
9832
9835
|
{
|
|
9833
|
-
x: "
|
|
9834
|
-
y: "
|
|
9835
|
-
width: "
|
|
9836
|
-
height: "
|
|
9837
|
-
rx: "
|
|
9836
|
+
x: "102",
|
|
9837
|
+
y: "48",
|
|
9838
|
+
width: "60",
|
|
9839
|
+
height: "44",
|
|
9840
|
+
rx: "6",
|
|
9838
9841
|
fill: colors.grey_100,
|
|
9839
9842
|
stroke: colors.grey_400,
|
|
9840
9843
|
strokeWidth: "1"
|
|
9841
9844
|
}
|
|
9845
|
+
),
|
|
9846
|
+
sideLabels && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
9847
|
+
"g",
|
|
9848
|
+
{
|
|
9849
|
+
fill: colors.grey_500,
|
|
9850
|
+
fontSize: "7",
|
|
9851
|
+
fontWeight: "600",
|
|
9852
|
+
textAnchor: "middle",
|
|
9853
|
+
letterSpacing: "0.5",
|
|
9854
|
+
children: [
|
|
9855
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
|
|
9856
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
|
|
9857
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
|
|
9858
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
|
|
9859
|
+
]
|
|
9860
|
+
}
|
|
9842
9861
|
)
|
|
9843
9862
|
]
|
|
9844
9863
|
}
|
|
9845
9864
|
);
|
|
9846
9865
|
var VehicleDamageMap = (0, import_react65.forwardRef)(
|
|
9847
9866
|
(_a, ref) => {
|
|
9848
|
-
var _b = _a, {
|
|
9867
|
+
var _b = _a, {
|
|
9868
|
+
marks,
|
|
9869
|
+
sideLabels,
|
|
9870
|
+
selectedZone,
|
|
9871
|
+
onZoneClick,
|
|
9872
|
+
width = 200,
|
|
9873
|
+
className
|
|
9874
|
+
} = _b, rest = __objRest(_b, [
|
|
9875
|
+
"marks",
|
|
9876
|
+
"sideLabels",
|
|
9877
|
+
"selectedZone",
|
|
9878
|
+
"onZoneClick",
|
|
9879
|
+
"width",
|
|
9880
|
+
"className"
|
|
9881
|
+
]);
|
|
9849
9882
|
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
9850
9883
|
"div",
|
|
9851
9884
|
__spreadProps(__spreadValues({
|
|
@@ -9854,7 +9887,7 @@ var VehicleDamageMap = (0, import_react65.forwardRef)(
|
|
|
9854
9887
|
style: { width, height: width * HEIGHT / WIDTH }
|
|
9855
9888
|
}, rest), {
|
|
9856
9889
|
children: [
|
|
9857
|
-
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(VehicleOutline, {}),
|
|
9890
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(VehicleOutline, { sideLabels }),
|
|
9858
9891
|
marks.map((mark) => {
|
|
9859
9892
|
var _a2, _b2, _c;
|
|
9860
9893
|
const [x, y] = ZONE_POSITIONS[mark.zone];
|
|
@@ -9869,7 +9902,6 @@ var VehicleDamageMap = (0, import_react65.forwardRef)(
|
|
|
9869
9902
|
backgroundColor: TONES[(_a2 = mark.tone) != null ? _a2 : "danger"],
|
|
9870
9903
|
boxShadow: selected ? `0 0 0 2px ${colors.blue_950}` : void 0
|
|
9871
9904
|
};
|
|
9872
|
-
const content = mark.count && mark.count > 1 ? mark.count : null;
|
|
9873
9905
|
const pin = onZoneClick ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9874
9906
|
"button",
|
|
9875
9907
|
{
|
|
@@ -9879,7 +9911,7 @@ var VehicleDamageMap = (0, import_react65.forwardRef)(
|
|
|
9879
9911
|
onClick: () => onZoneClick(mark.zone),
|
|
9880
9912
|
className: pinClassName,
|
|
9881
9913
|
style: pinStyle,
|
|
9882
|
-
children: content
|
|
9914
|
+
children: mark.content
|
|
9883
9915
|
}
|
|
9884
9916
|
) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
9885
9917
|
"span",
|
|
@@ -9888,7 +9920,7 @@ var VehicleDamageMap = (0, import_react65.forwardRef)(
|
|
|
9888
9920
|
"aria-label": (_c = mark.label) != null ? _c : mark.zone,
|
|
9889
9921
|
className: pinClassName,
|
|
9890
9922
|
style: pinStyle,
|
|
9891
|
-
children: content
|
|
9923
|
+
children: mark.content
|
|
9892
9924
|
}
|
|
9893
9925
|
);
|
|
9894
9926
|
return mark.label ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("span", { children: pin }, mark.zone);
|
package/dist/ui/index.mjs
CHANGED
|
@@ -9600,36 +9600,39 @@ var DatePicker = ({
|
|
|
9600
9600
|
// src/ui/components/ui/VehicleDamageMap.tsx
|
|
9601
9601
|
import { forwardRef as forwardRef36 } from "react";
|
|
9602
9602
|
import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
9603
|
-
var WIDTH =
|
|
9604
|
-
var HEIGHT =
|
|
9603
|
+
var WIDTH = 240;
|
|
9604
|
+
var HEIGHT = 140;
|
|
9605
9605
|
var ZONE_POSITIONS = {
|
|
9606
|
-
front: [
|
|
9607
|
-
hood: [
|
|
9608
|
-
windshield: [
|
|
9609
|
-
roof: [
|
|
9610
|
-
trunk: [
|
|
9611
|
-
rear: [
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9606
|
+
front: [32, 70],
|
|
9607
|
+
hood: [62, 70],
|
|
9608
|
+
windshield: [86, 70],
|
|
9609
|
+
roof: [128, 70],
|
|
9610
|
+
trunk: [188, 70],
|
|
9611
|
+
rear: [208, 70],
|
|
9612
|
+
frontRightCorner: [44, 36],
|
|
9613
|
+
frontLeftCorner: [44, 104],
|
|
9614
|
+
frontRightWheel: [66, 25],
|
|
9615
|
+
frontLeftWheel: [66, 115],
|
|
9616
|
+
frontRightSide: [104, 31],
|
|
9617
|
+
frontLeftSide: [104, 109],
|
|
9618
|
+
rearRightSide: [146, 31],
|
|
9619
|
+
rearLeftSide: [146, 109],
|
|
9620
|
+
rearRightWheel: [174, 25],
|
|
9621
|
+
rearLeftWheel: [174, 115],
|
|
9622
|
+
rearRightCorner: [196, 36],
|
|
9623
|
+
rearLeftCorner: [196, 104]
|
|
9624
9624
|
};
|
|
9625
9625
|
var VEHICLE_DAMAGE_ZONES = Object.keys(
|
|
9626
9626
|
ZONE_POSITIONS
|
|
9627
9627
|
);
|
|
9628
9628
|
var TONES = {
|
|
9629
9629
|
danger: colors.red_500,
|
|
9630
|
-
warning: colors.orange_500
|
|
9630
|
+
warning: colors.orange_500,
|
|
9631
|
+
neutral: colors.grey_500
|
|
9631
9632
|
};
|
|
9632
|
-
var VehicleOutline = (
|
|
9633
|
+
var VehicleOutline = ({
|
|
9634
|
+
sideLabels
|
|
9635
|
+
}) => /* @__PURE__ */ jsxs69(
|
|
9633
9636
|
"svg",
|
|
9634
9637
|
{
|
|
9635
9638
|
viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
|
|
@@ -9637,39 +9640,69 @@ var VehicleOutline = () => /* @__PURE__ */ jsxs69(
|
|
|
9637
9640
|
"aria-hidden": true,
|
|
9638
9641
|
children: [
|
|
9639
9642
|
/* @__PURE__ */ jsxs69("g", { fill: colors.grey_600, children: [
|
|
9640
|
-
/* @__PURE__ */ jsx117("rect", { x: "
|
|
9641
|
-
/* @__PURE__ */ jsx117("rect", { x: "
|
|
9642
|
-
/* @__PURE__ */ jsx117("rect", { x: "
|
|
9643
|
-
/* @__PURE__ */ jsx117("rect", { x: "
|
|
9643
|
+
/* @__PURE__ */ jsx117("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
|
|
9644
|
+
/* @__PURE__ */ jsx117("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
|
|
9645
|
+
/* @__PURE__ */ jsx117("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
|
|
9646
|
+
/* @__PURE__ */ jsx117("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
|
|
9644
9647
|
] }),
|
|
9645
9648
|
/* @__PURE__ */ jsxs69("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
|
|
9646
|
-
/* @__PURE__ */ jsx117("ellipse", { cx: "
|
|
9647
|
-
/* @__PURE__ */ jsx117("ellipse", { cx: "
|
|
9648
|
-
/* @__PURE__ */ jsx117("path", { d: "
|
|
9649
|
+
/* @__PURE__ */ jsx117("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
|
|
9650
|
+
/* @__PURE__ */ jsx117("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
|
|
9651
|
+
/* @__PURE__ */ jsx117("path", { d: "M34 48 Q34 28 58 28 H184 Q206 28 206 48 V92 Q206 112 184 112 H58 Q34 112 34 92 Z" })
|
|
9649
9652
|
] }),
|
|
9650
9653
|
/* @__PURE__ */ jsxs69("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
|
|
9651
|
-
/* @__PURE__ */ jsx117("path", { d: "
|
|
9652
|
-
/* @__PURE__ */ jsx117("path", { d: "
|
|
9654
|
+
/* @__PURE__ */ jsx117("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
|
|
9655
|
+
/* @__PURE__ */ jsx117("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
|
|
9653
9656
|
] }),
|
|
9654
9657
|
/* @__PURE__ */ jsx117(
|
|
9655
9658
|
"rect",
|
|
9656
9659
|
{
|
|
9657
|
-
x: "
|
|
9658
|
-
y: "
|
|
9659
|
-
width: "
|
|
9660
|
-
height: "
|
|
9661
|
-
rx: "
|
|
9660
|
+
x: "102",
|
|
9661
|
+
y: "48",
|
|
9662
|
+
width: "60",
|
|
9663
|
+
height: "44",
|
|
9664
|
+
rx: "6",
|
|
9662
9665
|
fill: colors.grey_100,
|
|
9663
9666
|
stroke: colors.grey_400,
|
|
9664
9667
|
strokeWidth: "1"
|
|
9665
9668
|
}
|
|
9669
|
+
),
|
|
9670
|
+
sideLabels && /* @__PURE__ */ jsxs69(
|
|
9671
|
+
"g",
|
|
9672
|
+
{
|
|
9673
|
+
fill: colors.grey_500,
|
|
9674
|
+
fontSize: "7",
|
|
9675
|
+
fontWeight: "600",
|
|
9676
|
+
textAnchor: "middle",
|
|
9677
|
+
letterSpacing: "0.5",
|
|
9678
|
+
children: [
|
|
9679
|
+
/* @__PURE__ */ jsx117("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
|
|
9680
|
+
/* @__PURE__ */ jsx117("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
|
|
9681
|
+
/* @__PURE__ */ jsx117("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
|
|
9682
|
+
/* @__PURE__ */ jsx117("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
|
|
9683
|
+
]
|
|
9684
|
+
}
|
|
9666
9685
|
)
|
|
9667
9686
|
]
|
|
9668
9687
|
}
|
|
9669
9688
|
);
|
|
9670
9689
|
var VehicleDamageMap = forwardRef36(
|
|
9671
9690
|
(_a, ref) => {
|
|
9672
|
-
var _b = _a, {
|
|
9691
|
+
var _b = _a, {
|
|
9692
|
+
marks,
|
|
9693
|
+
sideLabels,
|
|
9694
|
+
selectedZone,
|
|
9695
|
+
onZoneClick,
|
|
9696
|
+
width = 200,
|
|
9697
|
+
className
|
|
9698
|
+
} = _b, rest = __objRest(_b, [
|
|
9699
|
+
"marks",
|
|
9700
|
+
"sideLabels",
|
|
9701
|
+
"selectedZone",
|
|
9702
|
+
"onZoneClick",
|
|
9703
|
+
"width",
|
|
9704
|
+
"className"
|
|
9705
|
+
]);
|
|
9673
9706
|
return /* @__PURE__ */ jsxs69(
|
|
9674
9707
|
"div",
|
|
9675
9708
|
__spreadProps(__spreadValues({
|
|
@@ -9678,7 +9711,7 @@ var VehicleDamageMap = forwardRef36(
|
|
|
9678
9711
|
style: { width, height: width * HEIGHT / WIDTH }
|
|
9679
9712
|
}, rest), {
|
|
9680
9713
|
children: [
|
|
9681
|
-
/* @__PURE__ */ jsx117(VehicleOutline, {}),
|
|
9714
|
+
/* @__PURE__ */ jsx117(VehicleOutline, { sideLabels }),
|
|
9682
9715
|
marks.map((mark) => {
|
|
9683
9716
|
var _a2, _b2, _c;
|
|
9684
9717
|
const [x, y] = ZONE_POSITIONS[mark.zone];
|
|
@@ -9693,7 +9726,6 @@ var VehicleDamageMap = forwardRef36(
|
|
|
9693
9726
|
backgroundColor: TONES[(_a2 = mark.tone) != null ? _a2 : "danger"],
|
|
9694
9727
|
boxShadow: selected ? `0 0 0 2px ${colors.blue_950}` : void 0
|
|
9695
9728
|
};
|
|
9696
|
-
const content = mark.count && mark.count > 1 ? mark.count : null;
|
|
9697
9729
|
const pin = onZoneClick ? /* @__PURE__ */ jsx117(
|
|
9698
9730
|
"button",
|
|
9699
9731
|
{
|
|
@@ -9703,7 +9735,7 @@ var VehicleDamageMap = forwardRef36(
|
|
|
9703
9735
|
onClick: () => onZoneClick(mark.zone),
|
|
9704
9736
|
className: pinClassName,
|
|
9705
9737
|
style: pinStyle,
|
|
9706
|
-
children: content
|
|
9738
|
+
children: mark.content
|
|
9707
9739
|
}
|
|
9708
9740
|
) : /* @__PURE__ */ jsx117(
|
|
9709
9741
|
"span",
|
|
@@ -9712,7 +9744,7 @@ var VehicleDamageMap = forwardRef36(
|
|
|
9712
9744
|
"aria-label": (_c = mark.label) != null ? _c : mark.zone,
|
|
9713
9745
|
className: pinClassName,
|
|
9714
9746
|
style: pinStyle,
|
|
9715
|
-
children: content
|
|
9747
|
+
children: mark.content
|
|
9716
9748
|
}
|
|
9717
9749
|
);
|
|
9718
9750
|
return mark.label ? /* @__PURE__ */ jsx117(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ jsx117("span", { children: pin }, mark.zone);
|