forstok-ui-lib 1.0.9 → 1.0.11

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"styled-components";function a(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var i,l={exports:{}},c={};var s,p,u={};
1
+ import e,{useState as r,useEffect as t,useRef as n}from"react";import o,{css as a}from"styled-components";function i(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}"function"==typeof SuppressedError&&SuppressedError;var l,c={exports:{}},s={};var p,d,u={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,34 +7,34 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function d(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){function r(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===U?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case _:return"Portal";case O:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case C:return(e.displayName||"Context")+".Provider";case R:return(e._context.displayName||"Context")+".Consumer";case E:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(n=e.displayName||null)?n:r(e.type)||"Memo";case F:n=e._payload,e=e._init;try{return r(e(n))}catch(e){}}return null}function n(e){return""+e}function t(e){try{n(e);var r=!1}catch(e){r=!0}if(r){var t=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function o(){}function a(e){if(void 0===V)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||"",W=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+V+e+W}function i(e,r){if(!e||J)return"";var n=X.get(e);if(void 0!==n)return n;J=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var t;t=L.H,L.H=null,function(){if(0===M){v=console.log,m=console.info,b=console.warn,h=console.error,g=console.group,w=console.groupCollapsed,k=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}();try{var i={DetermineComponentFrameRoot:function(){try{if(r){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var t=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){t=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){t=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&t&&"string"==typeof e.stack)return[e.stack,t.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),s=c[0],p=c[1];if(s&&p){var u=s.split("\n"),d=p.split("\n");for(c=l=0;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;for(;c<d.length&&!d[c].includes("DetermineComponentFrameRoot");)c++;if(l===u.length||c===d.length)for(l=u.length-1,c=d.length-1;1<=l&&0<=c&&u[l]!==d[c];)c--;for(;1<=l&&0<=c;l--,c--)if(u[l]!==d[c]){if(1!==l||1!==c)do{if(l--,0>--c||u[l]!==d[c]){var f="\n"+u[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&X.set(e,f),f}}while(1<=l&&0<=c);break}}}finally{J=!1,L.H=t,function(){if(0==--M){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:v}),info:I({},e,{value:m}),warn:I({},e,{value:b}),error:I({},e,{value:h}),group:I({},e,{value:g}),groupCollapsed:I({},e,{value:w}),groupEnd:I({},e,{value:k})})}0>M&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return u=(u=e?e.displayName||e.name:"")?a(u):"","function"==typeof e&&X.set(e,u),u}function l(e){if(null==e)return"";if("function"==typeof e){var r=e.prototype;return i(e,!(!r||!r.isReactComponent))}if("string"==typeof e)return a(e);switch(e){case N:return a("Suspense");case D:return a("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case E:return e=i(e.render,!1);case P:return l(e.type);case F:r=e._payload,e=e._init;try{return l(e(r))}catch(e){}}return""}function c(){var e=L.A;return null===e?null:e.getOwner()}function s(){var e=r(this.type);return q[e]||(q[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function p(e,n,o,a,i,l){if("string"==typeof e||"function"==typeof e||e===j||e===O||e===S||e===N||e===D||e===T||"object"==typeof e&&null!==e&&(e.$$typeof===F||e.$$typeof===P||e.$$typeof===C||e.$$typeof===R||e.$$typeof===E||e.$$typeof===B||void 0!==e.getModuleId)){var p=n.children;if(void 0!==p)if(a)if(K(p)){for(a=0;a<p.length;a++)d(p[a],e);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(p,e)}else p="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?a="null":K(e)?a="array":void 0!==e&&e.$$typeof===$?(a="<"+(r(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,p);if(z.call(n,"key")){p=r(e);var u=Object.keys(n).filter((function(e){return"key"!==e}));a=0<u.length?"{key: someKey, "+u.join(": ..., ")+": ...}":"{key: someKey}",G[p+a]||(u=0<u.length?"{"+u.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,p,u,p),G[p+a]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(n)&&(t(n.key),p=""+n.key),"key"in n)for(var f in o={},n)"key"!==f&&(o[f]=n[f]);else o=n;return p&&function(e,r){function n(){H||(H=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,n,t,o,a){return n=a.ref,e={$$typeof:$,type:e,key:r,props:a,_owner:o},null!==(void 0!==n?n:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:s}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,l,0,c(),o)}function d(e,r){if("object"==typeof e&&e&&e.$$typeof!==Y)if(K(e))for(var n=0;n<e.length;n++){var t=e[n];f(t)&&y(t,r)}else if(f(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=A&&e[A]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)f(e.value)&&y(e.value,r)}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===$}function y(e,n){if(e._store&&!e._store.validated&&null==e.key&&(e._store.validated=1,n=function(e){var n="",t=c();return t&&(t=r(t.type))&&(n="\n\nCheck the render method of `"+t+"`."),n||(e=r(e))&&(n="\n\nCheck the top-level render call using <"+e+">."),n}(n),!Q[n])){Q[n]=!0;var t="";e&&null!=e._owner&&e._owner!==c()&&(t=null,"number"==typeof e._owner.tag?t=r(e._owner.type):"string"==typeof e._owner.name&&(t=e._owner.name),t=" It was passed a child from "+t+".");var o=L.getCurrentStack;L.getCurrentStack=function(){var r=l(e.type);return o&&(r+=o()||""),r},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,t),L.getCurrentStack=o}}var v,m,b,h,g,w,k,x=e,$=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),A=Symbol.iterator,U=Symbol.for("react.client.reference"),L=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,I=Object.assign,B=Symbol.for("react.client.reference"),K=Array.isArray,M=0;o.__reactDisabledLog=!0;var V,W,H,J=!1,X=new("function"==typeof WeakMap?WeakMap:Map),Y=Symbol.for("react.client.reference"),q={},G={},Q={};u.Fragment=j,u.jsx=function(e,r,n,t,o){return p(e,r,n,!1,0,o)},u.jsxs=function(e,r,n,t,o){return p(e,r,n,!0,0,o)}}()),u}var f=(p||(p=1,"production"===process.env.NODE_ENV?l.exports=function(){if(i)return c;i=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(r,n,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==n.key&&(o=""+n.key),"key"in n)for(var a in t={},n)"key"!==a&&(t[a]=n[a]);else t=n;return n=t.ref,{$$typeof:e,type:r,key:o,ref:void 0!==n?n:null,props:t}}return c.Fragment=r,c.jsx=n,c.jsxs=n,c}():l.exports=d()),l.exports);const y=o`
10
+ */function f(){return p||(p=1,"production"!==process.env.NODE_ENV&&function(){function r(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case _:return"Portal";case O:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case F:return"SuspenseList"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case R:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:r(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return r(e(t))}catch(e){}}return null}function t(e){return""+e}function n(e){try{t(e);var r=!1}catch(e){r=!0}if(r){var n=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function o(){}function a(e){if(void 0===V)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||"",W=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+V+e+W}function i(e,r){if(!e||H)return"";var t=J.get(e);if(void 0!==t)return t;H=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n;n=L.H,L.H=null,function(){if(0===M){y=console.log,g=console.info,h=console.warn,m=console.error,b=console.group,w=console.groupCollapsed,x=console.groupEnd;var e={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}M++}();try{var i={DetermineComponentFrameRoot:function(){try{if(r){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}(t=e())&&"function"==typeof t.catch&&t.catch((function(){}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),s=c[0],p=c[1];if(s&&p){var d=s.split("\n"),u=p.split("\n");for(c=l=0;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;for(;c<u.length&&!u[c].includes("DetermineComponentFrameRoot");)c++;if(l===d.length||c===u.length)for(l=d.length-1,c=u.length-1;1<=l&&0<=c&&d[l]!==u[c];)c--;for(;1<=l&&0<=c;l--,c--)if(d[l]!==u[c]){if(1!==l||1!==c)do{if(l--,0>--c||d[l]!==u[c]){var f="\n"+d[l].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&J.set(e,f),f}}while(1<=l&&0<=c);break}}}finally{H=!1,L.H=n,function(){if(0==--M){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:y}),info:I({},e,{value:g}),warn:I({},e,{value:h}),error:I({},e,{value:m}),group:I({},e,{value:b}),groupCollapsed:I({},e,{value:w}),groupEnd:I({},e,{value:x})})}0>M&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=t}return d=(d=e?e.displayName||e.name:"")?a(d):"","function"==typeof e&&J.set(e,d),d}function l(e){if(null==e)return"";if("function"==typeof e){var r=e.prototype;return i(e,!(!r||!r.isReactComponent))}if("string"==typeof e)return a(e);switch(e){case N:return a("Suspense");case F:return a("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case E:return e=i(e.render,!1);case D:return l(e.type);case P:r=e._payload,e=e._init;try{return l(e(r))}catch(e){}}return""}function c(){var e=L.A;return null===e?null:e.getOwner()}function s(){var e=r(this.type);return Y[e]||(Y[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function p(e,t,o,a,i,l){if("string"==typeof e||"function"==typeof e||e===j||e===O||e===S||e===N||e===F||e===T||"object"==typeof e&&null!==e&&(e.$$typeof===P||e.$$typeof===D||e.$$typeof===R||e.$$typeof===C||e.$$typeof===E||e.$$typeof===B||void 0!==e.getModuleId)){var p=t.children;if(void 0!==p)if(a)if(K(p)){for(a=0;a<p.length;a++)d(p[a],e);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(p,e)}else p="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),null===e?a="null":K(e)?a="array":void 0!==e&&e.$$typeof===$?(a="<"+(r(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,p);if(z.call(t,"key")){p=r(e);var u=Object.keys(t).filter((function(e){return"key"!==e}));a=0<u.length?"{key: someKey, "+u.join(": ..., ")+": ...}":"{key: someKey}",G[p+a]||(u=0<u.length?"{"+u.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,p,u,p),G[p+a]=!0)}if(p=null,void 0!==o&&(n(o),p=""+o),function(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(t)&&(n(t.key),p=""+t.key),"key"in t)for(var f in o={},t)"key"!==f&&(o[f]=t[f]);else o=t;return p&&function(e,r){function t(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,t,n,o,a){return t=a.ref,e={$$typeof:$,type:e,key:r,props:a,_owner:o},null!==(void 0!==t?t:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:s}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,l,0,c(),o)}function d(e,r){if("object"==typeof e&&e&&e.$$typeof!==X)if(K(e))for(var t=0;t<e.length;t++){var n=e[t];f(n)&&v(n,r)}else if(f(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?t=null:t="function"==typeof(t=U&&e[U]||e["@@iterator"])?t:null,"function"==typeof t&&t!==e.entries&&(t=t.call(e))!==e)for(;!(e=t.next()).done;)f(e.value)&&v(e.value,r)}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===$}function v(e,t){if(e._store&&!e._store.validated&&null==e.key&&(e._store.validated=1,t=function(e){var t="",n=c();return n&&(n=r(n.type))&&(t="\n\nCheck the render method of `"+n+"`."),t||(e=r(e))&&(t="\n\nCheck the top-level render call using <"+e+">."),t}(t),!Q[t])){Q[t]=!0;var n="";e&&null!=e._owner&&e._owner!==c()&&(n=null,"number"==typeof e._owner.tag?n=r(e._owner.type):"string"==typeof e._owner.name&&(n=e._owner.name),n=" It was passed a child from "+n+".");var o=L.getCurrentStack;L.getCurrentStack=function(){var r=l(e.type);return o&&(r+=o()||""),r},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',t,n),L.getCurrentStack=o}}var y,g,h,m,b,w,x,k=e,$=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),R=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),U=Symbol.iterator,A=Symbol.for("react.client.reference"),L=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,I=Object.assign,B=Symbol.for("react.client.reference"),K=Array.isArray,M=0;o.__reactDisabledLog=!0;var V,W,q,H=!1,J=new("function"==typeof WeakMap?WeakMap:Map),X=Symbol.for("react.client.reference"),Y={},G={},Q={};u.Fragment=j,u.jsx=function(e,r,t,n,o){return p(e,r,t,!1,0,o)},u.jsxs=function(e,r,t,n,o){return p(e,r,t,!0,0,o)}}()),u}var v=(d||(d=1,"production"===process.env.NODE_ENV?c.exports=function(){if(l)return s;l=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(r,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return t=n.ref,{$$typeof:e,type:r,key:o,ref:void 0!==t?t:null,props:n}}return s.Fragment=r,s.jsx=t,s.jsxs=t,s}():c.exports=f()),c.exports);const y=a`
11
11
  overflow: hidden;
12
12
  text-overflow: ellipsis;
13
13
  white-space: nowrap;
14
14
  display: block;
15
15
  max-width: 100%;
16
16
  width: auto;
17
- `,v=t.span`
17
+ `,g=o.span`
18
18
  display: grid;
19
19
  i {
20
20
  display: inline-block;
21
21
  margin-left: 5px;
22
22
  }
23
- ${({$color:e,$elipsis:r})=>{let n="";return"mute"===e?n+="\n color: var(--mt-clr);\n ":"blue"===e?n+="\n color: var(--pri-clr-lnk__hvr);\n ":"green"===e?n+="\n color: green;\n ":"red"===e?n+="\n color: var(--sta-clr);\n ":"grey"===e||"darkgrey"===e?n+="\n color: var(--mt-clr);\n ":"supergrey"===e?n+="\n color: #929291;\n ":"orange"===e?n+="\n color: orange;\n ":"black"===e?n+="\n color: #000000;\n ":"lightgreen"===e?n+="\n color: #21BA45;\n ":"mate"===e?n+="\n color: #495057;\n ":"initial"===e&&(n+="\n color: var(--pri-clr);\n "),r&&(n+=y),n}}
24
- `,m=e=>{var{children:r,$color:n,$elipsis:t=!0}=e,o=a(e,["children","$color","$elipsis"]);return f.jsx(v,Object.assign({$elipsis:!!t,$color:n},o,{children:r}))};o`
23
+ ${({$color:e,$elipsis:r})=>{let t="";return"mute"===e?t+="\n color: var(--mt-clr);\n ":"blue"===e?t+="\n color: var(--pri-clr-lnk__hvr);\n ":"green"===e?t+="\n color: green;\n ":"red"===e?t+="\n color: var(--sta-clr);\n ":"grey"===e||"darkgrey"===e?t+="\n color: var(--mt-clr);\n ":"supergrey"===e?t+="\n color: #929291;\n ":"orange"===e?t+="\n color: orange;\n ":"black"===e?t+="\n color: #000000;\n ":"lightgreen"===e?t+="\n color: #21BA45;\n ":"mate"===e?t+="\n color: #495057;\n ":"initial"===e&&(t+="\n color: var(--pri-clr);\n "),r&&(t+=y),t}}
24
+ `,h=e=>{var{children:r,$color:t,$elipsis:n=!0}=e,o=i(e,["children","$color","$elipsis"]);return v.jsx(g,Object.assign({$elipsis:!!n,$color:t},o,{children:r}))};a`
25
25
  list-style: none;
26
26
  padding: 0;
27
27
  margin: 0;
28
- `,o`
28
+ `,a`
29
29
  width: 100%;
30
- `,o`
30
+ `,a`
31
31
  overflow: hidden;
32
32
  text-overflow: ellipsis;
33
33
  white-space: nowrap;
34
34
  display: block;
35
35
  max-width: 100%;
36
36
  width: auto;
37
- `;const b=o`
37
+ `;const m=a`
38
38
  display: -webkit-box !important;
39
39
  -webkit-line-clamp: 2;
40
40
  -webkit-box-orient: vertical;
@@ -43,7 +43,7 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
43
43
  overflow-wrap: anywhere;
44
44
  word-break: break-all;
45
45
  line-height: 16px;
46
- `;o`
46
+ `;a`
47
47
  display: -webkit-box !important;
48
48
  -webkit-line-clamp: 3 !important;
49
49
  -webkit-box-orient: vertical !important;
@@ -52,27 +52,27 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
52
52
  overflow-wrap: anywhere !important;
53
53
  word-break: break-word !important;
54
54
  line-height: 16px;
55
- `,o`
55
+ `,a`
56
56
  background-color: var(--pri-clr-bg);
57
57
  box-shadow: var(--pri-shd-bx);
58
58
  border-radius: var(--pri-rd);
59
59
  border: 1px solid var(--lay-clr-ln);
60
- `,o`
60
+ `,a`
61
61
  background-color: var(--pri-clr-bg);
62
62
  border: 1px solid var(--sec-clr-ln);
63
63
  box-shadow: var(--sec-shd-bx);
64
64
  border-radius: var(--sec-rd);
65
- `,o`
65
+ `,a`
66
66
  font-size: 12px;
67
67
  font-weight: 600;
68
68
  letter-spacing: 0.3px;
69
69
  text-transform: capitalize;
70
- `,o`
70
+ `,a`
71
71
  color: var(--hd-clr);
72
72
  font-weight: 600;
73
73
  font-size: 13px;
74
74
  text-transform: capitalize;
75
- `;const h=o`
75
+ `;const b=a`
76
76
  color: var(--pri-clr-lnk);
77
77
  &,
78
78
  &:hover {
@@ -81,7 +81,7 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
81
81
  &:hover {
82
82
  color: var(--pri-clr-lnk__hvr);
83
83
  }
84
- `,g=o`
84
+ `,w=a`
85
85
  color: var(--pri-clr-lnk);
86
86
  &,
87
87
  &:hover {
@@ -90,7 +90,7 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
90
90
  &:hover {
91
91
  color: var(--sec-clr-lnk__hvr);
92
92
  }
93
- `,w=o`
93
+ `,x=a`
94
94
  position: relative;
95
95
  display: inline-grid;
96
96
  padding: 0 16px;
@@ -104,22 +104,88 @@ import e,{useState as r,useEffect as n}from"react";import t,{css as o}from"style
104
104
  &:hover {
105
105
  text-decoration: none;
106
106
  }
107
- `,k=({mode:e,$elipsis:r,$activated:n,$shadow:t,disabled:o})=>{let a="";return"clear"===e?a+=h:"clearR"===e?a+=g:"blue"===e?a+="\n &, &:hover {\n color: var(--pri-clr-lnk__hvr);\n text-decoration: none;\n }\n ":"trans"===e?a+=w+"\n height: auto;\n padding: 0;\n opacity: 1;\n &, \n &:hover { \n color: var(--pri-clr-lnk__hvr);\n text-decoration: none;\n } \n &:hover {\n opacity: .9; \n }\n ":"hover"===e?a+=w+"\n height: auto;\n width: max-content;\n padding: 3px 6px;\n position: relative;\n left: -6px;\n color: initial;\n grid-gap: 4px;\n &:hover { \n border-radius: var(--ter-rd);\n box-shadow: 1px 1px var(--pri-clr-ln);\n background-color: var(--mt-clr-bg__fc);\n text-decoration: none;\n }\n ":"whiteB"===e?a+=w+"\n color: var(--ter-clr);\n background-color: var(--cl-clr-bg);\n border: 1px solid var(--sec-clr-ln);\n &, \n &:hover { \n background-color: var(--cl-clr-bg__hvr);\n } \n ":"redB"===e?a+=w+"\n color: var(--act-clr);\n background-color: var(--act-clr-bg);\n &:hover {\n background-color: var(--act-clr-bg__hvr);\n } \n ":"greyB"===e&&(a+=w+"\n color: var(--act-clr);\n background-color: var(--mt-clr-bg__fc);\n &:hover {\n background-color: var(--cl-clr-bg__hvr);\n } \n "),n&&(a+="\n color: var(--sta-clr);\n font-weight: 400;\n ","clear"!==e&&"clearR"!==e||(a+="\n color: var(--pri-clr-lnk__act);\n font-weight: 600;\n ")),r&&(a+=`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n width: auto;\n ${b}\n `),t&&(a+="\n box-shadow: var(--act-shd-bx);\n "),o&&(a+="\n color: #A9A9A9;\n opacity: 0.7;\n pointer-events: none;\n "),a},x=t.a`
107
+ `,k=({mode:e,$elipsis:r,$activated:t,$shadow:n,disabled:o})=>{let a="";return"clear"===e?a+=b:"clearR"===e?a+=w:"blue"===e?a+="\n &, &:hover {\n color: var(--pri-clr-lnk__hvr);\n text-decoration: none;\n }\n ":"trans"===e?a+=x+"\n height: auto;\n padding: 0;\n opacity: 1;\n &, \n &:hover { \n color: var(--pri-clr-lnk__hvr);\n text-decoration: none;\n } \n &:hover {\n opacity: .9; \n }\n ":"hover"===e?a+=x+"\n height: auto;\n width: max-content;\n padding: 3px 6px;\n position: relative;\n left: -6px;\n color: initial;\n grid-gap: 4px;\n &:hover { \n border-radius: var(--ter-rd);\n box-shadow: 1px 1px var(--pri-clr-ln);\n background-color: var(--mt-clr-bg__fc);\n text-decoration: none;\n }\n ":"whiteB"===e?a+=x+"\n color: var(--ter-clr);\n background-color: var(--cl-clr-bg);\n border: 1px solid var(--sec-clr-ln);\n &, \n &:hover { \n background-color: var(--cl-clr-bg__hvr);\n } \n ":"redB"===e?a+=x+"\n color: var(--act-clr);\n background-color: var(--act-clr-bg);\n &:hover {\n background-color: var(--act-clr-bg__hvr);\n } \n ":"greyB"===e&&(a+=x+"\n color: var(--act-clr);\n background-color: var(--mt-clr-bg__fc);\n &:hover {\n background-color: var(--cl-clr-bg__hvr);\n } \n "),t&&(a+="\n color: var(--sta-clr);\n font-weight: 400;\n ","clear"!==e&&"clearR"!==e||(a+="\n color: var(--pri-clr-lnk__act);\n font-weight: 600;\n ")),r&&(a+=`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n max-width: 100%;\n width: auto;\n ${m}\n `),n&&(a+="\n box-shadow: var(--act-shd-bx);\n "),o&&(a+="\n color: #A9A9A9;\n opacity: 0.7;\n pointer-events: none;\n "),a},$=o.a`
108
108
  ${k}
109
- `,$=t.span`
109
+ `,_=o.span`
110
110
  cursor:pointer;
111
111
  ${k}
112
- `,_=e=>{var{children:r,mode:n,$activated:t=!1,href:o,$elipsis:i=!1,$shadow:l=!1,disabled:c=!1}=e,s=a(e,["children","mode","$activated","href","$elipsis","$shadow","disabled"]);const{onClick:p}=s;return o?f.jsx(x,Object.assign({className:"_refLink",mode:n,$activated:t,$elipsis:i,$shadow:l,disabled:c,href:o},s,{children:r})):f.jsx($,Object.assign({className:"_refLink",mode:n,$activated:t,$elipsis:i,$shadow:l,disabled:c,onClick:p},s,{children:r}))},j=o`
112
+ `,j=e=>{var{children:r,mode:t,$activated:n=!1,href:o,$elipsis:a=!1,$shadow:l=!1,disabled:c=!1}=e,s=i(e,["children","mode","$activated","href","$elipsis","$shadow","disabled"]);const{onClick:p}=s;return o?v.jsx($,Object.assign({className:"_refLink",mode:t,$activated:n,$elipsis:a,$shadow:l,disabled:c,href:o},s,{children:r})):v.jsx(_,Object.assign({className:"_refLink",mode:t,$activated:n,$elipsis:a,$shadow:l,disabled:c,onClick:p},s,{children:r}))},S=a`
113
113
  border: 0;
114
114
  cursor: pointer;
115
115
  font-weight: 400;
116
116
  color: var(--sec-clr);
117
117
  background-color: var(--act-clr-bg);
118
- `,S=t.input`
118
+ `,O=o.input`
119
119
  &._refQuantitiyInput {
120
120
  width: 55px;
121
121
  text-align: center;
122
122
  }
123
- ${({width:e,height:r,$iconLeft:n,$iconRight:t,$isError:o,mode:a,type:i})=>{let l="";return n&&(l+=" \n padding-left: 35px; \n "),t&&(l+=" \n padding-right: 35px; \n "),o&&(l+=" \n border:1px solid var(--err-clr-ln) !important; \n "),r&&(l+=` \n height: ${r}px\n max-height: ${r}px\n `),"search"===a&&(l+=' \n background-color: transparent;\n &, &:not([type="submit"]):focus, &:active, &:active:focus {\n border: 1px solid transparent !important;\n outline: none !important;\n box-shadow: none !important;\n }\n ',n&&(l+=" \n padding-left: 39px; \n ")),"transaction"===a&&(l+="\n padding-left: 45px;\n "),e&&(l+=` \n width: ${e}px \n `),"submit"===i&&(l+=j),l}}
124
- `,O=e=>{var t,{mode:o,$isError:i,$iconLeft:l,$iconRight:c,reset:s,setReset:p,isForceUpdate:u,setForceUpdate:d,evChange:y,evBlur:v,isField:m,evChangeCustom:b,evEnter:h,evKeyUp:g}=e,w=a(e,["mode","$isError","$iconLeft","$iconRight","reset","setReset","isForceUpdate","setForceUpdate","evChange","evBlur","isField","evChangeCustom","evEnter","evKeyUp"]);const{type:k,name:x,defaultValue:$,defaultChecked:_}=w,j=null!==(t=null==$?void 0:$.toString())&&void 0!==t?t:"",[O,R]=r(j),[C,E]=r(_||!1);n((()=>{var e;if(u){const r=null!==(e=null==$?void 0:$.toString())&&void 0!==e?e:"";R(r),E(_||!1),d&&d(!1)}s&&(R(""),E(!1),p&&p(!1))}),[u,d,s,p,$,_,E,o]);const N=e=>{const r=e.target.value;R(r)};let D=Object.assign({},w);delete D.defaultValue,delete D.defaultChecked;const P=f.jsx(S,Object.assign({mode:o,$isError:i,$iconLeft:l,$iconRight:c,checked:C,value:O,onChange:e=>{N(e),y&&y(e)},onBlur:e=>{N(e),(e=>{if(v&&v(e),m&&h&&h(e),m&&x){const r="number"===k?parseInt(e.target.value):e.target.value.trim();b&&b(x,r)}})(e)},onKeyUp:e=>{g&&g(e),(e=>{"Enter"===e.key&&(e.preventDefault(),m&&h&&h(e))})(e)}},"number"===k&&{onKeyPress:e=>("number"===k&&(isNaN(Number(e.key))||void 0===e.key||""===e.key)&&e.preventDefault(),!0)},"number"===k&&{onPaste:e=>{const r=(e.clipboardData||window.clipboardData).getData("text").replace(/[^0-9]/g,"");e.preventDefault(),document.execCommand("insertText",!1,r)}},"number"===k&&{onFocus:e=>e.target.addEventListener("wheel",(function(e){e.preventDefault()}),{passive:!1})},"number"===k&&{min:"0"},D));return P};export{O as InputComponent,_ as LinkComponent,m as TextComponent};
123
+ ${({width:e,height:r,$iconLeft:t,$iconRight:n,$isError:o,mode:a,type:i})=>{let l="";return t&&(l+=" \n padding-left: 35px; \n "),n&&(l+=" \n padding-right: 35px; \n "),o&&(l+=" \n border:1px solid var(--err-clr-ln) !important; \n "),r&&(l+=` \n height: ${r}px\n max-height: ${r}px\n `),"search"===a&&(l+=' \n background-color: transparent;\n &, &:not([type="submit"]):focus, &:active, &:active:focus {\n border: 1px solid transparent !important;\n outline: none !important;\n box-shadow: none !important;\n }\n ',t&&(l+=" \n padding-left: 39px; \n ")),"transaction"===a&&(l+="\n padding-left: 45px;\n "),e&&(l+=` \n width: ${e}px \n `),"submit"===i&&(l+=S),l}}
124
+ `,C=e=>{var n,{mode:o,$isError:a,$iconLeft:l,$iconRight:c,reset:s,setReset:p,isForceUpdate:d,setForceUpdate:u,evChange:f,evBlur:y,isField:g,evChangeCustom:h,evEnter:m,evKeyUp:b}=e,w=i(e,["mode","$isError","$iconLeft","$iconRight","reset","setReset","isForceUpdate","setForceUpdate","evChange","evBlur","isField","evChangeCustom","evEnter","evKeyUp"]);const{type:x,name:k,defaultValue:$,defaultChecked:_}=w,j=null!==(n=null==$?void 0:$.toString())&&void 0!==n?n:"",[S,C]=r(j),[R,E]=r(_||!1);t((()=>{var e;if(d){const r=null!==(e=null==$?void 0:$.toString())&&void 0!==e?e:"";C(r),E(_||!1),u&&u(!1)}s&&(C(""),E(!1),p&&p(!1))}),[d,u,s,p,$,_,E,o]);const N=e=>{const r=e.target.value;C(r)};let F=Object.assign({},w);delete F.defaultValue,delete F.defaultChecked;const D=v.jsx(O,Object.assign({mode:o,$isError:a,$iconLeft:l,$iconRight:c,checked:R,value:S,onChange:e=>{N(e),f&&f(e)},onBlur:e=>{N(e),(e=>{if(y&&y(e),g&&m&&m(e),g&&k){const r="number"===x?parseInt(e.target.value):e.target.value.trim();h&&h(k,r)}})(e)},onKeyUp:e=>{b&&b(e),(e=>{"Enter"===e.key&&(e.preventDefault(),g&&m&&m(e))})(e)}},"number"===x&&{onKeyPress:e=>("number"===x&&(isNaN(Number(e.key))||void 0===e.key||""===e.key)&&e.preventDefault(),!0)},"number"===x&&{onPaste:e=>{const r=(e.clipboardData||window.clipboardData).getData("text").replace(/[^0-9]/g,"");e.preventDefault(),document.execCommand("insertText",!1,r)}},"number"===x&&{onFocus:e=>e.target.addEventListener("wheel",(function(e){e.preventDefault()}),{passive:!1})},"number"===x&&{min:"0"},F));return D},R=a`
125
+ position: absolute;
126
+ opacity: 0;
127
+ cursor: pointer;
128
+ height: 0;
129
+ width: 0;
130
+ `,E=a`
131
+ padding-right: 18px;
132
+ i {
133
+ position: absolute;
134
+ right: 8px;
135
+ top: 50%;
136
+ margin-top: -10px;
137
+ }
138
+ `,N=o.span`
139
+ position: absolute;
140
+ left: 0;
141
+ height: 14px;
142
+ width: 14px;
143
+ background-color: var(--cl-clr-bg);
144
+ border: 1px solid var(--ck-clr-ln);
145
+ border-radius: var(--ter-rd);
146
+ &:after {
147
+ content: "";
148
+ position: absolute;
149
+ display: none;
150
+ left: -1px;
151
+ top: -1px;
152
+ width: 16px;
153
+ height: 16px;
154
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E");
155
+ border-radius: var(--ter-rd);
156
+ }
157
+ ${({$isError:e})=>{let r="";return e&&(r+=" \n border:1px solid #fc5c64; \n "),r}}
158
+ `,F=o.label`
159
+ grid-gap: 6px;
160
+ position: relative;
161
+ cursor: pointer;
162
+ user-select: none;
163
+ align-items: center;
164
+ padding-left: 24px;
165
+ > input {
166
+ ${R}
167
+ }
168
+ input:checked ~ span,
169
+ input.checked ~ span {
170
+ background-color: var(--ck-clr-bg__act);
171
+ border: 0;
172
+ }
173
+ input:checked ~ span:after,
174
+ input.checked ~ span:after {
175
+ display: grid;
176
+ }
177
+ @media (min-width: 425px) {
178
+ padding-left: 24px;
179
+ }
180
+ ${({$flow:e,$iconRight:r,disabled:t})=>{let n="";if(t&&(n+="\n cursor: default; \n "),"column"===e)n+="\n display: inline-grid; \n grid-auto-flow: column;\n ";else n+="\n display: grid; \n grid-auto-flow: row;\n ";return r&&(n+=E),n}}
181
+ `;o.input`
182
+ &:disabled {
183
+ cursor: default;
184
+ & + span {
185
+ background-color: var(--mt-clr-bg);
186
+ border-color: var(--pri-clr-ln);
187
+ }
188
+ }
189
+ ${R}
190
+ `;const D=e=>{var{id:o,name:a,children:l,$flow:c,extendKey:s,extendClass:p,reset:d,setReset:u,isForceUpdate:f,setForceUpdate:y,evChange:g,$isError:h,$iconRight:m}=e,b=i(e,["id","name","children","$flow","extendKey","extendClass","reset","setReset","isForceUpdate","setForceUpdate","evChange","$isError","$iconRight"]);const{disabled:w,defaultChecked:x}=b,[k,$]=r(x||!1),_=n(null);t((()=>{f&&($(x||!1),y&&y(!1)),d&&($(!1),u&&u(!1))}),[d,u,f,y,x]);return delete Object.assign({},b).defaultChecked,v.jsxs(F,{$flow:c,$iconRight:m,ref:_,htmlFor:o,disabled:w||!1,children:[l,v.jsx(C,Object.assign({id:o,type:"checkbox",checked:k,name:a,evChange:e=>{$(e.target.checked),g&&g(e)}},p&&{className:p},""!==s&&{"data-key":s},b)),v.jsx(N,Object.assign({$isError:h},b["data-qa-id"]&&{"data-qa-id":b["data-qa-id"]}))]})};export{D as CheckboxComponent,C as InputComponent,j as LinkComponent,h as TextComponent};
125
191
  //# sourceMappingURL=index.mjs.map