1mpacto-react-ui 0.0.20 → 0.0.22
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/style.css +1 -1
- package/dist/index.cjs +49 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8358 -7670
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/NumberFormat/NumberFormat.d.ts +4 -0
- package/dist/src/components/Tabs/Tabs.d.ts +1 -1
- package/dist/src/components/index.d.ts +5 -2
- package/dist/src/interfaces/components/FilterContainer/index.d.ts +2 -0
- package/dist/src/interfaces/components/Input/index.d.ts +2 -2
- package/dist/src/interfaces/components/NumberFormat/index.d.ts +6 -0
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +1 -0
- package/dist/src/interfaces/components/Tabs/index.d.ts +2 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ITabs } from '../../interfaces/components/Tabs';
|
2
2
|
|
3
|
-
declare const Tabs: ({ id, value,
|
3
|
+
declare const Tabs: ({ id, value, keyValueTab, tabsList, className, onChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Tabs;
|
@@ -33,9 +33,12 @@ import { default as ModalDialog } from './Modal/ModalDialog';
|
|
33
33
|
import { components as SelectDropdownContainerComponents } from 'react-select';
|
34
34
|
import { default as Timeline } from './Timeline/Timeline';
|
35
35
|
import { default as FilterContainer } from './FilterContainer/FilterContainer';
|
36
|
+
import { default as NumberFormat } from './NumberFormat/NumberFormat';
|
37
|
+
import { PatternFormat } from 'react-number-format';
|
38
|
+
import { IInputReguler, IInputFloatingInner } from '../interfaces/components/Input';
|
36
39
|
|
37
40
|
import * as utilTable from '@tanstack/react-table';
|
38
41
|
import type * as SelectDropdownContainerType from 'react-select';
|
39
42
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
40
|
-
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, };
|
41
|
-
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, };
|
43
|
+
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, };
|
44
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, };
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
2
2
|
|
3
3
|
export interface IChildFilterContainer {
|
4
4
|
handlerOnChange: THandlerOnChangeFilterContainer;
|
5
|
+
handlerOnChangeNative: THandlerOnChangeNative;
|
5
6
|
value: IMergeState;
|
6
7
|
nativeValue: IMergeState;
|
7
8
|
}
|
@@ -12,6 +13,7 @@ export interface IMergeState {
|
|
12
13
|
[key: string]: object | string | boolean | string[] | IArrayOfObjectFilterContainer;
|
13
14
|
}
|
14
15
|
export type THandlerOnChangeFilterContainer = (value: object | string | boolean | string[] | IArrayOfObjectFilterContainer, key: string, transform: 'array-to-string' | 'array-of-object-to-array' | 'array-of-object-to-string' | '', keyTransform: string) => void;
|
16
|
+
export type THandlerOnChangeNative = (value: IMergeState, nativeValue?: IMergeState) => void;
|
15
17
|
export interface IFilterContainer {
|
16
18
|
children: ((params: IChildFilterContainer) => ReactNode) | ((params: IChildFilterContainer) => ReactNode[]);
|
17
19
|
onChange?: (value: IMergeState, nativeValue: IMergeState) => void;
|
@@ -3,7 +3,7 @@ import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
export interface IInputFloatingInner extends InputHTMLAttributes<HTMLInputElement> {
|
4
4
|
classNameContainer?: string | undefined;
|
5
5
|
id?: string | undefined;
|
6
|
-
label
|
6
|
+
label?: string;
|
7
7
|
type?: string;
|
8
8
|
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
9
9
|
isRequired?: boolean;
|
@@ -14,7 +14,7 @@ export interface IInputFloatingInner extends InputHTMLAttributes<HTMLInputElemen
|
|
14
14
|
export interface IInputReguler extends InputHTMLAttributes<HTMLInputElement> {
|
15
15
|
classNameContainer?: string | undefined;
|
16
16
|
id?: string | undefined;
|
17
|
-
label
|
17
|
+
label?: string;
|
18
18
|
type?: string;
|
19
19
|
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
20
20
|
isRequired?: boolean;
|
@@ -28,6 +28,7 @@ export interface ISelectDropdownContainer<T> extends Omit<SelectProps<T, boolean
|
|
28
28
|
withSearch?: boolean;
|
29
29
|
components?: SelectComponentsConfig<T, boolean, GroupBase<T>>;
|
30
30
|
getOptionLabel?: (option: T) => ReactNode | Element | string;
|
31
|
+
selectProps?: object;
|
31
32
|
}
|
32
33
|
export interface IChildrenSelectDropdownContainer {
|
33
34
|
selectValue: unknown;
|
@@ -5,9 +5,9 @@ export interface ITabsList {
|
|
5
5
|
}
|
6
6
|
export interface ITabs {
|
7
7
|
id?: string;
|
8
|
-
value
|
9
|
-
keyTab?: string;
|
8
|
+
value?: string | number;
|
10
9
|
tabsList: ITabsList[];
|
10
|
+
keyValueTab?: string;
|
11
11
|
className?: string | undefined;
|
12
12
|
onChange?: (v: ITabsList) => void;
|
13
13
|
}
|