@oliasoft-open-source/react-ui-library 6.8.2 → 6.9.1-beta-1

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: "_inputInTable_b8kpk_1",
1791
- inputHover: "_inputHover_b8kpk_13",
1792
- inputFocus: "_inputFocus_b8kpk_18",
1793
- inputError: "_inputError_b8kpk_25",
1794
- inputWarning: "_inputWarning_b8kpk_26",
1795
- inputDisabled: "_inputDisabled_b8kpk_61",
1796
- hideScrollbars: "_hideScrollbars_b8kpk_67",
1797
- input: "_input_b8kpk_1",
1798
- isInTable: "_isInTable_b8kpk_100",
1799
- small: "_small_b8kpk_124",
1800
- right: "_right_b8kpk_170",
1801
- groupOrderFirst: "_groupOrderFirst_b8kpk_173",
1802
- groupOrderMiddle: "_groupOrderMiddle_b8kpk_174",
1803
- groupOrderLast: "_groupOrderLast_b8kpk_178"
1804
- }, Ia = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = pn, placeholder: o = "", value: c = "", onKeyPress: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, onPaste: f = () => {}, onKeyDown: p = () => {}, selectOnFocus: m = !0, name: h = void 0, type: _ = "text", tabIndex: y = 0, disabled: b = !1, right: x = !1, warning: S = null, groupOrder: C = null, maxTooltipWidth: w = void 0, testId: T = void 0, size: E = null }, D) => {
1805
- let O = s(U), k = (() => {
1806
- if (C) switch (C) {
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
- })(), A = r || (E ? "auto" : "100%");
1814
+ })(), M = r || (O ? "auto" : "100%");
1813
1815
  return /* @__PURE__ */ v("div", {
1814
- style: { width: A },
1815
- className: k,
1816
- children: /* @__PURE__ */ v(G, {
1816
+ style: { width: M },
1817
+ className: g(j, Fa.wrapper),
1818
+ children: /* @__PURE__ */ y(G, {
1817
1819
  error: !!e,
1818
- warning: !!S,
1819
- text: t || e || S,
1820
- enabled: t && J(t) || e && J(e) || S && J(S) || !1,
1821
- maxWidth: w,
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("input", {
1824
- ref: D,
1825
- type: _ || "text",
1826
- size: E || 20,
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: l,
1831
- onKeyDown: p,
1835
+ onKeyPress: u,
1836
+ onKeyDown: m,
1832
1837
  onFocus: (e) => {
1833
- u(e), m && setTimeout(() => {
1838
+ d(e), h && setTimeout(() => {
1834
1839
  e.target === document.activeElement && e.target.select();
1835
1840
  }, 0);
1836
1841
  },
1837
- onBlur: d,
1838
- onPaste: f,
1839
- name: h,
1840
- tabIndex: y,
1842
+ onBlur: f,
1843
+ onPaste: p,
1844
+ name: _,
1845
+ tabIndex: x,
1841
1846
  autoComplete: "off",
1842
- disabled: b || O,
1843
- className: g(Fa.input, x ? Fa.right : "", i ? Fa.small : "", n ? Fa.isInTable : ""),
1844
- style: { width: A },
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": S || null,
1847
- "data-testid": T
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.8.2",
3
+ "version": "6.9.1-beta-1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {