design-zystem 1.0.438 → 1.0.440
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 +48 -6
- package/dist/ui/index.d.ts +48 -6
- package/dist/ui/index.js +187 -45
- package/dist/ui/index.mjs +177 -37
- package/dist/ui/style.css +1 -1
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -866,6 +866,8 @@ interface TableRowProps {
|
|
|
866
866
|
}
|
|
867
867
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
868
868
|
|
|
869
|
+
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
870
|
+
|
|
869
871
|
declare const SURFACE_CLASS: {
|
|
870
872
|
readonly white: "bg-white";
|
|
871
873
|
readonly 'grey-100': "bg-grey-100";
|
|
@@ -874,7 +876,6 @@ declare const LINE_CLAMP_CLASS: {
|
|
|
874
876
|
readonly 2: "line-clamp-2";
|
|
875
877
|
readonly 3: "line-clamp-3";
|
|
876
878
|
};
|
|
877
|
-
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
878
879
|
declare const CURSOR_CLASS: {
|
|
879
880
|
readonly pointer: "cursor-pointer";
|
|
880
881
|
};
|
|
@@ -925,8 +926,9 @@ interface TableFooterCellProps {
|
|
|
925
926
|
/** @deprecated Plus de traits entre colonnes : le style du tableau ne se règle plus page par page. */
|
|
926
927
|
borderLeft?: boolean;
|
|
927
928
|
className?: string;
|
|
929
|
+
theme?: TableCellTheme;
|
|
928
930
|
}
|
|
929
|
-
declare const TableFooterCell: ({ children, width, borderLeft, className, }: TableFooterCellProps) => react.JSX.Element;
|
|
931
|
+
declare const TableFooterCell: ({ children, width, borderLeft, className, theme, }: TableFooterCellProps) => react.JSX.Element;
|
|
930
932
|
|
|
931
933
|
interface TableGroupSelection {
|
|
932
934
|
isSelected: boolean | 'indeterminate';
|
|
@@ -1004,8 +1006,9 @@ interface TableStatusCellProps {
|
|
|
1004
1006
|
children: ReactNode;
|
|
1005
1007
|
theme: ColorToken;
|
|
1006
1008
|
width?: string;
|
|
1009
|
+
variant?: BadgeProps['variant'];
|
|
1007
1010
|
}
|
|
1008
|
-
declare const TableStatusCell: ({ children, theme, width, }: TableStatusCellProps) => react.JSX.Element;
|
|
1011
|
+
declare const TableStatusCell: ({ children, theme, width, variant, }: TableStatusCellProps) => react.JSX.Element;
|
|
1009
1012
|
|
|
1010
1013
|
interface TableAction {
|
|
1011
1014
|
label: string;
|
|
@@ -1040,8 +1043,9 @@ interface TableSelectHeaderCellProps {
|
|
|
1040
1043
|
state: HeaderCheckState;
|
|
1041
1044
|
onToggle: () => void;
|
|
1042
1045
|
width?: string;
|
|
1046
|
+
disabled?: boolean;
|
|
1043
1047
|
}
|
|
1044
|
-
declare const TableSelectHeaderCell: ({ state, onToggle, width, }: TableSelectHeaderCellProps) => react.JSX.Element;
|
|
1048
|
+
declare const TableSelectHeaderCell: ({ state, onToggle, width, disabled, }: TableSelectHeaderCellProps) => react.JSX.Element;
|
|
1045
1049
|
|
|
1046
1050
|
declare const useAvatarSize: () => number;
|
|
1047
1051
|
interface AvatarBadgeConfig {
|
|
@@ -1049,7 +1053,7 @@ interface AvatarBadgeConfig {
|
|
|
1049
1053
|
icon: string;
|
|
1050
1054
|
iconFamily?: IconFamily;
|
|
1051
1055
|
backgroundColor: ColorToken;
|
|
1052
|
-
iconColor: ColorToken;
|
|
1056
|
+
iconColor: ColorToken | 'white';
|
|
1053
1057
|
}
|
|
1054
1058
|
interface AvatarProps extends Omit<ComponentPropsWithoutRef<typeof RadixAvatar.Root>, 'color'> {
|
|
1055
1059
|
size?: number;
|
|
@@ -1075,6 +1079,8 @@ declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProp
|
|
|
1075
1079
|
interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
1076
1080
|
/** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
|
|
1077
1081
|
size?: number;
|
|
1082
|
+
/** Icône et couleurs du badge en tokens, à la place d'un `className` et d'un enfant posés à la main. */
|
|
1083
|
+
config?: AvatarBadgeConfig;
|
|
1078
1084
|
}
|
|
1079
1085
|
/** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
|
|
1080
1086
|
declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -2042,6 +2048,42 @@ interface DatePickerProps {
|
|
|
2042
2048
|
/** Construit sur `react-day-picker` — la lib derrière le vrai `Calendar`/`DatePicker` de shadcn. */
|
|
2043
2049
|
declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
|
|
2044
2050
|
|
|
2051
|
+
declare const ZONE_POSITIONS: {
|
|
2052
|
+
readonly front: readonly [60, 8];
|
|
2053
|
+
readonly hood: readonly [60, 40];
|
|
2054
|
+
readonly windshield: readonly [60, 72];
|
|
2055
|
+
readonly roof: readonly [60, 120];
|
|
2056
|
+
readonly trunk: readonly [60, 190];
|
|
2057
|
+
readonly rear: readonly [60, 212];
|
|
2058
|
+
readonly frontLeftCorner: readonly [26, 20];
|
|
2059
|
+
readonly frontRightCorner: readonly [94, 20];
|
|
2060
|
+
readonly frontLeftWheel: readonly [14, 50];
|
|
2061
|
+
readonly frontRightWheel: readonly [106, 50];
|
|
2062
|
+
readonly frontLeftSide: readonly [18, 92];
|
|
2063
|
+
readonly frontRightSide: readonly [102, 92];
|
|
2064
|
+
readonly rearLeftSide: readonly [18, 132];
|
|
2065
|
+
readonly rearRightSide: readonly [102, 132];
|
|
2066
|
+
readonly rearLeftWheel: readonly [14, 166];
|
|
2067
|
+
readonly rearRightWheel: readonly [106, 166];
|
|
2068
|
+
readonly rearLeftCorner: readonly [26, 200];
|
|
2069
|
+
readonly rearRightCorner: readonly [94, 200];
|
|
2070
|
+
};
|
|
2071
|
+
type VehicleDamageZone = keyof typeof ZONE_POSITIONS;
|
|
2072
|
+
declare const VEHICLE_DAMAGE_ZONES: VehicleDamageZone[];
|
|
2073
|
+
interface VehicleDamageMark {
|
|
2074
|
+
zone: VehicleDamageZone;
|
|
2075
|
+
count?: number;
|
|
2076
|
+
label?: string;
|
|
2077
|
+
tone?: 'danger' | 'warning';
|
|
2078
|
+
}
|
|
2079
|
+
interface VehicleDamageMapProps extends HTMLAttributes<HTMLDivElement> {
|
|
2080
|
+
marks: VehicleDamageMark[];
|
|
2081
|
+
selectedZone?: VehicleDamageZone | null;
|
|
2082
|
+
onZoneClick?: (zone: VehicleDamageZone) => void;
|
|
2083
|
+
width?: number;
|
|
2084
|
+
}
|
|
2085
|
+
declare const VehicleDamageMap: react.ForwardRefExoticComponent<VehicleDamageMapProps & react.RefAttributes<HTMLDivElement>>;
|
|
2086
|
+
|
|
2045
2087
|
/**
|
|
2046
2088
|
* Miroir de DesignSystem/src/data/globalMethods.ts.
|
|
2047
2089
|
*
|
|
@@ -2298,4 +2340,4 @@ interface TourTargetProps {
|
|
|
2298
2340
|
declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
|
|
2299
2341
|
declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
|
|
2300
2342
|
|
|
2301
|
-
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, 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, 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 };
|
|
2343
|
+
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 };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -866,6 +866,8 @@ interface TableRowProps {
|
|
|
866
866
|
}
|
|
867
867
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
868
868
|
|
|
869
|
+
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
870
|
+
|
|
869
871
|
declare const SURFACE_CLASS: {
|
|
870
872
|
readonly white: "bg-white";
|
|
871
873
|
readonly 'grey-100': "bg-grey-100";
|
|
@@ -874,7 +876,6 @@ declare const LINE_CLAMP_CLASS: {
|
|
|
874
876
|
readonly 2: "line-clamp-2";
|
|
875
877
|
readonly 3: "line-clamp-3";
|
|
876
878
|
};
|
|
877
|
-
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
878
879
|
declare const CURSOR_CLASS: {
|
|
879
880
|
readonly pointer: "cursor-pointer";
|
|
880
881
|
};
|
|
@@ -925,8 +926,9 @@ interface TableFooterCellProps {
|
|
|
925
926
|
/** @deprecated Plus de traits entre colonnes : le style du tableau ne se règle plus page par page. */
|
|
926
927
|
borderLeft?: boolean;
|
|
927
928
|
className?: string;
|
|
929
|
+
theme?: TableCellTheme;
|
|
928
930
|
}
|
|
929
|
-
declare const TableFooterCell: ({ children, width, borderLeft, className, }: TableFooterCellProps) => react.JSX.Element;
|
|
931
|
+
declare const TableFooterCell: ({ children, width, borderLeft, className, theme, }: TableFooterCellProps) => react.JSX.Element;
|
|
930
932
|
|
|
931
933
|
interface TableGroupSelection {
|
|
932
934
|
isSelected: boolean | 'indeterminate';
|
|
@@ -1004,8 +1006,9 @@ interface TableStatusCellProps {
|
|
|
1004
1006
|
children: ReactNode;
|
|
1005
1007
|
theme: ColorToken;
|
|
1006
1008
|
width?: string;
|
|
1009
|
+
variant?: BadgeProps['variant'];
|
|
1007
1010
|
}
|
|
1008
|
-
declare const TableStatusCell: ({ children, theme, width, }: TableStatusCellProps) => react.JSX.Element;
|
|
1011
|
+
declare const TableStatusCell: ({ children, theme, width, variant, }: TableStatusCellProps) => react.JSX.Element;
|
|
1009
1012
|
|
|
1010
1013
|
interface TableAction {
|
|
1011
1014
|
label: string;
|
|
@@ -1040,8 +1043,9 @@ interface TableSelectHeaderCellProps {
|
|
|
1040
1043
|
state: HeaderCheckState;
|
|
1041
1044
|
onToggle: () => void;
|
|
1042
1045
|
width?: string;
|
|
1046
|
+
disabled?: boolean;
|
|
1043
1047
|
}
|
|
1044
|
-
declare const TableSelectHeaderCell: ({ state, onToggle, width, }: TableSelectHeaderCellProps) => react.JSX.Element;
|
|
1048
|
+
declare const TableSelectHeaderCell: ({ state, onToggle, width, disabled, }: TableSelectHeaderCellProps) => react.JSX.Element;
|
|
1045
1049
|
|
|
1046
1050
|
declare const useAvatarSize: () => number;
|
|
1047
1051
|
interface AvatarBadgeConfig {
|
|
@@ -1049,7 +1053,7 @@ interface AvatarBadgeConfig {
|
|
|
1049
1053
|
icon: string;
|
|
1050
1054
|
iconFamily?: IconFamily;
|
|
1051
1055
|
backgroundColor: ColorToken;
|
|
1052
|
-
iconColor: ColorToken;
|
|
1056
|
+
iconColor: ColorToken | 'white';
|
|
1053
1057
|
}
|
|
1054
1058
|
interface AvatarProps extends Omit<ComponentPropsWithoutRef<typeof RadixAvatar.Root>, 'color'> {
|
|
1055
1059
|
size?: number;
|
|
@@ -1075,6 +1079,8 @@ declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProp
|
|
|
1075
1079
|
interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
1076
1080
|
/** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
|
|
1077
1081
|
size?: number;
|
|
1082
|
+
/** Icône et couleurs du badge en tokens, à la place d'un `className` et d'un enfant posés à la main. */
|
|
1083
|
+
config?: AvatarBadgeConfig;
|
|
1078
1084
|
}
|
|
1079
1085
|
/** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
|
|
1080
1086
|
declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -2042,6 +2048,42 @@ interface DatePickerProps {
|
|
|
2042
2048
|
/** Construit sur `react-day-picker` — la lib derrière le vrai `Calendar`/`DatePicker` de shadcn. */
|
|
2043
2049
|
declare const DatePicker: ({ mode, value, onChange, startDate, endDate, onRangeChange, showPresets, presets, placeholder, disabled, minDate, maxDate, width, align, className, }: DatePickerProps) => react.JSX.Element;
|
|
2044
2050
|
|
|
2051
|
+
declare const ZONE_POSITIONS: {
|
|
2052
|
+
readonly front: readonly [60, 8];
|
|
2053
|
+
readonly hood: readonly [60, 40];
|
|
2054
|
+
readonly windshield: readonly [60, 72];
|
|
2055
|
+
readonly roof: readonly [60, 120];
|
|
2056
|
+
readonly trunk: readonly [60, 190];
|
|
2057
|
+
readonly rear: readonly [60, 212];
|
|
2058
|
+
readonly frontLeftCorner: readonly [26, 20];
|
|
2059
|
+
readonly frontRightCorner: readonly [94, 20];
|
|
2060
|
+
readonly frontLeftWheel: readonly [14, 50];
|
|
2061
|
+
readonly frontRightWheel: readonly [106, 50];
|
|
2062
|
+
readonly frontLeftSide: readonly [18, 92];
|
|
2063
|
+
readonly frontRightSide: readonly [102, 92];
|
|
2064
|
+
readonly rearLeftSide: readonly [18, 132];
|
|
2065
|
+
readonly rearRightSide: readonly [102, 132];
|
|
2066
|
+
readonly rearLeftWheel: readonly [14, 166];
|
|
2067
|
+
readonly rearRightWheel: readonly [106, 166];
|
|
2068
|
+
readonly rearLeftCorner: readonly [26, 200];
|
|
2069
|
+
readonly rearRightCorner: readonly [94, 200];
|
|
2070
|
+
};
|
|
2071
|
+
type VehicleDamageZone = keyof typeof ZONE_POSITIONS;
|
|
2072
|
+
declare const VEHICLE_DAMAGE_ZONES: VehicleDamageZone[];
|
|
2073
|
+
interface VehicleDamageMark {
|
|
2074
|
+
zone: VehicleDamageZone;
|
|
2075
|
+
count?: number;
|
|
2076
|
+
label?: string;
|
|
2077
|
+
tone?: 'danger' | 'warning';
|
|
2078
|
+
}
|
|
2079
|
+
interface VehicleDamageMapProps extends HTMLAttributes<HTMLDivElement> {
|
|
2080
|
+
marks: VehicleDamageMark[];
|
|
2081
|
+
selectedZone?: VehicleDamageZone | null;
|
|
2082
|
+
onZoneClick?: (zone: VehicleDamageZone) => void;
|
|
2083
|
+
width?: number;
|
|
2084
|
+
}
|
|
2085
|
+
declare const VehicleDamageMap: react.ForwardRefExoticComponent<VehicleDamageMapProps & react.RefAttributes<HTMLDivElement>>;
|
|
2086
|
+
|
|
2045
2087
|
/**
|
|
2046
2088
|
* Miroir de DesignSystem/src/data/globalMethods.ts.
|
|
2047
2089
|
*
|
|
@@ -2298,4 +2340,4 @@ interface TourTargetProps {
|
|
|
2298
2340
|
declare const TourTarget: ({ id, children }: TourTargetProps) => react.JSX.Element;
|
|
2299
2341
|
declare const Tour: ({ steps, open, step, onStepChange, onClose, labels, targetTimeout, }: TourProps) => null;
|
|
2300
2342
|
|
|
2301
|
-
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, 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, 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 };
|
|
2343
|
+
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 };
|