@oliasoft-open-source/react-ui-library 4.15.6-beta-2 → 4.15.6-beta-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.
- package/dist/index.js +4 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9096,17 +9096,6 @@ const Input$1 = forwardRef(
|
|
|
9096
9096
|
//use width instead
|
|
9097
9097
|
}, ref2) => {
|
|
9098
9098
|
const disabledContext = useContext(DisabledContext);
|
|
9099
|
-
const inputRef = useRef(null);
|
|
9100
|
-
const handleChange = (e2) => {
|
|
9101
|
-
const cursorPosition = e2.target.selectionStart;
|
|
9102
|
-
onChange(e2);
|
|
9103
|
-
setTimeout(() => {
|
|
9104
|
-
if (inputRef.current && cursorPosition !== null) {
|
|
9105
|
-
inputRef.current.selectionStart = cursorPosition;
|
|
9106
|
-
inputRef.current.selectionEnd = cursorPosition;
|
|
9107
|
-
}
|
|
9108
|
-
}, 0);
|
|
9109
|
-
};
|
|
9110
9099
|
const order2 = (() => {
|
|
9111
9100
|
if (groupOrder) {
|
|
9112
9101
|
switch (groupOrder) {
|
|
@@ -9134,12 +9123,12 @@ const Input$1 = forwardRef(
|
|
|
9134
9123
|
children: /* @__PURE__ */ jsx(
|
|
9135
9124
|
"input",
|
|
9136
9125
|
{
|
|
9137
|
-
ref: ref2
|
|
9126
|
+
ref: ref2,
|
|
9138
9127
|
type: type || "text",
|
|
9139
9128
|
size: size2 || 20,
|
|
9140
9129
|
placeholder: placeholder3 ?? "",
|
|
9141
9130
|
value: value ?? "",
|
|
9142
|
-
onChange
|
|
9131
|
+
onChange,
|
|
9143
9132
|
onKeyPress,
|
|
9144
9133
|
onFocus,
|
|
9145
9134
|
onBlur,
|
|
@@ -20954,7 +20943,7 @@ const Trigger = ({
|
|
|
20954
20943
|
evt.stopPropagation();
|
|
20955
20944
|
onClickTrigger(evt);
|
|
20956
20945
|
if (typeof setInputFocus === "function") {
|
|
20957
|
-
|
|
20946
|
+
setInputFocus();
|
|
20958
20947
|
}
|
|
20959
20948
|
},
|
|
20960
20949
|
onFocus,
|
|
@@ -56798,21 +56787,9 @@ const TextArea = ({
|
|
|
56798
56787
|
testId
|
|
56799
56788
|
}) => {
|
|
56800
56789
|
const disabledContext = useContext(DisabledContext);
|
|
56801
|
-
const textareaRef = useRef(null);
|
|
56802
|
-
const handleChange = (e2) => {
|
|
56803
|
-
const cursorPosition = e2.target.selectionStart;
|
|
56804
|
-
onChange(e2);
|
|
56805
|
-
setTimeout(() => {
|
|
56806
|
-
if (textareaRef.current && cursorPosition !== null) {
|
|
56807
|
-
textareaRef.current.selectionStart = cursorPosition;
|
|
56808
|
-
textareaRef.current.selectionEnd = cursorPosition;
|
|
56809
|
-
}
|
|
56810
|
-
}, 0);
|
|
56811
|
-
};
|
|
56812
56790
|
const textarea2 = /* @__PURE__ */ jsx(
|
|
56813
56791
|
"textarea",
|
|
56814
56792
|
{
|
|
56815
|
-
ref: textareaRef,
|
|
56816
56793
|
className: cx$2(
|
|
56817
56794
|
styles$5.textarea,
|
|
56818
56795
|
error2 ? styles$5.error : "",
|
|
@@ -56824,7 +56801,7 @@ const TextArea = ({
|
|
|
56824
56801
|
placeholder: placeholder3,
|
|
56825
56802
|
cols,
|
|
56826
56803
|
rows,
|
|
56827
|
-
onChange
|
|
56804
|
+
onChange,
|
|
56828
56805
|
disabled: disabled2 || disabledContext,
|
|
56829
56806
|
onKeyPress,
|
|
56830
56807
|
onFocus,
|