nsbno / spor

Spor - Vy's Design System
https://spor.vy.no
23 stars 5 forks source link

Standalone Calendar-component for DatePicker inside Drawer #891

Open johnolos opened 8 months ago

johnolos commented 8 months ago

Is the feature you're requesting related to a challenge you're experiencing?

Hi, Team Personnel currently are using DatePicker inside a Drawer in a few scenarios. We would like a standalone Calendar to be used in such scenarios. I will share our offending abombinations so far as to highlight want we would like to archive.

Screenshot 2023-10-13 at 13 14 08

Screenshot 2023-10-13 at 13 14 14

How can we solve it?

Export a standalone component Calendar that we can use to interact and fill our DatePicker.

I believe the underlying framework have code examples of how this can be done: https://react-spectrum.adobe.com/react-spectrum/Calendar.html#calendar

perweum commented 8 months ago

Possible solution using a static header with a scrollable calendar. Or just a static calendar without borders.

Screenshot 2023-10-18 at 13 45 24

Link to Figma-examples

johnolos commented 2 months ago

First step is to make the Calendar a standalone component outside DatePicker-component. Just shipping this as a feature is valuable!

perweum commented 1 week ago

It would be nice to move the functionality of the date-range to the standalone calendar component instead of being attached to the date-picker.

The example is taken from google travel which shows how we want the calendar to function.

Image

HildeSHatt commented 1 week ago

Would it be possible to write year in addition to clicking the arrows? When the component are used for date of birth some of us have to click too many times to reach our year... It would also be great if the arrows stays in the same position when selecting month.

Please see enclosed videoes of the above situations.

https://github.com/nsbno/spor/assets/105209479/50c5629a-dd88-4e34-b7a4-3d35db19a5e3

https://github.com/nsbno/spor/assets/105209479/c9533c8b-2493-41ec-847f-898dc3484bd9