@biznext-ui/react 0.2.8 → 0.3.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.
@@ -38,6 +38,7 @@ export declare const Form: {
38
38
  [x: string]: any;
39
39
  controlType: "input" | "select" | "textarea";
40
40
  focus?: boolean;
41
+ onFocus?: boolean;
41
42
  sx?: object;
42
43
  placeholder?: string;
43
44
  isSearchable?: boolean;
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as de, jsx as T, Fragment as Mt } from "react/jsx-runtime";
2
2
  import * as R from "react";
3
- import it, { createContext as Ge, useContext as k, useLayoutEffect as Io, useEffect as Se, useRef as _, useInsertionEffect as Co, useCallback as $, useMemo as be, forwardRef as Gn, Fragment as Nt, createElement as Ju, useId as Wi, Component as xo, useState as fe, cloneElement as Uu, Children as cn, isValidElement as _u, useReducer as Qu } from "react";
3
+ import it, { createContext as Ge, useContext as k, useLayoutEffect as Io, useEffect as ve, useRef as _, useInsertionEffect as Co, useCallback as $, useMemo as be, forwardRef as Gn, Fragment as Nt, createElement as Ju, useId as Wi, Component as xo, useState as fe, cloneElement as Uu, Children as cn, isValidElement as _u, useReducer as Qu } from "react";
4
4
  import $u, { createPortal as st } from "react-dom";
5
5
  const Ao = Ge({}), Ku = (t, e) => {
6
6
  switch (e.type) {
@@ -206,7 +206,7 @@ const Oi = Ge({
206
206
  transformPagePoint: (t) => t,
207
207
  isStatic: !1,
208
208
  reducedMotion: "never"
209
- }), Dn = Ge({}), Mn = Ge(null), Xi = typeof document < "u", Zi = Xi ? Io : Se, Po = Ge({ strict: !1 }), Nn = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Cc = "framerAppearId", Vo = "data-" + Nn(Cc), xc = {
209
+ }), Dn = Ge({}), Mn = Ge(null), Xi = typeof document < "u", Zi = Xi ? Io : ve, Po = Ge({ strict: !1 }), Nn = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Cc = "framerAppearId", Vo = "data-" + Nn(Cc), xc = {
210
210
  skipAnimations: !1,
211
211
  useManualTiming: !1
212
212
  };
@@ -305,7 +305,7 @@ function Tc(t, e, n, i, r) {
305
305
  const f = _(!!(n[Vo] && !window.HandoffComplete));
306
306
  return Zi(() => {
307
307
  l && (l.updateFeatures(), Hi.render(l.render), f.current && l.animationState && l.animationState.animateChanges());
308
- }), Se(() => {
308
+ }), ve(() => {
309
309
  l && (!f.current && l.animationState && l.animationState.animateChanges(), f.current && (f.current = !1, Vr || (Vr = !0, queueMicrotask(Ec))));
310
310
  }), l;
311
311
  }
@@ -3566,7 +3566,7 @@ function jf() {
3566
3566
  if (t === null)
3567
3567
  return [!0, null];
3568
3568
  const { isPresent: e, onExitComplete: n, register: i } = t, r = Wi();
3569
- return Se(() => i(r), []), !e && n ? [!1, () => n && n(r)] : [!0];
3569
+ return ve(() => i(r), []), !e && n ? [!1, () => n && n(r)] : [!0];
3570
3570
  }
3571
3571
  const fn = {
3572
3572
  /**
@@ -4838,7 +4838,7 @@ function zh() {
4838
4838
  return /* @__PURE__ */ new Map();
4839
4839
  }
4840
4840
  function jh(t) {
4841
- return Se(() => () => t(), []);
4841
+ return ve(() => () => t(), []);
4842
4842
  }
4843
4843
  const tt = (t) => t.key || "";
4844
4844
  function Yh(t, e) {
@@ -4919,7 +4919,7 @@ const hr = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, exitBe
4919
4919
  const { id: e, type: n, title: i } = t, { icon: r } = Uh(n), s = 4e3, o = ec(), u = $(() => {
4920
4920
  o.removeToast(e);
4921
4921
  }, [e, o]);
4922
- return Se(() => {
4922
+ return ve(() => {
4923
4923
  const a = setTimeout(() => {
4924
4924
  setTimeout(() => {
4925
4925
  u();
@@ -4936,7 +4936,7 @@ const hr = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, exitBe
4936
4936
  };
4937
4937
  function Qh(t) {
4938
4938
  const { children: e } = t, [n, i] = fe(!1);
4939
- Se(() => {
4939
+ ve(() => {
4940
4940
  i(!0);
4941
4941
  }, []);
4942
4942
  const r = document.getElementById("biznext-ui-toast-portal");
@@ -4982,7 +4982,7 @@ function ip() {
4982
4982
  function rp(t) {
4983
4983
  return at({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z" }, child: [] }] })(t);
4984
4984
  }
4985
- const sp = "biznext-ui-wec4qWkj9NU-c", op = "biznext-ui-mcehjNn9Nl0-9", ap = "biznext-ui-pYq-UQoFMHM-a", up = "biznext-ui-bgVORylkzc0-6", Ce = {
4985
+ const sp = "biznext-ui-wec4qWkj9NU-c", op = "biznext-ui-mcehjNn9Nl0-9", ap = "biznext-ui-pYq-UQoFMHM-a", up = "biznext-ui-bgVORylkzc0-6", xe = {
4986
4986
  "confirm-dialog": "biznext-ui-4yyscqDACxw-e",
4987
4987
  "confirm-dialog-overlay": "biznext-ui-ylpaWxEFaTU-c",
4988
4988
  "confirm-dialog-content": "biznext-ui-xwshXokj5ZA-c",
@@ -4999,7 +4999,7 @@ const sp = "biznext-ui-wec4qWkj9NU-c", op = "biznext-ui-mcehjNn9Nl0-9", ap = "bi
4999
4999
  };
5000
5000
  function cp(t) {
5001
5001
  const { children: e } = t, [n, i] = fe(!1);
5002
- Se(() => {
5002
+ ve(() => {
5003
5003
  i(!0);
5004
5004
  }, []);
5005
5005
  const r = document.getElementById("biznext-ui-confirm-dialog-portal");
@@ -5011,24 +5011,24 @@ const lp = (t) => {
5011
5011
  }, d = () => {
5012
5012
  a(), n();
5013
5013
  };
5014
- return /* @__PURE__ */ T(cp, { children: /* @__PURE__ */ T("div", { className: Ce["confirm-dialog-wrapper"], children: /* @__PURE__ */ T(hr, { children: e && /* @__PURE__ */ T(Ht.div, { className: Ce["confirm-dialog-overlay"], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ T(
5014
+ return /* @__PURE__ */ T(cp, { children: /* @__PURE__ */ T("div", { className: xe["confirm-dialog-wrapper"], children: /* @__PURE__ */ T(hr, { children: e && /* @__PURE__ */ T(Ht.div, { className: xe["confirm-dialog-overlay"], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ T(
5015
5015
  Ht.div,
5016
5016
  {
5017
- className: yt(Ce["confirm-dialog"], Ce[r]),
5017
+ className: yt(xe["confirm-dialog"], xe[r]),
5018
5018
  initial: { opacity: 0, scale: 0.95 },
5019
5019
  animate: { opacity: 1, scale: 1 },
5020
5020
  exit: { opacity: 0, scale: 0.95 },
5021
- children: /* @__PURE__ */ de("div", { className: Ce["confirm-dialog-content"], children: [
5022
- /* @__PURE__ */ de("div", { className: Ce["confirm-dialog-body"], children: [
5023
- /* @__PURE__ */ T("div", { className: Ce["confirm-dialog-icon-container"], children: /* @__PURE__ */ T("div", { className: Ce["confirm-dialog-icon"], children: u || /* @__PURE__ */ T(rp, {}) }) }),
5021
+ children: /* @__PURE__ */ de("div", { className: xe["confirm-dialog-content"], children: [
5022
+ /* @__PURE__ */ de("div", { className: xe["confirm-dialog-body"], children: [
5023
+ /* @__PURE__ */ T("div", { className: xe["confirm-dialog-icon-container"], children: /* @__PURE__ */ T("div", { className: xe["confirm-dialog-icon"], children: u || /* @__PURE__ */ T(rp, {}) }) }),
5024
5024
  /* @__PURE__ */ de("div", { children: [
5025
5025
  /* @__PURE__ */ T("h2", { children: s }),
5026
5026
  /* @__PURE__ */ T("p", { children: o })
5027
5027
  ] })
5028
5028
  ] }),
5029
- /* @__PURE__ */ de("div", { className: Ce["confirm-dialog-footer"], children: [
5030
- /* @__PURE__ */ T("button", { type: "button", className: Ce["confirm-dialog-footer-close-btn"], onClick: l, children: c && c.onCloseTitle ? c.onCloseTitle : "Cancel" }),
5031
- /* @__PURE__ */ T("button", { type: "button", className: Ce["confirm-dialog-footer-confirm-btn"], onClick: d, children: c && c.onConfirmTitle ? c.onConfirmTitle : "Confirm" })
5029
+ /* @__PURE__ */ de("div", { className: xe["confirm-dialog-footer"], children: [
5030
+ /* @__PURE__ */ T("button", { type: "button", className: xe["confirm-dialog-footer-close-btn"], onClick: l, children: c && c.onCloseTitle ? c.onCloseTitle : "Cancel" }),
5031
+ /* @__PURE__ */ T("button", { type: "button", className: xe["confirm-dialog-footer-confirm-btn"], onClick: d, children: c && c.onConfirmTitle ? c.onConfirmTitle : "Confirm" })
5032
5032
  ] })
5033
5033
  ] })
5034
5034
  }
@@ -5060,7 +5060,7 @@ const lp = (t) => {
5060
5060
  /* @__PURE__ */ T(lp, { isOpen: m, onClose: b, config: f }),
5061
5061
  t
5062
5062
  ] }) });
5063
- }, Mb = dp, fp = "biznext-ui-Mao59ye15po-3", hp = "biznext-ui-5bDq6-PrHF4-e", pp = "biznext-ui-X9XXG3R3kc4-5", mp = "biznext-ui-g7IKSnXitqg-8", gp = "biznext-ui-T4NhvYHqFMo-4", xe = {
5063
+ }, Mb = dp, fp = "biznext-ui-Mao59ye15po-3", hp = "biznext-ui-5bDq6-PrHF4-e", pp = "biznext-ui-X9XXG3R3kc4-5", mp = "biznext-ui-g7IKSnXitqg-8", gp = "biznext-ui-T4NhvYHqFMo-4", Ae = {
5064
5064
  "modal-wrapper": "biznext-ui-n2Vjx4mdikE-9",
5065
5065
  "modal-overlay": "biznext-ui-6sKjk6L11EQ-e",
5066
5066
  modal: fp,
@@ -5089,7 +5089,7 @@ function bp(t) {
5089
5089
  }
5090
5090
  function vp(t) {
5091
5091
  const { children: e } = t, [n, i] = fe(!1);
5092
- Se(() => {
5092
+ ve(() => {
5093
5093
  i(!0);
5094
5094
  }, []);
5095
5095
  const r = document.getElementById("biznext-ui-modal-portal");
@@ -5097,11 +5097,11 @@ function vp(t) {
5097
5097
  }
5098
5098
  const pr = Ge({ onClose: () => console.warn("Biznext-UI-Modal: Close Function not Implemented!") }), xt = (t) => {
5099
5099
  const { type: e, index: n, height: i, width: r, sx: s, isOpen: o, onClose: u, children: a } = t;
5100
- return /* @__PURE__ */ T(pr.Provider, { value: { onClose: u }, children: /* @__PURE__ */ T(vp, { children: /* @__PURE__ */ T(hr, { children: o && /* @__PURE__ */ de("div", { className: xe["modal-wrapper"], children: [
5100
+ return /* @__PURE__ */ T(pr.Provider, { value: { onClose: u }, children: /* @__PURE__ */ T(vp, { children: /* @__PURE__ */ T(hr, { children: o && /* @__PURE__ */ de("div", { className: Ae["modal-wrapper"], children: [
5101
5101
  /* @__PURE__ */ T(
5102
5102
  Ht.div,
5103
5103
  {
5104
- className: xe["modal-overlay"],
5104
+ className: Ae["modal-overlay"],
5105
5105
  style: { zIndex: 9999 + (n || 0) },
5106
5106
  onClick: u,
5107
5107
  initial: { opacity: 0 },
@@ -5113,7 +5113,7 @@ const pr = Ge({ onClose: () => console.warn("Biznext-UI-Modal: Close Function no
5113
5113
  Ht.div,
5114
5114
  {
5115
5115
  initial: { opacity: 0, scale: 0.95 },
5116
- className: yt(xe.modal, xe[e]),
5116
+ className: yt(Ae.modal, Ae[e]),
5117
5117
  style: { height: i, width: r, zIndex: 99999 + (n || 0), ...s },
5118
5118
  animate: { opacity: 1, scale: 1 },
5119
5119
  exit: { opacity: 0, scale: 0.95 },
@@ -5121,17 +5121,17 @@ const pr = Ge({ onClose: () => console.warn("Biznext-UI-Modal: Close Function no
5121
5121
  }
5122
5122
  )
5123
5123
  ] }) }) }) });
5124
- }, Nb = xt, yp = ({ children: t }) => /* @__PURE__ */ T("div", { className: xe["modal-content"], children: t }), Ip = ({ children: t }) => {
5124
+ }, Nb = xt, yp = ({ children: t }) => /* @__PURE__ */ T("div", { className: Ae["modal-content"], children: t }), Ip = ({ children: t }) => {
5125
5125
  const { onClose: e } = k(pr);
5126
- return /* @__PURE__ */ de("header", { id: "handle", className: xe["modal-header"], children: [
5126
+ return /* @__PURE__ */ de("header", { id: "handle", className: Ae["modal-header"], children: [
5127
5127
  t,
5128
- /* @__PURE__ */ T("button", { type: "button", className: xe["module-header-close-btn"], onClick: e, children: /* @__PURE__ */ T(bp, {}) })
5128
+ /* @__PURE__ */ T("button", { type: "button", className: Ae["module-header-close-btn"], onClick: e, children: /* @__PURE__ */ T(bp, {}) })
5129
5129
  ] });
5130
- }, Cp = ({ children: t }) => /* @__PURE__ */ T("h2", { className: xe["modal-title"], children: t }), xp = ({ children: t }) => /* @__PURE__ */ T("div", { className: xe["modal-body"], children: t }), Ap = (t) => {
5130
+ }, Cp = ({ children: t }) => /* @__PURE__ */ T("h2", { className: Ae["modal-title"], children: t }), xp = ({ children: t }) => /* @__PURE__ */ T("div", { className: Ae["modal-body"], children: t }), Ap = (t) => {
5131
5131
  const { children: e, closeTitle: n } = t, { onClose: i } = k(pr);
5132
- return /* @__PURE__ */ de("footer", { className: xe["modal-footer"], children: [
5132
+ return /* @__PURE__ */ de("footer", { className: Ae["modal-footer"], children: [
5133
5133
  e,
5134
- /* @__PURE__ */ T("button", { type: "button", className: xe["modal-footer-close-btn"], onClick: i, children: n || "Cancel" })
5134
+ /* @__PURE__ */ T("button", { type: "button", className: Ae["modal-footer-close-btn"], onClick: i, children: n || "Cancel" })
5135
5135
  ] });
5136
5136
  };
5137
5137
  xt.Content = yp;
@@ -5139,7 +5139,7 @@ xt.Header = Ip;
5139
5139
  xt.Title = Cp;
5140
5140
  xt.Body = xp;
5141
5141
  xt.Footer = Ap;
5142
- const Sp = () => k(eu), Lb = Sp, Tp = "biznext-ui-WgISRe1bJDU-5", Ep = "biznext-ui-S1AWtF9fE-s-4", Ae = {
5142
+ const Sp = () => k(eu), Lb = Sp, Tp = "biznext-ui-WgISRe1bJDU-5", Ep = "biznext-ui-S1AWtF9fE-s-4", Se = {
5143
5143
  form: Tp,
5144
5144
  "form-group": "biznext-ui-PDYbgOuoFL0-3",
5145
5145
  "form-input-group": "biznext-ui-7dIDGqcfwy4-e",
@@ -5268,8 +5268,8 @@ function Gp(t) {
5268
5268
  var e = t.defaultInputValue, n = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, r = i === void 0 ? !1 : i, s = t.defaultValue, o = s === void 0 ? null : s, u = t.inputValue, a = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, f = t.onMenuOpen, h = t.value, m = ke(t, Bp), p = fe(u !== void 0 ? u : n), g = Oe(p, 2), b = g[0], I = g[1], v = fe(a !== void 0 ? a : r), C = Oe(v, 2), y = C[0], A = C[1], S = fe(h !== void 0 ? h : o), x = Oe(S, 2), B = x[0], D = x[1], Z = $(function(Q, Te) {
5269
5269
  typeof c == "function" && c(Q, Te), D(Q);
5270
5270
  }, [c]), j = $(function(Q, Te) {
5271
- var ve;
5272
- typeof l == "function" && (ve = l(Q, Te)), I(ve !== void 0 ? ve : Q);
5271
+ var ye;
5272
+ typeof l == "function" && (ye = l(Q, Te)), I(ye !== void 0 ? ye : Q);
5273
5273
  }, [l]), ce = $(function() {
5274
5274
  typeof f == "function" && f(), A(!0);
5275
5275
  }, [f]), ae = $(function() {
@@ -6057,9 +6057,9 @@ function Cm() {
6057
6057
  }
6058
6058
  var y = a, A = c, S = u, x = o, B = e, D = l, Z = i, j = m, ce = h, ae = n, G = s, M = r, ne = d, Q = !1;
6059
6059
  function Te(E) {
6060
- return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ve(E) || C(E) === a;
6060
+ return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ye(E) || C(E) === a;
6061
6061
  }
6062
- function ve(E) {
6062
+ function ye(E) {
6063
6063
  return C(E) === c;
6064
6064
  }
6065
6065
  function ut(E) {
@@ -6071,7 +6071,7 @@ function Cm() {
6071
6071
  function oe(E) {
6072
6072
  return typeof E == "object" && E !== null && E.$$typeof === e;
6073
6073
  }
6074
- function ye(E) {
6074
+ function Ie(E) {
6075
6075
  return C(E) === l;
6076
6076
  }
6077
6077
  function Ee(E) {
@@ -6083,7 +6083,7 @@ function Cm() {
6083
6083
  function Pe(E) {
6084
6084
  return C(E) === h;
6085
6085
  }
6086
- function Ie(E) {
6086
+ function Ce(E) {
6087
6087
  return C(E) === n;
6088
6088
  }
6089
6089
  function ct(E) {
@@ -6095,7 +6095,7 @@ function Cm() {
6095
6095
  function $t(E) {
6096
6096
  return C(E) === d;
6097
6097
  }
6098
- O.AsyncMode = y, O.ConcurrentMode = A, O.ContextConsumer = S, O.ContextProvider = x, O.Element = B, O.ForwardRef = D, O.Fragment = Z, O.Lazy = j, O.Memo = ce, O.Portal = ae, O.Profiler = G, O.StrictMode = M, O.Suspense = ne, O.isAsyncMode = Te, O.isConcurrentMode = ve, O.isContextConsumer = ut, O.isContextProvider = Y, O.isElement = oe, O.isForwardRef = ye, O.isFragment = Ee, O.isLazy = le, O.isMemo = Pe, O.isPortal = Ie, O.isProfiler = ct, O.isStrictMode = Jn, O.isSuspense = $t, O.isValidElementType = v, O.typeOf = C;
6098
+ O.AsyncMode = y, O.ConcurrentMode = A, O.ContextConsumer = S, O.ContextProvider = x, O.Element = B, O.ForwardRef = D, O.Fragment = Z, O.Lazy = j, O.Memo = ce, O.Portal = ae, O.Profiler = G, O.StrictMode = M, O.Suspense = ne, O.isAsyncMode = Te, O.isConcurrentMode = ye, O.isContextConsumer = ut, O.isContextProvider = Y, O.isElement = oe, O.isForwardRef = Ie, O.isFragment = Ee, O.isLazy = le, O.isMemo = Pe, O.isPortal = Ce, O.isProfiler = ct, O.isStrictMode = Jn, O.isSuspense = $t, O.isValidElementType = v, O.typeOf = C;
6099
6099
  }()), O;
6100
6100
  }
6101
6101
  process.env.NODE_ENV === "production" ? Di.exports = Im() : Di.exports = Cm();
@@ -7553,9 +7553,9 @@ var W0 = process.env.NODE_ENV === "production" ? {
7553
7553
  }, [d]), B = be(function() {
7554
7554
  var G = "";
7555
7555
  if (n && x.onChange) {
7556
- var M = n.option, ne = n.options, Q = n.removedValue, Te = n.removedValues, ve = n.value, ut = function(Ie) {
7557
- return Array.isArray(Ie) ? null : Ie;
7558
- }, Y = Q || M || ut(ve), oe = Y ? f(Y) : "", ye = ne || Te || void 0, Ee = ye ? ye.map(f) : [], le = V({
7556
+ var M = n.option, ne = n.options, Q = n.removedValue, Te = n.removedValues, ye = n.value, ut = function(Ce) {
7557
+ return Array.isArray(Ce) ? null : Ce;
7558
+ }, Y = Q || M || ut(ye), oe = Y ? f(Y) : "", Ie = ne || Te || void 0, Ee = Ie ? Ie.map(f) : [], le = V({
7559
7559
  // multiSelected items are usually items that have already been selected
7560
7560
  // or set by the user as a default value so we assume they are not disabled
7561
7561
  isDisabled: Y && p(Y, u),
@@ -7958,7 +7958,7 @@ function Q0(t) {
7958
7958
  }, [h, f, d]), p = $(function(g) {
7959
7959
  g && (g.removeEventListener("wheel", d, !1), g.removeEventListener("touchstart", f, !1), g.removeEventListener("touchmove", h, !1));
7960
7960
  }, [h, f, d]);
7961
- return Se(function() {
7961
+ return ve(function() {
7962
7962
  if (e) {
7963
7963
  var g = c.current;
7964
7964
  return m(g), function() {
@@ -8018,7 +8018,7 @@ function $0(t) {
8018
8018
  }), c && mo() && (c.removeEventListener("touchmove", fo, lt), a && (a.removeEventListener("touchstart", po, lt), a.removeEventListener("touchmove", ho, lt)));
8019
8019
  }
8020
8020
  }, [i]);
8021
- return Se(function() {
8021
+ return ve(function() {
8022
8022
  if (e) {
8023
8023
  var a = s.current;
8024
8024
  return o(a), function() {
@@ -9001,26 +9001,26 @@ var Hu = function(e) {
9001
9001
  value: function() {
9002
9002
  var r = this, s = this.getComponents(), o = s.Group, u = s.GroupHeading, a = s.Menu, c = s.MenuList, l = s.MenuPortal, d = s.LoadingMessage, f = s.NoOptionsMessage, h = s.Option, m = this.commonProps, p = this.state.focusedOption, g = this.props, b = g.captureMenuScroll, I = g.inputValue, v = g.isLoading, C = g.loadingMessage, y = g.minMenuHeight, A = g.maxMenuHeight, S = g.menuIsOpen, x = g.menuPlacement, B = g.menuPosition, D = g.menuPortalTarget, Z = g.menuShouldBlockScroll, j = g.menuShouldScrollIntoView, ce = g.noOptionsMessage, ae = g.onMenuScrollToTop, G = g.onMenuScrollToBottom;
9003
9003
  if (!S) return null;
9004
- var M = function(oe, ye) {
9005
- var Ee = oe.type, le = oe.data, Pe = oe.isDisabled, Ie = oe.isSelected, ct = oe.label, Jn = oe.value, $t = p === le, E = Pe ? void 0 : function() {
9004
+ var M = function(oe, Ie) {
9005
+ var Ee = oe.type, le = oe.data, Pe = oe.isDisabled, Ce = oe.isSelected, ct = oe.label, Jn = oe.value, $t = p === le, E = Pe ? void 0 : function() {
9006
9006
  return r.onOptionHover(le);
9007
9007
  }, Tt = Pe ? void 0 : function() {
9008
9008
  return r.selectOption(le);
9009
- }, $e = "".concat(r.getElementId("option"), "-").concat(ye), Kt = {
9009
+ }, $e = "".concat(r.getElementId("option"), "-").concat(Ie), Kt = {
9010
9010
  id: $e,
9011
9011
  onClick: Tt,
9012
9012
  onMouseMove: E,
9013
9013
  onMouseOver: E,
9014
9014
  tabIndex: -1,
9015
9015
  role: "option",
9016
- "aria-selected": r.isAppleDevice ? void 0 : Ie
9016
+ "aria-selected": r.isAppleDevice ? void 0 : Ce
9017
9017
  // is not supported on Apple devices
9018
9018
  };
9019
9019
  return /* @__PURE__ */ R.createElement(h, F({}, m, {
9020
9020
  innerProps: Kt,
9021
9021
  data: le,
9022
9022
  isDisabled: Pe,
9023
- isSelected: Ie,
9023
+ isSelected: Ce,
9024
9024
  key: $e,
9025
9025
  label: ct,
9026
9026
  type: Ee,
@@ -9032,19 +9032,19 @@ var Hu = function(e) {
9032
9032
  if (this.hasOptions())
9033
9033
  ne = this.getCategorizedOptions().map(function(Y) {
9034
9034
  if (Y.type === "group") {
9035
- var oe = Y.data, ye = Y.options, Ee = Y.index, le = "".concat(r.getElementId("group"), "-").concat(Ee), Pe = "".concat(le, "-heading");
9035
+ var oe = Y.data, Ie = Y.options, Ee = Y.index, le = "".concat(r.getElementId("group"), "-").concat(Ee), Pe = "".concat(le, "-heading");
9036
9036
  return /* @__PURE__ */ R.createElement(o, F({}, m, {
9037
9037
  key: le,
9038
9038
  data: oe,
9039
- options: ye,
9039
+ options: Ie,
9040
9040
  Heading: u,
9041
9041
  headingProps: {
9042
9042
  id: Pe,
9043
9043
  data: Y.data
9044
9044
  },
9045
9045
  label: r.formatGroupLabel(Y.data)
9046
- }), Y.options.map(function(Ie) {
9047
- return M(Ie, "".concat(Ee, "-").concat(Ie.index));
9046
+ }), Y.options.map(function(Ce) {
9047
+ return M(Ce, "".concat(Ee, "-").concat(Ce.index));
9048
9048
  }));
9049
9049
  } else if (Y.type === "option")
9050
9050
  return M(Y, "".concat(Y.index));
@@ -9062,15 +9062,15 @@ var Hu = function(e) {
9062
9062
  if (Te === null) return null;
9063
9063
  ne = /* @__PURE__ */ R.createElement(f, m, Te);
9064
9064
  }
9065
- var ve = {
9065
+ var ye = {
9066
9066
  minMenuHeight: y,
9067
9067
  maxMenuHeight: A,
9068
9068
  menuPlacement: x,
9069
9069
  menuPosition: B,
9070
9070
  menuShouldScrollIntoView: j
9071
- }, ut = /* @__PURE__ */ R.createElement(Sg, F({}, m, ve), function(Y) {
9072
- var oe = Y.ref, ye = Y.placerProps, Ee = ye.placement, le = ye.maxHeight;
9073
- return /* @__PURE__ */ R.createElement(a, F({}, m, ve, {
9071
+ }, ut = /* @__PURE__ */ R.createElement(Sg, F({}, m, ye), function(Y) {
9072
+ var oe = Y.ref, Ie = Y.placerProps, Ee = Ie.placement, le = Ie.maxHeight;
9073
+ return /* @__PURE__ */ R.createElement(a, F({}, m, ye, {
9074
9074
  innerRef: oe,
9075
9075
  innerProps: {
9076
9076
  onMouseDown: r.onMenuMouseDown,
@@ -9232,7 +9232,7 @@ var Tb = /* @__PURE__ */ Gn(function(t, e) {
9232
9232
  }), Eb = Tb;
9233
9233
  const St = (t) => {
9234
9234
  const { children: e, sx: n, ...i } = t;
9235
- return /* @__PURE__ */ T("div", { className: Ae.form, style: n, ...i, children: e });
9235
+ return /* @__PURE__ */ T("div", { className: Se.form, style: n, ...i, children: e });
9236
9236
  }, Wb = St, Pb = {
9237
9237
  menuPortal: (t) => ({ ...t, zIndex: "9999999999 !important" }),
9238
9238
  control: (t, e) => ({
@@ -9292,57 +9292,59 @@ const St = (t) => {
9292
9292
  })
9293
9293
  }, Vb = (t) => {
9294
9294
  const { children: e, sx: n, ...i } = t;
9295
- return /* @__PURE__ */ T("div", { className: Ae["form-group"], style: n, ...i, children: e });
9295
+ return /* @__PURE__ */ T("div", { className: Se["form-group"], style: n, ...i, children: e });
9296
9296
  }, wb = (t) => {
9297
9297
  const { children: e, sx: n, ...i } = t, r = cn.toArray(e).filter((a) => a.type.displayName === "biznext-ui-input-label"), s = cn.toArray(e).filter((a) => a.type.displayName === "biznext-ui-input-control"), o = cn.toArray(e).filter((a) => a.type.displayName === "biznext-ui-input-error-message"), u = o[0] && o[0].props.children && o[0].props.children.length > 0;
9298
- return /* @__PURE__ */ de("div", { className: yt(Ae["form-input-group"], u && Ae["validation-error"]), style: n, ...i, children: [
9298
+ return /* @__PURE__ */ de("div", { className: yt(Se["form-input-group"], u && Se["validation-error"]), style: n, ...i, children: [
9299
9299
  r,
9300
- /* @__PURE__ */ de("div", { className: Ae["form-input-control-group"], children: [
9300
+ /* @__PURE__ */ de("div", { className: Se["form-input-control-group"], children: [
9301
9301
  s,
9302
- /* @__PURE__ */ T("span", { className: Ae["form-input-group-error-text"], children: o })
9302
+ /* @__PURE__ */ T("span", { className: Se["form-input-group-error-text"], children: o })
9303
9303
  ] })
9304
9304
  ] });
9305
9305
  }, zu = (t) => {
9306
9306
  const { required: e = !1, children: n, sx: i, ...r } = t;
9307
- return /* @__PURE__ */ T("label", { className: yt(Ae["form-input-group-label"], e && Ae.required), style: i, ...r, children: n });
9307
+ return /* @__PURE__ */ T("label", { className: yt(Se["form-input-group-label"], e && Se.required), style: i, ...r, children: n });
9308
9308
  }, ju = Gn(
9309
9309
  (t, e) => {
9310
- const { controlType: n, focus: i, sx: r, placeholder: s = "", isSearchable: o = !0, isClearable: u = !0, ...a } = t;
9311
- let c = /* @__PURE__ */ T(Mt, {});
9312
- const l = _(null);
9313
- switch (Se(() => {
9314
- l.current && l.current.focus();
9315
- }, [i]), n) {
9310
+ const { controlType: n, focus: i, onFocus: r, sx: s, placeholder: o = "", isSearchable: u = !0, isClearable: a = !0, ...c } = t;
9311
+ let l = /* @__PURE__ */ T(Mt, {});
9312
+ const d = _(null);
9313
+ switch (ve(() => {
9314
+ d.current && d.current.focus();
9315
+ }, [i]), ve(() => {
9316
+ r && d.current && d.current.focus();
9317
+ }, [r]), n) {
9316
9318
  case "input":
9317
- c = /* @__PURE__ */ T("input", { className: Ae["form-input-control"], placeholder: s, ref: i ? l : e, style: r, ...a });
9319
+ l = /* @__PURE__ */ T("input", { className: Se["form-input-control"], placeholder: o, ref: i ? d : e, style: s, ...c });
9318
9320
  break;
9319
9321
  case "select":
9320
- c = /* @__PURE__ */ T(
9322
+ l = /* @__PURE__ */ T(
9321
9323
  Eb,
9322
9324
  {
9323
9325
  styles: Pb,
9324
- className: Ae["form-select-control"],
9326
+ className: Se["form-select-control"],
9325
9327
  classNamePrefix: "biznext-ui-",
9326
9328
  menuPortalTarget: document.body,
9327
9329
  menuPosition: "absolute",
9328
9330
  menuShouldScrollIntoView: !1,
9329
- ref: i ? l : e,
9330
- placeholder: s ? `Select ${s}` : "Select...",
9331
- isSearchable: o,
9332
- isClearable: u,
9331
+ ref: i ? d : e,
9332
+ placeholder: o ? `Select ${o}` : "Select...",
9333
+ isSearchable: u,
9334
+ isClearable: a,
9333
9335
  noOptionsMessage: () => "No Results Found!",
9334
- ...a
9336
+ ...c
9335
9337
  }
9336
9338
  );
9337
9339
  break;
9338
9340
  case "textarea":
9339
- c = /* @__PURE__ */ T("textarea", { className: Ae["form-input-control"], placeholder: s, style: r, ref: i ? l : e, ...a });
9341
+ l = /* @__PURE__ */ T("textarea", { className: Se["form-input-control"], placeholder: o, style: s, ref: i ? d : e, ...c });
9340
9342
  break;
9341
9343
  default:
9342
- c = /* @__PURE__ */ T(Mt, {});
9344
+ l = /* @__PURE__ */ T(Mt, {});
9343
9345
  break;
9344
9346
  }
9345
- return c;
9347
+ return l;
9346
9348
  }
9347
9349
  ), Yu = (t) => {
9348
9350
  const { children: e } = t;