@cleen/ui 0.1.207 → 0.1.208
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 +47 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2048,6 +2048,35 @@ interface StackedProgressTrackerRowProps {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
declare const StackedProgressTrackerRow: ({ item, labels, classNames, styles, }: StackedProgressTrackerRowProps) => react_jsx_runtime.JSX.Element;
|
|
2050
2050
|
|
|
2051
|
+
declare enum TrackerStatusFilter {
|
|
2052
|
+
NOT_STARTED = "notStarted",
|
|
2053
|
+
IN_PROGRESS = "inProgress",
|
|
2054
|
+
COMPLETED = "completed",
|
|
2055
|
+
ALL = "all"
|
|
2056
|
+
}
|
|
2057
|
+
declare const TRACKER_STATUS_FILTER_ORDER: readonly [TrackerStatusFilter.NOT_STARTED, TrackerStatusFilter.IN_PROGRESS, TrackerStatusFilter.COMPLETED, TrackerStatusFilter.ALL];
|
|
2058
|
+
|
|
2059
|
+
interface StackedProgressTrackerStatusFilterProps {
|
|
2060
|
+
value: TrackerStatusFilter;
|
|
2061
|
+
onChange: (value: TrackerStatusFilter) => void;
|
|
2062
|
+
/** Amount of items matching each filter, rendered after the option label */
|
|
2063
|
+
counts?: Record<TrackerStatusFilter, number>;
|
|
2064
|
+
labels?: StackedProgressTrackerProps['labels'];
|
|
2065
|
+
classNames?: {
|
|
2066
|
+
container?: string;
|
|
2067
|
+
option?: string;
|
|
2068
|
+
optionActive?: string;
|
|
2069
|
+
optionCount?: string;
|
|
2070
|
+
};
|
|
2071
|
+
styles?: {
|
|
2072
|
+
container?: CSSProperties;
|
|
2073
|
+
option?: CSSProperties;
|
|
2074
|
+
optionActive?: CSSProperties;
|
|
2075
|
+
optionCount?: CSSProperties;
|
|
2076
|
+
};
|
|
2077
|
+
}
|
|
2078
|
+
declare const StackedProgressTrackerStatusFilter: ({ value, onChange, counts, labels, classNames, styles, }: StackedProgressTrackerStatusFilterProps) => react_jsx_runtime.JSX.Element;
|
|
2079
|
+
|
|
2051
2080
|
type NativeDivProps$1 = Omit<ComponentProps<'div'>, 'children' | 'className' | 'style' | 'title'>;
|
|
2052
2081
|
interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
2053
2082
|
/** Items to track, rendered as one row each */
|
|
@@ -2063,6 +2092,15 @@ interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
|
2063
2092
|
onExpandedChange?: (isExpanded: boolean) => void;
|
|
2064
2093
|
/** Renders the dismiss control in the header when provided */
|
|
2065
2094
|
onDismiss?: () => void;
|
|
2095
|
+
/** Renders an inline segmented bar filtering the rows by status */
|
|
2096
|
+
showStatusFilter?: boolean;
|
|
2097
|
+
/** Renders the amount of matching items next to each status filter option */
|
|
2098
|
+
showStatusFilterCounts?: boolean;
|
|
2099
|
+
/** Controlled status filter selection */
|
|
2100
|
+
statusFilter?: TrackerStatusFilter;
|
|
2101
|
+
/** Initial status filter selection when uncontrolled */
|
|
2102
|
+
defaultStatusFilter?: TrackerStatusFilter;
|
|
2103
|
+
onStatusFilterChange?: (statusFilter: TrackerStatusFilter) => void;
|
|
2066
2104
|
labels?: {
|
|
2067
2105
|
processing?: (count: number) => ReactNode;
|
|
2068
2106
|
completed?: ReactNode;
|
|
@@ -2071,6 +2109,9 @@ interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
|
2071
2109
|
dismiss?: string;
|
|
2072
2110
|
contract?: string;
|
|
2073
2111
|
itemProgress?: (progress: number) => ReactNode;
|
|
2112
|
+
statusFilter?: string;
|
|
2113
|
+
statusFilterOptions?: Record<TrackerStatusFilter, ReactNode>;
|
|
2114
|
+
emptyStatusFilter?: ReactNode;
|
|
2074
2115
|
};
|
|
2075
2116
|
className?: string;
|
|
2076
2117
|
style?: CSSProperties;
|
|
@@ -2081,8 +2122,10 @@ interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
|
2081
2122
|
title?: string;
|
|
2082
2123
|
contractButton?: string;
|
|
2083
2124
|
dismissButton?: string;
|
|
2125
|
+
statusFilter?: StackedProgressTrackerStatusFilterProps['classNames'];
|
|
2084
2126
|
list?: string;
|
|
2085
2127
|
row?: StackedProgressTrackerRowProps['classNames'];
|
|
2128
|
+
emptyStatusFilter?: string;
|
|
2086
2129
|
expandButton?: string;
|
|
2087
2130
|
};
|
|
2088
2131
|
styles?: {
|
|
@@ -2092,8 +2135,10 @@ interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
|
2092
2135
|
title?: CSSProperties;
|
|
2093
2136
|
contractButton?: CSSProperties;
|
|
2094
2137
|
dismissButton?: CSSProperties;
|
|
2138
|
+
statusFilter?: StackedProgressTrackerStatusFilterProps['styles'];
|
|
2095
2139
|
list?: CSSProperties;
|
|
2096
2140
|
row?: StackedProgressTrackerRowProps['styles'];
|
|
2141
|
+
emptyStatusFilter?: CSSProperties;
|
|
2097
2142
|
expandButton?: CSSProperties;
|
|
2098
2143
|
};
|
|
2099
2144
|
}
|
|
@@ -2103,6 +2148,7 @@ interface StackedProgressTrackerProps extends NativeDivProps$1 {
|
|
|
2103
2148
|
* - Renders one row per `TrackerItem`, with its optional icon, name, progress bar and status.
|
|
2104
2149
|
* - Renders `null` when there are no items to show.
|
|
2105
2150
|
* - Truncates the list past `maxVisibleItems` with a "+N more" expand control.
|
|
2151
|
+
* - Optionally renders an inline status filter bar with `showStatusFilter`, defaulting to the in progress rows.
|
|
2106
2152
|
*/
|
|
2107
2153
|
declare const StackedProgressTracker: react.ForwardRefExoticComponent<Omit<StackedProgressTrackerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2108
2154
|
|
|
@@ -3764,4 +3810,4 @@ type TabsProps = ComponentProps<'div'> & {
|
|
|
3764
3810
|
*/
|
|
3765
3811
|
declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
3766
3812
|
|
|
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 };
|
|
3813
|
+
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, StackedProgressTrackerStatusFilter, type StackedProgressTrackerStatusFilterProps, StarRating, type StarRatingProps, Stepper, type StepperProps, Switch, type SwitchProps, TRACKER_STATUS_FILTER_ORDER, type Tab, Tabs, type TabsProps, TextArea, type TextAreaProps, Tooltip, type TooltipProps, type TrackerItem, TrackerItemStatus, TrackerStatusFilter, parseRgbaString, showNotification };
|