@mw-kit/mw-ui 1.10.6 → 1.10.7
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 type { FloatingPortalProps } from '@floating-ui/react';
|
|
1
|
+
import type { FloatingPortalProps, OffsetOptions } from '@floating-ui/react';
|
|
2
2
|
export type PopupProps<T extends React.ElementType = 'div'> = {
|
|
3
3
|
content: React.FunctionComponent;
|
|
4
4
|
position: PopupPosition;
|
|
@@ -6,7 +6,7 @@ export type PopupProps<T extends React.ElementType = 'div'> = {
|
|
|
6
6
|
triggerType?: T;
|
|
7
7
|
triggerProps?: React.ComponentPropsWithRef<T>;
|
|
8
8
|
renderTrigger: (props: React.ComponentPropsWithRef<T>) => React.ReactNode;
|
|
9
|
-
offset?:
|
|
9
|
+
offset?: OffsetOptions;
|
|
10
10
|
shift?: number;
|
|
11
11
|
background?: 'light' | 'dark';
|
|
12
12
|
arrow?: 'flattened' | 'pointed' | 'none';
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import react__default, { TextareaHTMLAttributes } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
|
|
7
|
-
import { FloatingPortalProps } from '@floating-ui/react';
|
|
7
|
+
import { OffsetOptions, FloatingPortalProps } from '@floating-ui/react';
|
|
8
8
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
9
9
|
import { ReactVirtualizerOptions } from '@tanstack/react-virtual';
|
|
10
10
|
import { Property } from 'csstype';
|
|
@@ -272,7 +272,7 @@ type PopupProps<T extends React.ElementType = 'div'> = {
|
|
|
272
272
|
triggerType?: T;
|
|
273
273
|
triggerProps?: React.ComponentPropsWithRef<T>;
|
|
274
274
|
renderTrigger: (props: React.ComponentPropsWithRef<T>) => React.ReactNode;
|
|
275
|
-
offset?:
|
|
275
|
+
offset?: OffsetOptions;
|
|
276
276
|
shift?: number;
|
|
277
277
|
background?: 'light' | 'dark';
|
|
278
278
|
arrow?: 'flattened' | 'pointed' | 'none';
|