@serhii.olishevskyi/docs 1.2.25 → 1.2.27
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.mts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +302 -164
- package/dist/index.mjs +240 -103
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { TextFieldProps, SelectProps, SelectChangeEvent, FormControlLabelProps, CheckboxProps, SwitchProps, ButtonProps, IconButtonProps, TooltipProps, SxProps, Theme, TypographyProps } from '@mui/material';
|
|
3
|
+
import { TextFieldProps, SelectProps, SelectChangeEvent, FormControlLabelProps, CheckboxProps, SwitchProps, ButtonProps, IconButtonProps, TooltipProps, SxProps, Theme, TypographyProps, TablePaginationProps } from '@mui/material';
|
|
4
4
|
import { SystemProps } from '@mui/system';
|
|
5
5
|
import * as _supabase_supabase_js from '@supabase/supabase-js';
|
|
6
6
|
import { SupabaseClient, User, Session } from '@supabase/supabase-js';
|
|
@@ -412,6 +412,18 @@ interface ErrorAlertComponentProps {
|
|
|
412
412
|
}
|
|
413
413
|
declare const ErrorAlertComponent: React__default.FC<ErrorAlertComponentProps>;
|
|
414
414
|
|
|
415
|
+
interface TruncatedTypographyComponentProps extends TypographyProps {
|
|
416
|
+
/** Текст или содержимое */
|
|
417
|
+
children: React__default.ReactNode;
|
|
418
|
+
/** Максимальное количество строк. Если не указано или равно 1, обрезает в одну строку. */
|
|
419
|
+
lines?: number;
|
|
420
|
+
/** Пропсы для передачи в MUI Tooltip (например, placement, arrow и т.д.) */
|
|
421
|
+
tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
422
|
+
/** Принудительно показывать Tooltip всегда, даже если текст не обрезался */
|
|
423
|
+
alwaysShowTooltip?: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare const TruncatedTypographyComponent: React__default.FC<TruncatedTypographyComponentProps>;
|
|
426
|
+
|
|
415
427
|
type TextTruncateMode = 'truncate' | 'clamp-2' | 'wrap';
|
|
416
428
|
interface HeaderActionItem {
|
|
417
429
|
id: string;
|
|
@@ -507,6 +519,20 @@ declare const CollapsedContainerComponent: (props: PropsWithChildren<CollapsedCo
|
|
|
507
519
|
declare const LanguageSelector: React__default.FC;
|
|
508
520
|
declare const PublicLanguageSelector: React__default.FC;
|
|
509
521
|
|
|
522
|
+
type TablePaginationComponentProps = {
|
|
523
|
+
overrideNamespace?: string;
|
|
524
|
+
rowsPerPageOptions?: readonly (number | {
|
|
525
|
+
value: number;
|
|
526
|
+
label: string;
|
|
527
|
+
})[] | undefined;
|
|
528
|
+
count: number;
|
|
529
|
+
rowsPerPage: number;
|
|
530
|
+
page: number;
|
|
531
|
+
onPageChange: TablePaginationProps['onPageChange'];
|
|
532
|
+
onRowsPerPageChange?: TablePaginationProps['onRowsPerPageChange'];
|
|
533
|
+
};
|
|
534
|
+
declare const TablePaginationComponent: ({ overrideNamespace, rowsPerPageOptions, count, rowsPerPage, page, onPageChange, onRowsPerPageChange, }: TablePaginationComponentProps) => React__default.JSX.Element;
|
|
535
|
+
|
|
510
536
|
type AIProviderType = 'gemini' | 'openai';
|
|
511
537
|
interface AIServiceConfig {
|
|
512
538
|
apiKey?: string;
|
|
@@ -857,4 +883,4 @@ declare const Utils: {
|
|
|
857
883
|
};
|
|
858
884
|
};
|
|
859
885
|
|
|
860
|
-
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, AppSettingsProvider, AuthProvider, BreadcrumbProvider, ButtonComponent, type ButtonComponentProps, CheckboxComponent, type CheckboxComponentProps, CollapsedContainerComponent, type CollapsedContainerComponentProps, type CompanyMember, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, CopyClipboardButtonComponent, type CopyClipboardButtonComponentProps, type DialogSeverity, type DisplayState, EmailInputComponent, type EmailInputComponentProps, ErrorAlertComponent, type ErrorAlertComponentProps, ExpandableNoteComponent, type ExpandableNoteComponentProps, FilterContainerComponent, type FilterContainerComponentProps, type FilterSectionProps, type FilterWidth, type FullCompanyMemberItem, type HeaderActionItem, Hooks, type Language, LocalizationProvider, type Membership, type MembershipRole, MyAvatarComponent, type MyAvatarComponentProps, NumberInputComponent, type NumberInputComponentProps, PageComponent, type PageComponentProps, type PageHeaderProps, type PageLink, PageLinkComponent, type PageLinkComponentProps, type PrimaryActionProps, LanguageSelector as ProtectedLanguageSelector, Providers, PublicLanguageSelector, type RefreshActionProps, RefreshButtonComponent, type RefreshButtonComponentProps, type SaveCompanyUserPayload, SearchComponent, type SearchComponentProps, SelectComponent, type SelectComponentProps, type SelectOption, Services, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, SwitchComponent, type SwitchComponentProps, TextFieldComponent, type TextFieldComponentProps, type TextTruncateMode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslatableTooltipComponent, type TranslatableTooltipComponentProps, TranslateProvider, TranslateText, TranslationEditProvider, type TypographyConfig, UrlComponent, type UrlComponentProps, UserAvatarComponent, type UserAvatarComponentProps, type UserGroupedSessions, UserPopoverComponent, type UserPopoverComponentProps, type UserProfile, UserRoleChipComponent, type UserRoleChipComponentProps, type UserSessionItem, type UserSettings, UserSettingsProvider, UserStatusChipComponent, type UserStatusChipComponentProps, type UserStatusType, Utils, defaultUserSettings, initI18n, useAI, useAppSettings, useAppTheme, useAuth, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace, useUserSettings };
|
|
886
|
+
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, AppSettingsProvider, AuthProvider, BreadcrumbProvider, ButtonComponent, type ButtonComponentProps, CheckboxComponent, type CheckboxComponentProps, CollapsedContainerComponent, type CollapsedContainerComponentProps, type CompanyMember, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, CopyClipboardButtonComponent, type CopyClipboardButtonComponentProps, type DialogSeverity, type DisplayState, EmailInputComponent, type EmailInputComponentProps, ErrorAlertComponent, type ErrorAlertComponentProps, ExpandableNoteComponent, type ExpandableNoteComponentProps, FilterContainerComponent, type FilterContainerComponentProps, type FilterSectionProps, type FilterWidth, type FullCompanyMemberItem, type HeaderActionItem, Hooks, type Language, LocalizationProvider, type Membership, type MembershipRole, MyAvatarComponent, type MyAvatarComponentProps, NumberInputComponent, type NumberInputComponentProps, PageComponent, type PageComponentProps, type PageHeaderProps, type PageLink, PageLinkComponent, type PageLinkComponentProps, type PrimaryActionProps, LanguageSelector as ProtectedLanguageSelector, Providers, PublicLanguageSelector, type RefreshActionProps, RefreshButtonComponent, type RefreshButtonComponentProps, type SaveCompanyUserPayload, SearchComponent, type SearchComponentProps, SelectComponent, type SelectComponentProps, type SelectOption, Services, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, SwitchComponent, type SwitchComponentProps, TablePaginationComponent, type TablePaginationComponentProps, TextFieldComponent, type TextFieldComponentProps, type TextTruncateMode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslatableTooltipComponent, type TranslatableTooltipComponentProps, TranslateProvider, TranslateText, TranslationEditProvider, TruncatedTypographyComponent, type TruncatedTypographyComponentProps, type TypographyConfig, UrlComponent, type UrlComponentProps, UserAvatarComponent, type UserAvatarComponentProps, type UserGroupedSessions, UserPopoverComponent, type UserPopoverComponentProps, type UserProfile, UserRoleChipComponent, type UserRoleChipComponentProps, type UserSessionItem, type UserSettings, UserSettingsProvider, UserStatusChipComponent, type UserStatusChipComponentProps, type UserStatusType, Utils, defaultUserSettings, initI18n, useAI, useAppSettings, useAppTheme, useAuth, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace, useUserSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { TextFieldProps, SelectProps, SelectChangeEvent, FormControlLabelProps, CheckboxProps, SwitchProps, ButtonProps, IconButtonProps, TooltipProps, SxProps, Theme, TypographyProps } from '@mui/material';
|
|
3
|
+
import { TextFieldProps, SelectProps, SelectChangeEvent, FormControlLabelProps, CheckboxProps, SwitchProps, ButtonProps, IconButtonProps, TooltipProps, SxProps, Theme, TypographyProps, TablePaginationProps } from '@mui/material';
|
|
4
4
|
import { SystemProps } from '@mui/system';
|
|
5
5
|
import * as _supabase_supabase_js from '@supabase/supabase-js';
|
|
6
6
|
import { SupabaseClient, User, Session } from '@supabase/supabase-js';
|
|
@@ -412,6 +412,18 @@ interface ErrorAlertComponentProps {
|
|
|
412
412
|
}
|
|
413
413
|
declare const ErrorAlertComponent: React__default.FC<ErrorAlertComponentProps>;
|
|
414
414
|
|
|
415
|
+
interface TruncatedTypographyComponentProps extends TypographyProps {
|
|
416
|
+
/** Текст или содержимое */
|
|
417
|
+
children: React__default.ReactNode;
|
|
418
|
+
/** Максимальное количество строк. Если не указано или равно 1, обрезает в одну строку. */
|
|
419
|
+
lines?: number;
|
|
420
|
+
/** Пропсы для передачи в MUI Tooltip (например, placement, arrow и т.д.) */
|
|
421
|
+
tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
422
|
+
/** Принудительно показывать Tooltip всегда, даже если текст не обрезался */
|
|
423
|
+
alwaysShowTooltip?: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare const TruncatedTypographyComponent: React__default.FC<TruncatedTypographyComponentProps>;
|
|
426
|
+
|
|
415
427
|
type TextTruncateMode = 'truncate' | 'clamp-2' | 'wrap';
|
|
416
428
|
interface HeaderActionItem {
|
|
417
429
|
id: string;
|
|
@@ -507,6 +519,20 @@ declare const CollapsedContainerComponent: (props: PropsWithChildren<CollapsedCo
|
|
|
507
519
|
declare const LanguageSelector: React__default.FC;
|
|
508
520
|
declare const PublicLanguageSelector: React__default.FC;
|
|
509
521
|
|
|
522
|
+
type TablePaginationComponentProps = {
|
|
523
|
+
overrideNamespace?: string;
|
|
524
|
+
rowsPerPageOptions?: readonly (number | {
|
|
525
|
+
value: number;
|
|
526
|
+
label: string;
|
|
527
|
+
})[] | undefined;
|
|
528
|
+
count: number;
|
|
529
|
+
rowsPerPage: number;
|
|
530
|
+
page: number;
|
|
531
|
+
onPageChange: TablePaginationProps['onPageChange'];
|
|
532
|
+
onRowsPerPageChange?: TablePaginationProps['onRowsPerPageChange'];
|
|
533
|
+
};
|
|
534
|
+
declare const TablePaginationComponent: ({ overrideNamespace, rowsPerPageOptions, count, rowsPerPage, page, onPageChange, onRowsPerPageChange, }: TablePaginationComponentProps) => React__default.JSX.Element;
|
|
535
|
+
|
|
510
536
|
type AIProviderType = 'gemini' | 'openai';
|
|
511
537
|
interface AIServiceConfig {
|
|
512
538
|
apiKey?: string;
|
|
@@ -857,4 +883,4 @@ declare const Utils: {
|
|
|
857
883
|
};
|
|
858
884
|
};
|
|
859
885
|
|
|
860
|
-
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, AppSettingsProvider, AuthProvider, BreadcrumbProvider, ButtonComponent, type ButtonComponentProps, CheckboxComponent, type CheckboxComponentProps, CollapsedContainerComponent, type CollapsedContainerComponentProps, type CompanyMember, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, CopyClipboardButtonComponent, type CopyClipboardButtonComponentProps, type DialogSeverity, type DisplayState, EmailInputComponent, type EmailInputComponentProps, ErrorAlertComponent, type ErrorAlertComponentProps, ExpandableNoteComponent, type ExpandableNoteComponentProps, FilterContainerComponent, type FilterContainerComponentProps, type FilterSectionProps, type FilterWidth, type FullCompanyMemberItem, type HeaderActionItem, Hooks, type Language, LocalizationProvider, type Membership, type MembershipRole, MyAvatarComponent, type MyAvatarComponentProps, NumberInputComponent, type NumberInputComponentProps, PageComponent, type PageComponentProps, type PageHeaderProps, type PageLink, PageLinkComponent, type PageLinkComponentProps, type PrimaryActionProps, LanguageSelector as ProtectedLanguageSelector, Providers, PublicLanguageSelector, type RefreshActionProps, RefreshButtonComponent, type RefreshButtonComponentProps, type SaveCompanyUserPayload, SearchComponent, type SearchComponentProps, SelectComponent, type SelectComponentProps, type SelectOption, Services, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, SwitchComponent, type SwitchComponentProps, TextFieldComponent, type TextFieldComponentProps, type TextTruncateMode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslatableTooltipComponent, type TranslatableTooltipComponentProps, TranslateProvider, TranslateText, TranslationEditProvider, type TypographyConfig, UrlComponent, type UrlComponentProps, UserAvatarComponent, type UserAvatarComponentProps, type UserGroupedSessions, UserPopoverComponent, type UserPopoverComponentProps, type UserProfile, UserRoleChipComponent, type UserRoleChipComponentProps, type UserSessionItem, type UserSettings, UserSettingsProvider, UserStatusChipComponent, type UserStatusChipComponentProps, type UserStatusType, Utils, defaultUserSettings, initI18n, useAI, useAppSettings, useAppTheme, useAuth, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace, useUserSettings };
|
|
886
|
+
export { type AIConfig, type AIGenerateOptions, AIProvider, type AIProviderProps, type AIProviderType, AppSettingsProvider, AuthProvider, BreadcrumbProvider, ButtonComponent, type ButtonComponentProps, CheckboxComponent, type CheckboxComponentProps, CollapsedContainerComponent, type CollapsedContainerComponentProps, type CompanyMember, type ConfirmOptions, type ConfirmResult, ConfirmationProvider, type ConfirmationProviderProps, CopyClipboardButtonComponent, type CopyClipboardButtonComponentProps, type DialogSeverity, type DisplayState, EmailInputComponent, type EmailInputComponentProps, ErrorAlertComponent, type ErrorAlertComponentProps, ExpandableNoteComponent, type ExpandableNoteComponentProps, FilterContainerComponent, type FilterContainerComponentProps, type FilterSectionProps, type FilterWidth, type FullCompanyMemberItem, type HeaderActionItem, Hooks, type Language, LocalizationProvider, type Membership, type MembershipRole, MyAvatarComponent, type MyAvatarComponentProps, NumberInputComponent, type NumberInputComponentProps, PageComponent, type PageComponentProps, type PageHeaderProps, type PageLink, PageLinkComponent, type PageLinkComponentProps, type PrimaryActionProps, LanguageSelector as ProtectedLanguageSelector, Providers, PublicLanguageSelector, type RefreshActionProps, RefreshButtonComponent, type RefreshButtonComponentProps, type SaveCompanyUserPayload, SearchComponent, type SearchComponentProps, SelectComponent, type SelectComponentProps, type SelectOption, Services, type SupabaseConfig, SupabaseProvider, type SupabaseProviderProps, SwitchComponent, type SwitchComponentProps, TablePaginationComponent, type TablePaginationComponentProps, TextFieldComponent, type TextFieldComponentProps, type TextTruncateMode, type ThemeColors, type ThemeConfig, type ThemeMode, ThemeProvider, ToastProvider, type ToastType, TranslatableTooltipComponent, type TranslatableTooltipComponentProps, TranslateProvider, TranslateText, TranslationEditProvider, TruncatedTypographyComponent, type TruncatedTypographyComponentProps, type TypographyConfig, UrlComponent, type UrlComponentProps, UserAvatarComponent, type UserAvatarComponentProps, type UserGroupedSessions, UserPopoverComponent, type UserPopoverComponentProps, type UserProfile, UserRoleChipComponent, type UserRoleChipComponentProps, type UserSessionItem, type UserSettings, UserSettingsProvider, UserStatusChipComponent, type UserStatusChipComponentProps, type UserStatusType, Utils, defaultUserSettings, initI18n, useAI, useAppSettings, useAppTheme, useAuth, useBreadcrumb, useConfirmation, useLocalization, useSupabase, useToast, useTranslationEdit, useTranslationNamespace, useUserSettings };
|