1mpacto-react-ui 0.0.44 → 0.0.46

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.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { IUploadFile } from '../../interfaces/components/UploadFile';
3
+
4
+ declare const UploadFile: React.ForwardRefExoticComponent<IUploadFile & React.RefAttributes<HTMLInputElement>>;
5
+ export default UploadFile;
@@ -39,9 +39,10 @@ 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 './UploadFile/UploadFile';
42
43
 
43
44
  import * as utilTable from '@tanstack/react-table';
44
45
  import type * as SelectDropdownContainerType from 'react-select';
45
46
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
46
- 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, };
47
+ 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, };
47
48
  export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, };
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- export type TButtonVariants = 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'nude-gray-500' | 'primary-blue-700' | 'secondary-blue-700' | 'secondary-red-600' | 'tertiary-blue-700' | 'ghost-blue-gray-100-bg_white';
3
+ export type TButtonVariants = 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'nude-gray-500' | 'primary-blue-700' | 'secondary-blue-700' | 'secondary-red-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-gray-500' | 'ghost-blue-gray-100-bg_white';
4
4
  export type TButtonSize = 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
5
5
  export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  size?: TButtonSize;
@@ -16,6 +16,7 @@ export interface IInputReguler extends InputHTMLAttributes<HTMLInputElement> {
16
16
  id?: string | undefined;
17
17
  label?: string;
18
18
  type?: string;
19
+ startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
19
20
  endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
20
21
  isRequired?: boolean;
21
22
  error?: string | undefined;
@@ -0,0 +1,8 @@
1
+ export interface IUploadFile {
2
+ onChange: (v?: File | null) => void;
3
+ validateFile?: string[];
4
+ maxFile?: number;
5
+ maxSize?: number;
6
+ fileName: string;
7
+ error?: string | undefined;
8
+ }
@@ -27,3 +27,5 @@ export declare const transformLatLong: (value: string, options?: {
27
27
  isValid: boolean;
28
28
  };
29
29
  export declare const sanitizeObjectKeyPrefix: (prefix: string, data: IMergeState) => IMergeState;
30
+ export declare const isAccurateNumber: (value: unknown) => boolean;
31
+ export declare function deepCompareEquals(a: unknown, b: unknown): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.44",
4
+ "version": "0.0.46",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",