@tempots/ui 4.2.4 → 4.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/ui",
3
- "version": "4.2.4",
3
+ "version": "4.3.0",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -14,31 +14,46 @@ export type PopOverOptions = {
14
14
  /**
15
15
  * Specifies whether the PopOver is open or closed.
16
16
  */
17
- readonly open: Value<boolean>;
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
- readonly content: () => TNode;
22
+ content: () => TNode;
23
23
  /**
24
24
  * Specifies the placement of the PopOver.
25
25
  * This is an optional property.
26
26
  */
27
- readonly placement?: Value<Placement>;
27
+ placement?: Value<Placement>;
28
28
  /**
29
29
  * Specifies the offset of the PopOver.
30
30
  * This is an optional property.
31
31
  */
32
- readonly offset?: Value<{
32
+ offset?: Value<{
33
33
  /**
34
34
  * Specifies the offset on the main axis.
35
35
  */
36
- readonly mainAxis?: number;
36
+ mainAxis?: number;
37
37
  /**
38
38
  * Specifies the offset on the cross axis.
39
39
  */
40
- readonly crossAxis?: number;
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;