carbon-design-system / carbon

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

DatePicker: Update flatpickr version and forward option props #13828

Open francinelucca opened 1 year ago

francinelucca commented 1 year ago

The problem

There are some flatpickr config options we are not exposing through our DatePicker: altFormat,altInput and others.

The solution

We should forward all available options through DatePicker.

We should also consider upgrading to the latest version of flatpickr to hopefully cleanup some of our bug overrides and work with a more stable base.

Code of Conduct

tay1orjones commented 1 year ago

Related is the v12 plans for this component: https://github.com/carbon-design-system/carbon/discussions/13355

We could update flatpickr or maybe we want to focus on a new implementation that leaves flatpickr behind