@tempots/ui 6.1.0 → 6.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/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +377 -360
- package/package.json +1 -1
- package/renderables/classes.d.ts +8 -0
- package/renderables/pop-over.d.ts +4 -0
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Value } from '@tempots/dom';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a renderable that applies classes based on a record of boolean signals.
|
|
4
|
+
*
|
|
5
|
+
* @param obj - The record of signals.
|
|
6
|
+
* @returns The created renderable.
|
|
7
|
+
*/
|
|
8
|
+
export declare function classes(obj: Record<string, Value<boolean>>): import('@tempots/dom').Renderable<import('@tempots/dom').DOMContext>;
|
|
@@ -62,6 +62,10 @@ export type PopOverOptions = {
|
|
|
62
62
|
* positioned relative to the parent element.
|
|
63
63
|
*/
|
|
64
64
|
target?: string | HTMLElement;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies a function to be called when a click occurs outside of the PopOver.
|
|
67
|
+
*/
|
|
68
|
+
onClickOutside?: () => void;
|
|
65
69
|
};
|
|
66
70
|
/**
|
|
67
71
|
* Creates a pop-over component.
|