Skip to content

v2.3.3

Choose a tag to compare

@based-ghost based-ghost released this 16 May 15:29
· 302 commits to master since this release

Change Log

🚀 Feature

  • Addresses issue: To styling with different states #11 . Expanded the typings for clearIcon and caretIcon properties to be ReactNode | ((state: Partial<IndicatorIconsProps>) => ReactNode) - allowing a function as an option enables the ability to work with state values from the wrapping component IndicatorIcons.tsx. The state forwarded to the function would be:
const state = {
  menuOpen,
  isLoading: !!isLoading,
  isInvalid: !!isInvalid,
  isDisabled: !!isDisabled
};

Properties isLoading, isInvalid, isDisabled are all undefined by default, so normalizing to boolean.