@producteca/producteca-ui-kit 1.87.1 → 1.89.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.
@@ -0,0 +1,5 @@
1
+ import { IconInterface } from '../parameters';
2
+
3
+ export declare const GeneratingStateIcon: ({ size, color, }: IconInterface) => import("react/jsx-runtime").JSX.Element;
4
+ export type { IconInterface };
5
+ export default GeneratingStateIcon;
@@ -10,5 +10,6 @@ export * from './errorState/errorStateIcon';
10
10
  export * from './checkIcon/checkIcon';
11
11
  export * from './successState/successStateIcon';
12
12
  export * from './newState/newStateIcon';
13
+ export * from './generatingState/generatingStateIcon';
13
14
  export * from './maintenance/maintenanceIcon';
14
15
  export * from './productecaIcon/productecaIcon';
@@ -10,5 +10,6 @@ export * from './errorState/errorStateIcon';
10
10
  export * from './checkIcon/checkIcon';
11
11
  export * from './successState/successStateIcon';
12
12
  export * from './newState/newStateIcon';
13
+ export * from './generatingState/generatingStateIcon';
13
14
  export * from './maintenance/maintenanceIcon';
14
15
  export * from './productecaIcon/productecaIcon';
@@ -0,0 +1,5 @@
1
+ import { GeneratingStateProps } from './generatingState.types';
2
+
3
+ export declare const GeneratingState: ({ highlight, icon, text, description, }: GeneratingStateProps) => import("react/jsx-runtime").JSX.Element;
4
+ export type { GeneratingStateProps };
5
+ export default GeneratingState;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface GeneratingStateProps {
4
+ text?: string;
5
+ highlight?: string;
6
+ description?: string;
7
+ icon?: React.ReactNode;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './generatingState';
2
+ export * from './generatingState.types';
@@ -0,0 +1,2 @@
1
+ export * from './generatingState';
2
+ export * from './generatingState.types';
@@ -8,6 +8,7 @@ export * from './iconWithIdentifier';
8
8
  export * from './conditionalOperator';
9
9
  export * from './helpArticleLink';
10
10
  export * from './maintenance/maintenance';
11
+ export * from './generatingState';
11
12
  export * from './pickChannelModal';
12
13
  export * from './fileRow';
13
14
  export * from './permissionSelector';
@@ -8,6 +8,7 @@ export * from './iconWithIdentifier';
8
8
  export * from './conditionalOperator';
9
9
  export * from './helpArticleLink';
10
10
  export * from './maintenance/maintenance';
11
+ export * from './generatingState';
11
12
  export * from './pickChannelModal';
12
13
  export * from './fileRow';
13
14
  export * from './permissionSelector';
@@ -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 { default as React } from 'react';
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
+ };
@@ -56,6 +56,7 @@ export declare const tableBodyExample = "\n## Uso del componente\n\n`Table.Body`
56
56
  export declare const tableExample = "\n## Uso del componente\n\nEl componente `Table` es un contenedor compuesto. Recibe `columns` y los distribuye por contexto a `Table.Header` y `Table.Body`, accesibles por dot-notation.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<Table columns={columns}>\n <Table.Header />\n <Table.Body data={rows} />\n</Table>\n```\n\n### Definici\u00F3n de columnas:\n\n```tsx\nconst columns: TableColumn<MyRow>[] = [\n { key: 'name', header: 'Nombre' },\n { key: 'status', header: 'Estado', sx: { textAlign: 'center' } },\n {\n key: 'actions',\n header: 'Acciones',\n sx: { width: 80 },\n render: (row) => <Button label=\"Editar\" onClick={() => edit(row)} />,\n },\n]\n```\n";
57
57
  export declare const tableAsyncContentExample = "\n`Table.Body` integra `AsyncContent` internamente: recibe las mismas props de estado (`isLoading`, `error`, `empty`, `success`) y resuelve el loader, el error y el estado vac\u00EDo **dentro** de la tabla, sin desmontar el `Table.Header`.\n\nEl estado vac\u00EDo se deriva de `data` (no hace falta pasar `items`). Cuando hay filas y no hay carga/error, se renderizan las filas normalmente.\n\n### Ejemplo:\n\n```tsx\n<Table columns={columns}>\n <Table.Header />\n <Table.Body\n data={rows}\n isLoading={isLoading}\n empty={{\n text: 'No hay datos disponibles',\n actionText: 'Cargar datos',\n onClick: loadData,\n }}\n />\n</Table>\n```\n";
58
58
  export declare const spinnerExample = "\n## Uso del componente\n\nEl componente `Spinner` muestra un indicador de carga. Acepta `size` (`xs`, `sm`, `md`, `lg`).\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<Spinner size=\"md\" />\n```\n";
59
+ export declare const generatingStateExample = "\n## Uso del componente\n\nEl componente `GeneratingState` muestra el estado intermedio mientras se genera un recurso (por ejemplo, una planilla). Combina la ilustraci\u00F3n animada, un texto principal con un fragmento opcional resaltado en negrita (`highlight`), un texto secundario y un spinner.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<GeneratingState />\n```\n\n### Con fragmento resaltado:\n\n```tsx\n<GeneratingState\n text=\"Se est\u00E1 generando la planilla para\"\n highlight=\"editar datos del producto\"\n description=\"Esto puede tardar unos segundos\"\n/>\n```\n";
59
60
  export declare const maintenanceExample = "\n## Uso del componente\n\nEl componente `Maintenance` muestra una vista de p\u00E1gina completa para indicar que el sistema est\u00E1 en mantenimiento. Acepta `title`, `description` y `subtitle` opcionales con valores por defecto en espa\u00F1ol.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<Maintenance />\n```\n\n### Con contenido personalizado:\n\n```tsx\n<Maintenance\n title=\"Estamos mejorando\"\n description=\"Estamos haciendo algunos ajustes para brindarte una mejor experiencia.\"\n subtitle=\"Volvemos en unos minutos.\"\n/>\n```\n";
60
61
  export declare const permissionOptionExample = "\n## Uso del componente\n\nEl componente `PermissionOption` muestra un permiso (Lectura, Edici\u00F3n o Sin acceso) con su \u00EDcono y label. Es clickeable/seleccionable: al definir `onClick` se vuelve interactivo (accesible por teclado). `isActive` lo muestra seleccionado (fondo celeste + texto/\u00EDcono azul) y `disabled` lo aten\u00FAa (opacidad 0.5) sin interacci\u00F3n.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<PermissionOption\n permission=\"read\"\n isActive\n onClick={() => setPermission('read')}\n/>\n```\n";
61
62
  export declare const permissionSelectorExample = "\n## Uso del componente\n\nEl componente `PermissionSelector` muestra los tres permisos (Sin acceso, Lectura, Edici\u00F3n) en l\u00EDnea como un selector de opci\u00F3n \u00FAnica. Al elegir un permiso, el fondo celeste se desliza desde el permiso actual hacia el seleccionado (misma t\u00E9cnica que `Tabs`).\n\n### Ejemplo b\u00E1sico:\n\n```tsx\nconst [permission, setPermission] = React.useState('noAccess')\n\n<PermissionSelector\n value={permission}\n onChange={setPermission}\n/>\n```\n";
@@ -42,6 +42,10 @@ declare const _default: {
42
42
  removeFile: string;
43
43
  uploadingFile: string;
44
44
  };
45
+ generatingState: {
46
+ description: string;
47
+ text: string;
48
+ };
45
49
  guide: string;
46
50
  maintenance: {
47
51
  description: string;
@@ -278,6 +278,9 @@ declare const _default: {
278
278
  tableBody: {
279
279
  example: string;
280
280
  };
281
+ generatingState: {
282
+ example: string;
283
+ };
281
284
  maintenance: {
282
285
  example: string;
283
286
  };
@@ -493,6 +496,9 @@ declare const _default: {
493
496
  moreOptions: string;
494
497
  itemsDescription: string;
495
498
  itemsSummary: string;
499
+ integrationsTooltip: string;
500
+ disabledTooltip: string;
501
+ tooltipsDescription: string;
496
502
  };
497
503
  link: {
498
504
  label: string;
@@ -580,6 +586,19 @@ declare const _default: {
580
586
  or: string;
581
587
  and: string;
582
588
  };
589
+ generatingState: {
590
+ text: string;
591
+ description: string;
592
+ spreadsheetText: string;
593
+ spreadsheetHighlight: string;
594
+ customText: string;
595
+ customHighlight: string;
596
+ customDescription: string;
597
+ textDescription: string;
598
+ highlightDescription: string;
599
+ descriptionDescription: string;
600
+ iconDescription: string;
601
+ };
583
602
  maintenance: {
584
603
  title: string;
585
604
  description: string;
@@ -42,6 +42,10 @@ declare const _default: {
42
42
  removeFile: string;
43
43
  uploadingFile: string;
44
44
  };
45
+ generatingState: {
46
+ description: string;
47
+ text: string;
48
+ };
45
49
  guide: string;
46
50
  maintenance: {
47
51
  description: string;