1mpacto-react-ui 0.0.16 → 0.0.18
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 +36 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2871 -2847
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Tabs/Tabs.d.ts +3 -13
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/Sidebar/index.d.ts +2 -0
- package/dist/src/interfaces/components/Tabs/index.d.ts +13 -0
- package/package.json +1 -1
@@ -1,14 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
isHide?: boolean;
|
5
|
-
}
|
6
|
-
interface ITabs {
|
7
|
-
id?: string;
|
8
|
-
value: string | number;
|
9
|
-
tabsList: ITabsList[];
|
10
|
-
className?: string | undefined;
|
11
|
-
onChange?: (v: ITabsList) => void;
|
12
|
-
}
|
13
|
-
declare const Tabs: ({ id, value, tabsList, className, onChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
|
1
|
+
import { ITabs } from '../../interfaces/components/Tabs';
|
2
|
+
|
3
|
+
declare const Tabs: ({ id, value, keyTab, tabsList, className, onChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
|
14
4
|
export default Tabs;
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
2
2
|
|
3
3
|
export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
4
4
|
size?: 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
|
5
|
-
variants?: 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'primary-blue-700' | 'secondary-blue-700' | 'tertiary-blue-700' | 'ghost-blue-gray-100-bg_white';
|
5
|
+
variants?: 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'nude-laba-blue-10' | 'nude-gray-500' | 'primary-blue-700' | 'secondary-blue-700' | 'tertiary-blue-700' | 'ghost-blue-gray-100-bg_white';
|
6
6
|
startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
7
7
|
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
8
8
|
children: ReactNode | ReactNode[];
|
@@ -11,6 +11,7 @@ export interface ISidebarModule {
|
|
11
11
|
icon?: string;
|
12
12
|
svgIcon?: ReactNode | null;
|
13
13
|
svgIconActive?: ReactNode | null;
|
14
|
+
propsLink?: (value: string) => object;
|
14
15
|
}
|
15
16
|
export interface ISidebar<T extends ElementType> extends HTMLAttributes<HTMLDivElement> {
|
16
17
|
as?: T;
|
@@ -36,4 +37,5 @@ export interface IItemSidebar<T extends ElementType> extends ISidebarModule {
|
|
36
37
|
setShow: (v: string) => void;
|
37
38
|
onClickItems?: (v: ISidebarModule) => void;
|
38
39
|
propsLink?: (value: string) => object;
|
40
|
+
linkComponent?: T;
|
39
41
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface ITabsList {
|
2
|
+
id: string | number;
|
3
|
+
label: string | number;
|
4
|
+
isHide?: boolean;
|
5
|
+
}
|
6
|
+
export interface ITabs {
|
7
|
+
id?: string;
|
8
|
+
value: string | number;
|
9
|
+
keyTab?: string;
|
10
|
+
tabsList: ITabsList[];
|
11
|
+
className?: string | undefined;
|
12
|
+
onChange?: (v: ITabsList) => void;
|
13
|
+
}
|