@colisweb/rescript-toolkit 5.15.3 → 5.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "5.15.3",
3
+ "version": "5.15.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -252,7 +252,7 @@ module Make = (Lenses: Lenses) => {
252
252
  (
253
253
  Field(fields.field),
254
254
  switch (value, fields.login->Option.map(fn => fn(values))) {
255
- | ("", _) => Error(i18n.stringNonEmpty(~value=""))
255
+ | ("", _) => Valid
256
256
  | (password, _)
257
257
  if !Js.Re.test_(%re("/(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{10,}/"), password) =>
258
258
  Error(fields.error->Option.getWithDefault(i18n.passwordTooShort))
@@ -25,7 +25,7 @@ module ReactSelect = {
25
25
  ~className: string=?,
26
26
  ~classNamePrefix: string=?,
27
27
  ~value: labelOption<'value>=?,
28
- ~defaultValue: 'value=?,
28
+ ~defaultValue: labelOption<'value>=?,
29
29
  ~onChange: labelOption<'value> => unit,
30
30
  ~options: array<labelOption<'value>>,
31
31
  ~noOptionsMessage: option<optionMessage => Js.Nullable.t<string>>=?,