@trii/components 3.1.0 → 3.1.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.
- package/dist/cjs/index.js +22 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +22 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +17 -2
- package/dist/types/theme/MuiComponentsConfig.d.ts +14 -1
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/theme/themeSlice.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -674,7 +674,20 @@ declare const ChatDetailsSidebar: (props: ChatDetailsSidebarProps) => react_jsx_
|
|
|
674
674
|
|
|
675
675
|
declare const i18nInstance: i18next.i18n;
|
|
676
676
|
|
|
677
|
-
|
|
677
|
+
/**
|
|
678
|
+
* Ajustes que difieren entre apps. Los valores por defecto son los que ya
|
|
679
|
+
* usaba el paquete, asi que omitir las opciones no cambia nada.
|
|
680
|
+
*/
|
|
681
|
+
interface MuiComponentsConfigOptions {
|
|
682
|
+
/**
|
|
683
|
+
* Fondo del modal y su backdrop en transparente. Lo usan header y home;
|
|
684
|
+
* contacts lo tenia desactivado a proposito.
|
|
685
|
+
*/
|
|
686
|
+
transparentModal?: boolean;
|
|
687
|
+
/** z-index del popper del Autocomplete. Header necesita 1; el resto, 11. */
|
|
688
|
+
autocompleteZIndex?: number;
|
|
689
|
+
}
|
|
690
|
+
declare const MuiComponentsConfig: (themeRedux: Theme, options?: MuiComponentsConfigOptions) => Theme;
|
|
678
691
|
|
|
679
692
|
/**
|
|
680
693
|
* Forma mínima del store que necesita este slice: la app que lo use tiene que
|
|
@@ -684,6 +697,8 @@ interface ThemeRootState {
|
|
|
684
697
|
User: {
|
|
685
698
|
user: {
|
|
686
699
|
uid: string;
|
|
700
|
+
/** Requerido por `updateTheme`: la URL lo lleva en la ruta. */
|
|
701
|
+
spaceId?: string;
|
|
687
702
|
};
|
|
688
703
|
};
|
|
689
704
|
Theme: ThemeState;
|
|
@@ -802,4 +817,4 @@ declare const lightGray: Theme;
|
|
|
802
817
|
declare const darkBlue: Theme;
|
|
803
818
|
declare const darkBlack: Theme;
|
|
804
819
|
|
|
805
|
-
export { AsyncContent, type AsyncContentProps, type AsyncData, type AsyncState, type AsyncStatus, type Calendar, type Contact, ContactInfoPopup, ChatDetailsSidebar as ContactSidebar, type ChatDetailsSidebarProps as ContactSidebarProps, EditContactModal, type EditContactModalProps, type EditContactMode, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type EventData, EventsDialog, type EventsDialogProps, type IsEmptyFn, type ItemType, type ModalMode, MuiComponentsConfig, type Notification, PanelErrorBoundary, type PanelErrorBoundaryProps, type SidebarChatIntegration, type StartConversationTarget, type TaskData, type ThemeName, type ThemeRootState, type ThemeState, type UseAsyncDataResult, asyncIdle, asyncRequestFailed, asyncRequestStarted, asyncRequestSucceeded, darkBlack, darkBlue, defaultIsEmpty, deriveAsyncState, getErrorMessage, i18nInstance as i18n, isStale, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectDarkTheme, selectTheme, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme, useAsyncData };
|
|
820
|
+
export { AsyncContent, type AsyncContentProps, type AsyncData, type AsyncState, type AsyncStatus, type Calendar, type Contact, ContactInfoPopup, ChatDetailsSidebar as ContactSidebar, type ChatDetailsSidebarProps as ContactSidebarProps, EditContactModal, type EditContactModalProps, type EditContactMode, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type EventData, EventsDialog, type EventsDialogProps, type IsEmptyFn, type ItemType, type ModalMode, MuiComponentsConfig, type MuiComponentsConfigOptions, type Notification, PanelErrorBoundary, type PanelErrorBoundaryProps, type SidebarChatIntegration, type StartConversationTarget, type TaskData, type ThemeName, type ThemeRootState, type ThemeState, type UseAsyncDataResult, asyncIdle, asyncRequestFailed, asyncRequestStarted, asyncRequestSucceeded, darkBlack, darkBlue, defaultIsEmpty, deriveAsyncState, getErrorMessage, i18nInstance as i18n, isStale, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectDarkTheme, selectTheme, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme, useAsyncData };
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Ajustes que difieren entre apps. Los valores por defecto son los que ya
|
|
4
|
+
* usaba el paquete, asi que omitir las opciones no cambia nada.
|
|
5
|
+
*/
|
|
6
|
+
export interface MuiComponentsConfigOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Fondo del modal y su backdrop en transparente. Lo usan header y home;
|
|
9
|
+
* contacts lo tenia desactivado a proposito.
|
|
10
|
+
*/
|
|
11
|
+
transparentModal?: boolean;
|
|
12
|
+
/** z-index del popper del Autocomplete. Header necesita 1; el resto, 11. */
|
|
13
|
+
autocompleteZIndex?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const MuiComponentsConfig: (themeRedux: Theme, options?: MuiComponentsConfigOptions) => Theme;
|
|
3
16
|
export default MuiComponentsConfig;
|