@producteca/producteca-ui-kit 1.97.0 → 1.98.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.
@@ -9,6 +9,7 @@ export * from './tooltip';
9
9
  export * from './image';
10
10
  export * from './breadcrumb';
11
11
  export * from './menu/menuAction';
12
+ export * from './menu/menuList';
12
13
  export * from './modals';
13
14
  export * from './tabs';
14
15
  export * from './card';
@@ -9,6 +9,7 @@ export * from './tooltip';
9
9
  export * from './image';
10
10
  export * from './breadcrumb';
11
11
  export * from './menu/menuAction';
12
+ export * from './menu/menuList';
12
13
  export * from './modals';
13
14
  export * from './tabs';
14
15
  export * from './card';
@@ -0,0 +1 @@
1
+ export { MenuList } from './menuList';
@@ -0,0 +1,2 @@
1
+ export { MenuList } from './menuList';
2
+ export { type MenuListProps } from './menuList.types';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { MenuListProps } from './menuList.types';
3
+
4
+ export declare const MenuList: React.FC<MenuListProps>;
5
+ export default MenuList;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
+ import { ButtonProps } from '../../button/button';
3
+
4
+ export declare const menuListSx: (size?: ButtonProps["size"], maxItemsVisible?: number, surface?: boolean) => SxProps<Theme>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { MenuListProps as MuiMenuListProps } from '@mui/material/MenuList';
2
+ import { ButtonProps } from '../../button/button';
3
+
4
+ export interface MenuListProps extends MuiMenuListProps {
5
+ size?: ButtonProps['size'];
6
+ maxItemsVisible?: number;
7
+ surface?: boolean;
8
+ }
@@ -24,6 +24,7 @@ export declare const cardExample = "\n## Uso del componente\n\nEl componente `Ca
24
24
  export declare const chipExample = "\n## Uso del componente\n\nEl componente `Chip` muestra una etiqueta con texto, variante de color y opci\u00F3n de remover. Variantes: `default`, `success`, `error`, `warning`, `info`.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<Chip\n text=\"Etiqueta\"\n title=\"T\u00EDtulo del chip\"\n onRemove={() => removeChip(id)}\n/>\n```\n\n### Con variante y deshabilitado:\n\n```tsx\n<Chip\n text=\"Fijo\"\n variant=\"success\"\n disabled\n/>\n```\n";
25
25
  export declare const dropdownExample = "\n## Uso del componente\n\nEl componente `Dropdown` muestra un bot\u00F3n que al hacer click despliega una lista de opciones con \u00EDconos opcionales.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\nconst items = [\n { id: 'edit', label: 'Editar', icon: <EditIcon />, onClick: () => {} },\n { id: 'delete', label: 'Eliminar', icon: <DeleteIcon />, onClick: () => {} },\n]\n\n<Dropdown\n label=\"M\u00E1s opciones\"\n options={items}\n onItemSelect={(id) => handleSelect(id)}\n/>\n```\n";
26
26
  export declare const menuActionExample = "\n## Uso del componente\n\nEl componente `MenuAction` muestra un bot\u00F3n (por defecto con \u00EDcono de tres puntos) que abre un men\u00FA de acciones. Cada \u00EDtem puede tener `label`, `icon`, `onClick`, `disabled` y `selected`.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<MenuAction\n items={[\n { label: 'Editar', icon: <EditIcon />, onClick: () => edit() },\n { label: 'Eliminar', onClick: () => remove(), disabled: true },\n ]}\n/>\n```\n";
27
+ export declare const menuListExample = "\n## Uso del componente\n\nEl componente `MenuList` es la superficie de men\u00FA del kit. Provee el contexto que `MenuItemComponent` necesita para renderizar, de modo que se pueda armar un men\u00FA propio sin pasar por `MenuAction` ni `Dropdown` (ambos traen su propio disparador).\n\n\u00DAsalo cuando necesites anclar o posicionar el men\u00FA vos mismo: una celda de una grilla, un popover propio, un contenedor con scroll.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<MenuList size=\"md\" maxItemsVisible={6}>\n {options.map((option) => (\n <MenuItemComponent\n key={option}\n label={option}\n selected={option === value}\n onClick={() => select(option)}\n />\n ))}\n</MenuList>\n```\n\nCon `surface={false}` se apaga el fondo, el borde redondeado y la sombra, para embeberlo en una superficie propia.\n";
27
28
  export declare const tabsExample = "\n## Uso del componente\n\nEl componente `Tabs` renderiza pesta\u00F1as. Acepta `items` (array de `{ id, label, href?, onClick? }`), `value` (id activo) y `onChange`.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\nconst [value, setValue] = React.useState('tab-1')\n\n<Tabs\n value={value}\n items={[\n { id: 'tab-1', label: 'Pesta\u00F1a 1' },\n { id: 'tab-2', label: 'Pesta\u00F1a 2' },\n ]}\n onChange={(item) => item && setValue(item.id)}\n/>\n```\n";
28
29
  export declare const sidebarExample = "\n## Uso del componente\n\nEl componente `Sidebar` renderiza una barra lateral de navegaci\u00F3n con \u00EDtems que pueden tener `label`, `isActive`, `icon` y `onClick`.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\nconst items = [\n { label: 'Dashboard', isActive: true, onClick: () => navigate('/') },\n { label: 'Productos', icon: <BoxIcon />, onClick: () => navigate('/products') },\n]\n\n<Sidebar items={items} />\n```\n";
29
30
  export declare const imageExample = "\n## Uso del componente\n\nEl componente `Image` muestra una imagen con soporte para `src`, `alt` y estilos `sx` (MUI).\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<Image\n src=\"https://example.com/photo.jpg\"\n alt=\"Descripci\u00F3n\"\n sx={{ width: 200, height: 200, borderRadius: 1 }}\n/>\n```\n";
@@ -198,6 +198,9 @@ declare const _default: {
198
198
  menuAction: {
199
199
  example: string;
200
200
  };
201
+ menuList: {
202
+ example: string;
203
+ };
201
204
  tabs: {
202
205
  example: string;
203
206
  };
@@ -472,6 +475,12 @@ declare const _default: {
472
475
  maxItems: string;
473
476
  icon: string;
474
477
  };
478
+ menuList: {
479
+ size: string;
480
+ maxItems: string;
481
+ surface: string;
482
+ sizes: string;
483
+ };
475
484
  dropdown: {
476
485
  label: string;
477
486
  variant: string;