demio-ui 2.1.85 → 2.1.87

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.
@@ -1,7 +1,7 @@
1
- import React, { MouseEventHandler } from 'react';
1
+ import React, { MouseEventHandler, ReactNode } from 'react';
2
2
  type Props = {
3
3
  disabled?: boolean;
4
- children?: string;
4
+ children?: ReactNode;
5
5
  size?: 'small' | 'medium' | 'large';
6
6
  variant?: 'primary' | 'secondary' | 'outline' | 'danger';
7
7
  onClick: MouseEventHandler<HTMLButtonElement>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface PaginationProps {
3
+ pageCount: number;
4
+ currentPage: number;
5
+ onChange: (page: number) => void;
6
+ className?: string;
7
+ selectedClassName?: string;
8
+ }
9
+ export declare function Pagination({ pageCount, currentPage, onChange, className, selectedClassName, }: PaginationProps): React.JSX.Element | null;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const getPagesData: ({ currentPage, pageCount, }: {
2
+ currentPage: number;
3
+ pageCount: number;
4
+ }) => {
5
+ pages: number[];
6
+ latestPage: number;
7
+ };
@@ -0,0 +1 @@
1
+ export { Pagination } from './Pagination';
@@ -0,0 +1,23 @@
1
+ import { FC, HTMLInputTypeAttribute, ReactNode } from 'react';
2
+ import { RcFile, UploadProgressEvent } from 'rc-upload/es/interface';
3
+ export interface UploadProps {
4
+ accept?: string;
5
+ children?: ReactNode;
6
+ className?: string;
7
+ customIcon?: ReactNode;
8
+ customHeader?: ReactNode;
9
+ customText?: ReactNode;
10
+ errorMessage?: string;
11
+ isDirectoryAllowed?: boolean;
12
+ isMulti?: boolean;
13
+ onBeforeUpload?: (file: RcFile, fileList: RcFile[]) => void;
14
+ onError?: (err: Error, ret: Record<string, unknown>, file: RcFile) => void;
15
+ onProgress?: (event: UploadProgressEvent, file: RcFile) => void;
16
+ onStart?: (file: RcFile) => void;
17
+ onSuccess?: (ret: Record<string, unknown>) => void;
18
+ type?: HTMLInputTypeAttribute;
19
+ url?: string;
20
+ view?: 'square' | 'circle';
21
+ }
22
+ declare const Upload: FC;
23
+ export default Upload;
@@ -0,0 +1 @@
1
+ export { default } from './Upload';
@@ -15,6 +15,7 @@ export { default as Label } from './Label';
15
15
  export { default as Loader } from './Loader';
16
16
  export { default as Modal } from './Modal';
17
17
  export { default as MultiSelect } from './MultiSelect';
18
+ export { Pagination } from './Pagination';
18
19
  export { Popover, PopoverContent, PopoverPortal, PopoverRoot, PopoverTrigger } from './Popover';
19
20
  export { default as Progress } from './Progress';
20
21
  export { default as RadioGroup } from './RadioGroup';
@@ -1,5 +1,7 @@
1
1
  import AddIcon from './add.svg';
2
2
  import ArrowLeftIcon from './arrow-left.svg';
3
+ import ArrowLeftDoubleIcon from './arrow-left-double.svg';
4
+ import ArrowLeftSingleIcon from './arrow-left-single.svg';
3
5
  import BarChartIcon from './bar_chart.svg';
4
6
  import BlockIcon from './block.svg';
5
7
  import BlurOnIcon from './blur_on.svg';
@@ -25,6 +27,7 @@ import ExclamationIcon from './exclamation.svg';
25
27
  import ExternalLinkIcon from './external_link.svg';
26
28
  import FileIcon from './file.svg';
27
29
  import FilterListIcon from './filter_list.svg';
30
+ import HelpSolidIcon from './help-solid.svg';
28
31
  import InfoIcon from './info.svg';
29
32
  import InfoSolidIcon from './info-1.svg';
30
33
  import InfoCircleIcon from './info-circle.svg';
@@ -68,4 +71,4 @@ import VolumeUpSolidIcon from './volume_up.svg';
68
71
  import VolumeUpIcon from './volume_up-1.svg';
69
72
  import WarningSolidIcon from './warning.svg';
70
73
  import WarningIcon from './warning-1.svg';
71
- export { AddIcon, ArrowDownIcon, ArrowLeftIcon, BarChartIcon, BlockIcon, BlurOnIcon, CachedIcon, CalendarIcon, CalendarStarIcon, ChatIcon, CheckboxIcon, CheckboxUncheckIcon, CheckCircleIcon, CheckCircleSolidIcon, ClockIcon, CloseIcon, CopyIcon, CustomizeIcon, DeleteIcon, DotsIcon, EditIcon, ElectricBoltIcon, EventDetailsIcon, EventRepeatIcon, ExclamationIcon, ExternalLinkIcon, FileIcon, FilterListIcon, InfoCircleIcon, InfoCircleSolidIcon, InfoIcon, InfoSolidIcon, ItemsIcon, ListIcon, ListThIcon, LocationIcon, LockIcon, MagicIcon, MailIcon, MaterialsIcon, MicOffIcon, MicOffSolidIcon, MicOnfIcon, MicOnSolidIcon, PasswordEyeCrossedIcon, PasswordEyeIcon, Person, PlayIcon, PollIcon, ProgressIcon, ReplayDisabledIcon, RocketIcon, SearchIcon, SmileIcon, StackedEmailIcon, SyncIcon, TimesCircleIcon, TodayIcon, TrendingDownIcon, TrendingUpIcon, VideoCamOffIcon, VideoCamOffSolidIcon, VideoCamOnIcon, VideoCamOnSolidIcon, VolumeOffIcon, VolumeOffSolidIcon, VolumeUpIcon, VolumeUpSolidIcon, WarningIcon, WarningSolidIcon, };
74
+ export { AddIcon, ArrowDownIcon, ArrowLeftDoubleIcon, ArrowLeftIcon, ArrowLeftSingleIcon, BarChartIcon, BlockIcon, BlurOnIcon, CachedIcon, CalendarIcon, CalendarStarIcon, ChatIcon, CheckboxIcon, CheckboxUncheckIcon, CheckCircleIcon, CheckCircleSolidIcon, ClockIcon, CloseIcon, CopyIcon, CustomizeIcon, DeleteIcon, DotsIcon, EditIcon, ElectricBoltIcon, EventDetailsIcon, EventRepeatIcon, ExclamationIcon, ExternalLinkIcon, FileIcon, FilterListIcon, HelpSolidIcon, InfoCircleIcon, InfoCircleSolidIcon, InfoIcon, InfoSolidIcon, ItemsIcon, ListIcon, ListThIcon, LocationIcon, LockIcon, MagicIcon, MailIcon, MaterialsIcon, MicOffIcon, MicOffSolidIcon, MicOnfIcon, MicOnSolidIcon, PasswordEyeCrossedIcon, PasswordEyeIcon, Person, PlayIcon, PollIcon, ProgressIcon, ReplayDisabledIcon, RocketIcon, SearchIcon, SmileIcon, StackedEmailIcon, SyncIcon, TimesCircleIcon, TodayIcon, TrendingDownIcon, TrendingUpIcon, VideoCamOffIcon, VideoCamOffSolidIcon, VideoCamOnIcon, VideoCamOnSolidIcon, VolumeOffIcon, VolumeOffSolidIcon, VolumeUpIcon, VolumeUpSolidIcon, WarningIcon, WarningSolidIcon, };