@wistia/ui 0.8.8-beta.6b7aea06.037e8d9 → 0.8.8-beta.7f28ea45.4e964fe
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.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.8.8-beta.
|
|
3
|
+
* @license @wistia/ui v0.8.8-beta.7f28ea45.4e964fe
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9627,7 +9627,7 @@ var useFormState = (action, initialData = {}) => {
|
|
|
9627
9627
|
const result = await action(data, nextData);
|
|
9628
9628
|
setData(result);
|
|
9629
9629
|
} catch (err) {
|
|
9630
|
-
setError(err);
|
|
9630
|
+
setError(err instanceof Error ? err : new Error(String(err)));
|
|
9631
9631
|
} finally {
|
|
9632
9632
|
setIsPending(false);
|
|
9633
9633
|
}
|
|
@@ -9923,9 +9923,7 @@ var FormField = ({
|
|
|
9923
9923
|
StyledFormField,
|
|
9924
9924
|
{
|
|
9925
9925
|
...props,
|
|
9926
|
-
"aria-labelledby": computedId,
|
|
9927
9926
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
9928
|
-
role: "group",
|
|
9929
9927
|
children: [
|
|
9930
9928
|
!isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { htmlFor: computedId, children: label }),
|
|
9931
9929
|
(0, import_type_guards34.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|