@true-engineering/true-react-common-ui-kit 3.55.0 → 3.56.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/README.md +11 -727
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +1 -1
- package/dist/components/WithPopup/WithPopup.d.ts +11 -3
- package/dist/true-react-common-ui-kit.js +439 -386
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +439 -386
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +4 -2
- package/src/components/FlexibleTable/FlexibleTable.tsx +4 -1
- package/src/components/Select/components/SelectList/SelectList.tsx +1 -1
- package/src/components/WithPopup/WithPopup.tsx +29 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ITweakStyles } from '../../theme';
|
|
2
2
|
import type { IFlexibleTableRowStyles } from './components';
|
|
3
3
|
export declare const STICKY_SHADOW_PADDING = 12;
|
|
4
|
-
export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "flexibleTableWrapper" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
|
|
5
5
|
export type IFlexibleTableStyles = ITweakStyles<typeof useStyles, {
|
|
6
6
|
tweakTableRow: IFlexibleTableRowStyles;
|
|
7
7
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { Placement, Middleware, OffsetOptions, UseHoverProps } from '@floating-ui/react';
|
|
2
|
+
import { Placement, Middleware, OffsetOptions, UseHoverProps, UseClickProps, UseFocusProps, UseDismissProps, UseTransitionStatusProps } from '@floating-ui/react';
|
|
3
3
|
import { ICommonProps, IDataAttributes, IRenderNode } from '../../types';
|
|
4
4
|
import { IPopupArrowProps, IPopupEventType, IWithPopupChildrenProps, IWithPopupToggleEvent, IWithPopupTriggerProps } from './types';
|
|
5
5
|
import { IWithPopupStyles } from './WithPopup.styles';
|
|
@@ -11,8 +11,11 @@ export interface IWithPopupProps extends ICommonProps<IWithPopupStyles> {
|
|
|
11
11
|
placement?: Placement;
|
|
12
12
|
/** @default 'click' */
|
|
13
13
|
eventType?: IPopupEventType;
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Используйте hoverOptions
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
hoverDelay?: number;
|
|
16
19
|
/** @default 6 */
|
|
17
20
|
popupOffset?: OffsetOptions;
|
|
18
21
|
arrowProps?: IPopupArrowProps;
|
|
@@ -35,6 +38,11 @@ export interface IWithPopupProps extends ICommonProps<IWithPopupStyles> {
|
|
|
35
38
|
/** Должна ли минимальная ширина попапа быть равна ширине триггера
|
|
36
39
|
* @default false */
|
|
37
40
|
isMinWidthSameAsTrigger?: boolean;
|
|
41
|
+
hoverOptions?: UseHoverProps;
|
|
42
|
+
clickOptions?: UseClickProps;
|
|
43
|
+
focusOptions?: UseFocusProps;
|
|
44
|
+
dismissOptions?: UseDismissProps;
|
|
45
|
+
transitionOptions?: UseTransitionStatusProps;
|
|
38
46
|
onToggle?: (isActive: boolean, event?: IWithPopupToggleEvent) => void;
|
|
39
47
|
}
|
|
40
48
|
export declare const WithPopup: FC<IWithPopupProps>;
|