@producteca/producteca-ui-kit 1.88.0 → 1.89.1
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/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/sidebar.d.ts +2 -11
- package/dist/components/sidebar/sidebar.types.d.js +1 -0
- package/dist/components/sidebar/sidebar.types.d.ts +21 -0
- package/dist/locales/es.d.ts +3 -0
- package/dist/producteca-ui-kit.es.js +61 -61
- package/dist/producteca-ui-kit.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { AppSidebar as Sidebar } from './sidebar';
|
|
2
|
-
export type { SidebarProps, SidebarItemProps } from './sidebar';
|
|
2
|
+
export type { SidebarProps, SidebarItemProps, SidebarItemTooltipProps } from './sidebar.types';
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SidebarProps } from './sidebar.types';
|
|
2
2
|
|
|
3
|
-
export type SidebarItemProps = {
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: React.ReactNode;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export type SidebarProps = {
|
|
10
|
-
title?: string;
|
|
11
|
-
items: SidebarItemProps[];
|
|
12
|
-
};
|
|
13
3
|
export declare const AppSidebar: ({ title, items }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
4
|
export default AppSidebar;
|
|
5
|
+
export type { SidebarProps, SidebarItemProps, SidebarItemTooltipProps, SidebarMenuItemProps, } from './sidebar.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseTooltipProps } from '../tooltip/tooltip.types';
|
|
3
|
+
|
|
4
|
+
export interface SidebarItemTooltipProps extends Omit<BaseTooltipProps, 'trigger'> {
|
|
5
|
+
content?: string | React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export type SidebarItemProps = {
|
|
8
|
+
label: string;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
tooltipProps?: SidebarItemTooltipProps;
|
|
14
|
+
};
|
|
15
|
+
export type SidebarProps = {
|
|
16
|
+
title?: string;
|
|
17
|
+
items: SidebarItemProps[];
|
|
18
|
+
};
|
|
19
|
+
export type SidebarMenuItemProps = SidebarItemProps & {
|
|
20
|
+
collapsed: boolean;
|
|
21
|
+
};
|
package/dist/locales/es.d.ts
CHANGED