@cleen/ui 0.1.245 → 0.1.246
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 +64 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1931,7 +1931,7 @@ interface ProgressBarProps extends ComponentProps<'div'> {
|
|
|
1931
1931
|
*/
|
|
1932
1932
|
declare const ProgressBar: react.ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
1933
1933
|
|
|
1934
|
-
interface FileCardProps {
|
|
1934
|
+
interface FileCardProps$1 {
|
|
1935
1935
|
fileEntry: FileEntry;
|
|
1936
1936
|
onRemove?: (id: string) => void;
|
|
1937
1937
|
/**
|
|
@@ -2257,7 +2257,7 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
2257
2257
|
secondaryText?: string;
|
|
2258
2258
|
helperText?: string;
|
|
2259
2259
|
input?: string;
|
|
2260
|
-
fileCard?: FileCardProps['classNames'];
|
|
2260
|
+
fileCard?: FileCardProps$1['classNames'];
|
|
2261
2261
|
progressTracker?: ComponentClassnames<FileStackedProgressTrackerProps>;
|
|
2262
2262
|
};
|
|
2263
2263
|
styles?: {
|
|
@@ -2271,7 +2271,7 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
2271
2271
|
secondaryText?: CSSProperties;
|
|
2272
2272
|
helperText?: CSSProperties;
|
|
2273
2273
|
input?: CSSProperties;
|
|
2274
|
-
fileCard?: FileCardProps['styles'];
|
|
2274
|
+
fileCard?: FileCardProps$1['styles'];
|
|
2275
2275
|
progressTracker?: ComponentStyles<FileStackedProgressTrackerProps>;
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
@@ -2280,6 +2280,66 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
2280
2280
|
*/
|
|
2281
2281
|
declare const Dropzone: react.ForwardRefExoticComponent<Omit<DropzoneProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
2282
2282
|
|
|
2283
|
+
type FileCardData = {
|
|
2284
|
+
/** Display name including extension, e.g. "report.pdf" */
|
|
2285
|
+
name: string;
|
|
2286
|
+
/** Location of the file; when valid, clicking the card opens it in a new tab */
|
|
2287
|
+
url?: string;
|
|
2288
|
+
/** MIME type, e.g. "image/png". Preferred over extension for type detection */
|
|
2289
|
+
type?: string;
|
|
2290
|
+
/** Size in bytes */
|
|
2291
|
+
size?: number;
|
|
2292
|
+
/** Upload date (Date, ISO string or epoch ms) */
|
|
2293
|
+
uploadedAt?: Date | string | number;
|
|
2294
|
+
/** Optional dedicated thumbnail URL used in preview mode; falls back to `url` */
|
|
2295
|
+
previewUrl?: string;
|
|
2296
|
+
};
|
|
2297
|
+
type FileCardCategory = 'image' | 'video' | 'audio' | 'pdf' | 'document' | 'spreadsheet' | 'archive' | 'generic';
|
|
2298
|
+
|
|
2299
|
+
type FileCardProps = Omit<ComponentProps<'div'>, 'children'> & {
|
|
2300
|
+
file: FileCardData;
|
|
2301
|
+
/** Show the file content (image/video only) instead of the type icon. Default false */
|
|
2302
|
+
preview?: boolean;
|
|
2303
|
+
/** When provided, an X button is shown and this is called when it is clicked */
|
|
2304
|
+
onRemove?: (file: FileCardData) => void;
|
|
2305
|
+
/** Overrides the default secondary line */
|
|
2306
|
+
description?: ReactNode;
|
|
2307
|
+
labels?: {
|
|
2308
|
+
uploaded?: (date: Date | string | number) => ReactNode;
|
|
2309
|
+
};
|
|
2310
|
+
classNames?: {
|
|
2311
|
+
container?: string;
|
|
2312
|
+
main?: string;
|
|
2313
|
+
media?: string;
|
|
2314
|
+
icon?: string;
|
|
2315
|
+
content?: string;
|
|
2316
|
+
title?: string;
|
|
2317
|
+
description?: string;
|
|
2318
|
+
removeButton?: string;
|
|
2319
|
+
};
|
|
2320
|
+
styles?: {
|
|
2321
|
+
container?: CSSProperties;
|
|
2322
|
+
main?: CSSProperties;
|
|
2323
|
+
media?: CSSProperties;
|
|
2324
|
+
icon?: CSSProperties;
|
|
2325
|
+
content?: CSSProperties;
|
|
2326
|
+
title?: CSSProperties;
|
|
2327
|
+
description?: CSSProperties;
|
|
2328
|
+
removeButton?: CSSProperties;
|
|
2329
|
+
};
|
|
2330
|
+
};
|
|
2331
|
+
/**
|
|
2332
|
+
* Compact card describing a single file: a type-specific icon (or an image/video
|
|
2333
|
+
* preview), the file name, a secondary line and an optional remove button.
|
|
2334
|
+
*
|
|
2335
|
+
* - `file` is plain data (`FileCardData`), not a native `File`.
|
|
2336
|
+
* - When `file.url` uses `http:`, `https:` or `blob:`, the card opens it in a new tab.
|
|
2337
|
+
* - Passing `onRemove` renders the X button.
|
|
2338
|
+
* - Accepts `classNames` and `styles` for keys: `container`, `main`, `media`, `icon`,
|
|
2339
|
+
* `content`, `title`, `description`, `removeButton`.
|
|
2340
|
+
*/
|
|
2341
|
+
declare const FileCard: react.ForwardRefExoticComponent<Omit<FileCardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2342
|
+
|
|
2283
2343
|
interface FilterDrawerNewFilter {
|
|
2284
2344
|
filterName: string;
|
|
2285
2345
|
exposed: boolean;
|
|
@@ -3882,4 +3942,4 @@ type TabsProps = ComponentProps<'div'> & {
|
|
|
3882
3942
|
*/
|
|
3883
3943
|
declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
3884
3944
|
|
|
3885
|
-
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 NotificationAnimationType, type NotificationClassNames, type NotificationProps, type NotificationVariant, 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 };
|
|
3945
|
+
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, FileCard, type FileCardCategory, type FileCardData, type FileCardProps, 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 NotificationAnimationType, type NotificationClassNames, type NotificationProps, type NotificationVariant, 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 };
|