@producteca/producteca-ui-kit 1.27.0 → 1.28.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.
@@ -1,3 +1,4 @@
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';
1
+ export { MenuAction } from './menuAction';
2
+ export { type MenuActionProps } from './menuAction.types';
3
+ export { MenuItemComponent } from '../menuItem/menuItem';
4
+ export { type DropdownItem, } from '../menuItem/menuItem.types';
@@ -1,7 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MenuActionItemProps } from '../menuItem/menuItem.types';
3
2
  import { MenuActionProps } from './menuAction.types';
4
3
 
5
4
  export declare const MenuAction: React.FC<MenuActionProps>;
6
- export type { MenuActionProps, MenuActionItemProps };
7
5
  export default MenuAction;
@@ -1,3 +1,4 @@
1
1
  import { SxProps, Theme } from '@mui/material/styles';
2
+ import { ButtonProps } from '../../button/button';
2
3
 
3
- export declare const menuPaperSx: SxProps<Theme>;
4
+ export declare const menuPaperSx: (size?: ButtonProps["size"], maxItemsVisible?: number) => SxProps<Theme>;
@@ -1,10 +1,11 @@
1
- import { MenuActionItemProps } from '../menuItem/menuItem.types';
1
+ import { MenuItemProps } from '../menuItem/menuItem.types';
2
2
  import { default as React } from 'react';
3
+ import { ButtonProps } from '../../button/button';
3
4
 
4
5
  export interface MenuActionProps {
5
- items: MenuActionItemProps[];
6
+ items: MenuItemProps[];
6
7
  id?: string;
7
8
  maxItemsVisible?: number;
8
9
  icon?: React.ReactNode;
9
- otherProps?: React.HTMLAttributes<HTMLButtonElement>;
10
+ size?: ButtonProps['size'];
10
11
  }
@@ -1,10 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { BaseMenuItemProps } from './menuItem.types';
2
+ import { MenuItemProps } from './menuItem.types';
3
3
 
4
- interface MenuItemProps extends BaseMenuItemProps {
5
- onClose?: () => void;
6
- size?: "lg" | "md" | "sm";
7
- }
8
4
  export declare const MenuItemComponent: React.FC<MenuItemProps>;
9
- export type { MenuItemProps };
10
5
  export default MenuItemComponent;
@@ -1,16 +1,17 @@
1
1
  import { default as React } from 'react';
2
+ import { ButtonProps } from '../../button/button';
2
3
 
3
- export interface BaseMenuItemProps {
4
+ export interface MenuItemProps {
4
5
  label: React.ReactNode;
5
6
  icon?: React.ReactElement;
6
7
  onClick?: () => void;
7
8
  disabled?: boolean;
8
9
  selected?: boolean;
10
+ size?: ButtonProps['size'];
11
+ onClose?: () => void;
9
12
  }
10
- export interface MenuItemWithId extends BaseMenuItemProps {
13
+ export interface MenuItemWithId extends MenuItemProps {
11
14
  id: string;
12
15
  divider?: boolean;
13
16
  }
14
- export type MenuItemProps = BaseMenuItemProps;
15
17
  export type DropdownItem = MenuItemWithId;
16
- export type MenuActionItemProps = BaseMenuItemProps;
@@ -19,6 +19,7 @@ declare const _default: {
19
19
  cancel: string;
20
20
  save: string;
21
21
  guide: string;
22
+ size: string;
22
23
  hideSelectedOptionsExplainText: string;
23
24
  switchInput: {
24
25
  options: string;