@mond-design-system/react 4.1.0 → 4.2.0

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
@@ -1239,6 +1239,7 @@ function SegmentedControl({
1239
1239
  fullWidth = false,
1240
1240
  size = "md",
1241
1241
  bare = false,
1242
+ repick = false,
1242
1243
  className
1243
1244
  }) {
1244
1245
  const name = react.useId();
@@ -1263,6 +1264,7 @@ function SegmentedControl({
1263
1264
  value: option.value,
1264
1265
  checked: option.value === value,
1265
1266
  onChange: () => onChange(option.value),
1267
+ onClick: repick && option.value === value ? () => onChange(option.value) : void 0,
1266
1268
  disabled,
1267
1269
  className: SegmentedControl_module_default.input
1268
1270
  }