@producteca/producteca-ui-kit 1.67.0 → 1.69.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/README.md +11 -10
- package/dist/components/dropdown/dropdown.sx.d.ts +2 -2
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/productecaIcon/productecaIcon.d.ts +5 -0
- package/dist/components/patterns/conditionalOperator/conditionalOperator.d.ts +3 -0
- package/dist/components/patterns/index.d.ts +1 -0
- package/dist/components/patterns/pickChannelModal/index.d.ts +2 -0
- package/dist/components/patterns/pickChannelModal/pickChannelModal.d.ts +5 -0
- package/dist/components/patterns/pickChannelModal/pickChannelModal.examples.d.ts +4 -0
- package/dist/components/patterns/pickChannelModal/pickChannelModal.types.d.ts +23 -0
- package/dist/locales/description.d.ts +5 -0
- package/dist/locales/es.d.ts +20 -0
- package/dist/producteca-ui-kit.es.js +73005 -2807
- package/dist/producteca-ui-kit.umd.js +168 -10
- package/dist/style.css +1 -1
- package/dist/utils/debugLogger.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/withDebugHandlers.d.ts +3 -0
- package/package.json +2 -17
- package/dist/components/alert/alert.d.js +0 -1
- package/dist/components/breadcrumb/breadcrumb.d.js +0 -1
- package/dist/components/breadcrumb/index.d.js +0 -2
- package/dist/components/button/button.d.js +0 -1
- package/dist/components/card/card.d.js +0 -1
- package/dist/components/card/index.d.js +0 -1
- package/dist/components/chip/chip.d.js +0 -1
- package/dist/components/chip/index.d.js +0 -1
- package/dist/components/draggableList/draggableList.d.js +0 -1
- package/dist/components/draggableList/draggableList.examples.d.js +0 -1
- package/dist/components/draggableList/draggableList.types.d.js +0 -1
- package/dist/components/draggableList/draggableRow.d.js +0 -1
- package/dist/components/draggableList/index.d.js +0 -2
- package/dist/components/dropdown/dropdown.d.js +0 -1
- package/dist/components/dropdown/dropdown.sx.d.js +0 -1
- package/dist/components/dropdown/dropdown.types.d.js +0 -1
- package/dist/components/dropdown/index.d.js +0 -1
- package/dist/components/icons/checkIcon/checkIcon.d.js +0 -1
- package/dist/components/icons/customIcon/customIcon.d.js +0 -1
- package/dist/components/icons/emptyState/emptyStateIcon.d.js +0 -1
- package/dist/components/icons/errorState/errorStateIcon.d.js +0 -1
- package/dist/components/icons/fileIcon/fileIcon.d.js +0 -1
- package/dist/components/icons/index.d.js +0 -13
- package/dist/components/icons/mailIcon/mailIcon.d.js +0 -1
- package/dist/components/icons/maintenance/maintenanceIcon.d.js +0 -1
- package/dist/components/icons/newState/newStateIcon.d.js +0 -1
- package/dist/components/icons/parameters.d.js +0 -1
- package/dist/components/icons/priceCloseIcon/priceCloseIcon.d.js +0 -1
- package/dist/components/icons/priceDownIcon/priceDownIcon.d.js +0 -1
- package/dist/components/icons/searchPublication/searchPublication.d.js +0 -1
- package/dist/components/icons/successState/successStateIcon.d.js +0 -1
- package/dist/components/icons/trashIcon/trashIcon.d.js +0 -1
- package/dist/components/image/image.d.js +0 -1
- package/dist/components/image/index.d.js +0 -1
- package/dist/components/index.d.js +0 -20
- package/dist/components/inputs/checkboxInput/checkboxInput.d.js +0 -1
- package/dist/components/inputs/checkboxInput/checkboxInput.types.d.js +0 -1
- package/dist/components/inputs/checkboxInput/checkboxInputGroup.d.js +0 -1
- package/dist/components/inputs/checkboxInput/index.d.js +0 -3
- package/dist/components/inputs/datePicker/datePicker.d.js +0 -1
- package/dist/components/inputs/datePicker/datePickerCustomStyles.d.js +0 -1
- package/dist/components/inputs/datePicker/datePickerTypes.d.js +0 -1
- package/dist/components/inputs/datePicker/datePickerUtils.d.js +0 -1
- package/dist/components/inputs/datePicker/index.d.js +0 -2
- package/dist/components/inputs/dateRangePicker/dateFormater.d.js +0 -1
- package/dist/components/inputs/dateRangePicker/dateRangePicker.d.js +0 -1
- package/dist/components/inputs/dateRangePicker/dateRangePickerTypes.d.js +0 -1
- package/dist/components/inputs/dateRangePicker/dateRangePickerUtils.d.js +0 -1
- package/dist/components/inputs/dateRangePicker/index.d.js +0 -2
- package/dist/components/inputs/formField/formField.d.js +0 -1
- package/dist/components/inputs/formField/passwordInput.d.js +0 -1
- package/dist/components/inputs/formField/textInput.d.js +0 -1
- package/dist/components/inputs/index.d.js +0 -8
- package/dist/components/inputs/searcher/searcher.d.js +0 -1
- package/dist/components/inputs/selectField/option.d.js +0 -1
- package/dist/components/inputs/selectField/selectField.d.js +0 -2
- package/dist/components/inputs/selectField/selectField.types.d.js +0 -1
- package/dist/components/inputs/switchInput/index.d.js +0 -3
- package/dist/components/inputs/switchInput/switchInput.d.js +0 -1
- package/dist/components/inputs/switchInput/switchInput.types.d.js +0 -1
- package/dist/components/inputs/switchInput/switchInputGroup.d.js +0 -1
- package/dist/components/inputs/toggleInput.utils.d.js +0 -1
- package/dist/components/link/index.d.js +0 -2
- package/dist/components/link/link.d.js +0 -1
- package/dist/components/loaders/index.d.js +0 -2
- package/dist/components/loaders/progressbar/progressbar.d.js +0 -1
- package/dist/components/loaders/spinner/spinner.d.js +0 -1
- package/dist/components/menu/menuAction/index.d.js +0 -2
- package/dist/components/menu/menuAction/menuAction.d.js +0 -1
- package/dist/components/menu/menuAction/menuAction.sx.d.js +0 -1
- package/dist/components/menu/menuAction/menuAction.types.d.js +0 -1
- package/dist/components/menu/menuItem/menuItem.d.js +0 -1
- package/dist/components/menu/menuItem/menuItem.sx.d.js +0 -1
- package/dist/components/menu/menuItem/menuItem.types.d.js +0 -1
- package/dist/components/modals/index.d.js +0 -5
- package/dist/components/modals/modal/index.d.js +0 -1
- package/dist/components/modals/modal/modal.d.js +0 -1
- package/dist/components/modals/modal/modal.examples.d.js +0 -1
- package/dist/components/modals/modal/modal.types.d.js +0 -1
- package/dist/components/modals/modalBody/index.d.js +0 -1
- package/dist/components/modals/modalBody/modalBody.d.js +0 -1
- package/dist/components/modals/modalBody/modalBody.types.d.js +0 -1
- package/dist/components/modals/modalFooter/index.d.js +0 -1
- package/dist/components/modals/modalFooter/modalFooter.d.js +0 -1
- package/dist/components/modals/modalFooter/modalFooter.types.d.js +0 -1
- package/dist/components/modals/modalTitle/index.d.js +0 -1
- package/dist/components/modals/modalTitle/modalTitle.d.js +0 -1
- package/dist/components/modals/modalTitle/modalTitle.types.d.js +0 -1
- package/dist/components/modals/warningModal/index.d.js +0 -1
- package/dist/components/modals/warningModal/warningModal.d.js +0 -1
- package/dist/components/modals/warningModal/warningModal.examples.d.js +0 -1
- package/dist/components/modals/warningModal/warningModal.types.d.js +0 -1
- package/dist/components/patterns/actionBar/actionBar.d.js +0 -1
- package/dist/components/patterns/asyncContent/asyncContent.d.js +0 -1
- package/dist/components/patterns/asyncContent/asyncContent.examples.d.js +0 -1
- package/dist/components/patterns/asyncContent/asyncContent.types.d.js +0 -1
- package/dist/components/patterns/asyncContent/index.d.js +0 -2
- package/dist/components/patterns/asyncContent/views/emptyView.d.js +0 -1
- package/dist/components/patterns/asyncContent/views/errorView.d.js +0 -1
- package/dist/components/patterns/asyncContent/views/index.d.js +0 -5
- package/dist/components/patterns/asyncContent/views/loadingView.d.js +0 -1
- package/dist/components/patterns/asyncContent/views/newView.d.js +0 -1
- package/dist/components/patterns/asyncContent/views/successView.d.js +0 -1
- package/dist/components/patterns/conditionalOperator/conditionalOperator.d.js +0 -1
- package/dist/components/patterns/conditionalOperator/conditionalOperator.types.d.js +0 -1
- package/dist/components/patterns/conditionalOperator/index.d.js +0 -1
- package/dist/components/patterns/copyButton/copyButton.d.js +0 -1
- package/dist/components/patterns/copyButton/index.d.js +0 -1
- package/dist/components/patterns/emptyState/emptyState.d.js +0 -1
- package/dist/components/patterns/emptyState/emptyState.types.d.js +0 -1
- package/dist/components/patterns/headerSection/headerSection.d.js +0 -1
- package/dist/components/patterns/headerSection/index.d.js +0 -1
- package/dist/components/patterns/helpArticleLink/helpArticleLink.d.js +0 -1
- package/dist/components/patterns/helpArticleLink/helpArticleLink.types.d.js +0 -1
- package/dist/components/patterns/helpArticleLink/index.d.js +0 -1
- package/dist/components/patterns/iconWithIdentifier/iconWithIdentifier.d.js +0 -1
- package/dist/components/patterns/iconWithIdentifier/index.d.js +0 -1
- package/dist/components/patterns/index.d.js +0 -10
- package/dist/components/patterns/linkWithIcon/index.d.js +0 -1
- package/dist/components/patterns/linkWithIcon/linkWithIcon.d.js +0 -1
- package/dist/components/patterns/maintenance/maintenance.d.js +0 -1
- package/dist/components/patterns/maintenance/maintenance.types.d.js +0 -1
- package/dist/components/sidebar/index.d.js +0 -1
- package/dist/components/sidebar/sidebar.d.js +0 -1
- package/dist/components/stepper/index.d.js +0 -2
- package/dist/components/stepper/stepper.d.js +0 -1
- package/dist/components/stepper/stepper.types.d.js +0 -1
- package/dist/components/table/index.d.js +0 -3
- package/dist/components/table/table/index.d.js +0 -1
- package/dist/components/table/table/table.d.js +0 -1
- package/dist/components/table/table/table.examples.d.js +0 -1
- package/dist/components/table/table/table.types.d.js +0 -1
- package/dist/components/table/table/tableContext.d.js +0 -1
- package/dist/components/table/tableBody/index.d.js +0 -1
- package/dist/components/table/tableBody/tableBody.d.js +0 -1
- package/dist/components/table/tableBody/tableBody.types.d.js +0 -1
- package/dist/components/table/tableHeader/index.d.js +0 -1
- package/dist/components/table/tableHeader/tableHeader.d.js +0 -1
- package/dist/components/table/tableHeader/tableHeader.types.d.js +0 -1
- package/dist/components/tabs/index.d.js +0 -1
- package/dist/components/tabs/tabs.d.js +0 -1
- package/dist/components/tooltip/index.d.js +0 -2
- package/dist/components/tooltip/overflowChecker.d.js +0 -1
- package/dist/components/tooltip/tooltip.d.js +0 -1
- package/dist/hooks/useOptionTooltip.d.js +0 -1
- package/dist/hooks/useReduxFormField.d.js +0 -8
- package/dist/index.d.js +0 -3
- package/dist/locales/description.d.js +0 -1
- package/dist/locales/es.d.js +0 -1
- package/dist/locales/index.d.js +0 -1
- package/dist/locales/translator.d.js +0 -2
- package/dist/playground/ComponentDemos.d.js +0 -1
- package/dist/playground/PlaygroundSidebar.d.js +0 -1
- package/dist/playground/PlaygroundView.d.js +0 -1
- package/dist/playground/playgroundConfig.d.js +0 -1
- package/dist/styles/colors.d.js +0 -1
- package/dist/styles/theme/index.d.js +0 -2
- package/dist/styles/theme/theme.components.d.js +0 -1
- package/dist/styles/theme/theme.styles.d.js +0 -1
- package/dist/styles/theme.d.js +0 -1
- package/dist/validators/errorMessage.d.js +0 -1
- package/dist/validators/index.d.js +0 -2
- package/dist/validators/validation.d.js +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
- ⚛️ [React 18](https://reactjs.org/)
|
|
9
9
|
- 📚 [Storybook 9](https://storybook.js.org/) - Components preview
|
|
10
10
|
- ⏩ [Vite](https://vitejs.dev/) - Run and build the project blazingly fast!
|
|
11
|
-
- 🔧 [Babel](https://babeljs.io/) - JavaScript transpilation for maximum browser compatibility
|
|
12
11
|
- ⚡ [Vitest](https://vitest.dev/) - Components Unit Testing
|
|
13
12
|
- 📐 [ESLint](https://eslint.org/) & [Prettier](https://prettier.io/) - Formatting and Linting
|
|
14
13
|
- 🌟 [Typescript](https://www.typescriptlang.org/)
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
| Script | Command | Description |
|
|
22
21
|
|--------|---------|-------------|
|
|
23
22
|
| `dev` | `storybook dev -p 6006` | Starts Storybook in development mode on port 6006 |
|
|
24
|
-
| `build` | `rm -rf dist && tsc && vite build
|
|
23
|
+
| `build` | `rm -rf dist && tsc && vite build` | Removes the `dist` folder, compiles TypeScript, and builds the library using Vite |
|
|
25
24
|
| `build:storybook` | `storybook build` | Builds the static Storybook project |
|
|
26
25
|
| `build-storybook` | `storybook build` | Alias for `build:storybook` |
|
|
27
26
|
| `deploy` | `make deploy` | Deploys the project using the specified Makefile configuration |
|
|
@@ -63,20 +62,22 @@ https://<branch>--<appId>.chromatic.com/mcp
|
|
|
63
62
|
|
|
64
63
|
Verify with: ask your agent to run `list-all-documentation`.
|
|
65
64
|
|
|
65
|
+
### Consuming it from other repos
|
|
66
|
+
|
|
67
|
+
To wire this MCP into other repos that depend on the UI kit — using the
|
|
68
|
+
Chromatic-published endpoint, user vs. project scope, OAuth, and troubleshooting
|
|
69
|
+
— see **[docs/mcp-setup.md](./docs/mcp-setup.md)**.
|
|
70
|
+
|
|
66
71
|
## 🌐 Browser Compatibility
|
|
67
72
|
|
|
68
|
-
|
|
73
|
+
El build usa **Vite** (esbuild) con target `es2020`, garantizando compatibilidad con:
|
|
69
74
|
|
|
70
75
|
- **Navegadores modernos**: Chrome, Firefox, Safari, Edge (últimas 2 versiones)
|
|
71
|
-
- **Navegadores legacy**: Internet Explorer 11+
|
|
72
76
|
- **Dispositivos móviles**: iOS Safari, Chrome Mobile, Samsung Internet
|
|
73
|
-
- **Cobertura global**: >0.25% de usuarios, excluyendo navegadores obsoletos
|
|
74
77
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
- `@babel/preset-typescript` para TypeScript
|
|
79
|
-
- Plugins adicionales para características modernas de JavaScript
|
|
78
|
+
> Internet Explorer 11 ya no está soportado. Si un consumidor necesitara
|
|
79
|
+
> downleveling a ES5, debería transpilar en su propio pipeline (esbuild no
|
|
80
|
+
> baja de `es2015`).
|
|
80
81
|
|
|
81
82
|
### Setting up `@producteca/producteca-ui-kit`
|
|
82
83
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuProps } from '@mui/material/Menu';
|
|
2
2
|
|
|
3
3
|
export declare const StyledMenu: import('@emotion/styled').StyledComponent<MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
4
|
-
export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material/Button').ButtonOwnProps> & Omit<import('@mui/material').ButtonBaseOwnProps, "
|
|
4
|
+
export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material/Button').ButtonOwnProps> & Omit<import('@mui/material').ButtonBaseOwnProps, "action" | "type" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | keyof import('@mui/material/Button').ButtonOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
-
}, "
|
|
6
|
+
}, "style" | "disabled" | "action" | "size" | "type" | "variant" | "className" | "children" | "color" | "classes" | "sx" | "tabIndex" | "href" | "loading" | "loadingIndicator" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PickChannelModalChannel, PickChannelModalProps } from './pickChannelModal.types';
|
|
2
|
+
|
|
3
|
+
export declare const productecaStrategy: PickChannelModalChannel;
|
|
4
|
+
export declare const PickChannelModal: ({ open, onClose, channels, generalEditionDescription, channelEditionDescription, showGeneralEdition, onSelectChannel, titleProps, generalEditionTitle, channelEditionTitle, }: PickChannelModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default PickChannelModal;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PickChannelModalProps, PickChannelModalChannel } from './pickChannelModal.types';
|
|
2
|
+
|
|
3
|
+
export declare const sampleChannels: PickChannelModalChannel[];
|
|
4
|
+
export declare const renderInteractive: (args: PickChannelModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ModalTitleProps } from '../../modals/modalTitle';
|
|
2
|
+
|
|
3
|
+
export interface PickChannelModalChannel {
|
|
4
|
+
clientId: string | number;
|
|
5
|
+
iconUrl: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PickChannelModalProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
channels: PickChannelModalChannel[];
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
titleProps?: ModalTitleProps;
|
|
13
|
+
showGeneralEdition?: boolean;
|
|
14
|
+
generalEditionTitle?: string;
|
|
15
|
+
generalEditionDescription?: string;
|
|
16
|
+
channelEditionTitle?: string;
|
|
17
|
+
channelEditionDescription?: string;
|
|
18
|
+
onSelectChannel?: (channel: PickChannelModalChannel) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface ChannelCardProps {
|
|
21
|
+
channel: PickChannelModalChannel;
|
|
22
|
+
onSelect: (channel: PickChannelModalChannel) => void;
|
|
23
|
+
}
|
|
@@ -39,6 +39,11 @@ export declare const headerSectionExample = "\n## Uso del componente\n\nEl compo
|
|
|
39
39
|
export declare const iconWithIdentifierExample = "\n## Uso del componente\n\nEl componente `IconWithIdentifier` muestra un \u00EDcono junto a un texto (por ejemplo un ID o c\u00F3digo).\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<IconWithIdentifier\n icon={<Image src=\"/flag.png\" />}\n text=\"#ID8765\"\n showDivider\n/>\n```\n";
|
|
40
40
|
export declare const linkWithIconExample = "\n## Uso del componente\n\nEl componente `LinkWithIcon` muestra un enlace con un \u00EDcono a la izquierda.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<LinkWithIcon\n text=\"Historial de cambios\"\n icon={<CustomIcon><History /></CustomIcon>}\n onClick={() => navigate('/history')}\n/>\n```\n";
|
|
41
41
|
export declare const conditionalOperatorExample = "\n## Uso del componente\n\nEl componente `ConditionalOperator` permite elegir entre operador l\u00F3gico \"Y\" u \"O\" para filtrar o combinar condiciones.\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<ConditionalOperator\n value=\"or\"\n options={[{ value: 'and', label: 'Y' }, { value: 'or', label: 'O' }]}\n onChange={(event) => setOperator(event.target.value)}\n/>\n```\n";
|
|
42
|
+
export declare const pickChannelModalExample = "\n## Uso del componente\n\nEl componente `PickChannelModal` muestra un modal con una grilla de canales seleccionables. Recibe el listado `channels` con `{ clientId, iconUrl, name? }`. Opcionalmente, mediante `showGeneralEdition`, agrega una secci\u00F3n superior con la opci\u00F3n Producteca (exportada como `productecaStrategy`) para editar atributos generales \u2014 se comporta como un canal m\u00E1s y se notifica por el mismo `onSelectChannel`. El header acepta cualquier `ModalTitleProps` v\u00EDa `titleProps` (`title`, `icon`, `subtitle`, `helpArticleUrl`, `helpTooltip`).\n\n### Ejemplo b\u00E1sico:\n\n```tsx\n<PickChannelModal\n open={open}\n channels={channels}\n showGeneralEdition\n titleProps={{\n title: 'Editar atributos',\n icon: <InfoIcon />,\n subtitle: 'Eleg\u00ED el canal a editar',\n helpArticleUrl: 'https://help.producteca.com/articles/pick-channel',\n }}\n onSelectChannel={(channel) => handleChannelSelected(channel)}\n onClose={() => setOpen(false)}\n/>\n```\n";
|
|
43
|
+
export declare const pickChannelModalDefault = "\nEstado por defecto con `showGeneralEdition` activado. Se muestra la secci\u00F3n de edici\u00F3n general con la card de Producteca y la secci\u00F3n de canales. Clickear cualquier card invoca `onSelectChannel` con el objeto del canal seleccionado.\n";
|
|
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
|
+
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
|
+
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";
|
|
42
47
|
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";
|
|
43
48
|
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";
|
|
44
49
|
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";
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -209,6 +209,13 @@ declare const _default: {
|
|
|
209
209
|
modal: {
|
|
210
210
|
example: string;
|
|
211
211
|
};
|
|
212
|
+
pickChannelModal: {
|
|
213
|
+
example: string;
|
|
214
|
+
default: string;
|
|
215
|
+
withoutGeneralEdition: string;
|
|
216
|
+
customTexts: string;
|
|
217
|
+
withFullTitle: string;
|
|
218
|
+
};
|
|
212
219
|
copyButton: {
|
|
213
220
|
example: string;
|
|
214
221
|
};
|
|
@@ -383,6 +390,19 @@ declare const _default: {
|
|
|
383
390
|
confirm: string;
|
|
384
391
|
openModal: string;
|
|
385
392
|
};
|
|
393
|
+
pickChannelModal: {
|
|
394
|
+
title: string;
|
|
395
|
+
generalEditionTitle: string;
|
|
396
|
+
generalEditionDescription: string;
|
|
397
|
+
channelEditionTitle: string;
|
|
398
|
+
channelEditionDescription: string;
|
|
399
|
+
openModal: string;
|
|
400
|
+
fullTitle: {
|
|
401
|
+
title: string;
|
|
402
|
+
subtitle: string;
|
|
403
|
+
helpTooltip: string;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
386
406
|
tab: {
|
|
387
407
|
tab1: string;
|
|
388
408
|
tab2: string;
|