@oliasoft-open-source/react-ui-library 6.8.2 → 6.9.0
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
CHANGED
|
@@ -1787,65 +1787,70 @@ var wr = /* @__PURE__ */ function(e) {
|
|
|
1787
1787
|
children: s
|
|
1788
1788
|
});
|
|
1789
1789
|
}, Fa = {
|
|
1790
|
-
inputInTable: "
|
|
1791
|
-
inputHover: "
|
|
1792
|
-
inputFocus: "
|
|
1793
|
-
inputError: "
|
|
1794
|
-
inputWarning: "
|
|
1795
|
-
inputDisabled: "
|
|
1796
|
-
hideScrollbars: "
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1790
|
+
inputInTable: "_inputInTable_crjt7_1",
|
|
1791
|
+
inputHover: "_inputHover_crjt7_13",
|
|
1792
|
+
inputFocus: "_inputFocus_crjt7_18",
|
|
1793
|
+
inputError: "_inputError_crjt7_25",
|
|
1794
|
+
inputWarning: "_inputWarning_crjt7_26",
|
|
1795
|
+
inputDisabled: "_inputDisabled_crjt7_61",
|
|
1796
|
+
hideScrollbars: "_hideScrollbars_crjt7_67",
|
|
1797
|
+
wrapper: "_wrapper_crjt7_77",
|
|
1798
|
+
input: "_input_crjt7_1",
|
|
1799
|
+
isInTable: "_isInTable_crjt7_103",
|
|
1800
|
+
small: "_small_crjt7_127",
|
|
1801
|
+
right: "_right_crjt7_173",
|
|
1802
|
+
groupOrderFirst: "_groupOrderFirst_crjt7_176",
|
|
1803
|
+
groupOrderMiddle: "_groupOrderMiddle_crjt7_177",
|
|
1804
|
+
groupOrderLast: "_groupOrderLast_crjt7_181",
|
|
1805
|
+
icon: "_icon_crjt7_186"
|
|
1806
|
+
}, Ia = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = pn, placeholder: o = "", value: c = "", icon: l, onKeyPress: u = () => {}, onFocus: d = () => {}, onBlur: f = () => {}, onPaste: p = () => {}, onKeyDown: m = () => {}, selectOnFocus: h = !0, name: _ = void 0, type: b = "text", tabIndex: x = 0, disabled: S = !1, right: C = !1, warning: w = null, groupOrder: T = null, maxTooltipWidth: E = void 0, testId: D = void 0, size: O = null }, k) => {
|
|
1807
|
+
let A = s(U), j = (() => {
|
|
1808
|
+
if (T) switch (T) {
|
|
1807
1809
|
case V.FIRST: return Fa.groupOrderFirst;
|
|
1808
1810
|
case V.LAST: return Fa.groupOrderLast;
|
|
1809
1811
|
default: return Fa.groupOrderMiddle;
|
|
1810
1812
|
}
|
|
1811
1813
|
return "";
|
|
1812
|
-
})(),
|
|
1814
|
+
})(), M = r || (O ? "auto" : "100%");
|
|
1813
1815
|
return /* @__PURE__ */ v("div", {
|
|
1814
|
-
style: { width:
|
|
1815
|
-
className:
|
|
1816
|
-
children: /* @__PURE__ */
|
|
1816
|
+
style: { width: M },
|
|
1817
|
+
className: g(j, Fa.wrapper),
|
|
1818
|
+
children: /* @__PURE__ */ y(G, {
|
|
1817
1819
|
error: !!e,
|
|
1818
|
-
warning: !!
|
|
1819
|
-
text: t || e ||
|
|
1820
|
-
enabled: t && J(t) || e && J(e) ||
|
|
1821
|
-
maxWidth:
|
|
1820
|
+
warning: !!w,
|
|
1821
|
+
text: t || e || w,
|
|
1822
|
+
enabled: t && J(t) || e && J(e) || w && J(w) || !1,
|
|
1823
|
+
maxWidth: E,
|
|
1822
1824
|
display: "block",
|
|
1823
|
-
children: /* @__PURE__ */ v("
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1825
|
+
children: [l && /* @__PURE__ */ v("span", {
|
|
1826
|
+
className: Fa.icon,
|
|
1827
|
+
children: /* @__PURE__ */ v(W, { icon: l })
|
|
1828
|
+
}), /* @__PURE__ */ v("input", {
|
|
1829
|
+
ref: k,
|
|
1830
|
+
type: b || "text",
|
|
1831
|
+
size: O || 20,
|
|
1827
1832
|
placeholder: o == null ? "" : o,
|
|
1828
1833
|
value: c == null ? "" : c,
|
|
1829
1834
|
onChange: a,
|
|
1830
|
-
onKeyPress:
|
|
1831
|
-
onKeyDown:
|
|
1835
|
+
onKeyPress: u,
|
|
1836
|
+
onKeyDown: m,
|
|
1832
1837
|
onFocus: (e) => {
|
|
1833
|
-
|
|
1838
|
+
d(e), h && setTimeout(() => {
|
|
1834
1839
|
e.target === document.activeElement && e.target.select();
|
|
1835
1840
|
}, 0);
|
|
1836
1841
|
},
|
|
1837
|
-
onBlur:
|
|
1838
|
-
onPaste:
|
|
1839
|
-
name:
|
|
1840
|
-
tabIndex:
|
|
1842
|
+
onBlur: f,
|
|
1843
|
+
onPaste: p,
|
|
1844
|
+
name: _,
|
|
1845
|
+
tabIndex: x,
|
|
1841
1846
|
autoComplete: "off",
|
|
1842
|
-
disabled:
|
|
1843
|
-
className: g(Fa.input,
|
|
1844
|
-
style: { width:
|
|
1847
|
+
disabled: S || A,
|
|
1848
|
+
className: g(Fa.input, C ? Fa.right : "", i ? Fa.small : "", n ? Fa.isInTable : ""),
|
|
1849
|
+
style: { width: M },
|
|
1845
1850
|
"data-error": e || null,
|
|
1846
|
-
"data-warning":
|
|
1847
|
-
"data-testid":
|
|
1848
|
-
})
|
|
1851
|
+
"data-warning": w || null,
|
|
1852
|
+
"data-testid": D
|
|
1853
|
+
})]
|
|
1849
1854
|
})
|
|
1850
1855
|
});
|
|
1851
1856
|
}), La = { fileInput: "_fileInput_1elar_1" }, Ra = /* @__PURE__ */ function(e) {
|
package/package.json
CHANGED