1mpacto-react-ui 0.0.59 → 0.0.61
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/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +51 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6134 -5969
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Upload/UploadFile.d.ts +7 -0
- package/dist/src/components/Upload/UploadImage.d.ts +4 -0
- package/dist/src/components/index.d.ts +3 -2
- package/dist/src/interfaces/components/UploadFile/index.d.ts +13 -0
- package/dist/src/utils/common.d.ts +6 -3
- package/package.json +1 -1
- package/dist/src/components/UploadFile/UploadFile.d.ts +0 -5
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IUploadImage } from '../../interfaces/components/UploadFile';
|
2
|
+
|
3
|
+
declare const UploadImage: ({ onChange, valueUrl, validateFile, validateFileDesc, maxSize, icon, desc, classNameContainer, classNameImage, classNameAction, }: IUploadImage) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export default UploadImage;
|
@@ -39,12 +39,13 @@ import { IInputReguler, IInputFloatingInner } from '../interfaces/components/Inp
|
|
39
39
|
import { default as PortalComponent } from './PortalComponent/PortalComponent';
|
40
40
|
import { ToastContainer as AlertContainer } from 'react-toastify';
|
41
41
|
import { TButtonVariants, TButtonSize } from '../interfaces/components/Button';
|
42
|
-
import { default as UploadFile } from './
|
42
|
+
import { default as UploadFile } from './Upload/UploadFile';
|
43
43
|
import { ITabsList } from '../interfaces/components/Tabs';
|
44
44
|
import { default as TruncateComponent } from './TruncateComponent/TruncateComponent';
|
45
|
+
import { default as UploadImage } from './Upload/UploadImage';
|
45
46
|
|
46
47
|
import * as utilTable from '@tanstack/react-table';
|
47
48
|
import type * as SelectDropdownContainerType from 'react-select';
|
48
49
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
49
|
-
export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, };
|
50
|
+
export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, };
|
50
51
|
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, };
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
1
2
|
import { IInputReguler } from '../Input';
|
2
3
|
|
3
4
|
export interface IUploadFile {
|
@@ -10,3 +11,15 @@ export interface IUploadFile {
|
|
10
11
|
error?: string | undefined;
|
11
12
|
inputProps?: IInputReguler;
|
12
13
|
}
|
14
|
+
export interface IUploadImage {
|
15
|
+
onChange: (v?: File | null) => void;
|
16
|
+
valueUrl?: string;
|
17
|
+
validateFile?: string[];
|
18
|
+
validateFileDesc?: string;
|
19
|
+
maxSize?: number;
|
20
|
+
icon?: ReactNode;
|
21
|
+
desc?: string | ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
22
|
+
classNameContainer?: string | undefined;
|
23
|
+
classNameImage?: string | undefined;
|
24
|
+
classNameAction?: string | undefined;
|
25
|
+
}
|
@@ -10,9 +10,12 @@ export declare function formatNumber(number: number, style?: 'currency' | 'decim
|
|
10
10
|
export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string) => string;
|
11
11
|
export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string) => string;
|
12
12
|
export declare const groupByKey: <T>(value: T[], key: keyof T) => Record<string, T[]>;
|
13
|
-
export declare const transformDataHistory: <T extends {
|
14
|
-
|
15
|
-
|
13
|
+
export declare const transformDataHistory: <T extends Record<string, TDateType>>({ value, keyDate, keyFormat, format, }: {
|
14
|
+
value: T[];
|
15
|
+
keyDate?: string;
|
16
|
+
keyFormat?: string;
|
17
|
+
format?: string;
|
18
|
+
}) => Record<string, T[]>;
|
16
19
|
export declare const parseDecimal: (value: number | string, decimals?: number) => number;
|
17
20
|
export declare const removeKeyObjectEmptyValue: (data: IMergeState) => IMergeState;
|
18
21
|
export declare const transformLatLong: (value: string, options?: {
|
package/package.json
CHANGED