@wistia/vhs 2.71.1 → 2.72.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/dist/components/Modal/Dialog.d.ts +2 -0
- package/dist/components/Modal/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts +6 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +2 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts.map +1 -1
- package/dist/index.cjs +285 -285
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +305 -305
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { ModalProps } from './Modal';
|
|
1
2
|
export type DialogProps = {
|
|
2
3
|
fullHeight: boolean;
|
|
3
4
|
width?: string | undefined;
|
|
5
|
+
overflow?: ModalProps['overflow'];
|
|
4
6
|
};
|
|
5
7
|
export declare const Dialog: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DialogProps, never>;
|
|
6
8
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,MAAM,kHAqBlB,CAAC"}
|
|
@@ -23,7 +23,7 @@ export type ModalProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
23
23
|
/**
|
|
24
24
|
* Ref to the element that should receive focus when the modal opens
|
|
25
25
|
*/
|
|
26
|
-
initialFocusRef?: RefObject<HTMLElement
|
|
26
|
+
initialFocusRef?: RefObject<HTMLElement>;
|
|
27
27
|
/**
|
|
28
28
|
* Whether or not the modal is open, and should be rendered
|
|
29
29
|
*/
|
|
@@ -46,6 +46,11 @@ export type ModalProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
46
46
|
shouldTrapFocus?: boolean;
|
|
47
47
|
/** The base width to apply to the Modal */
|
|
48
48
|
width?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The overflow behavior to apply to the modal
|
|
51
|
+
* @default 'auto'
|
|
52
|
+
*/
|
|
53
|
+
overflow?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
49
54
|
};
|
|
50
55
|
export declare const Modal: {
|
|
51
56
|
(props: ModalProps): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAcjF,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACzD;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAcjF,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACzD;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC9D,CAAC;AA0GF,eAAO,MAAM,KAAK;YAAW,UAAU,GAAG,GAAG,CAAC,OAAO;;CAqCpD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
1
2
|
type UseFocusTrapOptions = {
|
|
2
3
|
disableAriaHider?: boolean;
|
|
3
|
-
focusSelector?: HTMLElement | string | null | undefined;
|
|
4
|
+
focusSelector?: HTMLElement | RefObject<HTMLElement> | string | null | undefined;
|
|
4
5
|
};
|
|
5
6
|
export declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
|
|
6
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFocusTrap/useFocusTrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFocusTrap/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC,KAAK,mBAAmB,GAAG;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClF,CAAC;AAMF,eAAO,MAAM,YAAY,+BAA4B,mBAAmB,YAK7D,WAAW,GAAG,IAAI,GAAG,SAAS,SAyGxC,CAAC"}
|