@producteca/producteca-ui-kit 1.76.5 → 1.77.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.
@@ -2,12 +2,13 @@ import { default as React } from 'react';
2
2
 
3
3
  export interface CardProps {
4
4
  icon?: React.ReactNode;
5
- title?: string;
5
+ title?: React.ReactNode;
6
6
  isActive?: boolean;
7
- description?: string;
7
+ description?: React.ReactNode;
8
8
  disabled?: boolean;
9
9
  onClick?: () => void;
10
10
  sx?: React.CSSProperties;
11
+ children?: React.ReactNode;
11
12
  }
12
13
  export declare const Card: React.FC<CardProps>;
13
14
  export default Card;
@@ -1,4 +1,5 @@
1
1
  import { PickChannelModalProps, PickChannelModalChannel } from './pickChannelModal.types';
2
2
 
3
3
  export declare const sampleChannels: PickChannelModalChannel[];
4
+ export declare const manyChannels: PickChannelModalChannel[];
4
5
  export declare const renderInteractive: (args: PickChannelModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -44,6 +44,8 @@ export declare const pickChannelModalDefault = "\nEstado por defecto con `showGe
44
44
  export declare const pickChannelModalWithoutGeneralEdition = "\nVariante sin la secci\u00F3n de edici\u00F3n general \u2014 solo se renderizan las cards recibidas por `channels`. \u00DAtil cuando el flujo no necesita editar atributos gen\u00E9ricos a nivel Producteca.\n";
45
45
  export declare const pickChannelModalCustomTexts = "\nDemuestra c\u00F3mo overridear todos los textos visibles (`title`, `generalEditionTitle`, `generalEditionDescription`, `channelEditionTitle`, `channelEditionDescription`) cuando los defaults no encajan con el contexto del producto.\n";
46
46
  export declare const pickChannelModalWithFullTitle = "\nHeader con todas las `ModalTitleProps` configuradas: `title`, `subtitle`, `icon` (icono al lado del t\u00EDtulo) y `helpArticleUrl` + `helpTooltip` (que renderizan el \u00EDcono de ayuda con tooltip a la derecha). \u00DAtil cuando el modal necesita contextualizar la acci\u00F3n o linkear a documentaci\u00F3n.\n";
47
+ export declare const pickChannelModalScrollableContent = "\nMuestra el modal con una gran cantidad de canales para verificar que el contenido scrollea internamente cuando supera la altura m\u00E1xima del modal (`85vh`). El header se mantiene fijo y solo la grilla de cards se desplaza.\n";
48
+ export declare const pickChannelModalWithoutText = "\nSin `channelEditionTitle` ni `channelEditionDescription` (ni los textos de edici\u00F3n general): los `<h3>` y `<p>` no se renderizan y la grilla de cards queda sin margen superior. Verifica el render condicional de los textos opcionales y el margen condicional del grid.\n";
47
49
  export declare const emptyStateExample = "\n## Uso del componente\n\nEl componente `EmptyState` muestra un estado vac\u00EDo con mensaje, \u00EDcono opcional y acci\u00F3n (por ejemplo \"Agregar\").\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<EmptyState\n message=\"No hay resultados\"\n actionLabel=\"Agregar\"\n onAction={() => openCreate()}\n/>\n```\n";
48
50
  export declare const asyncContentExample = "\n## Uso del componente\n\nEl componente `AsyncContent` maneja los estados de una operaci\u00F3n as\u00EDncrona deriv\u00E1ndolos de las props `isLoading`, `error` y `empty`. La prioridad es: `isLoading` \u2192 `error.value` \u2192 `empty.items` vac\u00EDo \u2192 `success`. Muestra el contenido solo en `success`.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<AsyncContent\n isLoading={isLoading}\n error={{\n value: hasError,\n text: 'Ocurri\u00F3 un error',\n actionText: 'Reintentar',\n onClick: () => refetch(),\n }}\n empty={{\n items,\n text: 'No hay datos',\n }}\n>\n <div>Contenido cuando hay datos disponibles</div>\n</AsyncContent>\n```\n";
49
51
  export declare const tooltipExample = "\n## Uso del componente\n\nLos componentes de tooltip (`WithTooltip`, `WithOverflowTooltip`) muestran un mensaje al hacer hover o click. `WithOverflowTooltip` solo muestra el tooltip cuando el contenido se desborda.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<WithTooltip content=\"Texto del tooltip\" placement=\"top\">\n <span>Hover sobre m\u00ED</span>\n</WithTooltip>\n```\n\n### Solo si hay overflow:\n\n```tsx\n<WithOverflowTooltip maxWidth=\"200px\">\n <span>Texto que puede truncarse...</span>\n</WithOverflowTooltip>\n```\n";
@@ -215,6 +215,8 @@ declare const _default: {
215
215
  withoutGeneralEdition: string;
216
216
  customTexts: string;
217
217
  withFullTitle: string;
218
+ scrollableContent: string;
219
+ withoutText: string;
218
220
  };
219
221
  copyButton: {
220
222
  example: string;
@@ -400,6 +402,7 @@ declare const _default: {
400
402
  generalEditionDescription: string;
401
403
  channelEditionTitle: string;
402
404
  channelEditionDescription: string;
405
+ channelName: string;
403
406
  openModal: string;
404
407
  fullTitle: {
405
408
  title: string;
@@ -19741,6 +19741,12 @@ Demuestra cómo overridear todos los textos visibles (\`title\`, \`generalEditio
19741
19741
  const pickChannelModalWithFullTitle = `
19742
19742
  Header con todas las \`ModalTitleProps\` configuradas: \`title\`, \`subtitle\`, \`icon\` (icono al lado del título) y \`helpArticleUrl\` + \`helpTooltip\` (que renderizan el ícono de ayuda con tooltip a la derecha). Útil cuando el modal necesita contextualizar la acción o linkear a documentación.
19743
19743
  `;
19744
+ const pickChannelModalScrollableContent = `
19745
+ Muestra el modal con una gran cantidad de canales para verificar que el contenido scrollea internamente cuando supera la altura máxima del modal (\`85vh\`). El header se mantiene fijo y solo la grilla de cards se desplaza.
19746
+ `;
19747
+ const pickChannelModalWithoutText = `
19748
+ Sin \`channelEditionTitle\` ni \`channelEditionDescription\` (ni los textos de edición general): los \`<h3>\` y \`<p>\` no se renderizan y la grilla de cards queda sin margen superior. Verifica el render condicional de los textos opcionales y el margen condicional del grid.
19749
+ `;
19744
19750
  const emptyStateExample = `
19745
19751
  ## Uso del componente
19746
19752
 
@@ -20154,7 +20160,9 @@ const es$3 = {
20154
20160
  default: pickChannelModalDefault,
20155
20161
  withoutGeneralEdition: pickChannelModalWithoutGeneralEdition,
20156
20162
  customTexts: pickChannelModalCustomTexts,
20157
- withFullTitle: pickChannelModalWithFullTitle
20163
+ withFullTitle: pickChannelModalWithFullTitle,
20164
+ scrollableContent: pickChannelModalScrollableContent,
20165
+ withoutText: pickChannelModalWithoutText
20158
20166
  },
20159
20167
  copyButton: {
20160
20168
  example: copyButtonExample
@@ -20340,6 +20348,7 @@ const es$3 = {
20340
20348
  generalEditionDescription: "Edita los atributos libres que podrán ser aplicados a todos tus canales de venta",
20341
20349
  channelEditionTitle: "Edición por canal",
20342
20350
  channelEditionDescription: "Edita los atributos específicos y obligatorios según la categoría del canal",
20351
+ channelName: "Cuenta {{number}}",
20343
20352
  openModal: "Abrir selector de canales",
20344
20353
  fullTitle: {
20345
20354
  title: "Editar atributos del producto",
@@ -67625,6 +67634,7 @@ const CardBase = ({
67625
67634
  icon: icon2,
67626
67635
  title: title2,
67627
67636
  onClick,
67637
+ children,
67628
67638
  description: description2,
67629
67639
  isActive = false,
67630
67640
  disabled: disabled2 = false
@@ -67639,16 +67649,10 @@ const CardBase = ({
67639
67649
  !!icon2 && icon2,
67640
67650
  !!title2 && /* @__PURE__ */ jsx$1("div", { className: styles$c.title, children: title2 })
67641
67651
  ] }),
67642
- !!description2 && /* @__PURE__ */ jsx$1(
67643
- "span",
67644
- {
67645
- className: styles$c.description,
67646
- dangerouslySetInnerHTML: { __html: description2 }
67647
- }
67648
- )
67652
+ !!description2 && /* @__PURE__ */ jsx$1("span", { className: styles$c.description, children: description2 }),
67653
+ children
67649
67654
  ]
67650
- },
67651
- title2
67655
+ }
67652
67656
  );
67653
67657
  const Card = withDebugHandlers(CardBase, "Card");
67654
67658
  const InsertPhotoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {