Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

v2.0.0

Compare
Choose a tag to compare
@Jasenkoo Jasenkoo released this 18 Sep 19:26
c944550

The component is fully refactored due to the recent features and the planned ones, ease of maintenance and better code organization.

⚠️ BREAKING CHANGES

  • format prop is now using string format with Unicode tokens instead of the Intl.DateTimeFormatOptions object

🚀 Features

  • textInput: Allows date selection via text input
  • textInputOptions: Configure textInput prop
  • monthNameFormat: Change month names to short or long format
  • teleport: Configure teleport target
  • startDate: Set starting position of the calendar, month and year
  • startTime: Set default time in time picker
  • New emit events added 'textSubmit', 'closed', 'cleared'
  • New slots added 'clock-icon', 'arrow-left', 'arrow-right', 'arrow-up', 'arrow-down', 'calendar-icon', 'day', 'action-select', 'action-preview'

🐛 Bug Fixes

  • Allowed selecting years out of the provided range
  • Month picker left arrow incrementing the year
  • Allowed selecting disabled months from the calendar
  • Allowed selecting the date out of the year range
  • Some CSS adjustments

📝 Docs

  • Search is added
  • Better prop type and default value overview
  • Added methods and events sections
  • Playground changed to CodeSandbox