Countdown component has been repurposed as DateTimer, now it gets range: Date[] prop and countdowns to the greater date from the origin date.
The other use case is Countup functionality, if you pass timerType="up", DateTimer will expect a date greater than today so that it can count up to that date.
range prop could be unordered, it will be handled by calculateRemainingTimeBreakdown
If there are more than 1 dates passed in the range prop, calculateRemainingTimeBreakdown will assign the greater date to targetDate
Details
Countdown
component has been repurposed asDateTimer
, now it getsrange: Date[]
prop and countdowns to the greater date from the origin date.The other use case is Countup functionality, if you pass
timerType="up"
,DateTimer
will expect a date greater than today so that it can count up to that date.range
prop could be unordered, it will be handled bycalculateRemainingTimeBreakdown
range
prop,calculateRemainingTimeBreakdown
will assign the greater date totargetDate
This is a Breaking change