Skip to main content

Version 2.2.0

Thomas Mattheussen
PO & Lead Developer

🚀 New Feature

  • We’ve added a showOnFocus prop to our <DatePicker /> component. This prop controls whether the calendar should show when the input receives focus. !520
import { DatePicker } from '@mediahuis/chameleon-react';

<DatePicker
label="Datepicker with showOnFocus"
value={new Date()}
showOnFocus={true}
/>;
  • Typescript baby steps: we’ve added a type definition file tokens.d.ts that contains type definitions for each theme's tokens.js file. !518
  • We’ve updated the UX for <AutoComplete />: Hitting the TAB key when an item is highlighted, selects that item. !525

🏠 Internal

  • Updates to dependencies:
  • We introduced a solution to generate image placeholders on the fly with SVG in our Storybook stories. This way we no longer have to rely on an external service (such as placeholder.com) which results in our Percy snapshots being a little more robust. !533