@axzydev/axzy_ui_system 1.0.165 → 1.0.167
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/index.cjs +468 -202
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +66 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +88 -2
- package/dist/index.d.ts +88 -2
- package/dist/index.js +464 -201
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import React__default, { ReactNode, FocusEvent } from 'react';
|
|
4
4
|
import * as Yup from 'yup';
|
|
5
5
|
|
|
6
6
|
declare const semanticColors: {
|
|
@@ -611,6 +611,56 @@ interface ITSelectProps {
|
|
|
611
611
|
*/
|
|
612
612
|
declare function ITSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, }: ITSelectProps): react_jsx_runtime.JSX.Element;
|
|
613
613
|
|
|
614
|
+
interface ITSearchSelectOption {
|
|
615
|
+
label: string;
|
|
616
|
+
value: string | number;
|
|
617
|
+
[key: string]: any;
|
|
618
|
+
}
|
|
619
|
+
interface ITSearchSelectProps {
|
|
620
|
+
/** Nombre del campo para integraciones con formularios */
|
|
621
|
+
name?: string;
|
|
622
|
+
/** Etiqueta que se muestra arriba del select */
|
|
623
|
+
label?: string;
|
|
624
|
+
/** Texto que se muestra cuando no hay nada seleccionado */
|
|
625
|
+
placeholder?: string;
|
|
626
|
+
/** Valor seleccionado */
|
|
627
|
+
value?: string | number;
|
|
628
|
+
/** Arreglo de opciones (Modo 1: Lista estática) */
|
|
629
|
+
options?: ITSearchSelectOption[];
|
|
630
|
+
/** Campo que se usará como valor (por defecto "value") */
|
|
631
|
+
valueField?: string;
|
|
632
|
+
/** Campo que se usará como etiqueta (por defecto "label") */
|
|
633
|
+
labelField?: string;
|
|
634
|
+
/** Callback cuando cambia el valor */
|
|
635
|
+
onChange?: (value: string | number, option?: ITSearchSelectOption) => void;
|
|
636
|
+
/** Callback cuando pierde el foco */
|
|
637
|
+
onBlur?: (e: FocusEvent<any>) => void;
|
|
638
|
+
/** Indica si el componente está deshabilitado */
|
|
639
|
+
disabled?: boolean;
|
|
640
|
+
/** Clase CSS adicional para el contenedor */
|
|
641
|
+
className?: string;
|
|
642
|
+
/** Indica si el campo ha sido tocado (para validaciones) */
|
|
643
|
+
touched?: boolean;
|
|
644
|
+
/** Indica si el campo es requerido */
|
|
645
|
+
required?: boolean;
|
|
646
|
+
/** Mensaje de error */
|
|
647
|
+
error?: string;
|
|
648
|
+
/** Indica si el campo es de solo lectura */
|
|
649
|
+
readOnly?: boolean;
|
|
650
|
+
/** Callback para búsqueda en servidor (Modo 2: Conexión con API) */
|
|
651
|
+
onSearch?: (query: string) => void;
|
|
652
|
+
/** Indica si se está cargando información desde la API */
|
|
653
|
+
isLoading?: boolean;
|
|
654
|
+
/** Mensaje cuando no hay resultados */
|
|
655
|
+
noResultsMessage?: string;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* ITSearchSelect - Un componente de selección con buscador integrado.
|
|
660
|
+
* Soporta filtrado local y búsqueda remota via API.
|
|
661
|
+
*/
|
|
662
|
+
declare function ITSearchSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, onSearch, isLoading, noResultsMessage, }: ITSearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
663
|
+
|
|
614
664
|
interface ITSlideToggleProps {
|
|
615
665
|
/**
|
|
616
666
|
* Callback executed when the switch is toggled. Receives the new state.
|
|
@@ -664,6 +714,40 @@ declare function ITText({ children, className }: {
|
|
|
664
714
|
className?: string;
|
|
665
715
|
}): react_jsx_runtime.JSX.Element;
|
|
666
716
|
|
|
717
|
+
interface ITTabItem {
|
|
718
|
+
id: string;
|
|
719
|
+
label: string;
|
|
720
|
+
content: ReactNode;
|
|
721
|
+
icon?: ReactNode;
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
}
|
|
724
|
+
interface ITTabsProps {
|
|
725
|
+
items: ITTabItem[];
|
|
726
|
+
defaultActiveId?: string;
|
|
727
|
+
onChange?: (id: string) => void;
|
|
728
|
+
variant?: 'line' | 'pill';
|
|
729
|
+
className?: string;
|
|
730
|
+
containerClassName?: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare const ITTabs: React__default.FC<ITTabsProps>;
|
|
734
|
+
|
|
735
|
+
interface ITTripleFilterOption<T> {
|
|
736
|
+
label: string;
|
|
737
|
+
value: T;
|
|
738
|
+
}
|
|
739
|
+
interface ITTripleFilterProps<T> {
|
|
740
|
+
value: T;
|
|
741
|
+
onChange: (value: T) => void;
|
|
742
|
+
options: ITTripleFilterOption<T>[];
|
|
743
|
+
className?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @description Generic triple/segmented filter component following AXZY Emerald/Slate theme.
|
|
748
|
+
*/
|
|
749
|
+
declare const ITTripleFilter: <T extends string | boolean>({ value, onChange, options, className, }: ITTripleFilterProps<T>) => react_jsx_runtime.JSX.Element;
|
|
750
|
+
|
|
667
751
|
interface ITToastProps {
|
|
668
752
|
message: string;
|
|
669
753
|
type?: "success" | "error" | "warning" | "info" | "primary" | "danger" | string;
|
|
@@ -750,6 +834,8 @@ interface ITSidebarProps {
|
|
|
750
834
|
isCollapsed?: boolean;
|
|
751
835
|
onToggleCollapse?: () => void;
|
|
752
836
|
visibleOnMobile?: boolean;
|
|
837
|
+
onItemClick?: (item: ITNavigationItem) => void;
|
|
838
|
+
onSubItemClick?: (subitem: ITNavigationSubItem) => void;
|
|
753
839
|
className?: string;
|
|
754
840
|
}
|
|
755
841
|
|
|
@@ -930,4 +1016,4 @@ declare const createValidationSchema: (fields: FieldConfig[]) => Yup.ObjectSchem
|
|
|
930
1016
|
[x: string]: any;
|
|
931
1017
|
}, "">;
|
|
932
1018
|
|
|
933
|
-
export { type Column, type FieldConfig, type FieldConfigV2, ITBadget, type ITBadgetProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDropfile, ITFormBuilder, type ITFormBuilderProps, ITImage, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, ITNavbar, type ITNavbarProps, ITPagination, ITSelect, type ITSelectProps, ITSlideToggle, type ITSlideToggleProps, ITStepper, ITTable, type ITTableProps, ITText, type ITThemeConfig, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, createValidationSchema };
|
|
1019
|
+
export { type Column, type FieldConfig, type FieldConfigV2, ITBadget, type ITBadgetProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDropfile, ITFormBuilder, type ITFormBuilderProps, ITImage, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, ITNavbar, type ITNavbarProps, ITPagination, ITSearchSelect, type ITSearchSelectProps, ITSelect, type ITSelectProps, ITSlideToggle, type ITSlideToggleProps, ITStepper, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITThemeConfig, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, createValidationSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import React__default, { ReactNode, FocusEvent } from 'react';
|
|
4
4
|
import * as Yup from 'yup';
|
|
5
5
|
|
|
6
6
|
declare const semanticColors: {
|
|
@@ -611,6 +611,56 @@ interface ITSelectProps {
|
|
|
611
611
|
*/
|
|
612
612
|
declare function ITSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, }: ITSelectProps): react_jsx_runtime.JSX.Element;
|
|
613
613
|
|
|
614
|
+
interface ITSearchSelectOption {
|
|
615
|
+
label: string;
|
|
616
|
+
value: string | number;
|
|
617
|
+
[key: string]: any;
|
|
618
|
+
}
|
|
619
|
+
interface ITSearchSelectProps {
|
|
620
|
+
/** Nombre del campo para integraciones con formularios */
|
|
621
|
+
name?: string;
|
|
622
|
+
/** Etiqueta que se muestra arriba del select */
|
|
623
|
+
label?: string;
|
|
624
|
+
/** Texto que se muestra cuando no hay nada seleccionado */
|
|
625
|
+
placeholder?: string;
|
|
626
|
+
/** Valor seleccionado */
|
|
627
|
+
value?: string | number;
|
|
628
|
+
/** Arreglo de opciones (Modo 1: Lista estática) */
|
|
629
|
+
options?: ITSearchSelectOption[];
|
|
630
|
+
/** Campo que se usará como valor (por defecto "value") */
|
|
631
|
+
valueField?: string;
|
|
632
|
+
/** Campo que se usará como etiqueta (por defecto "label") */
|
|
633
|
+
labelField?: string;
|
|
634
|
+
/** Callback cuando cambia el valor */
|
|
635
|
+
onChange?: (value: string | number, option?: ITSearchSelectOption) => void;
|
|
636
|
+
/** Callback cuando pierde el foco */
|
|
637
|
+
onBlur?: (e: FocusEvent<any>) => void;
|
|
638
|
+
/** Indica si el componente está deshabilitado */
|
|
639
|
+
disabled?: boolean;
|
|
640
|
+
/** Clase CSS adicional para el contenedor */
|
|
641
|
+
className?: string;
|
|
642
|
+
/** Indica si el campo ha sido tocado (para validaciones) */
|
|
643
|
+
touched?: boolean;
|
|
644
|
+
/** Indica si el campo es requerido */
|
|
645
|
+
required?: boolean;
|
|
646
|
+
/** Mensaje de error */
|
|
647
|
+
error?: string;
|
|
648
|
+
/** Indica si el campo es de solo lectura */
|
|
649
|
+
readOnly?: boolean;
|
|
650
|
+
/** Callback para búsqueda en servidor (Modo 2: Conexión con API) */
|
|
651
|
+
onSearch?: (query: string) => void;
|
|
652
|
+
/** Indica si se está cargando información desde la API */
|
|
653
|
+
isLoading?: boolean;
|
|
654
|
+
/** Mensaje cuando no hay resultados */
|
|
655
|
+
noResultsMessage?: string;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* ITSearchSelect - Un componente de selección con buscador integrado.
|
|
660
|
+
* Soporta filtrado local y búsqueda remota via API.
|
|
661
|
+
*/
|
|
662
|
+
declare function ITSearchSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, onSearch, isLoading, noResultsMessage, }: ITSearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
663
|
+
|
|
614
664
|
interface ITSlideToggleProps {
|
|
615
665
|
/**
|
|
616
666
|
* Callback executed when the switch is toggled. Receives the new state.
|
|
@@ -664,6 +714,40 @@ declare function ITText({ children, className }: {
|
|
|
664
714
|
className?: string;
|
|
665
715
|
}): react_jsx_runtime.JSX.Element;
|
|
666
716
|
|
|
717
|
+
interface ITTabItem {
|
|
718
|
+
id: string;
|
|
719
|
+
label: string;
|
|
720
|
+
content: ReactNode;
|
|
721
|
+
icon?: ReactNode;
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
}
|
|
724
|
+
interface ITTabsProps {
|
|
725
|
+
items: ITTabItem[];
|
|
726
|
+
defaultActiveId?: string;
|
|
727
|
+
onChange?: (id: string) => void;
|
|
728
|
+
variant?: 'line' | 'pill';
|
|
729
|
+
className?: string;
|
|
730
|
+
containerClassName?: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
declare const ITTabs: React__default.FC<ITTabsProps>;
|
|
734
|
+
|
|
735
|
+
interface ITTripleFilterOption<T> {
|
|
736
|
+
label: string;
|
|
737
|
+
value: T;
|
|
738
|
+
}
|
|
739
|
+
interface ITTripleFilterProps<T> {
|
|
740
|
+
value: T;
|
|
741
|
+
onChange: (value: T) => void;
|
|
742
|
+
options: ITTripleFilterOption<T>[];
|
|
743
|
+
className?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @description Generic triple/segmented filter component following AXZY Emerald/Slate theme.
|
|
748
|
+
*/
|
|
749
|
+
declare const ITTripleFilter: <T extends string | boolean>({ value, onChange, options, className, }: ITTripleFilterProps<T>) => react_jsx_runtime.JSX.Element;
|
|
750
|
+
|
|
667
751
|
interface ITToastProps {
|
|
668
752
|
message: string;
|
|
669
753
|
type?: "success" | "error" | "warning" | "info" | "primary" | "danger" | string;
|
|
@@ -750,6 +834,8 @@ interface ITSidebarProps {
|
|
|
750
834
|
isCollapsed?: boolean;
|
|
751
835
|
onToggleCollapse?: () => void;
|
|
752
836
|
visibleOnMobile?: boolean;
|
|
837
|
+
onItemClick?: (item: ITNavigationItem) => void;
|
|
838
|
+
onSubItemClick?: (subitem: ITNavigationSubItem) => void;
|
|
753
839
|
className?: string;
|
|
754
840
|
}
|
|
755
841
|
|
|
@@ -930,4 +1016,4 @@ declare const createValidationSchema: (fields: FieldConfig[]) => Yup.ObjectSchem
|
|
|
930
1016
|
[x: string]: any;
|
|
931
1017
|
}, "">;
|
|
932
1018
|
|
|
933
|
-
export { type Column, type FieldConfig, type FieldConfigV2, ITBadget, type ITBadgetProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDropfile, ITFormBuilder, type ITFormBuilderProps, ITImage, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, ITNavbar, type ITNavbarProps, ITPagination, ITSelect, type ITSelectProps, ITSlideToggle, type ITSlideToggleProps, ITStepper, ITTable, type ITTableProps, ITText, type ITThemeConfig, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, createValidationSchema };
|
|
1019
|
+
export { type Column, type FieldConfig, type FieldConfigV2, ITBadget, type ITBadgetProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDropfile, ITFormBuilder, type ITFormBuilderProps, ITImage, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, ITNavbar, type ITNavbarProps, ITPagination, ITSearchSelect, type ITSearchSelectProps, ITSelect, type ITSelectProps, ITSlideToggle, type ITSlideToggleProps, ITStepper, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITThemeConfig, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, createValidationSchema };
|