@wistia/ui 0.21.8 → 0.21.9-beta.e50da56a.d7df6c8
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/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2584,6 +2584,7 @@ declare const Form: <T>(props: FormProps<T> & {
|
|
|
2584
2584
|
}) => JSX.Element;
|
|
2585
2585
|
|
|
2586
2586
|
type FormErrorSummaryProps = {
|
|
2587
|
+
/** A description to show before the list of form errors */
|
|
2587
2588
|
description: string;
|
|
2588
2589
|
};
|
|
2589
2590
|
declare const FormErrorSummary: ({ description }: FormErrorSummaryProps) => react_jsx_runtime.JSX.Element | null;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.21.
|
|
3
|
+
* @license @wistia/ui v0.21.9-beta.e50da56a.d7df6c8
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1291,7 +1291,7 @@ var useFocusTrap = (active = true, options = {}) => {
|
|
|
1291
1291
|
if (focusElement2) {
|
|
1292
1292
|
focusElement2.focus();
|
|
1293
1293
|
}
|
|
1294
|
-
if (!focusElement2 &&
|
|
1294
|
+
if (!focusElement2 && import.meta.env.DEV) {
|
|
1295
1295
|
console.warn(
|
|
1296
1296
|
'[useFocusTrap]: Failed to find a focusable element after activating the focus trap. Make sure to include at an element that can recieve focus. As a fallback, you can also set "tabIndex={-1}" on the focus trap node.',
|
|
1297
1297
|
node2
|
|
@@ -1302,7 +1302,7 @@ var useFocusTrap = (active = true, options = {}) => {
|
|
|
1302
1302
|
if (node.ownerDocument) {
|
|
1303
1303
|
processNode(node);
|
|
1304
1304
|
}
|
|
1305
|
-
if (!node.ownerDocument &&
|
|
1305
|
+
if (!node.ownerDocument && import.meta.env.DEV) {
|
|
1306
1306
|
console.warn(
|
|
1307
1307
|
"[useFocusTrap]: The focus trap is not part of the DOM yet, so it is unable to correctly set focus. Make sure to render the ref node.",
|
|
1308
1308
|
node
|
|
@@ -15655,6 +15655,7 @@ var ModalScrollArea = styled86.div`
|
|
|
15655
15655
|
order: 2;
|
|
15656
15656
|
max-height: 90vh;
|
|
15657
15657
|
overflow-y: auto;
|
|
15658
|
+
height: 100%;
|
|
15658
15659
|
`;
|
|
15659
15660
|
var ModalFooter = styled86.footer`
|
|
15660
15661
|
padding: 0 var(--wui-space-05);
|