@wistia/ui 0.10.3-beta.f9f033db.a9ffeb4 → 0.10.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.10.3-beta.f9f033db.a9ffeb4
3
+ * @license @wistia/ui v0.10.3
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -8761,17 +8761,9 @@ var Checkbox = (0, import_react34.forwardRef)(
8761
8761
  const generatedId = (0, import_react34.useId)();
8762
8762
  const computedId = (0, import_type_guards26.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
8763
8763
  const checkboxGroupContext = useCheckboxGroup();
8764
- const groupName = checkboxGroupContext?.name;
8764
+ const contextName = checkboxGroupContext?.name;
8765
8765
  const contextOnChange = checkboxGroupContext?.onChange;
8766
- let checkboxName = name;
8767
- if (groupName) {
8768
- if ((0, import_type_guards26.isUndefined)(value)) {
8769
- console.error("Checkbox in CheckboxGroup is missing a value prop.");
8770
- checkboxName = groupName;
8771
- } else {
8772
- checkboxName = `${groupName}[${value}]`;
8773
- }
8774
- }
8766
+ const checkboxName = name ?? contextName;
8775
8767
  const handleOnChange = onChange ?? contextOnChange;
8776
8768
  return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(StyledCheckboxWrapper, { disabled, children: [
8777
8769
  /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
@@ -11741,9 +11733,9 @@ var Radio = (0, import_react57.forwardRef)(
11741
11733
  const generatedId = (0, import_react57.useId)();
11742
11734
  const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11743
11735
  const radioGroupContext = useRadioGroup();
11744
- const groupName = radioGroupContext?.name;
11736
+ const contextName = radioGroupContext?.name;
11745
11737
  const contextOnChange = radioGroupContext?.onChange;
11746
- const radioName = name ?? groupName;
11738
+ const radioName = name ?? contextName;
11747
11739
  const handleOnChange = onChange ?? contextOnChange;
11748
11740
  return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(
11749
11741
  StyledRadioWrapper,