@producteca/producteca-ui-kit 1.24.0 → 1.25.0
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/dropdown/dropdown.d.ts +4 -0
- package/dist/components/dropdown/dropdown.sx.d.ts +6 -0
- package/dist/components/dropdown/dropdown.types.d.ts +20 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/menu/menuAction/index.d.ts +3 -0
- package/dist/components/menu/menuAction/menuAction.d.ts +7 -0
- package/dist/components/menu/menuAction/menuAction.sx.d.ts +3 -0
- package/dist/components/menu/menuAction/menuAction.types.d.ts +10 -0
- package/dist/components/menu/menuItem/menuItem.d.ts +10 -0
- package/dist/components/menu/menuItem/menuItem.sx.d.ts +3 -0
- package/dist/components/menu/menuItem/menuItem.types.d.ts +16 -0
- package/dist/locales/es.d.ts +17 -0
- package/dist/producteca-ui-kit.es.js +5304 -5264
- package/dist/producteca-ui-kit.umd.js +124 -124
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/menuAction/index.d.ts +0 -1
- package/dist/components/menuAction/menuAction.d.ts +0 -19
- package/dist/components/menuAction/menuActionCustomStyles.d.ts +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MenuProps } from '@mui/material/Menu';
|
|
2
|
+
|
|
3
|
+
export declare const StyledMenu: import('@emotion/styled').StyledComponent<MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
4
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
+
}, "variant" | "size" | "className" | "disabled" | "children" | "color" | "style" | "classes" | "sx" | "tabIndex" | "href" | "action" | "loading" | "loadingIndicator" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "fullWidth" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DropdownItem } from '../menu/menuItem/menuItem.types';
|
|
2
|
+
|
|
3
|
+
export interface DropdownProps {
|
|
4
|
+
label: string;
|
|
5
|
+
items: DropdownItem[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
onToggle?: (open: boolean) => void;
|
|
9
|
+
onItemSelect?: (item: DropdownItem) => void;
|
|
10
|
+
anchorOrigin?: {
|
|
11
|
+
vertical: 'top' | 'bottom';
|
|
12
|
+
horizontal: 'left' | 'center' | 'right';
|
|
13
|
+
};
|
|
14
|
+
transformOrigin?: {
|
|
15
|
+
vertical: 'top' | 'bottom';
|
|
16
|
+
horizontal: 'left' | 'center' | 'right';
|
|
17
|
+
};
|
|
18
|
+
className?: string;
|
|
19
|
+
size?: 'sm' | 'lg';
|
|
20
|
+
}
|
|
@@ -8,7 +8,7 @@ export * from './alert/alert';
|
|
|
8
8
|
export * from './tooltip';
|
|
9
9
|
export * from './image';
|
|
10
10
|
export * from './breadcrumb';
|
|
11
|
-
export * from './menuAction';
|
|
11
|
+
export * from './menu/menuAction';
|
|
12
12
|
export * from './modals';
|
|
13
13
|
export * from './tabs';
|
|
14
14
|
export * from './sidebar';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MenuAction, type MenuActionProps, type MenuActionItemProps } from './menuAction';
|
|
2
|
+
export { MenuItemComponent, type MenuItemProps } from '../menuItem/menuItem';
|
|
3
|
+
export { type BaseMenuItemProps, type MenuItemWithId, type DropdownItem, type MenuActionItemProps as MenuActionItemPropsType } from '../menuItem/menuItem.types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MenuActionItemProps } from '../menuItem/menuItem.types';
|
|
3
|
+
import { MenuActionProps } from './menuAction.types';
|
|
4
|
+
|
|
5
|
+
export declare const MenuAction: React.FC<MenuActionProps>;
|
|
6
|
+
export type { MenuActionProps, MenuActionItemProps };
|
|
7
|
+
export default MenuAction;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MenuActionItemProps } from '../menuItem/menuItem.types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface MenuActionProps {
|
|
5
|
+
items: MenuActionItemProps[];
|
|
6
|
+
id?: string;
|
|
7
|
+
maxItemsVisible?: number;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
otherProps?: React.HTMLAttributes<HTMLButtonElement>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseMenuItemProps } from './menuItem.types';
|
|
3
|
+
|
|
4
|
+
interface MenuItemProps extends BaseMenuItemProps {
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
size?: "lg" | "md" | "sm";
|
|
7
|
+
}
|
|
8
|
+
export declare const MenuItemComponent: React.FC<MenuItemProps>;
|
|
9
|
+
export type { MenuItemProps };
|
|
10
|
+
export default MenuItemComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface BaseMenuItemProps {
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
icon?: React.ReactElement;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MenuItemWithId extends BaseMenuItemProps {
|
|
11
|
+
id: string;
|
|
12
|
+
divider?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type MenuItemProps = BaseMenuItemProps;
|
|
15
|
+
export type DropdownItem = MenuItemWithId;
|
|
16
|
+
export type MenuActionItemProps = BaseMenuItemProps;
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -233,6 +233,23 @@ declare const _default: {
|
|
|
233
233
|
maxItems: string;
|
|
234
234
|
icon: string;
|
|
235
235
|
};
|
|
236
|
+
dropdown: {
|
|
237
|
+
label: string;
|
|
238
|
+
variant: string;
|
|
239
|
+
color: string;
|
|
240
|
+
disabled: string;
|
|
241
|
+
onItemSelect: string;
|
|
242
|
+
onToggle: string;
|
|
243
|
+
options: string;
|
|
244
|
+
edit: string;
|
|
245
|
+
duplicate: string;
|
|
246
|
+
archive: string;
|
|
247
|
+
more: string;
|
|
248
|
+
delete: string;
|
|
249
|
+
share: string;
|
|
250
|
+
divider: string;
|
|
251
|
+
size: string;
|
|
252
|
+
};
|
|
236
253
|
sidebar: {
|
|
237
254
|
monitoringCenter: string;
|
|
238
255
|
history: string;
|