beca-ui 2.1.0-beta.39 → 2.1.0-beta.40

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/beca-ui.js CHANGED
@@ -88651,8 +88651,9 @@ const Ub = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Ar
88651
88651
  activeShadow: "0 0 0 2px rgba(113, 181, 255, 0.32)",
88652
88652
  colorFillTertiary: "var(--color-fill-tertiary)",
88653
88653
  zIndexPopup: 1051,
88654
- colorErrorBg: "var(--danger-color-1)",
88655
- colorErrorBgHover: "var(--danger-color-1)",
88654
+ colorErrorBg: "var(--color-error-bg)",
88655
+ colorErrorText: "var(--color-error-text)",
88656
+ colorErrorBgHover: "var(--color-error-bg-hover)",
88656
88657
  colorErrorHover: "var(--danger-color-3)"
88657
88658
  }, z0 = {
88658
88659
  ...id,
@@ -88684,7 +88685,8 @@ const Ub = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Ar
88684
88685
  },
88685
88686
  Select: {
88686
88687
  ...z0,
88687
- optionSelectedColor: "#fff"
88688
+ optionSelectedColor: "#fff",
88689
+ colorError: "var(--color-error-text)"
88688
88690
  },
88689
88691
  Dropdown: {
88690
88692
  ...z0,
@@ -124675,7 +124677,7 @@ const dut = (e) => {
124675
124677
  let n = "beca-picker";
124676
124678
  return t && (n += " " + t), n;
124677
124679
  }, vut = (e) => {
124678
- var m;
124680
+ var g;
124679
124681
  const {
124680
124682
  allowClear: t = !0,
124681
124683
  superPrevIcon: n,
@@ -124684,48 +124686,49 @@ const dut = (e) => {
124684
124686
  nextIcon: i,
124685
124687
  suffixIcon: a,
124686
124688
  getPopupContainer: l,
124687
- position: s = "relative"
124688
- } = e, [c, u] = gt(!1);
124689
+ onOpenChange: s,
124690
+ position: c = "relative"
124691
+ } = e, [u, f] = gt(!1);
124689
124692
  Jt(() => {
124690
- const g = document.querySelector(".mobile-app");
124691
- u(g != null);
124693
+ const v = document.querySelector(".mobile-app");
124694
+ f(v != null);
124692
124695
  }, []);
124693
- const f = Ei(
124694
- (g) => {
124695
- if (c)
124696
- if (g) {
124697
- const v = document.querySelector(".select-backdrop");
124698
- if (v)
124699
- v.className = "select-backdrop select-backdrop-open";
124700
- else {
124701
- const b = document.createElement("div");
124696
+ const m = Ei(
124697
+ (v) => {
124698
+ if (u)
124699
+ if (v) {
124700
+ const b = document.querySelector(".select-backdrop");
124701
+ if (b)
124702
124702
  b.className = "select-backdrop select-backdrop-open";
124703
- const C = document.querySelector("html");
124704
- C == null || C.appendChild(b);
124703
+ else {
124704
+ const C = document.createElement("div");
124705
+ C.className = "select-backdrop select-backdrop-open";
124706
+ const w = document.querySelector("html");
124707
+ w == null || w.appendChild(C);
124705
124708
  }
124706
124709
  } else {
124707
- const v = document.querySelector(".select-backdrop");
124708
- if (v)
124709
- v.className = "select-backdrop select-backdrop-hidden";
124710
+ const b = document.querySelector(".select-backdrop");
124711
+ if (b)
124712
+ b.className = "select-backdrop select-backdrop-hidden";
124710
124713
  else {
124711
- const b = document.createElement("div");
124712
- document.appendChild(b), b.className = "select-backdrop select-backdrop-hidden";
124714
+ const C = document.createElement("div");
124715
+ document.appendChild(C), C.className = "select-backdrop select-backdrop-hidden";
124713
124716
  }
124714
124717
  }
124715
124718
  },
124716
- [c]
124719
+ [u]
124717
124720
  );
124718
124721
  return /* @__PURE__ */ A(
124719
124722
  pm,
124720
124723
  {
124721
124724
  ...e,
124722
124725
  className: mut(e),
124723
- onOpenChange: f,
124726
+ onOpenChange: s ?? m,
124724
124727
  classNames: {
124725
124728
  ...e.classNames,
124726
124729
  popup: {
124727
- ...(m = e.classNames) == null ? void 0 : m.popup,
124728
- root: nme(e, c)
124730
+ ...(g = e.classNames) == null ? void 0 : g.popup,
124731
+ root: nme(e, u)
124729
124732
  }
124730
124733
  },
124731
124734
  superPrevIcon: n ?? /* @__PURE__ */ A(Nde, { size: 20, color: "var(--picker-suffix-icon-color)" }),
@@ -124745,7 +124748,7 @@ const dut = (e) => {
124745
124748
  }
124746
124749
  ),
124747
124750
  suffixIcon: a ?? /* @__PURE__ */ A(Sde, { size: 18, color: "var(--picker-suffix-icon-color)" }),
124748
- getPopupContainer: l ?? s === "relative" ? (g) => g.parentNode : void 0,
124751
+ getPopupContainer: l ?? (c === "relative" ? (v) => v.parentNode : void 0),
124749
124752
  allowClear: t === !0 ? {
124750
124753
  clearIcon: /* @__PURE__ */ A(
124751
124754
  Z9,
@@ -124755,7 +124758,7 @@ const dut = (e) => {
124755
124758
  }
124756
124759
  )
124757
124760
  } : !1,
124758
- inputReadOnly: c
124761
+ inputReadOnly: u
124759
124762
  }
124760
124763
  );
124761
124764
  }, yut = (e) => {