profinansy-ui-lib 3.6.92 → 3.6.93
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/components/uikit/Popup/Popup.d.ts +1 -65
- package/dist/components/uikit/Popup/Popup.stories.d.ts +1 -1
- package/dist/components/uikit/Popup/components/PopupDesktop.d.ts +67 -0
- package/dist/components/uikit/Popup/components/PopupMobile.d.ts +3 -0
- package/dist/index.js +12 -8
- package/package.json +1 -1
|
@@ -1,67 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Placement } from '@floating-ui/react';
|
|
3
1
|
import { IPopup } from './Popup.typed';
|
|
4
|
-
|
|
5
|
-
placement?: Placement;
|
|
6
|
-
isHover?: boolean;
|
|
7
|
-
}): {
|
|
8
|
-
labelId: string;
|
|
9
|
-
descriptionId: string;
|
|
10
|
-
setLabelId: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
-
setDescriptionId: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
-
placement: Placement;
|
|
13
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
14
|
-
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
isPositioned: boolean;
|
|
18
|
-
update: () => void;
|
|
19
|
-
floatingStyles: React.CSSProperties;
|
|
20
|
-
refs: {
|
|
21
|
-
reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType>;
|
|
22
|
-
floating: React.MutableRefObject<HTMLElement>;
|
|
23
|
-
setReference: (node: import("@floating-ui/react-dom").ReferenceType) => void;
|
|
24
|
-
setFloating: (node: HTMLElement) => void;
|
|
25
|
-
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
26
|
-
elements: {
|
|
27
|
-
reference: import("@floating-ui/react-dom").ReferenceType;
|
|
28
|
-
floating: HTMLElement;
|
|
29
|
-
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
30
|
-
context: {
|
|
31
|
-
placement: Placement;
|
|
32
|
-
strategy: import("@floating-ui/utils").Strategy;
|
|
33
|
-
x: number;
|
|
34
|
-
y: number;
|
|
35
|
-
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
36
|
-
isPositioned: boolean;
|
|
37
|
-
update: () => void;
|
|
38
|
-
floatingStyles: React.CSSProperties;
|
|
39
|
-
open: boolean;
|
|
40
|
-
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
41
|
-
events: import("@floating-ui/react").FloatingEvents;
|
|
42
|
-
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
43
|
-
nodeId: string;
|
|
44
|
-
floatingId: string;
|
|
45
|
-
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
46
|
-
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
47
|
-
};
|
|
48
|
-
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
|
-
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
51
|
-
active?: boolean;
|
|
52
|
-
selected?: boolean;
|
|
53
|
-
}) => Record<string, unknown>;
|
|
54
|
-
arrowRef: React.MutableRefObject<any>;
|
|
55
|
-
open: boolean;
|
|
56
|
-
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
57
|
-
};
|
|
58
|
-
declare const Popup: ({ content, ...restOptions }: IPopup) => JSX.Element;
|
|
59
|
-
export declare const PopupTrigger: ({ isText, targetElement, targetClass }: {
|
|
60
|
-
isText: boolean;
|
|
61
|
-
targetElement?: React.ReactNode;
|
|
62
|
-
targetClass?: string;
|
|
63
|
-
}) => JSX.Element;
|
|
64
|
-
export declare const PopupContent: ({ content }: {
|
|
65
|
-
content: string[];
|
|
66
|
-
}) => JSX.Element;
|
|
2
|
+
declare const Popup: (props: IPopup) => JSX.Element;
|
|
67
3
|
export { Popup };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
import { IPopup } from '../Popup.typed';
|
|
4
|
+
export declare function usePopup({ placement, isHover }: {
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
isHover?: boolean;
|
|
7
|
+
}): {
|
|
8
|
+
labelId: string;
|
|
9
|
+
descriptionId: string;
|
|
10
|
+
setLabelId: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
+
setDescriptionId: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
+
placement: Placement;
|
|
13
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
14
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
isPositioned: boolean;
|
|
18
|
+
update: () => void;
|
|
19
|
+
floatingStyles: React.CSSProperties;
|
|
20
|
+
refs: {
|
|
21
|
+
reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType>;
|
|
22
|
+
floating: React.MutableRefObject<HTMLElement>;
|
|
23
|
+
setReference: (node: import("@floating-ui/react-dom").ReferenceType) => void;
|
|
24
|
+
setFloating: (node: HTMLElement) => void;
|
|
25
|
+
} & import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
26
|
+
elements: {
|
|
27
|
+
reference: import("@floating-ui/react-dom").ReferenceType;
|
|
28
|
+
floating: HTMLElement;
|
|
29
|
+
} & import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
30
|
+
context: {
|
|
31
|
+
placement: Placement;
|
|
32
|
+
strategy: import("@floating-ui/utils").Strategy;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
36
|
+
isPositioned: boolean;
|
|
37
|
+
update: () => void;
|
|
38
|
+
floatingStyles: React.CSSProperties;
|
|
39
|
+
open: boolean;
|
|
40
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
|
|
41
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
42
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
43
|
+
nodeId: string;
|
|
44
|
+
floatingId: string;
|
|
45
|
+
refs: import("@floating-ui/react").ExtendedRefs<import("@floating-ui/react").ReferenceType>;
|
|
46
|
+
elements: import("@floating-ui/react").ExtendedElements<import("@floating-ui/react").ReferenceType>;
|
|
47
|
+
};
|
|
48
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
51
|
+
active?: boolean;
|
|
52
|
+
selected?: boolean;
|
|
53
|
+
}) => Record<string, unknown>;
|
|
54
|
+
arrowRef: React.MutableRefObject<any>;
|
|
55
|
+
open: boolean;
|
|
56
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
57
|
+
};
|
|
58
|
+
declare const PopupDesktop: ({ content, ...restOptions }: IPopup) => JSX.Element;
|
|
59
|
+
export declare const PopupTrigger: ({ isText, targetElement, targetClass }: {
|
|
60
|
+
isText: boolean;
|
|
61
|
+
targetElement?: React.ReactNode;
|
|
62
|
+
targetClass?: string;
|
|
63
|
+
}) => JSX.Element;
|
|
64
|
+
export declare const PopupContent: ({ content }: {
|
|
65
|
+
content: string[];
|
|
66
|
+
}) => JSX.Element;
|
|
67
|
+
export { PopupDesktop };
|