@czi-sds/components 21.6.2 → 21.6.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.js CHANGED
@@ -7904,13 +7904,11 @@ var SegmentedControl = function (props) {
7904
7904
  var isControlled = valueProp !== undefined;
7905
7905
  var value = isControlled ? valueProp : active;
7906
7906
  var handleActive = function (event, newActive) {
7907
- if (newActive !== null) {
7908
- if (!isControlled) {
7909
- setActive(newActive);
7910
- }
7911
- if (onChangeProp) {
7912
- onChangeProp(event, newActive);
7913
- }
7907
+ if (!isControlled) {
7908
+ setActive(newActive);
7909
+ }
7910
+ if (onChangeProp) {
7911
+ onChangeProp(event, newActive);
7914
7912
  }
7915
7913
  };
7916
7914
  return (jsxRuntime.jsxs(StyledSegmentedControl, __assign({ "aria-label": "Segmented Control", size: "small", value: value, exclusive: true, onChange: handleActive }, restProps, { children: [buttonDefinition.map(function (button) {
package/dist/index.esm.js CHANGED
@@ -7880,13 +7880,11 @@ var SegmentedControl = function (props) {
7880
7880
  var isControlled = valueProp !== undefined;
7881
7881
  var value = isControlled ? valueProp : active;
7882
7882
  var handleActive = function (event, newActive) {
7883
- if (newActive !== null) {
7884
- if (!isControlled) {
7885
- setActive(newActive);
7886
- }
7887
- if (onChangeProp) {
7888
- onChangeProp(event, newActive);
7889
- }
7883
+ if (!isControlled) {
7884
+ setActive(newActive);
7885
+ }
7886
+ if (onChangeProp) {
7887
+ onChangeProp(event, newActive);
7890
7888
  }
7891
7889
  };
7892
7890
  return (jsxs(StyledSegmentedControl, __assign({ "aria-label": "Segmented Control", size: "small", value: value, exclusive: true, onChange: handleActive }, restProps, { children: [buttonDefinition.map(function (button) {