@wistia/vhs 2.11.0-beta.541dc90e.eb72f6a → 2.11.0-beta.7870a8bc.0101acb
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,8 +1,21 @@
|
|
|
1
1
|
import type { ReactNode, ComponentPropsWithRef, ElementType, MutableRefObject } from 'react';
|
|
2
2
|
export type ClickAreaProps = ComponentPropsWithRef<'div'> & {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Supply an element or Component to render as the root compoennt (default is div)
|
|
5
|
+
*/
|
|
6
|
+
renderAs?: ElementType;
|
|
7
|
+
/**
|
|
8
|
+
* The content within the clickarea
|
|
9
|
+
*/
|
|
4
10
|
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* If provided, this click event happens instead of the target ref's click event
|
|
13
|
+
*/
|
|
5
14
|
onClick?: (event: Event) => void;
|
|
15
|
+
/**
|
|
16
|
+
* A ref to the element within chldren that will be used as the target of the click event
|
|
17
|
+
* Should typically be a button or link
|
|
18
|
+
*/
|
|
6
19
|
targetRef: MutableRefObject<HTMLElement | null>;
|
|
7
20
|
};
|
|
8
21
|
export declare const ClickArea: import("react").ForwardRefExoticComponent<Omit<ClickAreaProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickArea.d.ts","sourceRoot":"","sources":["../../../../src/components/ClickArea/ClickArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAO,WAAW,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAIlG,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC1D,
|
|
1
|
+
{"version":3,"file":"ClickArea.d.ts","sourceRoot":"","sources":["../../../../src/components/ClickArea/ClickArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAO,WAAW,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAIlG,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC1D;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAS,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD,CAAC;AAMF,eAAO,MAAM,SAAS,qHAyCrB,CAAC"}
|