@axzydev/axzy_ui_system 1.0.168 → 1.0.170

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.d.cts CHANGED
@@ -930,7 +930,12 @@ interface ITThemeContextType {
930
930
  setDarkModeMode: (mode: "light" | "dark" | "system") => void;
931
931
  }
932
932
  declare const useITTheme: () => ITThemeContextType;
933
- declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
933
+ /**
934
+ * Versión segura de useITTheme que retorna undefined
935
+ * si se usa fuera de ITThemeProvider (no lanza error).
936
+ */
937
+ declare const useITThemeSafe: () => ITThemeContextType | undefined;
938
+ declare function ITThemeProvider({ children, theme, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
934
939
 
935
940
  interface ITTimePickerProps {
936
941
  name: string;
@@ -1052,4 +1057,17 @@ declare const createValidationSchema: (fields: FieldConfig[]) => Yup.ObjectSchem
1052
1057
  [x: string]: any;
1053
1058
  }, "">;
1054
1059
 
1055
- export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, 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, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, createValidationSchema, useITTheme };
1060
+ /**
1061
+ * Determina si un color hexadecimal es claro.
1062
+ */
1063
+ declare const isLightColor: (hex: string) => boolean;
1064
+ /**
1065
+ * Traduce un valor de color de CSS (hexadecimal o variable var(--...)) a hexadecimal absoluto.
1066
+ */
1067
+ declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette, isDarkMode?: boolean) => string;
1068
+ /**
1069
+ * Obtiene la clase de color de texto óptima (blanca o gris oscuro) basado en el fondo.
1070
+ */
1071
+ declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette, isDarkMode?: boolean) => "text-white" | "text-slate-800";
1072
+
1073
+ export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, 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, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useITTheme, useITThemeSafe };
package/dist/index.d.ts CHANGED
@@ -930,7 +930,12 @@ interface ITThemeContextType {
930
930
  setDarkModeMode: (mode: "light" | "dark" | "system") => void;
931
931
  }
932
932
  declare const useITTheme: () => ITThemeContextType;
933
- declare function ITThemeProvider({ children, theme }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
933
+ /**
934
+ * Versión segura de useITTheme que retorna undefined
935
+ * si se usa fuera de ITThemeProvider (no lanza error).
936
+ */
937
+ declare const useITThemeSafe: () => ITThemeContextType | undefined;
938
+ declare function ITThemeProvider({ children, theme, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
934
939
 
935
940
  interface ITTimePickerProps {
936
941
  name: string;
@@ -1052,4 +1057,17 @@ declare const createValidationSchema: (fields: FieldConfig[]) => Yup.ObjectSchem
1052
1057
  [x: string]: any;
1053
1058
  }, "">;
1054
1059
 
1055
- export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, 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, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, createValidationSchema, useITTheme };
1060
+ /**
1061
+ * Determina si un color hexadecimal es claro.
1062
+ */
1063
+ declare const isLightColor: (hex: string) => boolean;
1064
+ /**
1065
+ * Traduce un valor de color de CSS (hexadecimal o variable var(--...)) a hexadecimal absoluto.
1066
+ */
1067
+ declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette, isDarkMode?: boolean) => string;
1068
+ /**
1069
+ * Obtiene la clase de color de texto óptima (blanca o gris oscuro) basado en el fondo.
1070
+ */
1071
+ declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette, isDarkMode?: boolean) => "text-white" | "text-slate-800";
1072
+
1073
+ export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, 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, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useITTheme, useITThemeSafe };