date-picker icon indicating copy to clipboard operation
date-picker copied to clipboard

Abstract the picker component from the input?

Open johnjenkins opened this issue 4 years ago • 7 comments

Is your feature request related to a problem? Please describe. The component isn't really a 'date-picker' per se. It's a form field with a date-picker.

In my company we already have a set of full featured, styled form components. So I don't really want to re-style the duet date field, esp as the api of the field is slightly different from the rest of our fields. Ideally, I'd like to just be able to use the 'picker'. This would then allow me to do pre-sets of company preferred settings e.g. date-format or split fields into multiple if I wish e.g. [dd] [mm] [yyyy]

Describe the solution you'd like An abstraction of 2 components. The input and the picker.

Describe alternatives you've considered Adding the git repo as a dependency and re-creating the picker from there.

johnjenkins avatar Nov 24 '20 14:11 johnjenkins

This is a good suggestion IMO. It would allow the date-picker to be displayed inline as well as in the overlay, which I would find very useful!

builtbyjay avatar Nov 25 '20 11:11 builtbyjay

This request would be greatly appreciated, allowing us to integrate the calendar picker with an existing input component in our design system

jonnystening avatar Jul 13 '21 03:07 jonnystening

Is this enhancement, by any chance, already been worked on or on the component roadmap?

brenner-company avatar Dec 22 '21 05:12 brenner-company

Would love to have this feature!

Currently having to do a bunch of hacky workarounds to hide the DatePickerInput component (using a "childList" mutation observer) and trying to two-way synchronize the state of the modal using the provided duetOpen and duetClose events.

Running into an issue with the document click event happening just before my trigger element’s click event, causing my toggle action to always open the modal (basically I think I need to do something like the isClickOutside work-around from the Duet code). 😢

dallas avatar Aug 02 '22 17:08 dallas

is there any update on this feature request? :)

barburak avatar Apr 17 '23 10:04 barburak

I'm not sure this package is being actively worked on? 😔 The last changes to this repo are from more than 2 years ago.

brenner-company avatar Apr 17 '23 10:04 brenner-company

Hey, I'm the original author of this project. I've made a spiritual successor to duet here. It's not a full date picker, just the calender component you want here. It also supports displaying multiple months as well as date ranges. https://github.com/WickyNilliams/cally

WickyNilliams avatar Apr 14 '24 17:04 WickyNilliams