@reachfive/identity-ui 1.32.1 → 1.32.2
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/cjs/identity-ui.js +3 -12
- package/cjs/identity-ui.js.map +1 -1
- package/es/identity-ui.js +3 -12
- package/es/identity-ui.js.map +1 -1
- package/es/identity-ui.min.js +4 -4
- package/es/identity-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/types/identity-ui.d.ts +2 -2
- package/umd/identity-ui.js +3 -12
- package/umd/identity-ui.js.map +1 -1
- package/umd/identity-ui.min.js +4 -4
- package/umd/identity-ui.min.js.map +1 -1
package/cjs/identity-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @reachfive/identity-ui - v1.32.
|
|
3
|
-
* Compiled
|
|
2
|
+
* @reachfive/identity-ui - v1.32.2
|
|
3
|
+
* Compiled Mon, 10 Feb 2025 15:46:55 UTC
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) ReachFive.
|
|
6
6
|
*
|
|
@@ -6959,7 +6959,7 @@ function dateField({
|
|
|
6959
6959
|
return dt && dateFns.isValid(dt) ? { raw: dt } : void 0;
|
|
6960
6960
|
},
|
|
6961
6961
|
unbind: (value) => {
|
|
6962
|
-
return isRichFormValue(value, "raw") ? dateFns.formatISO(value.raw) : value ? dateFns.formatISO(value) : null;
|
|
6962
|
+
return isRichFormValue(value, "raw") ? dateFns.formatISO(value.raw, { representation: "date" }) : value ? dateFns.formatISO(value, { representation: "date" }) : null;
|
|
6963
6963
|
}
|
|
6964
6964
|
},
|
|
6965
6965
|
validator: validator ? datetimeValidator(config.language).and(validator) : datetimeValidator(config.language),
|
|
@@ -6983,15 +6983,6 @@ function birthdateField({ min, max, label = "birthdate", ...props }, config) {
|
|
|
6983
6983
|
return dateField({
|
|
6984
6984
|
...props,
|
|
6985
6985
|
label,
|
|
6986
|
-
format: {
|
|
6987
|
-
bind: (value) => {
|
|
6988
|
-
const dt = value ? dateFns.parseISO(value) : void 0;
|
|
6989
|
-
return dt && dateFns.isValid(dt) ? { raw: dt } : void 0;
|
|
6990
|
-
},
|
|
6991
|
-
unbind: (value) => {
|
|
6992
|
-
return isRichFormValue(value, "raw") ? dateFns.formatISO(value.raw, { representation: "date" }) : value ? dateFns.formatISO(value, { representation: "date" }) : null;
|
|
6993
|
-
}
|
|
6994
|
-
},
|
|
6995
6986
|
validator: ageLimitValidator(min, max)
|
|
6996
6987
|
}, config);
|
|
6997
6988
|
}
|