@pnkx-lib/ui 1.9.284 → 1.9.285

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.
@@ -1253,7 +1253,7 @@ const Input = (props) => {
1253
1253
  const [isComposing, setIsComposing] = useState(false);
1254
1254
  const capitalizeAfterPeriod = (text) => {
1255
1255
  if (!text) return;
1256
- return text.toLowerCase().replace(
1256
+ return text?.toLowerCase()?.replace(
1257
1257
  /(^\s*\w|(?<=\.\s*)\w)/g,
1258
1258
  (match) => match.toUpperCase()
1259
1259
  );
@@ -1262,8 +1262,7 @@ const Input = (props) => {
1262
1262
  const handleChange = useCallback(
1263
1263
  (e) => {
1264
1264
  onChange?.(e);
1265
- const valueOnchange = capitalizeAfterPeriod(e.target.value);
1266
- afterOnChange?.(toLowerCaseValue ? valueOnchange : e.target.value);
1265
+ afterOnChange?.(e.target.value);
1267
1266
  },
1268
1267
  [onChange, afterOnChange, isComposing]
1269
1268
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.284",
4
+ "version": "1.9.285",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",