design-zystem 1.0.459 → 1.0.460

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.
@@ -2172,6 +2172,17 @@ interface DatePickerProps {
2172
2172
  /** Construit sur `react-day-picker` — la lib derrière le vrai `Calendar`/`DatePicker` de shadcn. */
2173
2173
  declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
2174
2174
 
2175
+ interface TimeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
2176
+ value: string;
2177
+ onChange: (value: string) => void;
2178
+ }
2179
+ /**
2180
+ * Champ heure en texte libre (`HH:mm`), icône horloge posée dans le champ —
2181
+ * masque écrit à la main plutôt qu'une lib tierce, même logique que le texte
2182
+ * tapé/collé de `DatePicker` (`autoFormatTypedInput`).
2183
+ */
2184
+ declare const TimeInput: react.ForwardRefExoticComponent<TimeInputProps & react.RefAttributes<HTMLInputElement>>;
2185
+
2175
2186
  declare const ZONE_POSITIONS: {
2176
2187
  readonly front: readonly [32, 70];
2177
2188
  readonly hood: readonly [62, 70];
@@ -2471,4 +2482,4 @@ interface TourTargetProps {
2471
2482
  declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
2472
2483
  declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
2473
2484
 
2474
- export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarEditOverlay, type AvatarEditOverlayProps, 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, GlobalSearch, GlobalSearchInput, GlobalSearchLoadMore, type GlobalSearchLoadMoreProps, type GlobalSearchProps, GlobalSearchResults, GlobalSearchRow, type GlobalSearchRowProps, GlobalSearchSection, type GlobalSearchSectionProps, 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, Slider, type SliderProps, 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 };
2485
+ export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarEditOverlay, type AvatarEditOverlayProps, 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, GlobalSearch, GlobalSearchInput, GlobalSearchLoadMore, type GlobalSearchLoadMoreProps, type GlobalSearchProps, GlobalSearchResults, GlobalSearchRow, type GlobalSearchRowProps, GlobalSearchSection, type GlobalSearchSectionProps, 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, Slider, type SliderProps, 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, TimeInput, type TimeInputProps, 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 };
@@ -2172,6 +2172,17 @@ interface DatePickerProps {
2172
2172
  /** Construit sur `react-day-picker` — la lib derrière le vrai `Calendar`/`DatePicker` de shadcn. */
2173
2173
  declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
2174
2174
 
2175
+ interface TimeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> {
2176
+ value: string;
2177
+ onChange: (value: string) => void;
2178
+ }
2179
+ /**
2180
+ * Champ heure en texte libre (`HH:mm`), icône horloge posée dans le champ —
2181
+ * masque écrit à la main plutôt qu'une lib tierce, même logique que le texte
2182
+ * tapé/collé de `DatePicker` (`autoFormatTypedInput`).
2183
+ */
2184
+ declare const TimeInput: react.ForwardRefExoticComponent<TimeInputProps & react.RefAttributes<HTMLInputElement>>;
2185
+
2175
2186
  declare const ZONE_POSITIONS: {
2176
2187
  readonly front: readonly [32, 70];
2177
2188
  readonly hood: readonly [62, 70];
@@ -2471,4 +2482,4 @@ interface TourTargetProps {
2471
2482
  declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
2472
2483
  declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
2473
2484
 
2474
- export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarEditOverlay, type AvatarEditOverlayProps, 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, GlobalSearch, GlobalSearchInput, GlobalSearchLoadMore, type GlobalSearchLoadMoreProps, type GlobalSearchProps, GlobalSearchResults, GlobalSearchRow, type GlobalSearchRowProps, GlobalSearchSection, type GlobalSearchSectionProps, 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, Slider, type SliderProps, 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 };
2485
+ export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, AudioPlayer, type AudioPlayerProps, Avatar, AvatarBadge, type AvatarBadgeConfig, type AvatarBadgeProps, AvatarEditOverlay, type AvatarEditOverlayProps, 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, GlobalSearch, GlobalSearchInput, GlobalSearchLoadMore, type GlobalSearchLoadMoreProps, type GlobalSearchProps, GlobalSearchResults, GlobalSearchRow, type GlobalSearchRowProps, GlobalSearchSection, type GlobalSearchSectionProps, 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, Slider, type SliderProps, 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, TimeInput, type TimeInputProps, 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
@@ -196,6 +196,7 @@ __export(index_exports, {
196
196
  Text: () => Text,
197
197
  Textarea: () => Textarea,
198
198
  Tile: () => Tile,
199
+ TimeInput: () => TimeInput,
199
200
  Timeline: () => Timeline,
200
201
  Toaster: () => Toaster,
201
202
  Tooltip: () => Tooltip,
@@ -10232,9 +10233,46 @@ var DatePicker = ({
10232
10233
  ] });
10233
10234
  };
10234
10235
 
10235
- // src/ui/components/ui/VehicleDamageMap.tsx
10236
+ // src/ui/components/ui/TimeInput.tsx
10236
10237
  var import_react67 = require("react");
10237
10238
  var import_jsx_runtime120 = require("react/jsx-runtime");
10239
+ var formatDigitsAsTime = (digits) => [digits.slice(0, 2), digits.slice(2, 4)].filter(Boolean).join(":");
10240
+ var TimeInput = (0, import_react67.forwardRef)(
10241
+ (_a, ref) => {
10242
+ var _b = _a, { value, onChange, className } = _b, props = __objRest(_b, ["value", "onChange", "className"]);
10243
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "relative w-full", children: [
10244
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
10245
+ Input,
10246
+ __spreadValues({
10247
+ ref,
10248
+ type: "text",
10249
+ inputMode: "numeric",
10250
+ placeholder: "HH:mm",
10251
+ value,
10252
+ onChange: (e) => {
10253
+ const digits = e.target.value.replace(/\D/g, "").slice(0, 4);
10254
+ onChange(formatDigitsAsTime(digits));
10255
+ },
10256
+ className: cn("pr-8", className)
10257
+ }, props)
10258
+ ),
10259
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
10260
+ Icon,
10261
+ {
10262
+ name: "clock",
10263
+ size: "s",
10264
+ color: "grey-500",
10265
+ className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2"
10266
+ }
10267
+ )
10268
+ ] });
10269
+ }
10270
+ );
10271
+ TimeInput.displayName = "TimeInput";
10272
+
10273
+ // src/ui/components/ui/VehicleDamageMap.tsx
10274
+ var import_react68 = require("react");
10275
+ var import_jsx_runtime121 = require("react/jsx-runtime");
10238
10276
  var WIDTH = 240;
10239
10277
  var HEIGHT = 140;
10240
10278
  var ZONE_POSITIONS = {
@@ -10267,29 +10305,29 @@ var TONES = {
10267
10305
  };
10268
10306
  var VehicleOutline = ({
10269
10307
  sideLabels
10270
- }) => /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
10308
+ }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
10271
10309
  "svg",
10272
10310
  {
10273
10311
  viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
10274
10312
  className: "absolute inset-0 h-full w-full",
10275
10313
  "aria-hidden": true,
10276
10314
  children: [
10277
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("g", { fill: colors.grey_600, children: [
10278
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
10279
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
10280
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
10281
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
10315
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("g", { fill: colors.grey_600, children: [
10316
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
10317
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
10318
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
10319
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
10282
10320
  ] }),
10283
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
10284
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
10285
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
10286
- /* @__PURE__ */ (0, import_jsx_runtime120.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" })
10321
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
10322
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
10323
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
10324
+ /* @__PURE__ */ (0, import_jsx_runtime121.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" })
10287
10325
  ] }),
10288
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
10289
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
10290
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
10326
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
10327
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
10328
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
10291
10329
  ] }),
10292
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
10330
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
10293
10331
  "rect",
10294
10332
  {
10295
10333
  x: "102",
@@ -10302,7 +10340,7 @@ var VehicleOutline = ({
10302
10340
  strokeWidth: "1"
10303
10341
  }
10304
10342
  ),
10305
- sideLabels && /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
10343
+ sideLabels && /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
10306
10344
  "g",
10307
10345
  {
10308
10346
  fill: colors.grey_500,
@@ -10311,17 +10349,17 @@ var VehicleOutline = ({
10311
10349
  textAnchor: "middle",
10312
10350
  letterSpacing: "0.5",
10313
10351
  children: [
10314
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
10315
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
10316
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
10317
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
10352
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
10353
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
10354
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
10355
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
10318
10356
  ]
10319
10357
  }
10320
10358
  )
10321
10359
  ]
10322
10360
  }
10323
10361
  );
10324
- var VehicleDamageMap = (0, import_react67.forwardRef)(
10362
+ var VehicleDamageMap = (0, import_react68.forwardRef)(
10325
10363
  (_a, ref) => {
10326
10364
  var _b = _a, {
10327
10365
  marks,
@@ -10338,7 +10376,7 @@ var VehicleDamageMap = (0, import_react67.forwardRef)(
10338
10376
  "width",
10339
10377
  "className"
10340
10378
  ]);
10341
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
10379
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
10342
10380
  "div",
10343
10381
  __spreadProps(__spreadValues({
10344
10382
  ref,
@@ -10346,7 +10384,7 @@ var VehicleDamageMap = (0, import_react67.forwardRef)(
10346
10384
  style: { width, height: width * HEIGHT / WIDTH }
10347
10385
  }, rest), {
10348
10386
  children: [
10349
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(VehicleOutline, { sideLabels }),
10387
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(VehicleOutline, { sideLabels }),
10350
10388
  marks.map((mark) => {
10351
10389
  var _a2, _b2, _c;
10352
10390
  const [x, y] = ZONE_POSITIONS[mark.zone];
@@ -10361,7 +10399,7 @@ var VehicleDamageMap = (0, import_react67.forwardRef)(
10361
10399
  backgroundColor: TONES[(_a2 = mark.tone) != null ? _a2 : "danger"],
10362
10400
  boxShadow: selected ? `0 0 0 2px ${colors.blue_950}` : void 0
10363
10401
  };
10364
- const pin = onZoneClick ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
10402
+ const pin = onZoneClick ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
10365
10403
  "button",
10366
10404
  {
10367
10405
  type: "button",
@@ -10372,7 +10410,7 @@ var VehicleDamageMap = (0, import_react67.forwardRef)(
10372
10410
  style: pinStyle,
10373
10411
  children: mark.content
10374
10412
  }
10375
- ) : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
10413
+ ) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
10376
10414
  "span",
10377
10415
  {
10378
10416
  role: "img",
@@ -10382,7 +10420,7 @@ var VehicleDamageMap = (0, import_react67.forwardRef)(
10382
10420
  children: mark.content
10383
10421
  }
10384
10422
  );
10385
- return mark.label ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { children: pin }, mark.zone);
10423
+ return mark.label ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { children: pin }, mark.zone);
10386
10424
  })
10387
10425
  ]
10388
10426
  })
@@ -10843,9 +10881,9 @@ var optimizeImage = async (file, desiredBaseName, opts = {}) => {
10843
10881
  };
10844
10882
 
10845
10883
  // src/ui/components/ui/Tour.tsx
10846
- var import_react68 = require("react");
10884
+ var import_react69 = require("react");
10847
10885
  var import_driver = require("driver.js");
10848
- var import_jsx_runtime121 = require("react/jsx-runtime");
10886
+ var import_jsx_runtime122 = require("react/jsx-runtime");
10849
10887
  var TOUR_TARGET_ATTRIBUTE = "data-tour-target";
10850
10888
  var DEFAULT_LABELS = {
10851
10889
  previous: "Pr\xE9c\xE9dent",
@@ -10857,7 +10895,7 @@ var DEFAULT_LABELS = {
10857
10895
  var STAGE_PADDING = 6;
10858
10896
  var GHOST_TRANSITION_MS = 200;
10859
10897
  var HIGHLIGHT_DURATION_MS = 400;
10860
- var TourTarget = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", __spreadProps(__spreadValues({}, { [TOUR_TARGET_ATTRIBUTE]: id }), { className: "contents", children }));
10898
+ var TourTarget = ({ id, children }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", __spreadProps(__spreadValues({}, { [TOUR_TARGET_ATTRIBUTE]: id }), { className: "contents", children }));
10861
10899
  var isContents = (element) => getComputedStyle(element).display === "contents";
10862
10900
  var measure = (element) => {
10863
10901
  if (!isContents(element)) {
@@ -10898,9 +10936,9 @@ var Tour = ({
10898
10936
  const current = steps[step];
10899
10937
  const total = steps.length;
10900
10938
  const isLast = step === total - 1;
10901
- const driverRef = (0, import_react68.useRef)(null);
10902
- const ghostRef = (0, import_react68.useRef)(null);
10903
- const actions = (0, import_react68.useRef)({
10939
+ const driverRef = (0, import_react69.useRef)(null);
10940
+ const ghostRef = (0, import_react69.useRef)(null);
10941
+ const actions = (0, import_react69.useRef)({
10904
10942
  next: () => {
10905
10943
  },
10906
10944
  previous: () => {
@@ -10915,7 +10953,7 @@ var Tour = ({
10915
10953
  },
10916
10954
  close: () => onClose("close")
10917
10955
  };
10918
- (0, import_react68.useEffect)(() => {
10956
+ (0, import_react69.useEffect)(() => {
10919
10957
  if (!open) return;
10920
10958
  const ghost = document.createElement("div");
10921
10959
  ghost.className = "dz-tour-target";
@@ -10941,7 +10979,7 @@ var Tour = ({
10941
10979
  ghostRef.current = null;
10942
10980
  };
10943
10981
  }, [open]);
10944
- (0, import_react68.useEffect)(() => {
10982
+ (0, import_react69.useEffect)(() => {
10945
10983
  if (!open) return;
10946
10984
  const onKeyDown = (event) => {
10947
10985
  if (event.key === "Escape") {
@@ -10953,7 +10991,7 @@ var Tour = ({
10953
10991
  window.addEventListener("keydown", onKeyDown, true);
10954
10992
  return () => window.removeEventListener("keydown", onKeyDown, true);
10955
10993
  }, [open]);
10956
- const view = (0, import_react68.useRef)({ current, text, step, total, isLast });
10994
+ const view = (0, import_react69.useRef)({ current, text, step, total, isLast });
10957
10995
  view.current = { current, text, step, total, isLast };
10958
10996
  const targetKey = [(_a = current == null ? void 0 : current.target) != null ? _a : []].flat().join("|");
10959
10997
  const popoverKey = [
@@ -10966,7 +11004,7 @@ var Tour = ({
10966
11004
  isLast ? text.finish : text.next,
10967
11005
  text.close
10968
11006
  ].join("|");
10969
- (0, import_react68.useEffect)(() => {
11007
+ (0, import_react69.useEffect)(() => {
10970
11008
  const instance = driverRef.current;
10971
11009
  const ghost = ghostRef.current;
10972
11010
  const { current: current2, text: text2, step: step2, total: total2, isLast: isLast2 } = view.current;
@@ -11198,6 +11236,7 @@ var Tour = ({
11198
11236
  Text,
11199
11237
  Textarea,
11200
11238
  Tile,
11239
+ TimeInput,
11201
11240
  Timeline,
11202
11241
  Toaster,
11203
11242
  Tooltip,
package/dist/ui/index.mjs CHANGED
@@ -10048,9 +10048,46 @@ var DatePicker = ({
10048
10048
  ] });
10049
10049
  };
10050
10050
 
10051
- // src/ui/components/ui/VehicleDamageMap.tsx
10051
+ // src/ui/components/ui/TimeInput.tsx
10052
10052
  import { forwardRef as forwardRef38 } from "react";
10053
10053
  import { jsx as jsx120, jsxs as jsxs71 } from "react/jsx-runtime";
10054
+ var formatDigitsAsTime = (digits) => [digits.slice(0, 2), digits.slice(2, 4)].filter(Boolean).join(":");
10055
+ var TimeInput = forwardRef38(
10056
+ (_a, ref) => {
10057
+ var _b = _a, { value, onChange, className } = _b, props = __objRest(_b, ["value", "onChange", "className"]);
10058
+ return /* @__PURE__ */ jsxs71("div", { className: "relative w-full", children: [
10059
+ /* @__PURE__ */ jsx120(
10060
+ Input,
10061
+ __spreadValues({
10062
+ ref,
10063
+ type: "text",
10064
+ inputMode: "numeric",
10065
+ placeholder: "HH:mm",
10066
+ value,
10067
+ onChange: (e) => {
10068
+ const digits = e.target.value.replace(/\D/g, "").slice(0, 4);
10069
+ onChange(formatDigitsAsTime(digits));
10070
+ },
10071
+ className: cn("pr-8", className)
10072
+ }, props)
10073
+ ),
10074
+ /* @__PURE__ */ jsx120(
10075
+ Icon,
10076
+ {
10077
+ name: "clock",
10078
+ size: "s",
10079
+ color: "grey-500",
10080
+ className: "pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2"
10081
+ }
10082
+ )
10083
+ ] });
10084
+ }
10085
+ );
10086
+ TimeInput.displayName = "TimeInput";
10087
+
10088
+ // src/ui/components/ui/VehicleDamageMap.tsx
10089
+ import { forwardRef as forwardRef39 } from "react";
10090
+ import { jsx as jsx121, jsxs as jsxs72 } from "react/jsx-runtime";
10054
10091
  var WIDTH = 240;
10055
10092
  var HEIGHT = 140;
10056
10093
  var ZONE_POSITIONS = {
@@ -10083,29 +10120,29 @@ var TONES = {
10083
10120
  };
10084
10121
  var VehicleOutline = ({
10085
10122
  sideLabels
10086
- }) => /* @__PURE__ */ jsxs71(
10123
+ }) => /* @__PURE__ */ jsxs72(
10087
10124
  "svg",
10088
10125
  {
10089
10126
  viewBox: `0 0 ${WIDTH} ${HEIGHT}`,
10090
10127
  className: "absolute inset-0 h-full w-full",
10091
10128
  "aria-hidden": true,
10092
10129
  children: [
10093
- /* @__PURE__ */ jsxs71("g", { fill: colors.grey_600, children: [
10094
- /* @__PURE__ */ jsx120("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
10095
- /* @__PURE__ */ jsx120("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
10096
- /* @__PURE__ */ jsx120("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
10097
- /* @__PURE__ */ jsx120("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
10130
+ /* @__PURE__ */ jsxs72("g", { fill: colors.grey_600, children: [
10131
+ /* @__PURE__ */ jsx121("rect", { x: "54", y: "20", width: "26", height: "10", rx: "3" }),
10132
+ /* @__PURE__ */ jsx121("rect", { x: "54", y: "110", width: "26", height: "10", rx: "3" }),
10133
+ /* @__PURE__ */ jsx121("rect", { x: "162", y: "20", width: "26", height: "10", rx: "3" }),
10134
+ /* @__PURE__ */ jsx121("rect", { x: "162", y: "110", width: "26", height: "10", rx: "3" })
10098
10135
  ] }),
10099
- /* @__PURE__ */ jsxs71("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
10100
- /* @__PURE__ */ jsx120("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
10101
- /* @__PURE__ */ jsx120("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
10102
- /* @__PURE__ */ jsx120("path", { d: "M34 48 Q34 28 58 28 H184 Q206 28 206 48 V92 Q206 112 184 112 H58 Q34 112 34 92 Z" })
10136
+ /* @__PURE__ */ jsxs72("g", { fill: colors.grey_200, stroke: colors.grey_400, strokeWidth: "1.5", children: [
10137
+ /* @__PURE__ */ jsx121("ellipse", { cx: "94", cy: "26", rx: "3", ry: "5" }),
10138
+ /* @__PURE__ */ jsx121("ellipse", { cx: "94", cy: "114", rx: "3", ry: "5" }),
10139
+ /* @__PURE__ */ jsx121("path", { d: "M34 48 Q34 28 58 28 H184 Q206 28 206 48 V92 Q206 112 184 112 H58 Q34 112 34 92 Z" })
10103
10140
  ] }),
10104
- /* @__PURE__ */ jsxs71("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
10105
- /* @__PURE__ */ jsx120("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
10106
- /* @__PURE__ */ jsx120("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
10141
+ /* @__PURE__ */ jsxs72("g", { fill: colors.grey_300, stroke: colors.grey_400, strokeWidth: "1", children: [
10142
+ /* @__PURE__ */ jsx121("path", { d: "M78 40 L98 46 V94 L78 100 Q70 70 78 40 Z" }),
10143
+ /* @__PURE__ */ jsx121("path", { d: "M180 42 L166 47 V93 L180 98 Q186 70 180 42 Z" })
10107
10144
  ] }),
10108
- /* @__PURE__ */ jsx120(
10145
+ /* @__PURE__ */ jsx121(
10109
10146
  "rect",
10110
10147
  {
10111
10148
  x: "102",
@@ -10118,7 +10155,7 @@ var VehicleOutline = ({
10118
10155
  strokeWidth: "1"
10119
10156
  }
10120
10157
  ),
10121
- sideLabels && /* @__PURE__ */ jsxs71(
10158
+ sideLabels && /* @__PURE__ */ jsxs72(
10122
10159
  "g",
10123
10160
  {
10124
10161
  fill: colors.grey_500,
@@ -10127,17 +10164,17 @@ var VehicleOutline = ({
10127
10164
  textAnchor: "middle",
10128
10165
  letterSpacing: "0.5",
10129
10166
  children: [
10130
- /* @__PURE__ */ jsx120("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
10131
- /* @__PURE__ */ jsx120("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
10132
- /* @__PURE__ */ jsx120("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
10133
- /* @__PURE__ */ jsx120("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
10167
+ /* @__PURE__ */ jsx121("text", { x: "120", y: "11", children: sideLabels.right.toUpperCase() }),
10168
+ /* @__PURE__ */ jsx121("text", { x: "120", y: "135", children: sideLabels.left.toUpperCase() }),
10169
+ /* @__PURE__ */ jsx121("text", { x: "14", y: "70", transform: "rotate(-90 14 70)", children: sideLabels.front.toUpperCase() }),
10170
+ /* @__PURE__ */ jsx121("text", { x: "226", y: "70", transform: "rotate(90 226 70)", children: sideLabels.rear.toUpperCase() })
10134
10171
  ]
10135
10172
  }
10136
10173
  )
10137
10174
  ]
10138
10175
  }
10139
10176
  );
10140
- var VehicleDamageMap = forwardRef38(
10177
+ var VehicleDamageMap = forwardRef39(
10141
10178
  (_a, ref) => {
10142
10179
  var _b = _a, {
10143
10180
  marks,
@@ -10154,7 +10191,7 @@ var VehicleDamageMap = forwardRef38(
10154
10191
  "width",
10155
10192
  "className"
10156
10193
  ]);
10157
- return /* @__PURE__ */ jsxs71(
10194
+ return /* @__PURE__ */ jsxs72(
10158
10195
  "div",
10159
10196
  __spreadProps(__spreadValues({
10160
10197
  ref,
@@ -10162,7 +10199,7 @@ var VehicleDamageMap = forwardRef38(
10162
10199
  style: { width, height: width * HEIGHT / WIDTH }
10163
10200
  }, rest), {
10164
10201
  children: [
10165
- /* @__PURE__ */ jsx120(VehicleOutline, { sideLabels }),
10202
+ /* @__PURE__ */ jsx121(VehicleOutline, { sideLabels }),
10166
10203
  marks.map((mark) => {
10167
10204
  var _a2, _b2, _c;
10168
10205
  const [x, y] = ZONE_POSITIONS[mark.zone];
@@ -10177,7 +10214,7 @@ var VehicleDamageMap = forwardRef38(
10177
10214
  backgroundColor: TONES[(_a2 = mark.tone) != null ? _a2 : "danger"],
10178
10215
  boxShadow: selected ? `0 0 0 2px ${colors.blue_950}` : void 0
10179
10216
  };
10180
- const pin = onZoneClick ? /* @__PURE__ */ jsx120(
10217
+ const pin = onZoneClick ? /* @__PURE__ */ jsx121(
10181
10218
  "button",
10182
10219
  {
10183
10220
  type: "button",
@@ -10188,7 +10225,7 @@ var VehicleDamageMap = forwardRef38(
10188
10225
  style: pinStyle,
10189
10226
  children: mark.content
10190
10227
  }
10191
- ) : /* @__PURE__ */ jsx120(
10228
+ ) : /* @__PURE__ */ jsx121(
10192
10229
  "span",
10193
10230
  {
10194
10231
  role: "img",
@@ -10198,7 +10235,7 @@ var VehicleDamageMap = forwardRef38(
10198
10235
  children: mark.content
10199
10236
  }
10200
10237
  );
10201
- return mark.label ? /* @__PURE__ */ jsx120(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ jsx120("span", { children: pin }, mark.zone);
10238
+ return mark.label ? /* @__PURE__ */ jsx121(Tooltip, { content: mark.label, children: pin }, mark.zone) : /* @__PURE__ */ jsx121("span", { children: pin }, mark.zone);
10202
10239
  })
10203
10240
  ]
10204
10241
  })
@@ -10661,7 +10698,7 @@ var optimizeImage = async (file, desiredBaseName, opts = {}) => {
10661
10698
  // src/ui/components/ui/Tour.tsx
10662
10699
  import { useEffect as useEffect12, useRef as useRef18 } from "react";
10663
10700
  import { driver } from "driver.js";
10664
- import { jsx as jsx121 } from "react/jsx-runtime";
10701
+ import { jsx as jsx122 } from "react/jsx-runtime";
10665
10702
  var TOUR_TARGET_ATTRIBUTE = "data-tour-target";
10666
10703
  var DEFAULT_LABELS = {
10667
10704
  previous: "Pr\xE9c\xE9dent",
@@ -10673,7 +10710,7 @@ var DEFAULT_LABELS = {
10673
10710
  var STAGE_PADDING = 6;
10674
10711
  var GHOST_TRANSITION_MS = 200;
10675
10712
  var HIGHLIGHT_DURATION_MS = 400;
10676
- var TourTarget = ({ id, children }) => /* @__PURE__ */ jsx121("div", __spreadProps(__spreadValues({}, { [TOUR_TARGET_ATTRIBUTE]: id }), { className: "contents", children }));
10713
+ var TourTarget = ({ id, children }) => /* @__PURE__ */ jsx122("div", __spreadProps(__spreadValues({}, { [TOUR_TARGET_ATTRIBUTE]: id }), { className: "contents", children }));
10677
10714
  var isContents = (element) => getComputedStyle(element).display === "contents";
10678
10715
  var measure = (element) => {
10679
10716
  if (!isContents(element)) {
@@ -11013,6 +11050,7 @@ export {
11013
11050
  Text,
11014
11051
  Textarea,
11015
11052
  Tile,
11053
+ TimeInput,
11016
11054
  Timeline,
11017
11055
  Toaster,
11018
11056
  Tooltip,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.459",
3
+ "version": "1.0.460",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",