Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@interface-technologies/iti-react

srmagura1.2kMIT3.1.12TypeScript support: included

Utilities and React components covering form validation, date/time/phone inputs, Bootstrap components, and more.

readme

changelog

@@@ = breaking change

3.1.12

  • Fix Dialog not when Cancel button was clicked if onCancel was provided
  • @@@ Fix parseDateTimeNoPickerValue and formatDateTimeNoPickerValue when includesTime=false

(Versions 3.1.9 through 3.1.11 were lost, probably from a branch being deleted)

3.1.8

  • Style changes to FileInput

3.1.7

  • Core changes only

3.1.6

  • @@@ AsyncRouter: Add onInitialPageReady callback

3.1.5

  • Export focusFirstInput

3.1.4

  • Fix TimeInput selects not being wide enough
  • Fix AddressInput state select not being wide enough
  • Fix postalCodeValidator returning invalid when the postal code was an empty string

3.1.3

  • Fix DateInput not displaying invalid feedback

3.1.2

  • Publish as plain JavaScript (CommonJS)
  • @@@ Change Sass import to @import '~@interface-technologies/iti-react/dist/iti-react';

3.0.0

Virtually all of these changes are breaking.

  • Lots of core changes
  • Switch from react-hint to @tippyjs/react
  • DateInput:
    • DateInputValue changed from { moment: moment.Moment | undefined, raw: string } to simply moment.Moment | null
    • Remove defaultDateInputValue since it's just null now
    • Remove dateInputValueFromMoment
    • Remove noPicker prop
  • DateInputNoPicker:
    • New component which has the same functionality as the old DateInput with noPicker=true
    • It's value is just a string.
    • Use formatDateInputNoPickerValue to get the initial string value from a moment.
    • Use parseDateInputNoPickerValue to get a moment object from the string.
  • Upgrade to react-select v5. @types/react-select is no longer required.
  • ValidatedInput:
    • No longer supports type="select".
    • Remove unused validationFeedbackComponent prop.
  • TimeInput: removed the hidden input that allowed the component to work with formData.
  • PersonNameInput: remove prefix from PersonNameInputValue.
  • SavedMessage: rename classes saved-message-ml and save-message-mr to saved-message-ms and saved-message-me.
  • EasyFormDialog:
    • actionButtonText -> submitButtonText
    • actionButtonClass -> submitButtonClass
    • actionButtonEnabled -> submitEnabled (and now prevents submitting the form with Enter or Ctrl+Enter when false).
    • Add required showValidation prop. EasyFormDialog uses getSubmitEnabled and the submitEnabled prop to determine if the form can be submitted.
    • Remove getGenericEasyFormDialog — I don't think it was used anywhere.