design-zystem 1.0.385 → 1.0.386
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 +8 -2
- package/dist/ui/index.d.ts +8 -2
- package/dist/ui/index.js +34 -13
- package/dist/ui/index.mjs +34 -13
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -1007,10 +1007,13 @@ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefA
|
|
|
1007
1007
|
/** Monter une seule fois à la racine de l'app, à côté du router — construit sur `sonner` (le moteur recommandé par shadcn), retint via `ToastCard`. */
|
|
1008
1008
|
declare const Toaster: () => react.JSX.Element;
|
|
1009
1009
|
|
|
1010
|
-
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
1010
|
+
type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
1011
|
+
type ToastId = string | number;
|
|
1011
1012
|
interface ToastOptions {
|
|
1012
1013
|
title?: string;
|
|
1013
1014
|
timeOut?: number;
|
|
1015
|
+
/** Remplace le toast déjà affiché sous cet id (ex. celui renvoyé par `toast.loading`) au lieu d'en ouvrir un nouveau. */
|
|
1016
|
+
id?: ToastId;
|
|
1014
1017
|
}
|
|
1015
1018
|
/** API impérative, appelable hors composant React. Monte `<Toaster />` une fois à la racine de l'app. */
|
|
1016
1019
|
declare const toast: {
|
|
@@ -1018,6 +1021,9 @@ declare const toast: {
|
|
|
1018
1021
|
error: (message: string, options?: ToastOptions) => void;
|
|
1019
1022
|
warning: (message: string, options?: ToastOptions) => void;
|
|
1020
1023
|
info: (message: string, options?: ToastOptions) => void;
|
|
1024
|
+
/** Reste affiché jusqu'à ce qu'un `success`/`error` le remplace (même `id`) ou qu'il soit fermé. */
|
|
1025
|
+
loading: (message: string, options?: Omit<ToastOptions, "timeOut">) => ToastId;
|
|
1026
|
+
dismiss: (id?: ToastId) => void;
|
|
1021
1027
|
};
|
|
1022
1028
|
|
|
1023
1029
|
declare const pageContainerVariants: (props?: ({
|
|
@@ -1887,4 +1893,4 @@ declare const allowAutofill: (autoComplete: string) => {
|
|
|
1887
1893
|
"data-form-type": undefined;
|
|
1888
1894
|
};
|
|
1889
1895
|
|
|
1890
|
-
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, 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, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, 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 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, 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, Radio, type RadioOption, type RadioProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectOption, type SelectProps, Sidebar, 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, type TabItem, Table, TableCell, type TableCellProps, type TableEmptyState, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Timeline, type TimelineItem, type TimelineProps, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, 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 };
|
|
1896
|
+
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, 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, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, 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 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, 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, Radio, type RadioOption, type RadioProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectOption, type SelectProps, Sidebar, 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, type TabItem, Table, TableCell, type TableCellProps, type TableEmptyState, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, 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 };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1007,10 +1007,13 @@ declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefA
|
|
|
1007
1007
|
/** Monter une seule fois à la racine de l'app, à côté du router — construit sur `sonner` (le moteur recommandé par shadcn), retint via `ToastCard`. */
|
|
1008
1008
|
declare const Toaster: () => react.JSX.Element;
|
|
1009
1009
|
|
|
1010
|
-
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
1010
|
+
type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
|
|
1011
|
+
type ToastId = string | number;
|
|
1011
1012
|
interface ToastOptions {
|
|
1012
1013
|
title?: string;
|
|
1013
1014
|
timeOut?: number;
|
|
1015
|
+
/** Remplace le toast déjà affiché sous cet id (ex. celui renvoyé par `toast.loading`) au lieu d'en ouvrir un nouveau. */
|
|
1016
|
+
id?: ToastId;
|
|
1014
1017
|
}
|
|
1015
1018
|
/** API impérative, appelable hors composant React. Monte `<Toaster />` une fois à la racine de l'app. */
|
|
1016
1019
|
declare const toast: {
|
|
@@ -1018,6 +1021,9 @@ declare const toast: {
|
|
|
1018
1021
|
error: (message: string, options?: ToastOptions) => void;
|
|
1019
1022
|
warning: (message: string, options?: ToastOptions) => void;
|
|
1020
1023
|
info: (message: string, options?: ToastOptions) => void;
|
|
1024
|
+
/** Reste affiché jusqu'à ce qu'un `success`/`error` le remplace (même `id`) ou qu'il soit fermé. */
|
|
1025
|
+
loading: (message: string, options?: Omit<ToastOptions, "timeOut">) => ToastId;
|
|
1026
|
+
dismiss: (id?: ToastId) => void;
|
|
1021
1027
|
};
|
|
1022
1028
|
|
|
1023
1029
|
declare const pageContainerVariants: (props?: ({
|
|
@@ -1887,4 +1893,4 @@ declare const allowAutofill: (autoComplete: string) => {
|
|
|
1887
1893
|
"data-form-type": undefined;
|
|
1888
1894
|
};
|
|
1889
1895
|
|
|
1890
|
-
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, 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, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, 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 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, 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, Radio, type RadioOption, type RadioProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectOption, type SelectProps, Sidebar, 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, type TabItem, Table, TableCell, type TableCellProps, type TableEmptyState, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Timeline, type TimelineItem, type TimelineProps, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, 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 };
|
|
1896
|
+
export { type ActivityFeedItem, ActivityFeedPanel, type ActivityFeedPanelProps, Attachment, type AttachmentProps, type AttachmentStatus, 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, type ButtonProps, COLOR_TOKENS, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorKey, ColorPicker, type ColorPickerProps, type ColorToken, 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 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, 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, Radio, type RadioOption, type RadioProps, ScrollArea, type ScrollAreaProps, SearchInput, type SearchInputProps, Select, type SelectBubbleOption, type SelectOption, type SelectProps, Sidebar, 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, type TabItem, Table, TableCell, type TableCellProps, type TableEmptyState, TableFooter, TableFooterCell, type TableFooterCellProps, type TableFooterProps, TableFooterRow, type TableFooterRowProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TableHeaderRow, type TableHeaderRowProps, type TablePagination, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, type TabsVariant, TagBubble, type TagBubbleProps, type TagLevelItem, TagLevelPicker, type TagLevelPickerProps, type TagOption, type TagSearchOption, TagSelect, type TagSelectProps, Text, type TextProps, Textarea, type TextareaProps, type TextareaVariant, Timeline, type TimelineItem, type TimelineProps, type ToastId, type ToastOptions, type ToastType, Toaster, Tooltip, type TooltipProps, VideoPlayer, type VideoPlayerProps, addBusinessDays, allowAutofill, appendCacheBuster, appendQueryParam, 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 };
|
package/dist/ui/index.js
CHANGED
|
@@ -4855,31 +4855,36 @@ var ICON = {
|
|
|
4855
4855
|
success: "circle-check",
|
|
4856
4856
|
error: "circle-xmark",
|
|
4857
4857
|
warning: "triangle-exclamation",
|
|
4858
|
-
info: "circle-info"
|
|
4858
|
+
info: "circle-info",
|
|
4859
|
+
loading: "spinner"
|
|
4859
4860
|
};
|
|
4860
4861
|
var ACCENT_TEXT = {
|
|
4861
4862
|
success: "text-green-700",
|
|
4862
4863
|
error: "text-red-900",
|
|
4863
4864
|
warning: "text-orange-500",
|
|
4864
|
-
info: "text-blue-700"
|
|
4865
|
+
info: "text-blue-700",
|
|
4866
|
+
loading: "text-blue-700"
|
|
4865
4867
|
};
|
|
4866
4868
|
var ACCENT_BG = {
|
|
4867
4869
|
success: "bg-green-50",
|
|
4868
4870
|
error: "bg-red-50",
|
|
4869
4871
|
warning: "bg-orange-50",
|
|
4870
|
-
info: "bg-blue-50"
|
|
4872
|
+
info: "bg-blue-50",
|
|
4873
|
+
loading: "bg-blue-50"
|
|
4871
4874
|
};
|
|
4872
4875
|
var ACCENT_BORDER = {
|
|
4873
4876
|
success: "border-l-green-700",
|
|
4874
4877
|
error: "border-l-red-900",
|
|
4875
4878
|
warning: "border-l-orange-500",
|
|
4876
|
-
info: "border-l-blue-700"
|
|
4879
|
+
info: "border-l-blue-700",
|
|
4880
|
+
loading: "border-l-blue-700"
|
|
4877
4881
|
};
|
|
4878
4882
|
var ACCENT_BAR = {
|
|
4879
4883
|
success: "bg-green-700",
|
|
4880
4884
|
error: "bg-red-900",
|
|
4881
4885
|
warning: "bg-orange-500",
|
|
4882
|
-
info: "bg-blue-700"
|
|
4886
|
+
info: "bg-blue-700",
|
|
4887
|
+
loading: "bg-blue-700"
|
|
4883
4888
|
};
|
|
4884
4889
|
var ToastCard = ({
|
|
4885
4890
|
id,
|
|
@@ -4911,7 +4916,9 @@ var ToastCard = ({
|
|
|
4911
4916
|
name: ICON[type],
|
|
4912
4917
|
family: "solid",
|
|
4913
4918
|
size: 16,
|
|
4914
|
-
|
|
4919
|
+
role: type === "loading" ? "status" : void 0,
|
|
4920
|
+
"aria-label": type === "loading" ? "Chargement" : void 0,
|
|
4921
|
+
className: cn(ACCENT_TEXT[type], type === "loading" && "fa-spin")
|
|
4915
4922
|
}
|
|
4916
4923
|
)
|
|
4917
4924
|
}
|
|
@@ -4930,7 +4937,7 @@ var ToastCard = ({
|
|
|
4930
4937
|
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FaIcon, { name: "xmark", size: 14 })
|
|
4931
4938
|
}
|
|
4932
4939
|
),
|
|
4933
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4940
|
+
type !== "loading" && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4934
4941
|
"div",
|
|
4935
4942
|
{
|
|
4936
4943
|
className: cn(
|
|
@@ -4949,8 +4956,8 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
4949
4956
|
var DEFAULT_TIMEOUT = 4e3;
|
|
4950
4957
|
var show = (type, message, options) => {
|
|
4951
4958
|
var _a;
|
|
4952
|
-
const timeOut = (_a = options == null ? void 0 : options.timeOut) != null ? _a : DEFAULT_TIMEOUT;
|
|
4953
|
-
import_sonner3.toast.custom(
|
|
4959
|
+
const timeOut = type === "loading" ? Infinity : (_a = options == null ? void 0 : options.timeOut) != null ? _a : DEFAULT_TIMEOUT;
|
|
4960
|
+
return import_sonner3.toast.custom(
|
|
4954
4961
|
(id) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4955
4962
|
ToastCard,
|
|
4956
4963
|
{
|
|
@@ -4962,15 +4969,29 @@ var show = (type, message, options) => {
|
|
|
4962
4969
|
}
|
|
4963
4970
|
),
|
|
4964
4971
|
{
|
|
4972
|
+
id: options == null ? void 0 : options.id,
|
|
4965
4973
|
duration: timeOut
|
|
4966
4974
|
}
|
|
4967
4975
|
);
|
|
4968
4976
|
};
|
|
4969
4977
|
var toast = {
|
|
4970
|
-
success: (message, options) =>
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4978
|
+
success: (message, options) => {
|
|
4979
|
+
show("success", message, options);
|
|
4980
|
+
},
|
|
4981
|
+
error: (message, options) => {
|
|
4982
|
+
show("error", message, options);
|
|
4983
|
+
},
|
|
4984
|
+
warning: (message, options) => {
|
|
4985
|
+
show("warning", message, options);
|
|
4986
|
+
},
|
|
4987
|
+
info: (message, options) => {
|
|
4988
|
+
show("info", message, options);
|
|
4989
|
+
},
|
|
4990
|
+
/** Reste affiché jusqu'à ce qu'un `success`/`error` le remplace (même `id`) ou qu'il soit fermé. */
|
|
4991
|
+
loading: (message, options) => show("loading", message, options),
|
|
4992
|
+
dismiss: (id) => {
|
|
4993
|
+
import_sonner3.toast.dismiss(id);
|
|
4994
|
+
}
|
|
4974
4995
|
};
|
|
4975
4996
|
|
|
4976
4997
|
// src/ui/components/ui/PageContainer.tsx
|
package/dist/ui/index.mjs
CHANGED
|
@@ -4675,31 +4675,36 @@ var ICON = {
|
|
|
4675
4675
|
success: "circle-check",
|
|
4676
4676
|
error: "circle-xmark",
|
|
4677
4677
|
warning: "triangle-exclamation",
|
|
4678
|
-
info: "circle-info"
|
|
4678
|
+
info: "circle-info",
|
|
4679
|
+
loading: "spinner"
|
|
4679
4680
|
};
|
|
4680
4681
|
var ACCENT_TEXT = {
|
|
4681
4682
|
success: "text-green-700",
|
|
4682
4683
|
error: "text-red-900",
|
|
4683
4684
|
warning: "text-orange-500",
|
|
4684
|
-
info: "text-blue-700"
|
|
4685
|
+
info: "text-blue-700",
|
|
4686
|
+
loading: "text-blue-700"
|
|
4685
4687
|
};
|
|
4686
4688
|
var ACCENT_BG = {
|
|
4687
4689
|
success: "bg-green-50",
|
|
4688
4690
|
error: "bg-red-50",
|
|
4689
4691
|
warning: "bg-orange-50",
|
|
4690
|
-
info: "bg-blue-50"
|
|
4692
|
+
info: "bg-blue-50",
|
|
4693
|
+
loading: "bg-blue-50"
|
|
4691
4694
|
};
|
|
4692
4695
|
var ACCENT_BORDER = {
|
|
4693
4696
|
success: "border-l-green-700",
|
|
4694
4697
|
error: "border-l-red-900",
|
|
4695
4698
|
warning: "border-l-orange-500",
|
|
4696
|
-
info: "border-l-blue-700"
|
|
4699
|
+
info: "border-l-blue-700",
|
|
4700
|
+
loading: "border-l-blue-700"
|
|
4697
4701
|
};
|
|
4698
4702
|
var ACCENT_BAR = {
|
|
4699
4703
|
success: "bg-green-700",
|
|
4700
4704
|
error: "bg-red-900",
|
|
4701
4705
|
warning: "bg-orange-500",
|
|
4702
|
-
info: "bg-blue-700"
|
|
4706
|
+
info: "bg-blue-700",
|
|
4707
|
+
loading: "bg-blue-700"
|
|
4703
4708
|
};
|
|
4704
4709
|
var ToastCard = ({
|
|
4705
4710
|
id,
|
|
@@ -4731,7 +4736,9 @@ var ToastCard = ({
|
|
|
4731
4736
|
name: ICON[type],
|
|
4732
4737
|
family: "solid",
|
|
4733
4738
|
size: 16,
|
|
4734
|
-
|
|
4739
|
+
role: type === "loading" ? "status" : void 0,
|
|
4740
|
+
"aria-label": type === "loading" ? "Chargement" : void 0,
|
|
4741
|
+
className: cn(ACCENT_TEXT[type], type === "loading" && "fa-spin")
|
|
4735
4742
|
}
|
|
4736
4743
|
)
|
|
4737
4744
|
}
|
|
@@ -4750,7 +4757,7 @@ var ToastCard = ({
|
|
|
4750
4757
|
children: /* @__PURE__ */ jsx63(FaIcon, { name: "xmark", size: 14 })
|
|
4751
4758
|
}
|
|
4752
4759
|
),
|
|
4753
|
-
/* @__PURE__ */ jsx63(
|
|
4760
|
+
type !== "loading" && /* @__PURE__ */ jsx63(
|
|
4754
4761
|
"div",
|
|
4755
4762
|
{
|
|
4756
4763
|
className: cn(
|
|
@@ -4769,8 +4776,8 @@ import { jsx as jsx64 } from "react/jsx-runtime";
|
|
|
4769
4776
|
var DEFAULT_TIMEOUT = 4e3;
|
|
4770
4777
|
var show = (type, message, options) => {
|
|
4771
4778
|
var _a;
|
|
4772
|
-
const timeOut = (_a = options == null ? void 0 : options.timeOut) != null ? _a : DEFAULT_TIMEOUT;
|
|
4773
|
-
sonnerToast2.custom(
|
|
4779
|
+
const timeOut = type === "loading" ? Infinity : (_a = options == null ? void 0 : options.timeOut) != null ? _a : DEFAULT_TIMEOUT;
|
|
4780
|
+
return sonnerToast2.custom(
|
|
4774
4781
|
(id) => /* @__PURE__ */ jsx64(
|
|
4775
4782
|
ToastCard,
|
|
4776
4783
|
{
|
|
@@ -4782,15 +4789,29 @@ var show = (type, message, options) => {
|
|
|
4782
4789
|
}
|
|
4783
4790
|
),
|
|
4784
4791
|
{
|
|
4792
|
+
id: options == null ? void 0 : options.id,
|
|
4785
4793
|
duration: timeOut
|
|
4786
4794
|
}
|
|
4787
4795
|
);
|
|
4788
4796
|
};
|
|
4789
4797
|
var toast = {
|
|
4790
|
-
success: (message, options) =>
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4798
|
+
success: (message, options) => {
|
|
4799
|
+
show("success", message, options);
|
|
4800
|
+
},
|
|
4801
|
+
error: (message, options) => {
|
|
4802
|
+
show("error", message, options);
|
|
4803
|
+
},
|
|
4804
|
+
warning: (message, options) => {
|
|
4805
|
+
show("warning", message, options);
|
|
4806
|
+
},
|
|
4807
|
+
info: (message, options) => {
|
|
4808
|
+
show("info", message, options);
|
|
4809
|
+
},
|
|
4810
|
+
/** Reste affiché jusqu'à ce qu'un `success`/`error` le remplace (même `id`) ou qu'il soit fermé. */
|
|
4811
|
+
loading: (message, options) => show("loading", message, options),
|
|
4812
|
+
dismiss: (id) => {
|
|
4813
|
+
sonnerToast2.dismiss(id);
|
|
4814
|
+
}
|
|
4794
4815
|
};
|
|
4795
4816
|
|
|
4796
4817
|
// src/ui/components/ui/PageContainer.tsx
|