@tempots/ui 4.2.4 → 4.3.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 +36 -0
- package/index.cjs +1 -1
- package/index.js +622 -565
- package/package.json +1 -1
- package/renderables/pop-over.d.ts +22 -7
package/package.json
CHANGED
|
@@ -14,31 +14,46 @@ export type PopOverOptions = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Specifies whether the PopOver is open or closed.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
open: Value<boolean>;
|
|
18
18
|
/**
|
|
19
19
|
* Specifies the content of the PopOver.
|
|
20
20
|
* This should be a function that returns a TNode.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
content: () => TNode;
|
|
23
23
|
/**
|
|
24
24
|
* Specifies the placement of the PopOver.
|
|
25
25
|
* This is an optional property.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
placement?: Value<Placement>;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies the offset of the PopOver.
|
|
30
30
|
* This is an optional property.
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
offset?: Value<{
|
|
33
33
|
/**
|
|
34
34
|
* Specifies the offset on the main axis.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
mainAxis?: number;
|
|
37
37
|
/**
|
|
38
38
|
* Specifies the offset on the cross axis.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
crossAxis?: number;
|
|
41
41
|
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the arrow configuration for the PopOver.
|
|
44
|
+
* When provided, an arrow element will be created and positioned.
|
|
45
|
+
* This is an optional property.
|
|
46
|
+
*/
|
|
47
|
+
arrow?: {
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the padding between the arrow and the edges of the floating element.
|
|
50
|
+
*/
|
|
51
|
+
padding?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the content of the arrow.
|
|
54
|
+
*/
|
|
55
|
+
content?: TNode;
|
|
56
|
+
};
|
|
42
57
|
};
|
|
43
58
|
/**
|
|
44
59
|
* Renders a PopOver component.
|
|
@@ -47,4 +62,4 @@ export type PopOverOptions = {
|
|
|
47
62
|
* @returns The rendered PopOver component.
|
|
48
63
|
* @public
|
|
49
64
|
*/
|
|
50
|
-
export declare const PopOver: ({ content, open, placement: placementOption, offset, }: PopOverOptions) => import('@tempots/dom').Renderable;
|
|
65
|
+
export declare const PopOver: ({ content, open, placement: placementOption, offset, arrow: arrowOption, }: PopOverOptions) => import('@tempots/dom').Renderable;
|