Skip to content

Releases: prismaneui/prismane

v1.2.0

02 Oct 16:36
Compare
Choose a tag to compare

Release Notes:

This new version provides 21 new form validators. These contain various string, number, and date validators to make Prismane's validator list even more comprehensive.

New Features:

String Validators

  • uuid: This validator checks if a string is a valid id.
  • trimmed: This validator checks if a string has no more than one consecutive spaces.
  • uppercase: This validator checks if a string has only uppercase characters.
  • lowercase: This validator checks if a string has only lowercase characters.
  • alphanumeric: This validator checks if a string has only alphanumeric characters.
  • starts: This validator checks if a string starts with a given substring.
  • ends: This validator checks if a string ends with a given substring.
  • contains: This validator checks if a string contains a given substring.
  • substring: This validator checks if a string is a substring of a given string.
  • regex: This validator checks if a string matches a regular expression pattern.

Number Validators

  • less: This validator checks if a number is less than a given number.
  • more: This validator checks if a number is more than a given number.
  • positive: This validator checks if a number is positive.
  • negative: This validator checks if a number is negative.
  • between: This validator checks if a number is between an interval of two numbers.
  • multiple: This validator checks if a number is a multiple of a given number.

Date Validators

  • before: This validator checks if a date is before a given date.
  • after: This validator checks if a date is after a given date.
  • future: This validator checks if a date is in the future.
  • past: This validator checks if a date is in the past.

Validate Function

The validate function is used to asynchronously validate a given set of validators and on the first occurrence of an error, to return the returned error.

v1.1.0

25 Sep 03:18
Compare
Choose a tag to compare

New Features:

  • useCopyToClipboard: This hook handles copying to the clipboard
  • usePresence: This hook handles awaiting animation to end, before removing a child from the DOM.

v1.0.2

17 Sep 19:59
Compare
Choose a tag to compare

Fixed:

  • Component prop extension of base component

v1.0.1

28 Aug 17:47
Compare
Choose a tag to compare

Fixed:

  • Component Return Types
  • Fields Autocomplete Color

v1.0.0

21 Aug 19:24
Compare
Choose a tag to compare

Fixed:

  • Fixed Versatile Components Types

New Features:

  • Added borderRadius property to the Theme Object

v0.2.3

03 Aug 22:21
Compare
Choose a tag to compare

Fixed

  • TypeScript errors across all components

v0.2.2

30 Jul 00:08
81267bd
Compare
Choose a tag to compare

Fixed

  • Email validator
  • Removed scrolling when overlay components are shown (Dialog, Modal, Drawer).