@codeplex-sac/navigation 0.0.1 → 0.0.3

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,15 @@
1
+ import { default as React } from 'react';
2
+ import { DrawerProps, SwipeableDrawerProps } from '@mui/material';
3
+ export interface CodeplexCajonLateralProps extends Omit<DrawerProps, 'open' | 'onClose' | 'anchor' | 'PaperProps'> {
4
+ deslizable?: boolean;
5
+ ancho?: number | string;
6
+ cabecera?: React.ReactNode;
7
+ pie?: React.ReactNode;
8
+ mostrarIconoCierre?: boolean;
9
+ alAbrir?: SwipeableDrawerProps['onOpen'];
10
+ alCerrar?: (event: React.SyntheticEvent | {}, reason: 'backdropClick' | 'escapeKeyDown') => void;
11
+ abierto?: boolean;
12
+ anclaje?: DrawerProps['anchor'];
13
+ propsPapel?: DrawerProps['PaperProps'];
14
+ }
15
+ export declare const CodeplexCajonLateral: ({ deslizable, ancho, cabecera, pie, children, alAbrir, alCerrar, abierto, anclaje, mostrarIconoCierre, propsPapel, slotProps, sx, ...props }: CodeplexCajonLateralProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { LinkProps } from '@mui/material';
2
+ export interface CodeplexEnlaceProps extends Omit<LinkProps, 'underline'> {
3
+ /**
4
+ * If true, renders as a button (for a11y) but looks like a link.
5
+ */
6
+ componente?: React.ElementType;
7
+ subrayado?: 'none' | 'hover' | 'always';
8
+ }
9
+ export declare const CodeplexEnlace: ({ componente, subrayado, ...props }: CodeplexEnlaceProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ import { SpeedDialProps, SpeedDialActionProps } from '@mui/material';
3
+ export interface CodeplexAccionMarcacionRapida extends Omit<SpeedDialActionProps, 'icon' | 'tooltipTitle'> {
4
+ icono: React.ReactNode;
5
+ tituloTooltip: React.ReactNode;
6
+ alHacerClick?: SpeedDialActionProps['onClick'];
7
+ }
8
+ export interface CodeplexMarcacionRapidaProps extends Omit<SpeedDialProps, 'ariaLabel' | 'icon'> {
9
+ acciones?: CodeplexAccionMarcacionRapida[];
10
+ etiquetaAria: string;
11
+ icono?: React.ReactNode;
12
+ }
13
+ export declare const CodeplexMarcacionRapida: ({ acciones, icono, etiquetaAria, children, ...props }: CodeplexMarcacionRapidaProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,14 @@
1
1
  import { default as React } from 'react';
2
2
  import { MenuProps, MenuItemProps } from '@mui/material';
3
- export interface CodeplexMenuItemType extends Omit<MenuItemProps, 'children'> {
4
- label: React.ReactNode;
5
- icon?: React.ReactNode;
6
- onClick?: () => void;
3
+ export interface CodeplexElementoMenu extends Omit<MenuItemProps, 'children' | 'onClick'> {
4
+ etiqueta: React.ReactNode;
5
+ icono?: React.ReactNode;
6
+ alHacerClick?: () => void;
7
7
  }
8
- export interface CodeplexMenuProps extends MenuProps {
9
- items?: CodeplexMenuItemType[];
8
+ export interface CodeplexMenuProps extends Omit<MenuProps, 'open' | 'onClose' | 'anchorEl'> {
9
+ elementos?: CodeplexElementoMenu[];
10
+ elementoAnclaje?: MenuProps['anchorEl'];
11
+ abierto: boolean;
12
+ alCerrar?: MenuProps['onClose'];
10
13
  }
11
- export declare const CodeplexMenu: ({ items, children, ...props }: CodeplexMenuProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const CodeplexMenu: ({ elementos, children, elementoAnclaje, abierto, alCerrar, ...props }: CodeplexMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ import { BreadcrumbsProps } from '@mui/material';
3
+ export interface CodeplexElementoMigasPan {
4
+ etiqueta: string;
5
+ href?: string;
6
+ icono?: React.ReactElement;
7
+ }
8
+ export interface CodeplexMigasPanProps extends Omit<BreadcrumbsProps, 'separator'> {
9
+ elementos: CodeplexElementoMigasPan[];
10
+ rutaInicio?: string;
11
+ colorActivo?: string;
12
+ separador?: React.ReactNode;
13
+ }
14
+ export declare const CodeplexMigasPan: ({ elementos, rutaInicio, colorActivo, separador, ...props }: CodeplexMigasPanProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { BottomNavigationProps, SxProps, Theme } from '@mui/material';
2
+ export interface CodeplexElementoNavegacionInferior {
3
+ etiqueta: string | React.ReactNode;
4
+ icono: React.ReactNode;
5
+ valor: any;
6
+ [key: string]: any;
7
+ }
8
+ export interface CodeplexNavegacionInferiorProps extends Omit<BottomNavigationProps, 'onChange' | 'value'> {
9
+ elementos: CodeplexElementoNavegacionInferior[];
10
+ fijo?: boolean;
11
+ conPapel?: boolean;
12
+ sxContenedor?: SxProps<Theme>;
13
+ alCambiar?: (event: React.SyntheticEvent, nuevoValor: any) => void;
14
+ valor?: any;
15
+ }
16
+ export declare const CodeplexNavegacionInferior: ({ elementos, fijo, conPapel, sxContenedor, sx, alCambiar, valor, ...props }: CodeplexNavegacionInferiorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { PaginationProps } from '@mui/material';
2
+ export interface CodeplexPaginacionProps extends Omit<PaginationProps, 'count' | 'page' | 'onChange'> {
3
+ total?: number;
4
+ pagina?: number;
5
+ alCambiar?: PaginationProps['onChange'];
6
+ /**
7
+ * If true, centers the pagination horizontally.
8
+ */
9
+ centrado?: boolean;
10
+ }
11
+ export declare const CodeplexPaginacion: ({ total, pagina, alCambiar, centrado, sx, ...props }: CodeplexPaginacionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { StepperProps } from '@mui/material';
2
+ export interface CodeplexPaso {
3
+ etiqueta: string;
4
+ leyenda?: string;
5
+ opcional?: boolean;
6
+ error?: boolean;
7
+ completado?: boolean;
8
+ }
9
+ export interface CodeplexPasosProps extends Omit<StepperProps, 'activeStep' | 'alternativeLabel' | 'nonLinear'> {
10
+ pasos: CodeplexPaso[];
11
+ pasoActivo: number;
12
+ etiquetaAlternativa?: boolean;
13
+ noLineal?: boolean;
14
+ alHacerClickPaso?: (index: number) => void;
15
+ }
16
+ export declare const CodeplexPasos: ({ pasos, pasoActivo, etiquetaAlternativa, noLineal, alHacerClickPaso, ...props }: CodeplexPasosProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { TabsProps, TabProps } from '@mui/material';
3
+ export interface CodeplexElementoPestana extends Omit<TabProps, 'children'> {
4
+ etiqueta: string | React.ReactNode;
5
+ valor: any;
6
+ icono?: React.ReactElement;
7
+ posicionIcono?: 'top' | 'start' | 'end' | 'bottom';
8
+ }
9
+ export interface CodeplexPestanasProps extends Omit<TabsProps, 'value' | 'onChange' | 'centered'> {
10
+ elementos: CodeplexElementoPestana[];
11
+ valor: any;
12
+ alCambiar: (event: React.SyntheticEvent, nuevoValor: any) => void;
13
+ centrado?: boolean;
14
+ }
15
+ export declare const CodeplexPestanas: ({ elementos, valor, alCambiar, centrado, ...props }: CodeplexPestanasProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeplex-sac/navigation",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,13 +0,0 @@
1
- import { BottomNavigationActionProps, BottomNavigationProps, SxProps, Theme } from '@mui/material';
2
- export interface CodeplexBottomNavigationItem extends Omit<BottomNavigationActionProps, 'label' | 'icon'> {
3
- label: string | React.ReactNode;
4
- icon: React.ReactNode;
5
- value: any;
6
- }
7
- export interface CodeplexBottomNavigationProps extends BottomNavigationProps {
8
- items: CodeplexBottomNavigationItem[];
9
- fixed?: boolean;
10
- withPaper?: boolean;
11
- containerSx?: SxProps<Theme>;
12
- }
13
- export declare const CodeplexBottomNavigation: ({ items, fixed, withPaper, containerSx, sx, ...props }: CodeplexBottomNavigationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BreadcrumbsProps } from '@mui/material';
3
- export interface CodeplexBreadcrumbItem {
4
- label: string;
5
- href?: string;
6
- icon?: React.ReactElement;
7
- }
8
- export interface CodeplexBreadcrumbsProps extends BreadcrumbsProps {
9
- items: CodeplexBreadcrumbItem[];
10
- homeHref?: string;
11
- activeColor?: string;
12
- }
13
- export declare const CodeplexBreadcrumbs: ({ items, homeHref, activeColor, separator, ...props }: CodeplexBreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DrawerProps, SwipeableDrawerProps } from '@mui/material';
3
- export interface CodeplexDrawerProps extends DrawerProps {
4
- swipeable?: boolean;
5
- width?: number | string;
6
- header?: React.ReactNode;
7
- footer?: React.ReactNode;
8
- showCloseIcon?: boolean;
9
- onOpen?: SwipeableDrawerProps['onOpen'];
10
- }
11
- export declare const CodeplexDrawer: ({ swipeable, width, header, footer, children, onOpen, onClose, showCloseIcon, PaperProps, slotProps, ...props }: CodeplexDrawerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { LinkProps } from '@mui/material';
2
- export interface CodeplexLinkProps extends LinkProps {
3
- /**
4
- * If true, renders as a button (for a11y) but looks like a link.
5
- */
6
- component?: React.ElementType;
7
- }
8
- export declare const CodeplexLink: ({ component, ...props }: CodeplexLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { PaginationProps } from '@mui/material';
2
- export interface CodeplexPaginationProps extends PaginationProps {
3
- /**
4
- * If true, centers the pagination horizontally.
5
- */
6
- centered?: boolean;
7
- }
8
- export declare const CodeplexPagination: ({ centered, sx, ...props }: CodeplexPaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SpeedDialProps, SpeedDialActionProps } from '@mui/material';
3
- export interface CodeplexSpeedDialActionType extends Omit<SpeedDialActionProps, 'icon' | 'tooltipTitle'> {
4
- icon: React.ReactNode;
5
- tooltipTitle: React.ReactNode;
6
- }
7
- export interface CodeplexSpeedDialProps extends SpeedDialProps {
8
- actions?: CodeplexSpeedDialActionType[];
9
- }
10
- export declare const CodeplexSpeedDial: ({ actions, icon, children, ...props }: CodeplexSpeedDialProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { StepperProps } from '@mui/material';
2
- export interface CodeplexStep {
3
- label: string;
4
- caption?: string;
5
- optional?: boolean;
6
- error?: boolean;
7
- completed?: boolean;
8
- }
9
- export interface CodeplexStepperProps extends StepperProps {
10
- steps: CodeplexStep[];
11
- activeStep: number;
12
- alternativeLabel?: boolean;
13
- nonLinear?: boolean;
14
- onStepClick?: (index: number) => void;
15
- }
16
- export declare const CodeplexStepper: ({ steps, activeStep, alternativeLabel, nonLinear, onStepClick, ...props }: CodeplexStepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TabsProps, TabProps } from '@mui/material';
3
- export interface CodeplexTabItem extends Omit<TabProps, 'children'> {
4
- label: string | React.ReactNode;
5
- value: any;
6
- icon?: React.ReactElement;
7
- iconPosition?: 'top' | 'start' | 'end' | 'bottom';
8
- }
9
- export interface CodeplexTabsProps extends TabsProps {
10
- items: CodeplexTabItem[];
11
- }
12
- export declare const CodeplexTabs: ({ items, ...props }: CodeplexTabsProps) => import("react/jsx-runtime").JSX.Element;