@wistia/ui 0.14.10 → 0.14.11-beta.94966cdd.3da3d28

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.14.10
3
+ * @license @wistia/ui v0.14.11-beta.94966cdd.3da3d28
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9490,14 +9490,14 @@ var Checkbox = (0, import_react38.forwardRef)(
9490
9490
  const contextValue = checkboxGroupContext?.value;
9491
9491
  const checkboxName = name ?? contextName;
9492
9492
  const handleOnChange = onChange ?? contextOnChange;
9493
- const defaultChecked = (0, import_type_guards31.isNotUndefined)(value) && contextValue ? contextValue.includes(value) : void 0;
9493
+ const isChecked = (0, import_type_guards31.isNotUndefined)(value) && contextValue ? contextValue.includes(value) : checked;
9494
9494
  return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(StyledCheckboxWrapper, { disabled, children: [
9495
9495
  /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
9496
9496
  StyledHiddenCheckboxInput,
9497
9497
  {
9498
9498
  ...props,
9499
9499
  ref,
9500
- ...(0, import_type_guards31.isNotUndefined)(defaultChecked) ? { defaultChecked } : { checked },
9500
+ checked: isChecked,
9501
9501
  disabled,
9502
9502
  id: computedId,
9503
9503
  name: checkboxName,
@@ -13690,7 +13690,6 @@ var Menu = (0, import_react64.forwardRef)(
13690
13690
  isOpen,
13691
13691
  triggerProps = {},
13692
13692
  onOpenChange,
13693
- onInteractOutside,
13694
13693
  ...props
13695
13694
  }, ref) => {
13696
13695
  const contextValue = (0, import_react64.useMemo)(() => ({ compact }), [compact]);
@@ -14946,7 +14945,7 @@ var Radio = (0, import_react72.forwardRef)(
14946
14945
  const contextValue = radioGroupContext?.value;
14947
14946
  const radioName = name ?? contextName;
14948
14947
  const handleOnChange = onChange ?? contextOnChange;
14949
- const defaultChecked = (0, import_type_guards53.isNotUndefined)(value) && (0, import_type_guards53.isNotUndefined)(contextValue) ? contextValue.includes(value) : void 0;
14948
+ const isChecked = (0, import_type_guards53.isNotUndefined)(value) && (0, import_type_guards53.isNotUndefined)(contextValue) ? contextValue === value : checked;
14950
14949
  return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)(
14951
14950
  StyledRadioWrapper,
14952
14951
  {
@@ -14958,14 +14957,14 @@ var Radio = (0, import_react72.forwardRef)(
14958
14957
  {
14959
14958
  ...props,
14960
14959
  ref,
14960
+ checked: isChecked,
14961
14961
  disabled,
14962
14962
  id: computedId,
14963
14963
  name: radioName,
14964
14964
  onChange: handleOnChange,
14965
14965
  required,
14966
14966
  type: "radio",
14967
- value,
14968
- ...(0, import_type_guards53.isNotUndefined)(defaultChecked) ? { defaultChecked } : { checked }
14967
+ value
14969
14968
  }
14970
14969
  ),
14971
14970
  /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
@@ -15129,7 +15128,7 @@ var RadioCardRoot = (0, import_react73.forwardRef)(
15129
15128
  const contextValue = radioGroupContext?.value;
15130
15129
  const radioName = name ?? contextName;
15131
15130
  const handleOnChange = onChange ?? contextOnChange;
15132
- const defaultChecked = (0, import_type_guards54.isNotUndefined)(value) && (0, import_type_guards54.isNotUndefined)(contextValue) ? contextValue.includes(value) : void 0;
15131
+ const isChecked = (0, import_type_guards54.isNotUndefined)(value) && (0, import_type_guards54.isNotUndefined)(contextValue) ? contextValue === value : checked;
15133
15132
  return /* @__PURE__ */ (0, import_jsx_runtime287.jsxs)(
15134
15133
  StyledCard2,
15135
15134
  {
@@ -15142,13 +15141,13 @@ var RadioCardRoot = (0, import_react73.forwardRef)(
15142
15141
  {
15143
15142
  ...props,
15144
15143
  ref,
15144
+ checked: isChecked,
15145
15145
  disabled,
15146
15146
  id: computedId,
15147
15147
  name: radioName,
15148
15148
  onChange: handleOnChange,
15149
15149
  type: "radio",
15150
- value,
15151
- ...(0, import_type_guards54.isNotUndefined)(defaultChecked) ? { defaultChecked } : { checked }
15150
+ value
15152
15151
  }
15153
15152
  ),
15154
15153
  children