@ariakit/react-core 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ariakit/react-core
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Added missing `defaultValue` prop back to `useRadioStore`. ([#2265](https://github.com/ariakit/ariakit/pull/2265))
8
+
9
+ - Updated dependencies: `@ariakit/core@0.1.1`.
10
+
3
11
  ## 0.1.1
4
12
 
5
13
  ### Patch Changes
@@ -43,10 +43,12 @@ var useRadio = _UYIFJ7U3cjs.createHook.call(void 0,
43
43
  (state) => _nullishCoalesce(checked, () => ( getIsChecked(value, state.value)))
44
44
  ), () => ( checked));
45
45
  _react.useEffect.call(void 0, () => {
46
+ if (!id)
47
+ return;
46
48
  if (!isChecked)
47
49
  return;
48
- const isActiveItem = id && _optionalChain([store, 'optionalAccess', _ => _.getState, 'call', _2 => _2(), 'access', _3 => _3.activeId]) === id;
49
- if (!isActiveItem)
50
+ const isActiveItem = _optionalChain([store, 'optionalAccess', _ => _.getState, 'call', _2 => _2(), 'access', _3 => _3.activeId]) === id;
51
+ if (isActiveItem)
50
52
  return;
51
53
  _optionalChain([store, 'optionalAccess', _4 => _4.setActiveId, 'call', _5 => _5(id)]);
52
54
  }, [store, isChecked, id]);
@@ -6,7 +6,7 @@ var _QRBTWQPIcjs = require('../__chunks/QRBTWQPI.cjs');
6
6
  var _OTRABJ4Ycjs = require('../__chunks/OTRABJ4Y.cjs');
7
7
 
8
8
 
9
- var _PV53XZQMcjs = require('../__chunks/PV53XZQM.cjs');
9
+ var _FSEBHZVDcjs = require('../__chunks/FSEBHZVD.cjs');
10
10
  require('../__chunks/7JKSDWVF.cjs');
11
11
  require('../__chunks/TIVUAJD3.cjs');
12
12
  require('../__chunks/EWCMH6G3.cjs');
@@ -54,7 +54,7 @@ var useFormRadio = _UYIFJ7U3cjs.createHook.call(void 0,
54
54
  checked,
55
55
  onChange
56
56
  };
57
- props = _PV53XZQMcjs.useRadio.call(void 0, { value, ...props });
57
+ props = _FSEBHZVDcjs.useRadio.call(void 0, { value, ...props });
58
58
  props = _QRBTWQPIcjs.useFormField.call(void 0, {
59
59
  store,
60
60
  name,
@@ -8,7 +8,7 @@ var _MPFAD3UKcjs = require('../__chunks/MPFAD3UK.cjs');
8
8
  require('../__chunks/F2O4M6DR.cjs');
9
9
 
10
10
 
11
- var _PV53XZQMcjs = require('../__chunks/PV53XZQM.cjs');
11
+ var _FSEBHZVDcjs = require('../__chunks/FSEBHZVD.cjs');
12
12
  require('../__chunks/7JKSDWVF.cjs');
13
13
  require('../__chunks/TBYPXZ5H.cjs');
14
14
  require('../__chunks/TIVUAJD3.cjs');
@@ -61,7 +61,7 @@ var useMenuItemRadio = _UYIFJ7U3cjs.createHook.call(void 0,
61
61
  role: "menuitemradio",
62
62
  ...props
63
63
  };
64
- props = _PV53XZQMcjs.useRadio.call(void 0, {
64
+ props = _FSEBHZVDcjs.useRadio.call(void 0, {
65
65
  value,
66
66
  checked: isChecked,
67
67
  onChange: (event) => {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _PV53XZQMcjs = require('../__chunks/PV53XZQM.cjs');
4
+ var _FSEBHZVDcjs = require('../__chunks/FSEBHZVD.cjs');
5
5
  require('../__chunks/7JKSDWVF.cjs');
6
6
  require('../__chunks/TIVUAJD3.cjs');
7
7
  require('../__chunks/EWCMH6G3.cjs');
@@ -17,4 +17,4 @@ require('../__chunks/2X5K3J7Y.cjs');
17
17
 
18
18
 
19
19
 
20
- exports.Radio = _PV53XZQMcjs.Radio; exports.useRadio = _PV53XZQMcjs.useRadio;
20
+ exports.Radio = _FSEBHZVDcjs.Radio; exports.useRadio = _FSEBHZVDcjs.useRadio;