spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Feat]: Add Calendar pattern

Open Westbrook opened this issue 3 years ago • 0 comments
trafficstars

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

Calendar, Date Picker

Description of the requested feature

Please add the Calendar pattern

cc: @najikahalsema @Jabark

Mockups or screenshots

https://opensource.adobe.com/spectrum-css/calendar.html

Implementation notes or ideas

There's readable copy in this pattern. Whether we externalize that or not will be an important question. If not, we'll need to leverage https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat to hopefully get translations for free. This may point to the need to resolve language data similar to how Slider or Number Field do.

For Date management constructs it would be nice to lean closer to the pending Temporal API, but if we need to go into the user-space library field for this, definitely take a look at https://moment.github.io/luxon/#/ before something like moment.js.

Westbrook avatar Sep 01 '22 19:09 Westbrook