@wistia/ui 0.10.10 → 0.10.11

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.mts CHANGED
@@ -1645,7 +1645,8 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
1645
1645
  values?: T;
1646
1646
  } & (FormWithLabelledByProps | FormWithLabelProps);
1647
1647
  /**
1648
- * x
1648
+ * For creating forms. It provides a context for the form fields to access the form state and validation.
1649
+ * It also provides a way to handle form submission and validation. It is built around [React 19's form APIs](https://react.dev/reference/react-dom/components/form).
1649
1650
  */
1650
1651
  declare const FormComponent: {
1651
1652
  <T>({ children, action, values, labelPosition, validate, fullWidth, ...props }: FormProps<T>, forwardedRef?: Ref<HTMLFormElement>): JSX.Element;
@@ -1717,7 +1718,7 @@ declare const FormGroup: {
1717
1718
  type RadioGroupProps = FormGroupProps & {
1718
1719
  onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1719
1720
  value?: string | undefined;
1720
- name?: string | undefined;
1721
+ name: string;
1721
1722
  };
1722
1723
  /**
1723
1724
  * For grouping like form elements together. Can serve as a checkbox
@@ -1729,8 +1730,8 @@ declare const RadioGroup: {
1729
1730
 
1730
1731
  type CheckboxGroupProps = FormGroupProps & {
1731
1732
  onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1732
- value?: string | undefined;
1733
- name?: string | undefined;
1733
+ value?: string[] | undefined;
1734
+ name: string;
1734
1735
  };
1735
1736
  /**
1736
1737
  * For grouping like form elements together. Can serve as a checkbox
package/dist/index.d.ts CHANGED
@@ -1645,7 +1645,8 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
1645
1645
  values?: T;
1646
1646
  } & (FormWithLabelledByProps | FormWithLabelProps);
1647
1647
  /**
1648
- * x
1648
+ * For creating forms. It provides a context for the form fields to access the form state and validation.
1649
+ * It also provides a way to handle form submission and validation. It is built around [React 19's form APIs](https://react.dev/reference/react-dom/components/form).
1649
1650
  */
1650
1651
  declare const FormComponent: {
1651
1652
  <T>({ children, action, values, labelPosition, validate, fullWidth, ...props }: FormProps<T>, forwardedRef?: Ref<HTMLFormElement>): JSX.Element;
@@ -1717,7 +1718,7 @@ declare const FormGroup: {
1717
1718
  type RadioGroupProps = FormGroupProps & {
1718
1719
  onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1719
1720
  value?: string | undefined;
1720
- name?: string | undefined;
1721
+ name: string;
1721
1722
  };
1722
1723
  /**
1723
1724
  * For grouping like form elements together. Can serve as a checkbox
@@ -1729,8 +1730,8 @@ declare const RadioGroup: {
1729
1730
 
1730
1731
  type CheckboxGroupProps = FormGroupProps & {
1731
1732
  onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
1732
- value?: string | undefined;
1733
- name?: string | undefined;
1733
+ value?: string[] | undefined;
1734
+ name: string;
1734
1735
  };
1735
1736
  /**
1736
1737
  * For grouping like form elements together. Can serve as a checkbox