@biznext-ui/react 0.4.0 → 0.4.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.
@@ -7,7 +7,7 @@ import { RefAttributes } from 'react';
7
7
  export declare const BiznextUIProvider: ({ children, toastPosition }: {
8
8
  children: ReactNode;
9
9
  toastPosition?: IToastPositions;
10
- }) => JSX_2.Element;
10
+ }) => JSX_2.Element | null;
11
11
 
12
12
  export declare const Form: {
13
13
  (props: {
package/dist/index.es.js CHANGED
@@ -5037,7 +5037,7 @@ const lp = (t) => {
5037
5037
  const n = {
5038
5038
  toasts: []
5039
5039
  };
5040
- console.log(n, Pr, Er);
5040
+ console.log(n, "initialState"), console.log(Pr, "ToastReducer"), console.log(Er, "useReducer");
5041
5041
  const [i, r] = Er(Pr, n);
5042
5042
  console.log(i, r, "state - setState");
5043
5043
  const s = (v, C, y) => {
@@ -5058,12 +5058,12 @@ const lp = (t) => {
5058
5058
  }, b = () => {
5059
5059
  p(!1);
5060
5060
  }, I = g;
5061
- return /* @__PURE__ */ T(To.Provider, { value: d, children: /* @__PURE__ */ de(nu.Provider, { value: I, children: [
5061
+ return t ? /* @__PURE__ */ T(To.Provider, { value: d, children: /* @__PURE__ */ de(nu.Provider, { value: I, children: [
5062
5062
  /* @__PURE__ */ T(ip, {}),
5063
5063
  /* @__PURE__ */ T($h, { toasts: i.toasts, toastPosition: e }),
5064
5064
  /* @__PURE__ */ T(lp, { isOpen: m, onClose: b, config: f }),
5065
5065
  t
5066
- ] }) });
5066
+ ] }) }) : null;
5067
5067
  }, 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 = {
5068
5068
  "modal-wrapper": "biznext-ui-n2Vjx4mdikE-9",
5069
5069
  "modal-overlay": "biznext-ui-6sKjk6L11EQ-e",
package/dist/index.umd.js CHANGED
@@ -10,7 +10,7 @@
10
10
  top: ${a}px !important;
11
11
  left: ${l}px !important;
12
12
  }
13
- `),()=>{document.head.removeChild(c)}},[t]),A.jsx(fh,{isPresent:t,childRef:i,sizeRef:r,children:G.cloneElement(e,{ref:i})})}const Wi=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Yr(ph),a=C.useId(),l=C.useMemo(()=>({id:a,initial:t,isPresent:n,custom:r,onExitComplete:c=>{u.set(c,!0);for(const d of u.values())if(!d)return;i&&i()},register:c=>(u.set(c,!1),()=>u.delete(c))}),s?[Math.random()]:[n]);return C.useMemo(()=>{u.forEach((c,d)=>u.set(d,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(e=A.jsx(hh,{isPresent:n,children:e})),A.jsx(jt.Provider,{value:l,children:e})};function ph(){return new Map}function mh(e){return C.useEffect(()=>()=>e(),[])}const Ke=e=>e.key||"";function gh(e,t){e.forEach(n=>{const i=Ke(n);t.set(i,n)})}function bh(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const Ri=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Ve(!r,"Replace exitBeforeEnter with mode='wait'");const u=C.useContext(Hn).forceRender||dh()[0],a=la(),l=bh(e);let c=l;const d=C.useRef(new Map).current,f=C.useRef(c),h=C.useRef(new Map).current,m=C.useRef(!0);if(Rn(()=>{m.current=!1,gh(l,h),f.current=c}),mh(()=>{m.current=!0,h.clear(),d.clear()}),m.current)return A.jsx(A.Fragment,{children:c.map(I=>A.jsx(Wi,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o,children:I},Ke(I)))});c=[...c];const p=f.current.map(Ke),g=l.map(Ke),b=p.length;for(let I=0;I<b;I++){const v=p[I];g.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return o==="wait"&&d.size&&(c=[]),d.forEach((I,v)=>{if(g.indexOf(v)!==-1)return;const x=h.get(v);if(!x)return;const y=p.indexOf(v);let E=I;if(!E){const T=()=>{d.delete(v);const S=Array.from(h.keys()).filter(M=>!g.includes(M));if(S.forEach(M=>h.delete(M)),f.current=l.filter(M=>{const N=Ke(M);return N===v||S.includes(N)}),!d.size){if(a.current===!1)return;u(),i&&i()}};E=A.jsx(Wi,{isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:s,mode:o,children:x},Ke(x)),d.set(v,E)}c.splice(y,0,E)}),c=c.map(I=>{const v=I.key;return d.has(v)?I:A.jsx(Wi,{isPresent:!0,presenceAffectsLayout:s,mode:o,children:I},Ke(I))}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),A.jsx(A.Fragment,{children:d.size?c:c.map(I=>C.cloneElement(I))})},vh=e=>{let t=A.jsx(A.Fragment,{});switch(e){case"success":t=A.jsx(zu,{});break;case"info":t=A.jsx(Yu,{});break;case"warning":t=A.jsx(Ju,{});break;case"error":t=A.jsx(ju,{});break}return{icon:t}},yh=e=>{const{id:t,type:n,title:i}=e,{icon:r}=vh(n),s=4e3,o=gr(),u=C.useCallback(()=>{o.removeToast(t)},[t,o]);return C.useEffect(()=>{const a=setTimeout(()=>{setTimeout(()=>{u()},1e3)},s);return()=>{clearTimeout(a)}},[]),A.jsx(Mt.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:A.jsxs("div",{className:tt(Ce.toast,Ce[n]),children:[A.jsx("div",{className:Ce["toast-icon"],children:r}),A.jsx("div",{className:Ce["toast-content"],children:A.jsx("p",{className:Ce["toast-title"],children:i})}),A.jsx("div",{className:Ce["toast-close"],children:A.jsx("button",{type:"button",className:Ce["toast-close-btn"],onClick:u,children:A.jsx("span",{className:Ce["toast-close-btn-icon"],children:A.jsx(Uu,{})})})})]})},t)};function Ch(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Ih=e=>{const{toasts:t,toastPosition:n="top-center"}=e;return A.jsx(Ch,{children:A.jsx("div",{className:tt(Ce["toasts-container"],Ce[n]),children:A.jsx(Ri,{children:t.map(i=>A.jsx(yh,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var K=[],Oi=0;Oi<256;++Oi)K.push((Oi+256).toString(16).slice(1));function xh(e,t=0){return(K[e[t+0]]+K[e[t+1]]+K[e[t+2]]+K[e[t+3]]+"-"+K[e[t+4]]+K[e[t+5]]+"-"+K[e[t+6]]+K[e[t+7]]+"-"+K[e[t+8]]+K[e[t+9]]+"-"+K[e[t+10]]+K[e[t+11]]+K[e[t+12]]+K[e[t+13]]+K[e[t+14]]+K[e[t+15]]).toLowerCase()}var fn,Ah=new Uint8Array(16);function Sh(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(Ah)}var Eh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ca={randomUUID:Eh};function Th(e,t,n){if(ca.randomUUID&&!t&&!e)return ca.randomUUID();e=e||{};var i=e.random||(e.rng||Sh)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xh(i)}function Ph(){return Re.createPortal(A.jsxs("div",{id:"biznext-ui-portal",children:[A.jsx("div",{id:"biznext-ui-modal-portal"}),A.jsx("div",{id:"biznext-ui-toast-portal"}),A.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function Vh(e){return Ye({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:[]}]})(e)}const pe={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function wh(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Fh=e=>{const{isOpen:t,onClose:n,config:i}=e,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return A.jsx(wh,{children:A.jsx("div",{className:pe["confirm-dialog-wrapper"],children:A.jsx(Ri,{children:t&&A.jsx(Mt.div,{className:pe["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:A.jsx(Mt.div,{className:tt(pe["confirm-dialog"],pe[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:A.jsxs("div",{className:pe["confirm-dialog-content"],children:[A.jsxs("div",{className:pe["confirm-dialog-body"],children:[A.jsx("div",{className:pe["confirm-dialog-icon-container"],children:A.jsx("div",{className:pe["confirm-dialog-icon"],children:u||A.jsx(Vh,{})})}),A.jsxs("div",{children:[A.jsx("h2",{children:s}),A.jsx("p",{children:o})]})]}),A.jsxs("div",{className:pe["confirm-dialog-footer"],children:[A.jsx("button",{type:"button",className:pe["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),A.jsx("button",{type:"button",className:pe["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},da=C.createContext({}),Bh=({children:e,toastPosition:t})=>{const n={toasts:[]};console.log(n,mr,C.useReducer);const[i,r]=C.useReducer(mr,n);console.log(i,r,"state - setState");const s=(v,x,y)=>{const E=Th();r({type:"ADD_TOAST",payload:{id:E,title:x,type:v,config:y}})},d={success:(v,x)=>{s("success",v,x)},warning:(v,x)=>{s("warning",v,x)},info:(v,x)=>{s("info",v,x)},error:(v,x)=>{s("error",v,x)},removeToast:v=>{r({type:"DELETE_TOAST",payload:{id:v,title:"",type:""}})}},[f,h]=C.useState({}),[m,p]=C.useState(!1),g=v=>{h(v),p(!0)},b=()=>{p(!1)},I=g;return A.jsx(pr.Provider,{value:d,children:A.jsxs(da.Provider,{value:I,children:[A.jsx(Ph,{}),A.jsx(Ih,{toasts:i.toasts,toastPosition:t}),A.jsx(Fh,{isOpen:m,onClose:b,config:f}),e]})})},me={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function Gh(e){return Ye({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function Mh(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Xi=C.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=e;return A.jsx(Xi.Provider,{value:{onClose:u},children:A.jsx(Mh,{children:A.jsx(Ri,{children:o&&A.jsxs("div",{className:me["modal-wrapper"],children:[A.jsx(Mt.div,{className:me["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),A.jsx(Mt.div,{initial:{opacity:0,scale:.95},className:tt(me.modal,me[t]),style:{height:i,width:r,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})})})},Dh=ct,Nh=({children:e})=>A.jsx("div",{className:me["modal-content"],children:e}),Lh=({children:e})=>{const{onClose:t}=C.useContext(Xi);return A.jsxs("header",{id:"handle",className:me["modal-header"],children:[e,A.jsx("button",{type:"button",className:me["module-header-close-btn"],onClick:t,children:A.jsx(Gh,{})})]})},Wh=({children:e})=>A.jsx("h2",{className:me["modal-title"],children:e}),Rh=({children:e})=>A.jsx("div",{className:me["modal-body"],children:e}),Oh=e=>{const{children:t,closeTitle:n}=e,{onClose:i}=C.useContext(Xi);return A.jsxs("footer",{className:me["modal-footer"],children:[t,A.jsx("button",{type:"button",className:me["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ct.Content=Nh,ct.Header=Lh,ct.Title=Wh,ct.Body=Rh,ct.Footer=Oh;const Xh=()=>C.useContext(da),ge={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Zh(e,t){if(qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(qe(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fa(e){var t=Zh(e,"string");return qe(t)=="symbol"?t:t+""}function Dt(e,t,n){return(t=fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ha(Object(n),!0).forEach(function(i){Dt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hh(e){if(Array.isArray(e))return e}function kh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return u}}function Zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function pa(e,t){if(e){if(typeof e=="string")return Zi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(e,t):void 0}}function zh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ `),()=>{document.head.removeChild(c)}},[t]),A.jsx(fh,{isPresent:t,childRef:i,sizeRef:r,children:G.cloneElement(e,{ref:i})})}const Wi=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const u=Yr(ph),a=C.useId(),l=C.useMemo(()=>({id:a,initial:t,isPresent:n,custom:r,onExitComplete:c=>{u.set(c,!0);for(const d of u.values())if(!d)return;i&&i()},register:c=>(u.set(c,!1),()=>u.delete(c))}),s?[Math.random()]:[n]);return C.useMemo(()=>{u.forEach((c,d)=>u.set(d,!1))},[n]),G.useEffect(()=>{!n&&!u.size&&i&&i()},[n]),o==="popLayout"&&(e=A.jsx(hh,{isPresent:n,children:e})),A.jsx(jt.Provider,{value:l,children:e})};function ph(){return new Map}function mh(e){return C.useEffect(()=>()=>e(),[])}const Ke=e=>e.key||"";function gh(e,t){e.forEach(n=>{const i=Ke(n);t.set(i,n)})}function bh(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const Ri=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{Ve(!r,"Replace exitBeforeEnter with mode='wait'");const u=C.useContext(Hn).forceRender||dh()[0],a=la(),l=bh(e);let c=l;const d=C.useRef(new Map).current,f=C.useRef(c),h=C.useRef(new Map).current,m=C.useRef(!0);if(Rn(()=>{m.current=!1,gh(l,h),f.current=c}),mh(()=>{m.current=!0,h.clear(),d.clear()}),m.current)return A.jsx(A.Fragment,{children:c.map(I=>A.jsx(Wi,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o,children:I},Ke(I)))});c=[...c];const p=f.current.map(Ke),g=l.map(Ke),b=p.length;for(let I=0;I<b;I++){const v=p[I];g.indexOf(v)===-1&&!d.has(v)&&d.set(v,void 0)}return o==="wait"&&d.size&&(c=[]),d.forEach((I,v)=>{if(g.indexOf(v)!==-1)return;const x=h.get(v);if(!x)return;const y=p.indexOf(v);let E=I;if(!E){const T=()=>{d.delete(v);const S=Array.from(h.keys()).filter(M=>!g.includes(M));if(S.forEach(M=>h.delete(M)),f.current=l.filter(M=>{const N=Ke(M);return N===v||S.includes(N)}),!d.size){if(a.current===!1)return;u(),i&&i()}};E=A.jsx(Wi,{isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:s,mode:o,children:x},Ke(x)),d.set(v,E)}c.splice(y,0,E)}),c=c.map(I=>{const v=I.key;return d.has(v)?I:A.jsx(Wi,{isPresent:!0,presenceAffectsLayout:s,mode:o,children:I},Ke(I))}),process.env.NODE_ENV!=="production"&&o==="wait"&&c.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),A.jsx(A.Fragment,{children:d.size?c:c.map(I=>C.cloneElement(I))})},vh=e=>{let t=A.jsx(A.Fragment,{});switch(e){case"success":t=A.jsx(zu,{});break;case"info":t=A.jsx(Yu,{});break;case"warning":t=A.jsx(Ju,{});break;case"error":t=A.jsx(ju,{});break}return{icon:t}},yh=e=>{const{id:t,type:n,title:i}=e,{icon:r}=vh(n),s=4e3,o=gr(),u=C.useCallback(()=>{o.removeToast(t)},[t,o]);return C.useEffect(()=>{const a=setTimeout(()=>{setTimeout(()=>{u()},1e3)},s);return()=>{clearTimeout(a)}},[]),A.jsx(Mt.div,{layout:!0,initial:{opacity:0,y:50,scale:.3},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:0,scale:.8},children:A.jsxs("div",{className:tt(Ce.toast,Ce[n]),children:[A.jsx("div",{className:Ce["toast-icon"],children:r}),A.jsx("div",{className:Ce["toast-content"],children:A.jsx("p",{className:Ce["toast-title"],children:i})}),A.jsx("div",{className:Ce["toast-close"],children:A.jsx("button",{type:"button",className:Ce["toast-close-btn"],onClick:u,children:A.jsx("span",{className:Ce["toast-close-btn-icon"],children:A.jsx(Uu,{})})})})]})},t)};function Ch(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-toast-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Ih=e=>{const{toasts:t,toastPosition:n="top-center"}=e;return A.jsx(Ch,{children:A.jsx("div",{className:tt(Ce["toasts-container"],Ce[n]),children:A.jsx(Ri,{children:t.map(i=>A.jsx(yh,{id:i.id,type:i.type,title:i.title},i.id))})})})};for(var K=[],Oi=0;Oi<256;++Oi)K.push((Oi+256).toString(16).slice(1));function xh(e,t=0){return(K[e[t+0]]+K[e[t+1]]+K[e[t+2]]+K[e[t+3]]+"-"+K[e[t+4]]+K[e[t+5]]+"-"+K[e[t+6]]+K[e[t+7]]+"-"+K[e[t+8]]+K[e[t+9]]+"-"+K[e[t+10]]+K[e[t+11]]+K[e[t+12]]+K[e[t+13]]+K[e[t+14]]+K[e[t+15]]).toLowerCase()}var fn,Ah=new Uint8Array(16);function Sh(){if(!fn&&(fn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fn(Ah)}var Eh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ca={randomUUID:Eh};function Th(e,t,n){if(ca.randomUUID&&!t&&!e)return ca.randomUUID();e=e||{};var i=e.random||(e.rng||Sh)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,xh(i)}function Ph(){return Re.createPortal(A.jsxs("div",{id:"biznext-ui-portal",children:[A.jsx("div",{id:"biznext-ui-modal-portal"}),A.jsx("div",{id:"biznext-ui-toast-portal"}),A.jsx("div",{id:"biznext-ui-confirm-dialog-portal"})]}),document.body)}function Vh(e){return Ye({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:[]}]})(e)}const pe={"confirm-dialog":"biznext-ui-4yyscqDACxw-e","confirm-dialog-overlay":"biznext-ui-ylpaWxEFaTU-c","confirm-dialog-content":"biznext-ui-xwshXokj5ZA-c","confirm-dialog-body":"biznext-ui-K3-i0eWEQi8-2","confirm-dialog-icon-container":"biznext-ui-W86o6InrK1E-5","confirm-dialog-icon":"biznext-ui-PSIKxZhvjyo-3","confirm-dialog-footer":"biznext-ui-ffcW632vEe0-7","confirm-dialog-footer-close-btn":"biznext-ui-hDNTUYM-ra0-8","confirm-dialog-footer-confirm-btn":"biznext-ui-bFmcSx3W8Rs-6",info:"biznext-ui-wec4qWkj9NU-c",warning:"biznext-ui-mcehjNn9Nl0-9",danger:"biznext-ui-pYq-UQoFMHM-a",success:"biznext-ui-bgVORylkzc0-6"};function wh(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-confirm-dialog-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Fh=e=>{const{isOpen:t,onClose:n,config:i}=e,{type:r,title:s,description:o,icon:u,onConfirm:a,buttonContent:l}=i,c=()=>{n()},d=()=>{a(),n()};return A.jsx(wh,{children:A.jsx("div",{className:pe["confirm-dialog-wrapper"],children:A.jsx(Ri,{children:t&&A.jsx(Mt.div,{className:pe["confirm-dialog-overlay"],initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:A.jsx(Mt.div,{className:tt(pe["confirm-dialog"],pe[r]),initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:A.jsxs("div",{className:pe["confirm-dialog-content"],children:[A.jsxs("div",{className:pe["confirm-dialog-body"],children:[A.jsx("div",{className:pe["confirm-dialog-icon-container"],children:A.jsx("div",{className:pe["confirm-dialog-icon"],children:u||A.jsx(Vh,{})})}),A.jsxs("div",{children:[A.jsx("h2",{children:s}),A.jsx("p",{children:o})]})]}),A.jsxs("div",{className:pe["confirm-dialog-footer"],children:[A.jsx("button",{type:"button",className:pe["confirm-dialog-footer-close-btn"],onClick:c,children:l&&l.onCloseTitle?l.onCloseTitle:"Cancel"}),A.jsx("button",{type:"button",className:pe["confirm-dialog-footer-confirm-btn"],onClick:d,children:l&&l.onConfirmTitle?l.onConfirmTitle:"Confirm"})]})]})})})})})})},da=C.createContext({}),Bh=({children:e,toastPosition:t})=>{const n={toasts:[]};console.log(n,"initialState"),console.log(mr,"ToastReducer"),console.log(C.useReducer,"useReducer");const[i,r]=C.useReducer(mr,n);console.log(i,r,"state - setState");const s=(v,x,y)=>{const E=Th();r({type:"ADD_TOAST",payload:{id:E,title:x,type:v,config:y}})},d={success:(v,x)=>{s("success",v,x)},warning:(v,x)=>{s("warning",v,x)},info:(v,x)=>{s("info",v,x)},error:(v,x)=>{s("error",v,x)},removeToast:v=>{r({type:"DELETE_TOAST",payload:{id:v,title:"",type:""}})}},[f,h]=C.useState({}),[m,p]=C.useState(!1),g=v=>{h(v),p(!0)},b=()=>{p(!1)},I=g;return e?A.jsx(pr.Provider,{value:d,children:A.jsxs(da.Provider,{value:I,children:[A.jsx(Ph,{}),A.jsx(Ih,{toasts:i.toasts,toastPosition:t}),A.jsx(Fh,{isOpen:m,onClose:b,config:f}),e]})}):null},me={"modal-wrapper":"biznext-ui-n2Vjx4mdikE-9","modal-overlay":"biznext-ui-6sKjk6L11EQ-e",modal:"biznext-ui-Mao59ye15po-3",left:"biznext-ui-5bDq6-PrHF4-e","left-slider":"biznext-ui-dhv7A0opLyg-7",right:"biznext-ui-X9XXG3R3kc4-5","right-slider":"biznext-ui-EXk9iqQoKIU-1","top-left":"biznext-ui-agEjPkJufuY-6","top-center":"biznext-ui-CzoFpYQH5r0-0","top-right":"biznext-ui-e0SRVasbx2Q-7","bottom-left":"biznext-ui-jMdhucf3jH4-8","bottom-center":"biznext-ui-1ruLnzU-7Mg-d","bottom-right":"biznext-ui-IBxY5gMZXAs-2",center:"biznext-ui-g7IKSnXitqg-8",full:"biznext-ui-T4NhvYHqFMo-4","modal-content":"biznext-ui-1F-uEUK7Izg-d","modal-header":"biznext-ui-nWO9WSw4Ix8-9","module-header-close-btn":"biznext-ui-kCEeyonkTlE-9","modal-title":"biznext-ui-r-WKlIAFS20-a","modal-body":"biznext-ui-7AJhK9Yn-KQ-e","modal-footer":"biznext-ui-lUyv0bpMUw4-9","modal-footer-close-btn":"biznext-ui-acScPNehEic-6"};function Gh(e){return Ye({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function Mh(e){const{children:t}=e,[n,i]=C.useState(!1);C.useEffect(()=>{i(!0)},[]);const r=document.getElementById("biznext-ui-modal-portal");return n&&r?Re.createPortal(t,r):Re.createPortal(t,document.body)}const Xi=C.createContext({onClose:()=>console.warn("Biznext-UI-Modal: Close Function not Implemented!")}),ct=e=>{const{type:t,index:n,height:i,width:r,sx:s,isOpen:o,onClose:u,children:a}=e;return A.jsx(Xi.Provider,{value:{onClose:u},children:A.jsx(Mh,{children:A.jsx(Ri,{children:o&&A.jsxs("div",{className:me["modal-wrapper"],children:[A.jsx(Mt.div,{className:me["modal-overlay"],style:{zIndex:9999+(n||0)},onClick:u,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),A.jsx(Mt.div,{initial:{opacity:0,scale:.95},className:tt(me.modal,me[t]),style:{height:i,width:r,zIndex:99999+(n||0),...s},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},children:a})]})})})})},Dh=ct,Nh=({children:e})=>A.jsx("div",{className:me["modal-content"],children:e}),Lh=({children:e})=>{const{onClose:t}=C.useContext(Xi);return A.jsxs("header",{id:"handle",className:me["modal-header"],children:[e,A.jsx("button",{type:"button",className:me["module-header-close-btn"],onClick:t,children:A.jsx(Gh,{})})]})},Wh=({children:e})=>A.jsx("h2",{className:me["modal-title"],children:e}),Rh=({children:e})=>A.jsx("div",{className:me["modal-body"],children:e}),Oh=e=>{const{children:t,closeTitle:n}=e,{onClose:i}=C.useContext(Xi);return A.jsxs("footer",{className:me["modal-footer"],children:[t,A.jsx("button",{type:"button",className:me["modal-footer-close-btn"],onClick:i,children:n||"Cancel"})]})};ct.Content=Nh,ct.Header=Lh,ct.Title=Wh,ct.Body=Rh,ct.Footer=Oh;const Xh=()=>C.useContext(da),ge={form:"biznext-ui-WgISRe1bJDU-5","form-group":"biznext-ui-PDYbgOuoFL0-3","form-input-group":"biznext-ui-7dIDGqcfwy4-e","form-input-group-label":"biznext-ui-3qrluRcbSyQ-d",required:"biznext-ui-S1AWtF9fE-s-4","form-input-control-group":"biznext-ui-GQweSyKURD4-1","form-input-control":"biznext-ui-Pxa8kMsnvaQ-3","validation-error":"biznext-ui-B7sgFlayyBI-0","form-select-control":"biznext-ui-TyZSBF2HLh0-4","form-input-group-error-text":"biznext-ui-npOI3UC2M38-9"};function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Zh(e,t){if(qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(qe(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fa(e){var t=Zh(e,"string");return qe(t)=="symbol"?t:t+""}function Dt(e,t,n){return(t=fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ha(Object(n),!0).forEach(function(i){Dt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hh(e){if(Array.isArray(e))return e}function kh(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,s,o,u=[],a=!0,l=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);a=!0);}catch(c){l=!0,r=c}finally{try{if(!a&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return u}}function Zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function pa(e,t){if(e){if(typeof e=="string")return Zi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zi(e,t):void 0}}function zh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
14
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e,t){return Hh(e)||kh(e,t)||pa(e,t)||zh()}function jh(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function Le(e,t){if(e==null)return{};var n,i,r=jh(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Yh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jh(e){var t=e.defaultInputValue,n=t===void 0?"":t,i=e.defaultMenuIsOpen,r=i===void 0?!1:i,s=e.defaultValue,o=s===void 0?null:s,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=Le(e,Yh),p=C.useState(u!==void 0?u:n),g=Ne(p,2),b=g[0],I=g[1],v=C.useState(a!==void 0?a:r),x=Ne(v,2),y=x[0],E=x[1],T=C.useState(h!==void 0?h:o),S=Ne(T,2),M=S[0],N=S[1],k=C.useCallback(function(_,Ee){typeof l=="function"&&l(_,Ee),N(_)},[l]),Y=C.useCallback(function(_,Ee){var be;typeof c=="function"&&(be=c(_,Ee)),I(be!==void 0?be:_)},[c]),ce=C.useCallback(function(){typeof f=="function"&&f(),E(!0)},[f]),oe=C.useCallback(function(){typeof d=="function"&&d(),E(!1)},[d]),D=u!==void 0?u:b,R=a!==void 0?a:y,ie=h!==void 0?h:M;return w(w({},m),{},{inputValue:D,menuIsOpen:R,onChange:k,onInputChange:Y,onMenuClose:oe,onMenuOpen:ce,value:ie})}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},B.apply(null,arguments)}function Uh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ma(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,fa(i.key),i)}}function _h(e,t,n){return t&&ma(e.prototype,t),n&&ma(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hi(e,t){return Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hi(e,t)}function Qh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hi(e,t)}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(e)}function ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ga=function(){return!!e})()}function $h(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kh(e,t){if(t&&(qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $h(e)}function qh(e){var t=ga();return function(){var n,i=hn(e);if(t){var r=hn(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Kh(this,n)}}function ep(e){if(Array.isArray(e))return Zi(e)}function tp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function np(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
15
15
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ki(e){return ep(e)||tp(e)||pa(e)||np()}var ip=!1;function rp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var op=function(){function e(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!ip:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sp(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=rp(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e}(),ne="-ms-",pn="-moz-",L="-webkit-",ba="comm",zi="rule",ji="decl",ap="@import",va="@keyframes",up="@layer",lp=Math.abs,mn=String.fromCharCode,cp=Object.assign;function dp(e,t){return q(e,0)^45?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}function ya(e){return e.trim()}function fp(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,n){return e.replace(t,n)}function Yi(e,t){return e.indexOf(t)}function q(e,t){return e.charCodeAt(t)|0}function Nt(e,t,n){return e.slice(t,n)}function xe(e){return e.length}function Ji(e){return e.length}function gn(e,t){return t.push(e),e}function hp(e,t){return e.map(t).join("")}var bn=1,dt=1,Ca=0,se=0,U=0,ft="";function vn(e,t,n,i,r,s,o){return{value:e,root:t,parent:n,type:i,props:r,children:s,line:bn,column:dt,length:o,return:""}}function Lt(e,t){return cp(vn("",null,null,"",null,null,0),e,{length:-e.length},t)}function pp(){return U}function mp(){return U=se>0?q(ft,--se):0,dt--,U===10&&(dt=1,bn--),U}function le(){return U=se<Ca?q(ft,se++):0,dt++,U===10&&(dt=1,bn++),U}function Ae(){return q(ft,se)}function yn(){return se}function Wt(e,t){return Nt(ft,e,t)}function Rt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ia(e){return bn=dt=1,Ca=xe(ft=e),se=0,[]}function xa(e){return ft="",e}function Cn(e){return ya(Wt(se-1,Ui(e===91?e+2:e===40?e+1:e)))}function gp(e){for(;(U=Ae())&&U<33;)le();return Rt(e)>2||Rt(U)>3?"":" "}function bp(e,t){for(;--t&&le()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Wt(e,yn()+(t<6&&Ae()==32&&le()==32))}function Ui(e){for(;le();)switch(U){case e:return se;case 34:case 39:e!==34&&e!==39&&Ui(U);break;case 40:e===41&&Ui(e);break;case 92:le();break}return se}function vp(e,t){for(;le()&&e+U!==57;)if(e+U===84&&Ae()===47)break;return"/*"+Wt(t,se-1)+"*"+mn(e===47?e:le())}function yp(e){for(;!Rt(Ae());)le();return Wt(e,se)}function Cp(e){return xa(In("",null,null,null,[""],e=Ia(e),0,[0],e))}function In(e,t,n,i,r,s,o,u,a){for(var l=0,c=0,d=o,f=0,h=0,m=0,p=1,g=1,b=1,I=0,v="",x=r,y=s,E=i,T=v;g;)switch(m=I,I=le()){case 40:if(m!=108&&q(T,d-1)==58){Yi(T+=W(Cn(I),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Cn(I);break;case 9:case 10:case 13:case 32:T+=gp(m);break;case 92:T+=bp(yn()-1,7);continue;case 47:switch(Ae()){case 42:case 47:gn(Ip(vp(le(),yn()),t,n),a);break;default:T+="/"}break;case 123*p:u[l++]=xe(T)*b;case 125*p:case 59:case 0:switch(I){case 0:case 125:g=0;case 59+c:b==-1&&(T=W(T,/\f/g,"")),h>0&&xe(T)-d&&gn(h>32?Sa(T+";",i,n,d-1):Sa(W(T," ","")+";",i,n,d-2),a);break;case 59:T+=";";default:if(gn(E=Aa(T,t,n,l,c,r,u,v,x=[],y=[],d),s),I===123)if(c===0)In(T,t,E,E,x,s,d,u,y);else switch(f===99&&q(T,3)===110?100:f){case 100:case 108:case 109:case 115:In(e,E,E,i&&gn(Aa(e,E,E,0,0,r,u,v,r,x=[],d),y),r,y,d,u,i?x:y);break;default:In(T,E,E,E,[""],y,0,u,y)}}l=c=h=0,p=b=1,v=T="",d=o;break;case 58:d=1+xe(T),h=m;default:if(p<1){if(I==123)--p;else if(I==125&&p++==0&&mp()==125)continue}switch(T+=mn(I),I*p){case 38:b=c>0?1:(T+="\f",-1);break;case 44:u[l++]=(xe(T)-1)*b,b=1;break;case 64:Ae()===45&&(T+=Cn(le())),f=Ae(),c=d=xe(v=T+=yp(yn())),I++;break;case 45:m===45&&xe(T)==2&&(p=0)}}return s}function Aa(e,t,n,i,r,s,o,u,a,l,c){for(var d=r-1,f=r===0?s:[""],h=Ji(f),m=0,p=0,g=0;m<i;++m)for(var b=0,I=Nt(e,d+1,d=lp(p=o[m])),v=e;b<h;++b)(v=ya(p>0?f[b]+" "+I:W(I,/&\f/g,f[b])))&&(a[g++]=v);return vn(e,t,n,r===0?zi:u,a,l,c)}function Ip(e,t,n){return vn(e,t,n,ba,mn(pp()),Nt(e,2,-2),0)}function Sa(e,t,n,i){return vn(e,t,n,ji,Nt(e,0,i),Nt(e,i+1,-1),i)}function ht(e,t){for(var n="",i=Ji(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function xp(e,t,n,i){switch(e.type){case up:if(e.children.length)break;case ap:case ji:return e.return=e.return||e.value;case ba:return"";case va:return e.return=e.value+"{"+ht(e.children,i)+"}";case zi:e.value=e.props.join(",")}return xe(n=ht(e.children,i))?e.return=e.value+"{"+n+"}":""}function Ap(e){var t=Ji(e);return function(n,i,r,s){for(var o="",u=0;u<t;u++)o+=e[u](n,i,r,s)||"";return o}}function Sp(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ep(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Tp=function(t,n,i){for(var r=0,s=0;r=s,s=Ae(),r===38&&s===12&&(n[i]=1),!Rt(s);)le();return Wt(t,se)},Pp=function(t,n){var i=-1,r=44;do switch(Rt(r)){case 0:r===38&&Ae()===12&&(n[i]=1),t[i]+=Tp(se-1,n,i);break;case 2:t[i]+=Cn(r);break;case 4:if(r===44){t[++i]=Ae()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=mn(r)}while(r=le());return t},Vp=function(t,n){return xa(Pp(Ia(t),n))},Ea=new WeakMap,wp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ea.get(i))&&!r){Ea.set(t,!0);for(var s=[],o=Vp(n,s),u=i.props,a=0,l=0;a<o.length;a++)for(var c=0;c<u.length;c++,l++)t.props[l]=s[a]?o[a].replace(/&\f/g,u[c]):u[c]+" "+o[a]}}},Fp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ta(e,t){switch(dp(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+pn+e+ne+e+e;case 6828:case 4268:return L+e+ne+e+e;case 6165:return L+e+ne+"flex-"+e+e;case 5187:return L+e+W(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+ne+"flex-$1$2")+e;case 5443:return L+e+ne+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return L+e+ne+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+ne+W(e,"shrink","negative")+e;case 5292:return L+e+ne+W(e,"basis","preferred-size")+e;case 6060:return L+"box-"+W(e,"-grow","")+L+e+ne+W(e,"grow","positive")+e;case 4554:return L+W(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(q(e,t+1)){case 109:if(q(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+pn+(q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yi(e,"stretch")?Ta(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(q(e,t+1)!==115)break;case 6444:switch(q(e,xe(e)-3-(~Yi(e,"!important")&&10))){case 107:return W(e,":",":"+L)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(q(e,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+ne+"$2box$3")+e}break;case 5936:switch(q(e,t+11)){case 114:return L+e+ne+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+ne+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+ne+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+ne+e+e}return e}var Bp=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case ji:t.return=Ta(t.value,t.length);break;case va:return ht([Lt(t,{value:W(t.value,"@","@"+L)})],r);case zi:if(t.length)return hp(t.props,function(s){switch(fp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ht([Lt(t,{props:[W(s,/:(read-\w+)/,":"+pn+"$1")]})],r);case"::placeholder":return ht([Lt(t,{props:[W(s,/:(plac\w+)/,":"+L+"input-$1")]}),Lt(t,{props:[W(s,/:(plac\w+)/,":"+pn+"$1")]}),Lt(t,{props:[W(s,/:(plac\w+)/,ne+"input-$1")]})],r)}return""})}},Gp=[Bp],Mp=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=t.stylisPlugins||Gp,s={},o,u=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)s[g[b]]=!0;u.push(p)});var a,l=[wp,Fp];{var c,d=[xp,Sp(function(p){c.insert(p)})],f=Ap(l.concat(r,d)),h=function(g){return ht(Cp(g),f)};a=function(g,b,I,v){c=I,h(g?g+"{"+b.styles+"}":b.styles),v&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new op({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return m.sheet.hydrate(u),m},_i={exports:{}},X={};/** @license React v16.13.1
16
16
  * react-is.production.min.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biznext-ui/react",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "private": false,
5
5
  "author": "Biznext Team",
6
6
  "description": "Responsive and accessible React UI components!",