@mackin.com/styleguide 8.0.0-beta.8 → 8.0.0-beta.9

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2176,6 +2176,7 @@ const useInputValidationMessage = (ref, props) => {
2176
2176
  return [validationError, updateErrorMessage];
2177
2177
  };
2178
2178
  const getValidationMessage = (element, patternErrorMessage) => {
2179
+ var _a;
2179
2180
  if (!element) {
2180
2181
  return '';
2181
2182
  }
@@ -2207,6 +2208,9 @@ const getValidationMessage = (element, patternErrorMessage) => {
2207
2208
  return `Limited to ${getStepDecimalPlaces(element.step)} decimal places.`;
2208
2209
  }
2209
2210
  }
2211
+ if (validity.tooShort) {
2212
+ return `Must be at least ${((_a = element.minLength) !== null && _a !== void 0 ? _a : 0).toLocaleString()} characters in length.`;
2213
+ }
2210
2214
  if (validity.valueMissing) {
2211
2215
  return 'Required.';
2212
2216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "8.0.0-beta.8",
3
+ "version": "8.0.0-beta.9",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",