px-react-ui-components 1.0.16 → 1.0.18

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.
@@ -63,6 +63,8 @@ function MyInput({
63
63
  uppercase = false,
64
64
  lowercase = false,
65
65
  firstUppercase = false,
66
+ min = null,
67
+ max = null,
66
68
  onChange = null,
67
69
  onBlur = null,
68
70
  onFocus = null,
@@ -198,13 +200,13 @@ function MyInput({
198
200
  if (onRemoveImage != null) onRemoveImage();
199
201
  };
200
202
  const handleChange = (0, _react.useCallback)(e => {
201
- const newValue = e.target.value;
203
+ let newValue = e.target.value;
202
204
 
203
205
  // Eğer değer değişmediyse güncelleme yapma
204
206
  if (newValue === myValue) return;
205
207
  if (type === MyInputType.TEXT || type === MyInputType.TEXTAREA) {
206
- myValue = newValue.trim();
207
- if (uppercase) myValue = myValue.toLocaleUpperCase("TR");else if (lowercase) myValue = myValue.toLocaleLowerCase("TR");else if (firstUppercase) myValue = myValue.split(' ').map(word => word.charAt(0).toLocaleUpperCase("TR") + word.slice(1).toLocaleLowerCase("TR")).join(' ');
208
+ newValue = newValue.trim();
209
+ if (uppercase) newValue = newValue.toLocaleUpperCase("TR");else if (lowercase) newValue = newValue.toLocaleLowerCase("TR");else if (firstUppercase) newValue = newValue.split(' ').map(word => word.charAt(0).toLocaleUpperCase("TR") + word.slice(1).toLocaleLowerCase("TR")).join(' ');
208
210
  }
209
211
 
210
212
  // Typing durumunu güncelle
@@ -499,6 +501,8 @@ function MyInput({
499
501
  onChange: handleChange,
500
502
  placeholder: placeholder,
501
503
  autoComplete: "off",
504
+ min: min,
505
+ max: max,
502
506
  style: style,
503
507
  onBlur: onMyBlur,
504
508
  onFocus: onMyFocus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "px-react-ui-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "commonjs",