design-zystem 1.0.384 → 1.0.385
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/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/ui/index.d.mts +61 -3
- package/dist/ui/index.d.ts +61 -3
- package/dist/ui/index.js +651 -360
- package/dist/ui/index.mjs +637 -350
- package/dist/ui/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2782,6 +2782,7 @@ var Select = ({
|
|
|
2782
2782
|
Dropdown,
|
|
2783
2783
|
{
|
|
2784
2784
|
ref: dropdownRef,
|
|
2785
|
+
"data-drawer-keep-open": true,
|
|
2785
2786
|
style: {
|
|
2786
2787
|
top: dropdownPosition.top,
|
|
2787
2788
|
left: dropdownPosition.left,
|
|
@@ -5583,6 +5584,7 @@ var Popover = ({
|
|
|
5583
5584
|
PopoverMenu,
|
|
5584
5585
|
{
|
|
5585
5586
|
ref: menuRef,
|
|
5587
|
+
"data-drawer-keep-open": true,
|
|
5586
5588
|
style: menuStyle,
|
|
5587
5589
|
$horizontal: isHorizontal,
|
|
5588
5590
|
children: items.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -2639,6 +2639,7 @@ var Select = ({
|
|
|
2639
2639
|
Dropdown,
|
|
2640
2640
|
{
|
|
2641
2641
|
ref: dropdownRef,
|
|
2642
|
+
"data-drawer-keep-open": true,
|
|
2642
2643
|
style: {
|
|
2643
2644
|
top: dropdownPosition.top,
|
|
2644
2645
|
left: dropdownPosition.left,
|
|
@@ -5460,6 +5461,7 @@ var Popover = ({
|
|
|
5460
5461
|
PopoverMenu,
|
|
5461
5462
|
{
|
|
5462
5463
|
ref: menuRef,
|
|
5464
|
+
"data-drawer-keep-open": true,
|
|
5463
5465
|
style: menuStyle,
|
|
5464
5466
|
$horizontal: isHorizontal,
|
|
5465
5467
|
children: items.map((item, idx) => /* @__PURE__ */ jsx52(
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -502,9 +502,10 @@ interface ModalProps {
|
|
|
502
502
|
/** Focus à l'ouverture (Radix). `e.preventDefault()` évite le focus auto du premier bouton — et l'ouverture de son tooltip. */
|
|
503
503
|
onOpenAutoFocus?: (e: Event) => void;
|
|
504
504
|
className?: string;
|
|
505
|
+
overlayClassName?: string;
|
|
505
506
|
}
|
|
506
507
|
/** Construit sur `@radix-ui/react-dialog` — compose-le avec `ModalHeader`/`ModalTitle`/`ModalDescription`/`ModalBody`/`ModalFooter`/`ModalClose`, comme le `Table`. */
|
|
507
|
-
declare const Modal: ({ children, open, onClose, width, draggable, onOpenAutoFocus, className, }: ModalProps) => react.JSX.Element;
|
|
508
|
+
declare const Modal: ({ children, open, onClose, width, draggable, onOpenAutoFocus, className, overlayClassName, }: ModalProps) => react.JSX.Element;
|
|
508
509
|
declare const ModalHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
509
510
|
declare const ModalTitle: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof RadixDialog.Title>) => react.JSX.Element;
|
|
510
511
|
declare const ModalDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof RadixDialog.Description>) => react.JSX.Element;
|
|
@@ -855,9 +856,10 @@ interface DrawerProps {
|
|
|
855
856
|
*/
|
|
856
857
|
modal?: boolean;
|
|
857
858
|
className?: string;
|
|
859
|
+
overlayClassName?: string;
|
|
858
860
|
}
|
|
859
861
|
/** Panneau — construit sur `vaul` (la lib derrière le vrai `Drawer` de shadcn). Compose-le avec `DrawerHeader`/`DrawerTitle`/`DrawerDescription`/`DrawerBody`/`DrawerFooter`/`DrawerClose`, comme le `Table`. Flotte : une marge le sépare des bords de la page, l'overlay se voit tout autour. */
|
|
860
|
-
declare const Drawer: ({ children, open, onClose, direction, size, modal, className, }: DrawerProps) => react.JSX.Element;
|
|
862
|
+
declare const Drawer: ({ children, open, onClose, direction, size, modal, className, overlayClassName, }: DrawerProps) => react.JSX.Element;
|
|
861
863
|
declare const DrawerHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
862
864
|
declare const DrawerTitle: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Drawer$1.Title>) => react.JSX.Element;
|
|
863
865
|
declare const DrawerDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Drawer$1.Description>) => react.JSX.Element;
|
|
@@ -1236,6 +1238,62 @@ interface TagBubbleProps {
|
|
|
1236
1238
|
/** Construit sur `@radix-ui/react-toggle` (comme le `Toggle` de shadcn) — chip filtre à deux états, pressable au clavier. */
|
|
1237
1239
|
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, activeFill, pill, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1238
1240
|
|
|
1241
|
+
interface HistoryChange {
|
|
1242
|
+
label: string;
|
|
1243
|
+
previousValue?: string;
|
|
1244
|
+
nextValue?: string;
|
|
1245
|
+
href?: string | null;
|
|
1246
|
+
onClick?: () => void;
|
|
1247
|
+
}
|
|
1248
|
+
interface HistoryEntry {
|
|
1249
|
+
id: string | number;
|
|
1250
|
+
title?: string | null;
|
|
1251
|
+
date?: string;
|
|
1252
|
+
author?: {
|
|
1253
|
+
name: string;
|
|
1254
|
+
avatarSrc?: string | null;
|
|
1255
|
+
};
|
|
1256
|
+
badge?: {
|
|
1257
|
+
label: string;
|
|
1258
|
+
theme: ColorToken;
|
|
1259
|
+
};
|
|
1260
|
+
changes?: HistoryChange[];
|
|
1261
|
+
}
|
|
1262
|
+
interface HistoryFilter {
|
|
1263
|
+
value: string;
|
|
1264
|
+
label: string;
|
|
1265
|
+
count: number;
|
|
1266
|
+
isActive: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
interface HistoryListProps {
|
|
1269
|
+
entries: HistoryEntry[];
|
|
1270
|
+
filters?: HistoryFilter[];
|
|
1271
|
+
onFilterClick?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
1272
|
+
isLoading?: boolean;
|
|
1273
|
+
isError?: boolean;
|
|
1274
|
+
errorLabel?: string;
|
|
1275
|
+
emptyLabel?: string;
|
|
1276
|
+
emptyDescription?: string;
|
|
1277
|
+
notice?: string;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
declare const HistoryList: ({ entries, filters, onFilterClick, isLoading, isError, errorLabel, emptyLabel, emptyDescription, notice, }: HistoryListProps) => react.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
interface HistoryDrawerProps extends HistoryListProps {
|
|
1283
|
+
open: boolean;
|
|
1284
|
+
onClose: () => void;
|
|
1285
|
+
title?: string;
|
|
1286
|
+
}
|
|
1287
|
+
declare const HistoryDrawer: ({ open, onClose, title, ...listProps }: HistoryDrawerProps) => react.JSX.Element;
|
|
1288
|
+
|
|
1289
|
+
interface HistoryButtonProps extends HistoryListProps {
|
|
1290
|
+
variant?: 'default' | 'icon';
|
|
1291
|
+
title?: string;
|
|
1292
|
+
tooltip?: string;
|
|
1293
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
1294
|
+
}
|
|
1295
|
+
declare const HistoryButton: ({ variant, title, tooltip, onOpenChange, ...listProps }: HistoryButtonProps) => react.JSX.Element;
|
|
1296
|
+
|
|
1239
1297
|
interface GanttDay {
|
|
1240
1298
|
key: string | number;
|
|
1241
1299
|
leftPct: number;
|
|
@@ -1829,4 +1887,4 @@ declare const allowAutofill: (autoComplete: string) => {
|
|
|
1829
1887
|
"data-form-type": undefined;
|
|
1830
1888
|
};
|
|
1831
1889
|
|
|
1832
|
-
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, 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, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize };
|
|
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 };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -502,9 +502,10 @@ interface ModalProps {
|
|
|
502
502
|
/** Focus à l'ouverture (Radix). `e.preventDefault()` évite le focus auto du premier bouton — et l'ouverture de son tooltip. */
|
|
503
503
|
onOpenAutoFocus?: (e: Event) => void;
|
|
504
504
|
className?: string;
|
|
505
|
+
overlayClassName?: string;
|
|
505
506
|
}
|
|
506
507
|
/** Construit sur `@radix-ui/react-dialog` — compose-le avec `ModalHeader`/`ModalTitle`/`ModalDescription`/`ModalBody`/`ModalFooter`/`ModalClose`, comme le `Table`. */
|
|
507
|
-
declare const Modal: ({ children, open, onClose, width, draggable, onOpenAutoFocus, className, }: ModalProps) => react.JSX.Element;
|
|
508
|
+
declare const Modal: ({ children, open, onClose, width, draggable, onOpenAutoFocus, className, overlayClassName, }: ModalProps) => react.JSX.Element;
|
|
508
509
|
declare const ModalHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
509
510
|
declare const ModalTitle: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof RadixDialog.Title>) => react.JSX.Element;
|
|
510
511
|
declare const ModalDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof RadixDialog.Description>) => react.JSX.Element;
|
|
@@ -855,9 +856,10 @@ interface DrawerProps {
|
|
|
855
856
|
*/
|
|
856
857
|
modal?: boolean;
|
|
857
858
|
className?: string;
|
|
859
|
+
overlayClassName?: string;
|
|
858
860
|
}
|
|
859
861
|
/** Panneau — construit sur `vaul` (la lib derrière le vrai `Drawer` de shadcn). Compose-le avec `DrawerHeader`/`DrawerTitle`/`DrawerDescription`/`DrawerBody`/`DrawerFooter`/`DrawerClose`, comme le `Table`. Flotte : une marge le sépare des bords de la page, l'overlay se voit tout autour. */
|
|
860
|
-
declare const Drawer: ({ children, open, onClose, direction, size, modal, className, }: DrawerProps) => react.JSX.Element;
|
|
862
|
+
declare const Drawer: ({ children, open, onClose, direction, size, modal, className, overlayClassName, }: DrawerProps) => react.JSX.Element;
|
|
861
863
|
declare const DrawerHeader: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => react.JSX.Element;
|
|
862
864
|
declare const DrawerTitle: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Drawer$1.Title>) => react.JSX.Element;
|
|
863
865
|
declare const DrawerDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Drawer$1.Description>) => react.JSX.Element;
|
|
@@ -1236,6 +1238,62 @@ interface TagBubbleProps {
|
|
|
1236
1238
|
/** Construit sur `@radix-ui/react-toggle` (comme le `Toggle` de shadcn) — chip filtre à deux états, pressable au clavier. */
|
|
1237
1239
|
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, activeFill, pill, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1238
1240
|
|
|
1241
|
+
interface HistoryChange {
|
|
1242
|
+
label: string;
|
|
1243
|
+
previousValue?: string;
|
|
1244
|
+
nextValue?: string;
|
|
1245
|
+
href?: string | null;
|
|
1246
|
+
onClick?: () => void;
|
|
1247
|
+
}
|
|
1248
|
+
interface HistoryEntry {
|
|
1249
|
+
id: string | number;
|
|
1250
|
+
title?: string | null;
|
|
1251
|
+
date?: string;
|
|
1252
|
+
author?: {
|
|
1253
|
+
name: string;
|
|
1254
|
+
avatarSrc?: string | null;
|
|
1255
|
+
};
|
|
1256
|
+
badge?: {
|
|
1257
|
+
label: string;
|
|
1258
|
+
theme: ColorToken;
|
|
1259
|
+
};
|
|
1260
|
+
changes?: HistoryChange[];
|
|
1261
|
+
}
|
|
1262
|
+
interface HistoryFilter {
|
|
1263
|
+
value: string;
|
|
1264
|
+
label: string;
|
|
1265
|
+
count: number;
|
|
1266
|
+
isActive: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
interface HistoryListProps {
|
|
1269
|
+
entries: HistoryEntry[];
|
|
1270
|
+
filters?: HistoryFilter[];
|
|
1271
|
+
onFilterClick?: (value: string, event: MouseEvent<HTMLButtonElement>) => void;
|
|
1272
|
+
isLoading?: boolean;
|
|
1273
|
+
isError?: boolean;
|
|
1274
|
+
errorLabel?: string;
|
|
1275
|
+
emptyLabel?: string;
|
|
1276
|
+
emptyDescription?: string;
|
|
1277
|
+
notice?: string;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
declare const HistoryList: ({ entries, filters, onFilterClick, isLoading, isError, errorLabel, emptyLabel, emptyDescription, notice, }: HistoryListProps) => react.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
interface HistoryDrawerProps extends HistoryListProps {
|
|
1283
|
+
open: boolean;
|
|
1284
|
+
onClose: () => void;
|
|
1285
|
+
title?: string;
|
|
1286
|
+
}
|
|
1287
|
+
declare const HistoryDrawer: ({ open, onClose, title, ...listProps }: HistoryDrawerProps) => react.JSX.Element;
|
|
1288
|
+
|
|
1289
|
+
interface HistoryButtonProps extends HistoryListProps {
|
|
1290
|
+
variant?: 'default' | 'icon';
|
|
1291
|
+
title?: string;
|
|
1292
|
+
tooltip?: string;
|
|
1293
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
1294
|
+
}
|
|
1295
|
+
declare const HistoryButton: ({ variant, title, tooltip, onOpenChange, ...listProps }: HistoryButtonProps) => react.JSX.Element;
|
|
1296
|
+
|
|
1239
1297
|
interface GanttDay {
|
|
1240
1298
|
key: string | number;
|
|
1241
1299
|
leftPct: number;
|
|
@@ -1829,4 +1887,4 @@ declare const allowAutofill: (autoComplete: string) => {
|
|
|
1829
1887
|
"data-form-type": undefined;
|
|
1830
1888
|
};
|
|
1831
1889
|
|
|
1832
|
-
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, 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, noAutofillProps, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText, useAvatarSize };
|
|
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 };
|