Skip to content

Releases: viclafouch/mui-otp-input

V3.0.2

16 Dec 20:14
Compare
Choose a tag to compare

Chore

  • Update to Eslint V9
  • Update deps
  • Prepare to update to React 19 (some deps are not ready yet).

v3.0.1

10 Nov 22:13
Compare
Choose a tag to compare

Fix

  • #71 Passing an inputRef to TextFieldsProps should allow for standard usage and programmatic control without breaking the MuiOtpInput component.

V3.0.0

10 Nov 18:54
Compare
Choose a tag to compare

🚨 BREAKING CHANGE

  • Upgrade to MUI V6 ONLY. V5 is no more compatible. If you want more features and bug fixes from this package, you should consider upgrade your codebase to V6.

Fixes

v2.0.3

06 Jul 16:42
Compare
Choose a tag to compare
  • Update dependencies

v2.0.2

13 Feb 17:48
Compare
Choose a tag to compare

Breaking change

TextFieldsProps is now : MuiTextFieldProps | ((index: number) => MuiTextFieldProps)

Now, you can add differents aria-label, aria-describeby, etc... depending on the index of the textfield in order to improve accessibility.

Example:

<MuiColorInput TextFieldsProps={{ size: 'small' }}  /> 
<MuiColorInput TextFieldsProps={index => ({ size: 'small', placeholder: String(index) })}  /> 

Chore

  • Update deps

v2.0.1

20 Oct 09:02
Compare
Choose a tag to compare

Fixes

  • #37 : Handle correctly auto-fill from sms on Chrome / DuckDuckGo

v2.0.0

04 Aug 18:31
Compare
Choose a tag to compare

Breaking change

  • Drop UMD version. Now only ES module version is exported.

v1.2.5

31 Jul 15:54
Compare
Choose a tag to compare

Fix

  • #16 onBlur should not be triggered for each Box, but only once, when no new field is focused

New prop

onBlur

  • Type: ((value: string, isCompleted: boolean) => void) | undefined
  • Default: undefined

Unlike the normal type of a TextField['onBlur'] prop, here it only triggers when no input of the component is focused.

<MuiOtpInput onBlur={() => console.log('no input of the component is focused')} />

v1.2.4

31 Jul 14:34
Compare
Choose a tag to compare

Some fixes about caret position

v1.2.3

31 Jul 11:45
Compare
Choose a tag to compare

Fixes

  • #20 Replacing a previous digit when the field is not fully filled yet should highlight the next character of the replaced digit