alicia-design-system 1.93.2 → 1.93.3

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.
@@ -79,7 +79,7 @@ const LicensePlate = (_a) => {
79
79
  const [inputValue, setInputValue] = (0, react_2.useState)(text);
80
80
  // Check if input is complete (has expected length)
81
81
  const cleanedLength = inputValue.replace(/-/g, '').length;
82
- const isComplete = cleanedLength >= 6 && cleanedLength <= 9;
82
+ const isComplete = cleanedLength >= 7 && cleanedLength <= 9;
83
83
  // Only validate format when input is complete
84
84
  const isValidFormat = PLATE_FORMATS.some(({ pattern, format }) => {
85
85
  const cleaned = inputValue.replace(/-/g, '');
@@ -94,7 +94,7 @@ const LicensePlate = (_a) => {
94
94
  const parts = match.slice(1).filter(Boolean);
95
95
  const totalLength = parts.join('').length;
96
96
  // Allow 6 to 9 characters total
97
- return totalLength >= 6 && totalLength <= 9;
97
+ return totalLength >= 7 && totalLength <= 9;
98
98
  });
99
99
  const showValidation = isComplete;
100
100
  const isValid = isValidFormat;
@@ -108,7 +108,7 @@ const LicensePlate = (_a) => {
108
108
  }
109
109
  // Check if the new value is complete and valid
110
110
  const newCleanedLength = formattedValue.replace(/-/g, '').length;
111
- const isNewValueComplete = newCleanedLength >= 6 && newCleanedLength <= 9;
111
+ const isNewValueComplete = newCleanedLength >= 7 && newCleanedLength <= 9;
112
112
  // Check if the format is valid
113
113
  const isValidNewFormat = PLATE_FORMATS.some(({ pattern, format }) => {
114
114
  const cleaned = formattedValue.replace(/-/g, '');
@@ -119,7 +119,7 @@ const LicensePlate = (_a) => {
119
119
  return false;
120
120
  const parts = match.slice(1).filter(Boolean);
121
121
  const totalLength = parts.join('').length;
122
- return totalLength >= 6 && totalLength <= 9;
122
+ return totalLength >= 7 && totalLength <= 9;
123
123
  });
124
124
  if (isNewValueComplete && isValidNewFormat) {
125
125
  onComplete === null || onComplete === void 0 ? void 0 : onComplete(formattedValue.toUpperCase());
@@ -76,7 +76,7 @@ export const LicensePlate = (_a) => {
76
76
  const [inputValue, setInputValue] = useState(text);
77
77
  // Check if input is complete (has expected length)
78
78
  const cleanedLength = inputValue.replace(/-/g, '').length;
79
- const isComplete = cleanedLength >= 6 && cleanedLength <= 9;
79
+ const isComplete = cleanedLength >= 7 && cleanedLength <= 9;
80
80
  // Only validate format when input is complete
81
81
  const isValidFormat = PLATE_FORMATS.some(({ pattern, format }) => {
82
82
  const cleaned = inputValue.replace(/-/g, '');
@@ -91,7 +91,7 @@ export const LicensePlate = (_a) => {
91
91
  const parts = match.slice(1).filter(Boolean);
92
92
  const totalLength = parts.join('').length;
93
93
  // Allow 6 to 9 characters total
94
- return totalLength >= 6 && totalLength <= 9;
94
+ return totalLength >= 7 && totalLength <= 9;
95
95
  });
96
96
  const showValidation = isComplete;
97
97
  const isValid = isValidFormat;
@@ -105,7 +105,7 @@ export const LicensePlate = (_a) => {
105
105
  }
106
106
  // Check if the new value is complete and valid
107
107
  const newCleanedLength = formattedValue.replace(/-/g, '').length;
108
- const isNewValueComplete = newCleanedLength >= 6 && newCleanedLength <= 9;
108
+ const isNewValueComplete = newCleanedLength >= 7 && newCleanedLength <= 9;
109
109
  // Check if the format is valid
110
110
  const isValidNewFormat = PLATE_FORMATS.some(({ pattern, format }) => {
111
111
  const cleaned = formattedValue.replace(/-/g, '');
@@ -116,7 +116,7 @@ export const LicensePlate = (_a) => {
116
116
  return false;
117
117
  const parts = match.slice(1).filter(Boolean);
118
118
  const totalLength = parts.join('').length;
119
- return totalLength >= 6 && totalLength <= 9;
119
+ return totalLength >= 7 && totalLength <= 9;
120
120
  });
121
121
  if (isNewValueComplete && isValidNewFormat) {
122
122
  onComplete === null || onComplete === void 0 ? void 0 : onComplete(formattedValue.toUpperCase());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alicia-design-system",
3
- "version": "1.93.2",
3
+ "version": "1.93.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",