@epam/ai-dial-ui-kit 0.15.0-dev.53 → 0.15.0-dev.54
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, FC, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
3
|
import { PopupSize } from '../../../types/popup';
|
|
4
4
|
export interface PopupProps {
|
|
@@ -8,6 +8,12 @@ export interface PopupProps {
|
|
|
8
8
|
portalId?: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
overlayClassName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Inline styles applied to the overlay. Floating UI sets `position`, `inset`
|
|
13
|
+
* and `overflow: auto` inline, which no class can override; keys passed here
|
|
14
|
+
* are merged after them and win.
|
|
15
|
+
*/
|
|
16
|
+
overlayStyle?: CSSProperties;
|
|
11
17
|
titleClassName?: string;
|
|
12
18
|
headerClassName?: string;
|
|
13
19
|
/** Additional CSS classes applied to the scrollable body wrapper around `children`. */
|
|
@@ -87,6 +93,7 @@ export interface PopupProps {
|
|
|
87
93
|
* @param [portalId] - Optional portal container id
|
|
88
94
|
* @param [className] - Additional CSS classes applied to the popup container
|
|
89
95
|
* @param [overlayClassName] - Additional CSS classes applied to the overlay
|
|
96
|
+
* @param [overlayStyle] - Inline styles merged over Floating UI's own overlay styles (`position`, `inset`, `overflow: auto`)
|
|
90
97
|
* @param [titleClassName] - Additional CSS classes applied to the title element
|
|
91
98
|
* @param [headerClassName] - Additional CSS classes applied to the popup header container
|
|
92
99
|
* @param [bodyClassName] - Additional CSS classes applied to the scrollable body wrapper around `children`
|