1mpacto-react-ui 0.0.74 → 0.0.76
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 +52 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2517 -2496
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Sidebar/Sidebar.d.ts +5 -3
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/interfaces/components/Sidebar/index.d.ts +28 -12
- package/package.json +1 -1
@@ -1,5 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { ISidebar } from '../../interfaces/components/Sidebar';
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { IRefSidebar, ISidebar } from '../../interfaces/components/Sidebar';
|
3
3
|
|
4
|
-
declare const Sidebar: <T extends ElementType = "div">(
|
4
|
+
declare const Sidebar: <T extends React.ElementType = "div">(props: ISidebar<T> & {
|
5
|
+
ref?: React.ForwardedRef<IRefSidebar>;
|
6
|
+
}) => JSX.Element;
|
5
7
|
export default Sidebar;
|
@@ -27,7 +27,7 @@ import { default as RadioCheckbox, DefaultCheckedChecboxIcon, DefaultRadioChecbo
|
|
27
27
|
import { default as RadioCheckboxLabel } from './RadioCheckbox/RadioCheckboxLabel';
|
28
28
|
import { default as Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
|
29
29
|
import { default as Sidebar } from './Sidebar/Sidebar';
|
30
|
-
import { ISidebarModule } from '../interfaces/components/Sidebar';
|
30
|
+
import { ISidebarModule, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar } from '../interfaces/components/Sidebar';
|
31
31
|
import { default as Collapse } from './Collapse/Collapse';
|
32
32
|
import { default as ModalDialog } from './Modal/ModalDialog';
|
33
33
|
import { components as SelectDropdownContainerComponents } from 'react-select';
|
@@ -52,4 +52,4 @@ import * as utilTable from '@tanstack/react-table';
|
|
52
52
|
import type * as SelectDropdownContainerType from 'react-select';
|
53
53
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
54
54
|
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, Textarea, };
|
55
|
-
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, };
|
55
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { default as React } from 'react';
|
2
2
|
|
3
3
|
export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white';
|
4
4
|
export interface ISidebarModule {
|
@@ -9,34 +9,50 @@ export interface ISidebarModule {
|
|
9
9
|
isShow: boolean;
|
10
10
|
parent: number;
|
11
11
|
icon?: string;
|
12
|
-
svgIcon?: ReactNode | null;
|
13
|
-
svgIconActive?: ReactNode | null;
|
12
|
+
svgIcon?: React.ReactNode | null;
|
13
|
+
svgIconActive?: React.ReactNode | null;
|
14
|
+
manualRoute?: boolean;
|
14
15
|
propsLink?: (value: string) => object;
|
15
16
|
}
|
16
|
-
export interface ISidebar<T extends ElementType> extends HTMLAttributes<HTMLDivElement> {
|
17
|
+
export interface ISidebar<T extends React.ElementType> extends React.HTMLAttributes<HTMLDivElement> {
|
17
18
|
as?: T;
|
18
|
-
children: ReactNode | ReactNode[];
|
19
|
+
children: React.ReactNode | React.ReactNode[];
|
19
20
|
patch?: string;
|
20
|
-
iconCompany: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
21
|
-
iconSubs?: ReactNode | ReactNode[];
|
22
|
-
iconCollapse?: ReactNode | ReactNode[];
|
23
|
-
iconCollapseClose?: ReactNode | ReactNode[];
|
21
|
+
iconCompany: React.ReactNode | React.ReactNode[] | ((params: IChildrenIconCompany) => React.ReactNode) | ((params: IChildrenIconCompany) => React.ReactNode[]);
|
22
|
+
iconSubs?: React.ReactNode | React.ReactNode[];
|
23
|
+
iconCollapse?: React.ReactNode | React.ReactNode[];
|
24
|
+
iconCollapseClose?: React.ReactNode | React.ReactNode[];
|
24
25
|
variant?: TVariantSidebarType;
|
25
26
|
modules: ISidebarModule[];
|
26
27
|
toleranceWidthIconCompany?: number;
|
27
|
-
footer?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
28
|
+
footer?: React.ReactNode | React.ReactNode[] | (() => React.ReactNode) | (() => React.ReactNode[]);
|
28
29
|
onClickItems?: (v: ISidebarModule) => void;
|
29
30
|
propsLink?: (value: string) => object;
|
31
|
+
withInheritance?: boolean;
|
30
32
|
}
|
31
|
-
export interface IItemSidebar<T extends ElementType> extends ISidebarModule {
|
33
|
+
export interface IItemSidebar<T extends React.ElementType> extends ISidebarModule {
|
32
34
|
as?: T;
|
33
35
|
show: string;
|
34
36
|
open: boolean | null;
|
35
37
|
patch?: string;
|
36
|
-
iconSubs?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
38
|
+
iconSubs?: React.ReactNode | React.ReactNode[] | (() => React.ReactNode) | (() => React.ReactNode[]);
|
37
39
|
variant?: TVariantSidebarType;
|
38
40
|
setShow: (v: string) => void;
|
39
41
|
onClickItems?: (v: ISidebarModule) => void;
|
40
42
|
propsLink?: (value: string) => object;
|
41
43
|
linkComponent?: T;
|
42
44
|
}
|
45
|
+
export interface ICloneElementSidebar {
|
46
|
+
openSidebar?: boolean;
|
47
|
+
setOpenSidebar?: React.Dispatch<React.SetStateAction<boolean | null>>;
|
48
|
+
handlerClickCollapse?: () => void;
|
49
|
+
}
|
50
|
+
export interface IRefSidebar {
|
51
|
+
openSidebar: boolean | null;
|
52
|
+
setOpenSidebar: React.Dispatch<React.SetStateAction<boolean | null>>;
|
53
|
+
handlerClickCollapse: () => void;
|
54
|
+
}
|
55
|
+
export interface IChildrenIconCompany {
|
56
|
+
openSidebar: boolean | null;
|
57
|
+
setOpenSidebar: React.Dispatch<React.SetStateAction<boolean | null>>;
|
58
|
+
}
|
package/package.json
CHANGED