liferay / clay

A web implementation of the Lexicon Experience Language
http://clayui.com
Other
207 stars 480 forks source link

Adds possibility to render only date picker without dropdown and input #5068

Open matuzalemsteles opened 2 years ago

matuzalemsteles commented 2 years ago

See PR #5058 for context. We don't yet have a product that wants this but there is a use case for Calendar in DXP but it's still done in YUI but possibly in the future it could be rewritten in React. But this is also a welcome feature for Date Picker, historically Date Picker along with Color Picker was built before we decided to design Clay's offering in React so the way it was built was based on configuring APIs which is not very good for reactive UI and in React that things are composition oriented.

So the idea of this issue here is to propose a new way more compatible with the current implementation and oriented to composition that allows to use only the date picker without the date picker inside the drop-down menu and input and allows changing between these options without losing the existing functionality and logics of how Date Picker handles date manipulation.

See the comment that shows a premature idea of how the evolution of the Date Picker could be, https://github.com/liferay/clay/pull/5058#issuecomment-1232311892

matuzalemsteles commented 1 year ago

LPS Ticket https://liferay.atlassian.net/browse/LPS-190529