1mpacto-react-ui 0.0.58 → 0.0.60
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 +5064 -4904
- 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/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
|
+
}
|
package/package.json
CHANGED