@producteca/producteca-ui-kit 1.87.1 → 1.88.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/icons/generatingState/generatingStateIcon.d.js +1 -0
- package/dist/components/icons/generatingState/generatingStateIcon.d.ts +5 -0
- package/dist/components/icons/index.d.js +1 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/patterns/generatingState/generatingState.d.js +1 -0
- package/dist/components/patterns/generatingState/generatingState.d.ts +5 -0
- package/dist/components/patterns/generatingState/generatingState.types.d.js +1 -0
- package/dist/components/patterns/generatingState/generatingState.types.d.ts +8 -0
- package/dist/components/patterns/generatingState/index.d.js +2 -0
- package/dist/components/patterns/generatingState/index.d.ts +2 -0
- package/dist/components/patterns/index.d.js +1 -0
- package/dist/components/patterns/index.d.ts +1 -0
- package/dist/locales/description.d.ts +1 -0
- package/dist/locales/en.d.ts +4 -0
- package/dist/locales/es.d.ts +16 -0
- package/dist/locales/pt-BR.d.ts +4 -0
- package/dist/producteca-ui-kit.es.js +13 -13
- package/dist/producteca-ui-kit.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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';
|
|
@@ -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";
|
package/dist/locales/en.d.ts
CHANGED
package/dist/locales/es.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -580,6 +583,19 @@ declare const _default: {
|
|
|
580
583
|
or: string;
|
|
581
584
|
and: string;
|
|
582
585
|
};
|
|
586
|
+
generatingState: {
|
|
587
|
+
text: string;
|
|
588
|
+
description: string;
|
|
589
|
+
spreadsheetText: string;
|
|
590
|
+
spreadsheetHighlight: string;
|
|
591
|
+
customText: string;
|
|
592
|
+
customHighlight: string;
|
|
593
|
+
customDescription: string;
|
|
594
|
+
textDescription: string;
|
|
595
|
+
highlightDescription: string;
|
|
596
|
+
descriptionDescription: string;
|
|
597
|
+
iconDescription: string;
|
|
598
|
+
};
|
|
583
599
|
maintenance: {
|
|
584
600
|
title: string;
|
|
585
601
|
description: string;
|