@cleen/ui 0.1.205 → 0.1.207

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.d.ts CHANGED
@@ -2008,12 +2008,29 @@ interface DropzoneProps extends NativeInputProps {
2008
2008
  */
2009
2009
  declare const Dropzone: react.ForwardRefExoticComponent<Omit<DropzoneProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
2010
2010
 
2011
- interface FileUploadTrackerRowProps {
2012
- fileEntry: FileEntry;
2013
- labels?: FileUploadTrackerProps['labels'];
2011
+ declare enum TrackerItemStatus {
2012
+ PENDING = "pending",
2013
+ IN_PROGRESS = "inProgress",
2014
+ DONE = "done",
2015
+ ERROR = "error",
2016
+ REMOVING = "removing"
2017
+ }
2018
+ interface TrackerItem {
2019
+ id: string;
2020
+ /** Label rendered as the item name */
2021
+ name: ReactNode;
2022
+ /** Completion of the item, from 0 to 100 */
2023
+ progress?: number;
2024
+ status: TrackerItemStatus;
2025
+ /** Leading visual of the row, rendered as provided */
2026
+ icon?: ReactNode;
2027
+ }
2028
+
2029
+ interface StackedProgressTrackerRowProps {
2030
+ item: TrackerItem;
2031
+ labels?: StackedProgressTrackerProps['labels'];
2014
2032
  classNames?: {
2015
2033
  container?: string;
2016
- typeBadge?: string;
2017
2034
  infoContainer?: string;
2018
2035
  name?: string;
2019
2036
  progressBar?: ComponentClassnames<ProgressBarProps>;
@@ -2022,7 +2039,6 @@ interface FileUploadTrackerRowProps {
2022
2039
  };
2023
2040
  styles?: {
2024
2041
  container?: CSSProperties;
2025
- typeBadge?: CSSProperties;
2026
2042
  infoContainer?: CSSProperties;
2027
2043
  name?: CSSProperties;
2028
2044
  progressBar?: ComponentStyles<ProgressBarProps>;
@@ -2030,10 +2046,79 @@ interface FileUploadTrackerRowProps {
2030
2046
  statusIcon?: CSSProperties;
2031
2047
  };
2032
2048
  }
2033
- declare const FileUploadTrackerRow: ({ fileEntry, labels, classNames, styles, }: FileUploadTrackerRowProps) => react_jsx_runtime.JSX.Element;
2049
+ declare const StackedProgressTrackerRow: ({ item, labels, classNames, styles, }: StackedProgressTrackerRowProps) => react_jsx_runtime.JSX.Element;
2050
+
2051
+ type NativeDivProps$1 = Omit<ComponentProps<'div'>, 'children' | 'className' | 'style' | 'title'>;
2052
+ interface StackedProgressTrackerProps extends NativeDivProps$1 {
2053
+ /** Items to track, rendered as one row each */
2054
+ items: TrackerItem[];
2055
+ /** Content of the panel header */
2056
+ title?: ReactNode;
2057
+ /** Amount of rows rendered before the list is truncated */
2058
+ maxVisibleItems?: number;
2059
+ /** Controlled expanded state of the truncated list */
2060
+ isExpanded?: boolean;
2061
+ /** Initial expanded state of the truncated list when uncontrolled */
2062
+ defaultExpanded?: boolean;
2063
+ onExpandedChange?: (isExpanded: boolean) => void;
2064
+ /** Renders the dismiss control in the header when provided */
2065
+ onDismiss?: () => void;
2066
+ labels?: {
2067
+ processing?: (count: number) => ReactNode;
2068
+ completed?: ReactNode;
2069
+ showMore?: (hiddenCount: number) => ReactNode;
2070
+ showLess?: ReactNode;
2071
+ dismiss?: string;
2072
+ contract?: string;
2073
+ itemProgress?: (progress: number) => ReactNode;
2074
+ };
2075
+ className?: string;
2076
+ style?: CSSProperties;
2077
+ classNames?: {
2078
+ card?: ComponentClassnames<CardProps>;
2079
+ header?: string;
2080
+ headerButtons?: string;
2081
+ title?: string;
2082
+ contractButton?: string;
2083
+ dismissButton?: string;
2084
+ list?: string;
2085
+ row?: StackedProgressTrackerRowProps['classNames'];
2086
+ expandButton?: string;
2087
+ };
2088
+ styles?: {
2089
+ card?: ComponentStyles<CardProps>;
2090
+ header?: CSSProperties;
2091
+ headerButtons?: CSSProperties;
2092
+ title?: CSSProperties;
2093
+ contractButton?: CSSProperties;
2094
+ dismissButton?: CSSProperties;
2095
+ list?: CSSProperties;
2096
+ row?: StackedProgressTrackerRowProps['styles'];
2097
+ expandButton?: CSSProperties;
2098
+ };
2099
+ }
2100
+ /**
2101
+ * The `StackedProgressTracker` component groups the progress of multiple tracked items into a single panel.
2102
+ *
2103
+ * - Renders one row per `TrackerItem`, with its optional icon, name, progress bar and status.
2104
+ * - Renders `null` when there are no items to show.
2105
+ * - Truncates the list past `maxVisibleItems` with a "+N more" expand control.
2106
+ */
2107
+ declare const StackedProgressTracker: react.ForwardRefExoticComponent<Omit<StackedProgressTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
2108
+
2109
+ interface FileStackedProgressTrackerRowProps {
2110
+ fileEntry: FileEntry;
2111
+ labels?: FileStackedProgressTrackerProps['labels'];
2112
+ classNames?: StackedProgressTrackerRowProps['classNames'] & {
2113
+ typeBadge?: string;
2114
+ };
2115
+ styles?: StackedProgressTrackerRowProps['styles'] & {
2116
+ typeBadge?: CSSProperties;
2117
+ };
2118
+ }
2034
2119
 
2035
2120
  type NativeDivProps = Omit<ComponentProps<'div'>, 'children' | 'className' | 'style' | 'title'>;
2036
- interface FileUploadTrackerProps extends NativeDivProps {
2121
+ interface FileStackedProgressTrackerProps extends NativeDivProps {
2037
2122
  /** Files to track, either as a list or as the `Map` used by `Dropzone` / `useFileUpload` */
2038
2123
  files: FileEntry[] | Map<string, FileEntry>;
2039
2124
  /** Overrides the automatic header title */
@@ -2066,7 +2151,7 @@ interface FileUploadTrackerProps extends NativeDivProps {
2066
2151
  contractButton?: string;
2067
2152
  dismissButton?: string;
2068
2153
  list?: string;
2069
- row?: FileUploadTrackerRowProps['classNames'];
2154
+ row?: FileStackedProgressTrackerRowProps['classNames'];
2070
2155
  expandButton?: string;
2071
2156
  };
2072
2157
  styles?: {
@@ -2077,18 +2162,19 @@ interface FileUploadTrackerProps extends NativeDivProps {
2077
2162
  contractButton?: CSSProperties;
2078
2163
  dismissButton?: CSSProperties;
2079
2164
  list?: CSSProperties;
2080
- row?: FileUploadTrackerRowProps['styles'];
2165
+ row?: FileStackedProgressTrackerRowProps['styles'];
2081
2166
  expandButton?: CSSProperties;
2082
2167
  };
2083
2168
  }
2084
2169
  /**
2085
- * The `FileUploadTracker` component groups the upload progress of multiple files into a single panel.
2170
+ * The `FileStackedProgressTracker` component groups the upload progress of multiple files into a single panel.
2086
2171
  *
2172
+ * - Builds on `StackedProgressTracker`, adding file type badges, file names and upload-specific labels.
2087
2173
  * - Accepts the same `FileEntry` shape as `Dropzone` and `useFileUpload`, as a list or a `Map`.
2088
2174
  * - Renders `null` when there are no files to show.
2089
2175
  * - Truncates the list past `maxVisibleFiles` with a "+N more" expand control.
2090
2176
  */
2091
- declare const FileUploadTracker: react.ForwardRefExoticComponent<Omit<FileUploadTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
2177
+ declare const FileStackedProgressTracker: react.ForwardRefExoticComponent<Omit<FileStackedProgressTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
2092
2178
 
2093
2179
  interface FilterDrawerNewFilter {
2094
2180
  filterName: string;
@@ -3678,4 +3764,4 @@ type TabsProps = ComponentProps<'div'> & {
3678
3764
  */
3679
3765
  declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
3680
3766
 
3681
- export { AdvancedProgressBar, type AdvancedProgressBarProps, AudioPlayback, type AudioPlaybackProps, AudioRecorder, type AudioRecorderProps, Avatar, type AvatarProps, AvatarRow, type AvatarRowProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, Calendar, CalendarDropdown, type CalendarDropdownProps, type CalendarProps, CanvasButton, Card, CardIcon, type CardIconProps, CardMedia, type CardMediaProps, type Media as CardMediaType, type CardProps, Carousel, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CleenIcon, CleenNotificationContainer, Collapsible, type CollapsibleProps, type CollapsibleSection, type ColorModel, ColorPicker, type ColorPickerProps, CreditCardInput, type CreditCardInputProps, Divider, type DividerProps, Drawer, type DrawerConfig, DrawerContainer, type DrawerContainerProps, DrawerContentTitle, type DrawerContentTitleItem, type DrawerContentTitleProps, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EditableCard, type EditableCardField, type EditableCardProps, EditableText, EditableTextArea, type EditableTextAreaProps, type EditableTextAreaRef, type EditableTextProps, type EditableTextRef, FileUploadTracker, type FileUploadTrackerProps, FileUploadTrackerRow, type FileUploadTrackerRowProps, FilterDrawer, type FilterDrawerFilterCategories, type FilterDrawerNewFilter, type FilterDrawerProps, type FilterDrawerSavedFilter, FormGroup, type FormGroupProps, GroupSelector, type GroupSelectorProps, type GroupSelectorSaveResult, type GroupSelectorThreeDotOption, type SidebarItem$1 as ISidebarItem, IconAlertCircle, IconAlertFeatured, IconAlertOctagon, IconAlertTriangle, IconAlignRight, IconArrowDown, IconArrowLeft, IconArrowLeft2, IconArrowRight, IconArrowToTop, IconArrowUp, IconArrowUpRight, IconArrowUpRightNarrow, IconArrowUpRightSquare, IconAttachment, IconBarChartSquare, IconBold, IconBookmarkCheck, IconBookmarkCheckFill, IconBookmarkX, IconBoxLines, IconBoxText, IconBracketsCheck, IconBracketsEllipses, IconCalendar, IconCertificateHeart, IconCheck, IconCheckCircle, IconCheckCircleBroken, IconCheckFill, IconCheckVerified, IconChevronDown, IconChevronLeft, IconChevronLeftDouble, IconChevronRight, IconChevronRightDouble, IconChevronSelectorVertical, IconChevronUp, IconCircleSwap, IconClockFastForward, IconClockRewind, IconClockRewind2, IconCodeBrowser, IconCodeCircle, IconColors, IconColumnEdit, IconCopy, IconCopy2, IconCopy3, IconCopy4, IconCopy5, IconCopyCheck, IconCube, IconCubeOutline, IconCursorBox, IconDataflow, IconDataflow2, IconDataflow3, IconDelete, IconDollarCircle, IconDotsGrid, IconDotsHorizontal, IconDotsVertical, IconEdit, IconEditable, IconExpand, IconEye, IconEyeHidden, IconEyeHidden2, IconFaceSmile, IconFilter, IconFilter2, IconFlag, IconFlag2, IconFlag3, IconHandShield, IconHash, IconHeadsetMic, IconHeart, IconHouseLine, IconImage, IconImage2, IconImage3, IconImage4, IconImageCheck, IconInfoCircle, IconInfoHexagon, IconItalic, IconLayersMultiple, IconLayersSingle, IconLayout, IconLayout2, IconLayoutColumns, IconLayoutCustom, IconLayoutSequential, IconLayoutStuffed, IconLayoutTile, IconLifeBuoy, IconLightbulb, IconLightning, IconLightning2, IconLightningFast, IconLineChartBar, IconLineChartBreakoutSquare, IconLineChartUp, IconLineChartUp2, IconLines, IconLinesCheck, IconLinesPlay, IconLink, IconLink2, IconLink3, IconLink4, IconLink5, IconListBullet, IconListOrder, IconListOrder2, IconLock, IconLock2, IconLogIn, IconLogOut, IconLogOut2, IconMagicWand, IconMagicWand2, IconMail, IconMessageSquare, IconMessageSquare2, IconMessageXSquare, IconMinusCircle, IconMobile, IconMonitor, IconMonitor2, IconMonitor3, IconMoonCircle, IconName, IconNavigationPointer, IconNotificationBox, IconPCSetup, IconPalette, IconPasscodeLock, IconPencil, IconPercentageCircle, IconPerspective, IconPhoneCall, IconPin, IconPlayCircle, IconPlus, IconPlusCircle, IconPulse, IconQuestionCircle, IconRadioButton, IconRadioButtonActive, IconReceiptCheck, IconRedo, IconRefresh, IconRefresh2, IconRefresh3, IconRepeat, IconRepeat2, IconRetweet, IconRoundChart, IconRoundChart2, IconRoute, IconSave, IconSave2, IconScanDots, IconSearch, IconSend, IconSettings, IconSettings2, IconSettings3, IconShieldLightning, IconShieldPlus, IconShieldRemove, IconShuffle, IconSlashCircle, IconSlashOctagon, IconSocialGlobe, IconSocialLinkedin, IconSocialX, IconSpeedometer, IconStairsRound, IconStar, IconStarHalf, IconStars, IconStars2, IconStrikethrough, IconSuccessFeatured, IconSun, IconSwitchHorizontal, IconTag, IconTarget, IconTarget2, IconTextFormat, IconTextFormat2, IconTextHighlight, IconTranslate, IconTrash, IconTrending, IconUnderline, IconUndo, IconUndo2, IconUploadCloud, IconUser, IconUserEdit, IconUserRight, IconUserSquare, IconUsers, IconUsersUp, IconVolume, IconWrench, IconX, IconXCircle, IconXCircle2, IconXClose, IconXSquare, InfoLabels, type InfoLabelsProps, Input, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Lookup, type LookupOption, type LookupProps, Markdown, type MarkdownProps, Menu, type MenuProps, Modal, type ModalProps, type NotificationProps, Pagination, PaginationGoToPage, type PaginationGoToPageProps, PaginationPageSize, type PaginationPageSizeProps, type PaginationProps, PillBadge, type PillBadgeProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, RadioBoxGroup, type RadioBoxGroupProps, RadioButtonGroup, type RadioButtonGroupProps, Rating, type RatingProps, Select, type SelectProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonBanner, SkeletonButton, SkeletonCard, SkeletonCard2, SkeletonCard3, SkeletonCardStack, SkeletonChart, type SkeletonComponentProps, SkeletonContentCard, SkeletonDataGrid, SkeletonForm, SkeletonGlowingCard, SkeletonImage, SkeletonInfoCard, SkeletonInput, SkeletonList, SkeletonParagraph, type SkeletonProps, type SkeletonRoundness, SkeletonText, type SkeletonType, SkeletonVideo, SkeletonWidgetCard, SkeletonWrapper, Slider, type SliderProps, SliderRange, type SliderRangeProps, StarRating, type StarRatingProps, Stepper, type StepperProps, Switch, type SwitchProps, type Tab, Tabs, type TabsProps, TextArea, type TextAreaProps, Tooltip, type TooltipProps, parseRgbaString, showNotification };
3767
+ export { AdvancedProgressBar, type AdvancedProgressBarProps, AudioPlayback, type AudioPlaybackProps, AudioRecorder, type AudioRecorderProps, Avatar, type AvatarProps, AvatarRow, type AvatarRowProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, Calendar, CalendarDropdown, type CalendarDropdownProps, type CalendarProps, CanvasButton, Card, CardIcon, type CardIconProps, CardMedia, type CardMediaProps, type Media as CardMediaType, type CardProps, Carousel, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CleenIcon, CleenNotificationContainer, Collapsible, type CollapsibleProps, type CollapsibleSection, type ColorModel, ColorPicker, type ColorPickerProps, CreditCardInput, type CreditCardInputProps, Divider, type DividerProps, Drawer, type DrawerConfig, DrawerContainer, type DrawerContainerProps, DrawerContentTitle, type DrawerContentTitleItem, type DrawerContentTitleProps, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EditableCard, type EditableCardField, type EditableCardProps, EditableText, EditableTextArea, type EditableTextAreaProps, type EditableTextAreaRef, type EditableTextProps, type EditableTextRef, FileStackedProgressTracker, type FileStackedProgressTrackerProps, FilterDrawer, type FilterDrawerFilterCategories, type FilterDrawerNewFilter, type FilterDrawerProps, type FilterDrawerSavedFilter, FormGroup, type FormGroupProps, GroupSelector, type GroupSelectorProps, type GroupSelectorSaveResult, type GroupSelectorThreeDotOption, type SidebarItem$1 as ISidebarItem, IconAlertCircle, IconAlertFeatured, IconAlertOctagon, IconAlertTriangle, IconAlignRight, IconArrowDown, IconArrowLeft, IconArrowLeft2, IconArrowRight, IconArrowToTop, IconArrowUp, IconArrowUpRight, IconArrowUpRightNarrow, IconArrowUpRightSquare, IconAttachment, IconBarChartSquare, IconBold, IconBookmarkCheck, IconBookmarkCheckFill, IconBookmarkX, IconBoxLines, IconBoxText, IconBracketsCheck, IconBracketsEllipses, IconCalendar, IconCertificateHeart, IconCheck, IconCheckCircle, IconCheckCircleBroken, IconCheckFill, IconCheckVerified, IconChevronDown, IconChevronLeft, IconChevronLeftDouble, IconChevronRight, IconChevronRightDouble, IconChevronSelectorVertical, IconChevronUp, IconCircleSwap, IconClockFastForward, IconClockRewind, IconClockRewind2, IconCodeBrowser, IconCodeCircle, IconColors, IconColumnEdit, IconCopy, IconCopy2, IconCopy3, IconCopy4, IconCopy5, IconCopyCheck, IconCube, IconCubeOutline, IconCursorBox, IconDataflow, IconDataflow2, IconDataflow3, IconDelete, IconDollarCircle, IconDotsGrid, IconDotsHorizontal, IconDotsVertical, IconEdit, IconEditable, IconExpand, IconEye, IconEyeHidden, IconEyeHidden2, IconFaceSmile, IconFilter, IconFilter2, IconFlag, IconFlag2, IconFlag3, IconHandShield, IconHash, IconHeadsetMic, IconHeart, IconHouseLine, IconImage, IconImage2, IconImage3, IconImage4, IconImageCheck, IconInfoCircle, IconInfoHexagon, IconItalic, IconLayersMultiple, IconLayersSingle, IconLayout, IconLayout2, IconLayoutColumns, IconLayoutCustom, IconLayoutSequential, IconLayoutStuffed, IconLayoutTile, IconLifeBuoy, IconLightbulb, IconLightning, IconLightning2, IconLightningFast, IconLineChartBar, IconLineChartBreakoutSquare, IconLineChartUp, IconLineChartUp2, IconLines, IconLinesCheck, IconLinesPlay, IconLink, IconLink2, IconLink3, IconLink4, IconLink5, IconListBullet, IconListOrder, IconListOrder2, IconLock, IconLock2, IconLogIn, IconLogOut, IconLogOut2, IconMagicWand, IconMagicWand2, IconMail, IconMessageSquare, IconMessageSquare2, IconMessageXSquare, IconMinusCircle, IconMobile, IconMonitor, IconMonitor2, IconMonitor3, IconMoonCircle, IconName, IconNavigationPointer, IconNotificationBox, IconPCSetup, IconPalette, IconPasscodeLock, IconPencil, IconPercentageCircle, IconPerspective, IconPhoneCall, IconPin, IconPlayCircle, IconPlus, IconPlusCircle, IconPulse, IconQuestionCircle, IconRadioButton, IconRadioButtonActive, IconReceiptCheck, IconRedo, IconRefresh, IconRefresh2, IconRefresh3, IconRepeat, IconRepeat2, IconRetweet, IconRoundChart, IconRoundChart2, IconRoute, IconSave, IconSave2, IconScanDots, IconSearch, IconSend, IconSettings, IconSettings2, IconSettings3, IconShieldLightning, IconShieldPlus, IconShieldRemove, IconShuffle, IconSlashCircle, IconSlashOctagon, IconSocialGlobe, IconSocialLinkedin, IconSocialX, IconSpeedometer, IconStairsRound, IconStar, IconStarHalf, IconStars, IconStars2, IconStrikethrough, IconSuccessFeatured, IconSun, IconSwitchHorizontal, IconTag, IconTarget, IconTarget2, IconTextFormat, IconTextFormat2, IconTextHighlight, IconTranslate, IconTrash, IconTrending, IconUnderline, IconUndo, IconUndo2, IconUploadCloud, IconUser, IconUserEdit, IconUserRight, IconUserSquare, IconUsers, IconUsersUp, IconVolume, IconWrench, IconX, IconXCircle, IconXCircle2, IconXClose, IconXSquare, InfoLabels, type InfoLabelsProps, Input, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Lookup, type LookupOption, type LookupProps, Markdown, type MarkdownProps, Menu, type MenuProps, Modal, type ModalProps, type NotificationProps, Pagination, PaginationGoToPage, type PaginationGoToPageProps, PaginationPageSize, type PaginationPageSizeProps, type PaginationProps, PillBadge, type PillBadgeProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, RadioBoxGroup, type RadioBoxGroupProps, RadioButtonGroup, type RadioButtonGroupProps, Rating, type RatingProps, Select, type SelectProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonBanner, SkeletonButton, SkeletonCard, SkeletonCard2, SkeletonCard3, SkeletonCardStack, SkeletonChart, type SkeletonComponentProps, SkeletonContentCard, SkeletonDataGrid, SkeletonForm, SkeletonGlowingCard, SkeletonImage, SkeletonInfoCard, SkeletonInput, SkeletonList, SkeletonParagraph, type SkeletonProps, type SkeletonRoundness, SkeletonText, type SkeletonType, SkeletonVideo, SkeletonWidgetCard, SkeletonWrapper, Slider, type SliderProps, SliderRange, type SliderRangeProps, StackedProgressTracker, type StackedProgressTrackerProps, StackedProgressTrackerRow, type StackedProgressTrackerRowProps, StarRating, type StarRatingProps, Stepper, type StepperProps, Switch, type SwitchProps, type Tab, Tabs, type TabsProps, TextArea, type TextAreaProps, Tooltip, type TooltipProps, type TrackerItem, TrackerItemStatus, parseRgbaString, showNotification };