@oliasoft-open-source/react-ui-library 10.0.0-beta-45 → 10.0.0-beta-47

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2655,7 +2655,7 @@ var Io = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Lo =
2655
2655
  let t = d(Nr);
2656
2656
  return f(() => {
2657
2657
  e.current = t ? {
2658
- close: () => t.close(),
2658
+ close: () => t.setOpen(!1),
2659
2659
  open: () => {
2660
2660
  t.isOpen || t.open(null, "input");
2661
2661
  }
@@ -2807,7 +2807,7 @@ var Io = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Lo =
2807
2807
  (e = m.current) == null || e.close();
2808
2808
  }
2809
2809
  }, [l]), k = u((e) => {
2810
- x(e), e || D();
2810
+ x(e), e ? _.current = null : D();
2811
2811
  }, [D]), A = i === "auto" || s, j = g(() => A ? Tc(e, a, p, o == null ? "" : o) : 0, [
2812
2812
  A,
2813
2813
  e,
@@ -2858,11 +2858,18 @@ var Io = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Lo =
2858
2858
  c,
2859
2859
  r
2860
2860
  ]), z = u((e) => {
2861
+ if (!c) {
2862
+ var t;
2863
+ (t = m.current) == null || t.close();
2864
+ }
2861
2865
  n == null || n({ target: {} }, e);
2862
- }, [n]), B = u((e = C) => {
2863
- if (!(!t || !e) && (h.current = !0, t(e), D(), !c)) {
2864
- var n;
2865
- (n = m.current) == null || n.close();
2866
+ }, [n, c]), B = u((e = C) => {
2867
+ if (!(!t || !e)) {
2868
+ if (h.current = !0, !c) {
2869
+ var n;
2870
+ (n = m.current) == null || n.close();
2871
+ }
2872
+ t(e), D();
2866
2873
  }
2867
2874
  }, [
2868
2875
  C,
@@ -2906,9 +2913,7 @@ var Io = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Lo =
2906
2913
  let n = P.get(String(t));
2907
2914
  if (!n || n.type === Qa.HEADING || n.disabled || n.createAble) return;
2908
2915
  let r = String(t);
2909
- _.current !== r && (_.current = r, Promise.resolve().then(() => {
2910
- _.current === r && (_.current = null);
2911
- }), z({
2916
+ _.current !== r && (_.current = r, z({
2912
2917
  value: n.value,
2913
2918
  label: n.label,
2914
2919
  details: n.details,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.0.0-beta-45",
3
+ "version": "10.0.0-beta-47",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {