carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.52k stars 1.75k forks source link

Refactor deprecateValuesWithin helper to support optional propMappingFunction as argument #16467

Closed 2nikhiltom closed 2 weeks ago

2nikhiltom commented 2 weeks ago

Issue : https://github.com/carbon-design-system/carbon/issues/16326 Enhancement of this PR

Change the signature of deprecateValuesWithin to accept below as it's arguments

  propType,
  allowedValues
  propMappingFunction

Create an propMappingFunction function and optionally pass it to deprecateValuesWithin which can guide the user more clearly about the depreciated prop value and it's new_alternative_value

github-actions[bot] commented 2 weeks ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.