@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/es/identity-ui.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @reachfive/identity-ui - v1.32.1
3
- * Compiled Thu, 06 Feb 2025 17:46:27 UTC
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
  *
@@ -6938,7 +6938,7 @@ function dateField({
6938
6938
  return dt && isValid(dt) ? { raw: dt } : void 0;
6939
6939
  },
6940
6940
  unbind: (value) => {
6941
- return isRichFormValue(value, "raw") ? formatISO(value.raw) : value ? formatISO(value) : null;
6941
+ return isRichFormValue(value, "raw") ? formatISO(value.raw, { representation: "date" }) : value ? formatISO(value, { representation: "date" }) : null;
6942
6942
  }
6943
6943
  },
6944
6944
  validator: validator ? datetimeValidator(config.language).and(validator) : datetimeValidator(config.language),
@@ -6962,15 +6962,6 @@ function birthdateField({ min, max, label = "birthdate", ...props }, config) {
6962
6962
  return dateField({
6963
6963
  ...props,
6964
6964
  label,
6965
- format: {
6966
- bind: (value) => {
6967
- const dt = value ? parseISO(value) : void 0;
6968
- return dt && isValid(dt) ? { raw: dt } : void 0;
6969
- },
6970
- unbind: (value) => {
6971
- return isRichFormValue(value, "raw") ? formatISO(value.raw, { representation: "date" }) : value ? formatISO(value, { representation: "date" }) : null;
6972
- }
6973
- },
6974
6965
  validator: ageLimitValidator(min, max)
6975
6966
  }, config);
6976
6967
  }