forstok-ui-lib 1.0.14 → 1.0.15
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.d.ts +18 -1
- package/dist/index.js +96 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +96 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icons/edit.svg +3 -0
- package/src/components/icon/icon.styles.ts +84 -0
- package/src/components/icon/icon.tsx +16 -0
- package/src/components/index.ts +3 -1
- package/src/components/loading/loading.styles.ts +156 -0
- package/src/components/loading/loading.tsx +24 -0
package/dist/index.d.ts
CHANGED
|
@@ -83,4 +83,21 @@ type TLabel = HTMLAttributes<HTMLSpanElement> & {
|
|
|
83
83
|
};
|
|
84
84
|
declare const LabelComponent: ({ children, $mode, $position, ...props }: TLabel) => react_jsx_runtime.JSX.Element;
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
type TIcon = HTMLAttributes<HTMLElement> & {
|
|
87
|
+
$mode?: string;
|
|
88
|
+
$isLoading?: boolean;
|
|
89
|
+
$name: string;
|
|
90
|
+
$width?: string | number;
|
|
91
|
+
};
|
|
92
|
+
declare const IconComponent: ({ $width, $name, $mode, onClick, $isLoading, ...props }: TIcon) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
type TLoading = HTMLAttributes<HTMLDivElement> & {
|
|
95
|
+
$mode?: string;
|
|
96
|
+
$shape?: string;
|
|
97
|
+
$color?: string;
|
|
98
|
+
$position?: string;
|
|
99
|
+
$extendClass?: string;
|
|
100
|
+
};
|
|
101
|
+
declare const LoadingComponent: ({ $mode, $position, $shape, $color, $extendClass, ...props }: TLoading) => react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
103
|
+
export { ButtonComponent, CheckboxComponent, IconComponent, InputComponent, LabelComponent, LinkComponent, LoadingComponent, TextComponent };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react"),r=require("styled-components");function n(e){return e&&e.__esModule?e:{default:e}}var
|
|
1
|
+
"use strict";var e=require("react"),r=require("styled-components");function n(e){return e&&e.__esModule?e:{default:e}}var o=n(e),t=n(r);function a(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(e);t<o.length;t++)r.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(e,o[t])&&(n[o[t]]=e[o[t]])}return n}"function"==typeof SuppressedError&&SuppressedError;var i,c={exports:{}},l={};var s,d,p={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
@@ -7,14 +7,14 @@
|
|
|
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 u(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){function e(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===
|
|
10
|
+
*/function u(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){function e(r){if(null==r)return null;if("function"==typeof r)return r.$$typeof===F?null:r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case _:return"Fragment";case C:return"Portal";case S:return"Profiler";case j:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList"}if("object"==typeof r)switch("number"==typeof r.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case E:return(r.displayName||"Context")+".Provider";case O:return(r._context.displayName||"Context")+".Consumer";case L:var n=r.render;return(r=r.displayName)||(r=""!==(r=n.displayName||n.name||"")?"ForwardRef("+r+")":"ForwardRef"),r;case N:return null!==(n=r.displayName||null)?n:e(r.type)||"Memo";case A:n=r._payload,r=r._init;try{return e(r(n))}catch(e){}}return null}function r(e){return""+e}function n(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var o=(n=console).error,t="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),r(e)}}function t(){}function a(e){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||"",K=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+M+e+K}function i(e,r){if(!e||W)return"";var n=q.get(e);if(void 0!==n)return n;W=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o;o=I.H,I.H=null,function(){if(0===U){h=console.log,v=console.info,m=console.warn,b=console.error,x=console.group,w=console.groupCollapsed,y=console.groupEnd;var e={configurable:!0,enumerable:!0,value:t,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}();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 o=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){o=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){o=e}(n=e())&&"function"==typeof n.catch&&n.catch((function(){}))}}catch(e){if(e&&o&&"string"==typeof e.stack)return[e.stack,o.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=i.DetermineComponentFrameRoot(),s=l[0],d=l[1];if(s&&d){var p=s.split("\n"),u=d.split("\n");for(l=c=0;c<p.length&&!p[c].includes("DetermineComponentFrameRoot");)c++;for(;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;if(c===p.length||l===u.length)for(c=p.length-1,l=u.length-1;1<=c&&0<=l&&p[c]!==u[l];)l--;for(;1<=c&&0<=l;c--,l--)if(p[c]!==u[l]){if(1!==c||1!==l)do{if(c--,0>--l||p[c]!==u[l]){var f="\n"+p[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,f),f}}while(1<=c&&0<=l);break}}}finally{W=!1,I.H=o,function(){if(0==--U){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:h}),info:G({},e,{value:v}),warn:G({},e,{value:m}),error:G({},e,{value:b}),group:G({},e,{value:x}),groupCollapsed:G({},e,{value:w}),groupEnd:G({},e,{value:y})})}0>U&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}return p=(p=e?e.displayName||e.name:"")?a(p):"","function"==typeof e&&q.set(e,p),p}function c(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 R:return a("Suspense");case D:return a("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case L:return e=i(e.render,!1);case N:return c(e.type);case A:r=e._payload,e=e._init;try{return c(e(r))}catch(e){}}return""}function l(){var e=I.A;return null===e?null:e.getOwner()}function s(){var r=e(this.type);return J[r]||(J[r]=!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!==(r=this.props.ref)?r:null}function d(r,o,t,a,i,c){if("string"==typeof r||"function"==typeof r||r===_||r===S||r===j||r===R||r===D||r===P||"object"==typeof r&&null!==r&&(r.$$typeof===A||r.$$typeof===N||r.$$typeof===E||r.$$typeof===O||r.$$typeof===L||r.$$typeof===T||void 0!==r.getModuleId)){var d=o.children;if(void 0!==d)if(a)if(z(d)){for(a=0;a<d.length;a++)u(d[a],r);Object.freeze&&Object.freeze(d)}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 u(d,r)}else d="",(void 0===r||"object"==typeof r&&null!==r&&0===Object.keys(r).length)&&(d+=" 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===r?a="null":z(r)?a="array":void 0!==r&&r.$$typeof===$?(a="<"+(e(r.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof r,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,d);if(V.call(o,"key")){d=e(r);var p=Object.keys(o).filter((function(e){return"key"!==e}));a=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",X[d+a]||(p=0<p.length?"{"+p.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,d,p,d),X[d+a]=!0)}if(d=null,void 0!==t&&(n(t),d=""+t),function(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(o)&&(n(o.key),d=""+o.key),"key"in o)for(var f in t={},o)"key"!==f&&(t[f]=o[f]);else t=o;return d&&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})}(t,"function"==typeof r?r.displayName||r.name||"Unknown":r),function(e,r,n,o,t,a){return n=a.ref,e={$$typeof:$,type:e,key:r,props:a,_owner:t},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}(r,d,c,0,l(),t)}function u(e,r){if("object"==typeof e&&e&&e.$$typeof!==Y)if(z(e))for(var n=0;n<e.length;n++){var o=e[n];f(o)&&g(o,r)}else if(f(e))e._store&&(e._store.validated=1);else if(null===e||"object"!=typeof e?n=null:n="function"==typeof(n=B&&e[B]||e["@@iterator"])?n:null,"function"==typeof n&&n!==e.entries&&(n=n.call(e))!==e)for(;!(e=n.next()).done;)f(e.value)&&g(e.value,r)}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===$}function g(r,n){if(r._store&&!r._store.validated&&null==r.key&&(r._store.validated=1,n=function(r){var n="",o=l();return o&&(o=e(o.type))&&(n="\n\nCheck the render method of `"+o+"`."),n||(r=e(r))&&(n="\n\nCheck the top-level render call using <"+r+">."),n}(n),!Z[n])){Z[n]=!0;var o="";r&&null!=r._owner&&r._owner!==l()&&(o=null,"number"==typeof r._owner.tag?o=e(r._owner.type):"string"==typeof r._owner.name&&(o=r._owner.name),o=" It was passed a child from "+o+".");var t=I.getCurrentStack;I.getCurrentStack=function(){var e=c(r.type);return t&&(e+=t()||""),e},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,o),I.getCurrentStack=t}}var h,v,m,b,x,w,y,k=o.default,$=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),E=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),B=Symbol.iterator,F=Symbol.for("react.client.reference"),I=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,G=Object.assign,T=Symbol.for("react.client.reference"),z=Array.isArray,U=0;t.__reactDisabledLog=!0;var M,K,H,W=!1,q=new("function"==typeof WeakMap?WeakMap:Map),Y=Symbol.for("react.client.reference"),J={},X={},Z={};p.Fragment=_,p.jsx=function(e,r,n,o,t){return d(e,r,n,!1,0,t)},p.jsxs=function(e,r,n,o,t){return d(e,r,n,!0,0,t)}}()),p}var f=(d||(d=1,"production"===process.env.NODE_ENV?c.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(r,n,o){var t=null;if(void 0!==o&&(t=""+o),void 0!==n.key&&(t=""+n.key),"key"in n)for(var a in o={},n)"key"!==a&&(o[a]=n[a]);else o=n;return n=o.ref,{$$typeof:e,type:r,key:t,ref:void 0!==n?n:null,props:o}}return l.Fragment=r,l.jsx=n,l.jsxs=n,l}():c.exports=u()),c.exports);const g=r.css`
|
|
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
|
-
`,h=
|
|
17
|
+
`,h=t.default.span`
|
|
18
18
|
display: grid;
|
|
19
19
|
i {
|
|
20
20
|
display: inline-block;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
font-weight: 600;
|
|
73
73
|
font-size: 13px;
|
|
74
74
|
text-transform: capitalize;
|
|
75
|
-
`;const
|
|
75
|
+
`;const m=r.css`
|
|
76
76
|
color: var(--pri-clr-lnk);
|
|
77
77
|
&,
|
|
78
78
|
&:hover {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
&:hover {
|
|
82
82
|
color: var(--pri-clr-lnk__hvr);
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,b=r.css`
|
|
85
85
|
color: var(--pri-clr-lnk);
|
|
86
86
|
&,
|
|
87
87
|
&:hover {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
&:hover {
|
|
91
91
|
color: var(--sec-clr-lnk__hvr);
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,x=r.css`
|
|
94
94
|
position: relative;
|
|
95
95
|
display: inline-grid;
|
|
96
96
|
padding: 0 16px;
|
|
@@ -104,30 +104,30 @@
|
|
|
104
104
|
&:hover {
|
|
105
105
|
text-decoration: none;
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
108
|
-
${
|
|
109
|
-
`,k=
|
|
107
|
+
`,w=({mode:e,$elipsis:r,$activated:n,$shadow:o,disabled:t})=>{let a="";return"clear"===e?a+=m:"clearR"===e?a+=b:"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 "),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 ${v}\n `),o&&(a+="\n box-shadow: var(--act-shd-bx);\n "),t&&(a+="\n color: #A9A9A9;\n opacity: 0.7;\n pointer-events: none;\n "),a},y=t.default.a`
|
|
108
|
+
${w}
|
|
109
|
+
`,k=t.default.span`
|
|
110
110
|
cursor:pointer;
|
|
111
|
-
${
|
|
111
|
+
${w}
|
|
112
112
|
`,$=r.css`
|
|
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
|
-
`,
|
|
118
|
+
`,C=t.default.input`
|
|
119
119
|
&._refQuantitiyInput {
|
|
120
120
|
width: 55px;
|
|
121
121
|
text-align: center;
|
|
122
122
|
}
|
|
123
|
-
${({width:e,height:r,$iconLeft:n,$iconRight:
|
|
124
|
-
`,
|
|
123
|
+
${({width:e,height:r,$iconLeft:n,$iconRight:o,$isError:t,mode:a,type:i})=>{let c="";return n&&(c+=" \n padding-left: 35px; \n "),o&&(c+=" \n padding-right: 35px; \n "),t&&(c+=" \n border:1px solid var(--err-clr-ln) !important; \n "),r&&(c+=` \n height: ${r}px\n max-height: ${r}px\n `),"search"===a&&(c+=' \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&&(c+=" \n padding-left: 39px; \n ")),"transaction"===a&&(c+="\n padding-left: 45px;\n "),e&&(c+=` \n width: ${e}px \n `),"submit"===i&&(c+=$),c}}
|
|
124
|
+
`,_=r=>{var n,{mode:o,$isError:t,$iconLeft:i,$iconRight:c,reset:l,setReset:s,isForceUpdate:d,setForceUpdate:p,evChange:u,evBlur:g,isField:h,evChangeCustom:v,evEnter:m,evKeyUp:b}=r,x=a(r,["mode","$isError","$iconLeft","$iconRight","reset","setReset","isForceUpdate","setForceUpdate","evChange","evBlur","isField","evChangeCustom","evEnter","evKeyUp"]);const{type:w,name:y,defaultValue:k,defaultChecked:$}=x,_=null!==(n=null==k?void 0:k.toString())&&void 0!==n?n:"",[j,S]=e.useState(_),[O,E]=e.useState($||!1);e.useEffect((()=>{var e;if(d){const r=null!==(e=null==k?void 0:k.toString())&&void 0!==e?e:"";S(r),E($||!1),p&&p(!1)}l&&(S(""),E(!1),s&&s(!1))}),[d,p,l,s,k,$,E,o]);const L=e=>{const r=e.target.value;S(r)};let R=Object.assign({},x);delete R.defaultValue,delete R.defaultChecked;const D=f.jsx(C,Object.assign({mode:o,$isError:t,$iconLeft:i,$iconRight:c,checked:O,value:j,onChange:e=>{L(e),u&&u(e)},onBlur:e=>{L(e),(e=>{if(g&&g(e),h&&m&&m(e),h&&y){const r="number"===w?parseInt(e.target.value):e.target.value.trim();v&&v(y,r)}})(e)},onKeyUp:e=>{b&&b(e),(e=>{"Enter"===e.key&&(e.preventDefault(),h&&m&&m(e))})(e)}},"number"===w&&{onKeyPress:e=>("number"===w&&(isNaN(Number(e.key))||void 0===e.key||""===e.key)&&e.preventDefault(),!0)},"number"===w&&{onPaste:e=>{const r=(e.clipboardData||window.clipboardData).getData("text").replace(/[^0-9]/g,"");e.preventDefault(),document.execCommand("insertText",!1,r)}},"number"===w&&{onFocus:e=>e.target.addEventListener("wheel",(function(e){e.preventDefault()}),{passive:!1})},"number"===w&&{min:"0"},R));return D},j=r.css`
|
|
125
125
|
position: absolute;
|
|
126
126
|
opacity: 0;
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
height: 0;
|
|
129
129
|
width: 0;
|
|
130
|
-
`,
|
|
130
|
+
`,S=r.css`
|
|
131
131
|
padding-right: 18px;
|
|
132
132
|
i {
|
|
133
133
|
position: absolute;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
top: 50%;
|
|
136
136
|
margin-top: -10px;
|
|
137
137
|
}
|
|
138
|
-
`,O=
|
|
138
|
+
`,O=t.default.span`
|
|
139
139
|
position: absolute;
|
|
140
140
|
left: 0;
|
|
141
141
|
height: 14px;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
border-radius: var(--ter-rd);
|
|
156
156
|
}
|
|
157
157
|
${({$isError:e})=>{let r="";return e&&(r+=" \n border:1px solid #fc5c64; \n "),r}}
|
|
158
|
-
`,
|
|
158
|
+
`,E=t.default.label`
|
|
159
159
|
grid-gap: 6px;
|
|
160
160
|
position: relative;
|
|
161
161
|
cursor: pointer;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
align-items: center;
|
|
164
164
|
padding-left: 24px;
|
|
165
165
|
> input {
|
|
166
|
-
${
|
|
166
|
+
${j}
|
|
167
167
|
}
|
|
168
168
|
input:checked ~ span,
|
|
169
169
|
input.checked ~ span {
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
@media (min-width: 425px) {
|
|
178
178
|
padding-left: 24px;
|
|
179
179
|
}
|
|
180
|
-
${({$flow:e,$iconRight:r,disabled:n})=>{let
|
|
181
|
-
`;
|
|
180
|
+
${({$flow:e,$iconRight:r,disabled:n})=>{let o="";if(n&&(o+="\n cursor: default; \n "),"column"===e)o+="\n display: inline-grid; \n grid-auto-flow: column;\n ";else o+="\n display: grid; \n grid-auto-flow: row;\n ";return r&&(o+=S),o}}
|
|
181
|
+
`;t.default.input`
|
|
182
182
|
&:disabled {
|
|
183
183
|
cursor: default;
|
|
184
184
|
& + span {
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
border-color: var(--pri-clr-ln);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
${
|
|
190
|
-
`;const
|
|
189
|
+
${j}
|
|
190
|
+
`;const L=r.css`
|
|
191
191
|
display: inline-block;
|
|
192
192
|
pointer-events: none;
|
|
193
|
-
`,
|
|
193
|
+
`,R=t.default.button`
|
|
194
194
|
> span {
|
|
195
195
|
white-space: nowrap;
|
|
196
196
|
overflow: hidden;
|
|
@@ -209,9 +209,9 @@
|
|
|
209
209
|
padding-right: 30px !important;
|
|
210
210
|
|
|
211
211
|
}
|
|
212
|
-
${({$mode:e,$isIndicatorArrow:r,$isShown:n,$isLoading:
|
|
212
|
+
${({$mode:e,$isIndicatorArrow:r,$isShown:n,$isLoading:o,$activated:t,$size:a,disabled:i,$iconLeft:c,$shadow:l})=>{let s="";return n?(l&&(s+="\n box-shadow: var(--act-shd-bx);\n "),a&&("xsmall"===a?s+="\n font-size: 12px;\n height: 20px;\n padding: 0 8px;\n ":"small"===a?s+="\n font-size: 13px;\n height: 28px;\n min-width: 75px;\n ":"medium"===a&&(s+="\n height: 32px;\n ")),"red"===e?s+=`\n color: var(--act-clr);\n background-color: var(--act-clr-bg);\n &:hover {\n background-color: var(--act-clr-bg__hvr);\n }\n & ${D} {\n fill: #ffffff;\n stroke: #ffffff;\n }\n `:"white"===e?s+="\n color: var(--mt-clr);\n background-color: var(--cl-clr-bg);\n border: 1px solid var(--sec-clr-ln);\n &:hover { \n background-color: var(--cl-clr-bg__hvr);\n } \n ":"blue"===e?s+=`\n &, &:hover {\n background-color: var(--ck-clr-bg__act);\n color: var(--act-clr);\n }\n & ${D} {\n fill: #ffffff;\n stroke: #ffffff;\n }\n `:"nude"===e?s+="\n &, &:hover { \n background-color: var(--ter-clr-bg); \n } \n ":"clearL"===e?s+="\n width: auto;\n height: auto;\n color: var(--pri-clr-lnk__hvr);\n text-decoration: none;\n padding: 0;\n margin: 0;\n &, &:hover { \n background-color: transparent; \n }\n &:hover {\n opacity: .9;\n }\n ":"clearB"===e?s+=`\n background-color: var(--cl-clr-bg);\n color: var(--pri-clr-lnk__hvr);\n svg {\n fill: var(--pri-clr-lnk__hvr);\n stroke: var(--pri-clr-lnk__hvr);\n }\n & ${D} {\n width: 14px;\n height: 14px;\n margin-top: -7px;\n }\n &:disabled {\n span {color: var(--mt-clr);}\n }\n `:"clear"===e?(s+="\n box-shadow: none !important;\n &, &:hover { \n background-color: transparent; \n }\n ",t&&(s+="\n color: var(--pri-clr) !important;\n font-weight: 600;\n ")):"more"===e?s+=`\n padding: 8px;\n background-color: var(--mt-clr-bg__fc);\n &:before { \n content: url(data:image/svg+xml,%3csvg width='3' height='13' viewBox='0 0 3 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='1.5' cy='1.5' r='1.5' fill='%235A5A5A'/%3e%3ccircle cx='1.5' cy='6.5' r='1.5' fill='%235A5A5A'/%3e%3ccircle cx='1.5' cy='11.5' r='1.5' fill='%235A5A5A'/%3e%3c/svg%3e);\n height: 14px;\n width: 14px;\n ${L}\n }\n `:"round-close"===e?s+=`\n background-color: transparent;\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 18.1.1%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 212.982 212.982' style='enable-background:new 0 0 212.982 212.982%3b fill: rgb(72%2c72%2c72)' xml:space='preserve'%3e %3cpath style='fill-rule:evenodd%3bclip-rule:evenodd%3b' d='M131.804%2c106.491l75.936-75.936c6.99-6.99%2c6.99-18.323%2c0-25.312 c-6.99-6.99-18.322-6.99-25.312%2c0l-75.937%2c75.937L30.554%2c5.242c-6.99-6.99-18.322-6.99-25.312%2c0c-6.989%2c6.99-6.989%2c18.323%2c0%2c25.312 l75.937%2c75.936L5.242%2c182.427c-6.989%2c6.99-6.989%2c18.323%2c0%2c25.312c6.99%2c6.99%2c18.322%2c6.99%2c25.312%2c0l75.937-75.937l75.937%2c75.937 c6.989%2c6.99%2c18.322%2c6.99%2c25.312%2c0c6.99-6.99%2c6.99-18.322%2c0-25.312L131.804%2c106.491z'/%3e%3c/svg%3e);\n width: 12px;\n ${L}\n } \n `:"small-white-round-close"===e?s+=`\n background-color: transparent;\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 18.1.1%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 212.982 212.982' style='enable-background:new 0 0 212.982 212.982%3b fill: white' xml:space='preserve'%3e %3cpath style='fill-rule:evenodd%3bclip-rule:evenodd%3b' d='M131.804%2c106.491l75.936-75.936c6.99-6.99%2c6.99-18.323%2c0-25.312 c-6.99-6.99-18.322-6.99-25.312%2c0l-75.937%2c75.937L30.554%2c5.242c-6.99-6.99-18.322-6.99-25.312%2c0c-6.989%2c6.99-6.989%2c18.323%2c0%2c25.312 l75.937%2c75.936L5.242%2c182.427c-6.989%2c6.99-6.989%2c18.323%2c0%2c25.312c6.99%2c6.99%2c18.322%2c6.99%2c25.312%2c0l75.937-75.937l75.937%2c75.937 c6.989%2c6.99%2c18.322%2c6.99%2c25.312%2c0c6.99-6.99%2c6.99-18.322%2c0-25.312L131.804%2c106.491z'/%3e%3c/svg%3e);\n width: 8px;\n ${L}\n } \n `:"page-option"===e&&(s+=`\n border: 1px solid var(--ck-clr-ln);\n background-color: transparent;\n font-weight: 600;\n cursor: pointer;\n border-radius: var(--ter-rd);\n padding: 6px 12px;\n height: 28px;\n & ${D} {\n width: 14px;\n height: 14px;\n margin-top: -7px;\n }\n `),i&&(s+="\n &, &:hover {\n background-color: var(--mt-clr-bg__fc) !important;\n cursor: default;\n color: var(--mt-clr);\n }\n "),c&&(s+=" padding-left: 35px; "),r&&(s+=" \n padding-right: 25px; \n "),o&&(s+=" \n padding-right: 30px !important; \n "),s):"display:none;"}}
|
|
213
213
|
|
|
214
|
-
`,
|
|
214
|
+
`,D=t.default.svg`
|
|
215
215
|
display: inline-block;
|
|
216
216
|
fill: currentColor;
|
|
217
217
|
stroke: currentColor;
|
|
@@ -227,14 +227,82 @@
|
|
|
227
227
|
`,N=r.css`
|
|
228
228
|
display: block;
|
|
229
229
|
margin: 8px 0;
|
|
230
|
-
`,
|
|
230
|
+
`,A=r.css`
|
|
231
231
|
display: block;
|
|
232
232
|
text-align: center;
|
|
233
233
|
align-items: center;
|
|
234
234
|
margin: 30px;
|
|
235
235
|
color: var(--mt-clr);
|
|
236
236
|
font-size: 14px;
|
|
237
|
-
`,
|
|
238
|
-
${({$mode:e,$position:r})=>{let n="";return"block"===e?n+=N:"empty"===e?n+=
|
|
239
|
-
|
|
237
|
+
`,P=t.default.span`
|
|
238
|
+
${({$mode:e,$position:r})=>{let n="";return"block"===e?n+=N:"empty"===e?n+=A:"indi"===e&&(n+='\n padding: 20px 0;\n text-align: left;\n display: block;\n color: var(--mt-clr);\n &[aria-label="error"] {\n color: var(--err-clr);\n }\n '),r&&("left"===r?n+="\n text-align: left;\n align-items: left;\n margin-left: 15px;\n ":"right"===r&&(n+="\n text-align: right;\n align-items: right;\n margin-right: 15px;\n ")),n}}
|
|
239
|
+
`,B=t.default.div`
|
|
240
|
+
@keyframes load8 {
|
|
241
|
+
0% {
|
|
242
|
+
-webkit-transform: rotate(0deg);
|
|
243
|
+
transform: rotate(0deg);
|
|
244
|
+
}
|
|
245
|
+
100% {
|
|
246
|
+
-webkit-transform: rotate(360deg);
|
|
247
|
+
transform: rotate(360deg);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
display: block;
|
|
251
|
+
position: relative;
|
|
252
|
+
text-indent: -9999px;
|
|
253
|
+
margin: 10px auto;
|
|
254
|
+
transform: translateZ(0);
|
|
255
|
+
animation: load8 1.1s infinite linear;
|
|
256
|
+
&,
|
|
257
|
+
&:after {
|
|
258
|
+
border-radius: 50%;
|
|
259
|
+
}
|
|
260
|
+
&.is-hidden {
|
|
261
|
+
display: none;
|
|
262
|
+
}
|
|
263
|
+
${({$mode:e,$position:r,$color:n})=>{let o="";switch(e){case"small":o+=`\n border-top: 2px solid ${n||"var(--err-clr-ln)"};\n border-right: 2px solid ${n||"var(--err-clr-ln)"};\n border-bottom: 2px solid ${n||"var(--err-clr-ln)"};\n border-left: 2px solid transparent;\n &, \n &:after {\n width: 12px;\n height: 12px;\n }\n `;break;case"smallclear":o+=`\n border-top: 2px solid ${n||"var(--err-clr-ln)"};\n border-right: 2px solid ${n||"var(--err-clr-ln)"};\n border-bottom: 2px solid ${n||"var(--err-clr-ln)"};\n border-left: 2px solid transparent;\n margin: 0;\n &, \n &:after {\n width: 12px;\n height: 12px;\n }\n `;break;case"medium":o+=`\n border-top: 3px solid ${n||"var(--err-clr-ln)"};\n border-right: 3px solid ${n||"var(--err-clr-ln)"};\n border-bottom: 3px solid ${n||"var(--err-clr-ln)"};\n border-left: 3px solid transparent;\n &, \n &:after {\n width: 20px;\n height: 20px;\n }\n `;break;case"mediumclear":o+=`\n border-top: 3px solid ${n||"var(--err-clr-ln)"};\n border-right: 3px solid ${n||"var(--err-clr-ln)"};\n border-bottom: 3px solid ${n||"var(--err-clr-ln)"};\n border-left: 3px solid transparent;\n margin: 20px;\n &, \n &:after {\n width: 20px;\n height: 20px;\n }\n `;break;case"large":o+=`\n border-top: 4px solid ${n||"var(--err-clr-ln)"};\n border-right: 4px solid ${n||"var(--err-clr-ln)"};\n border-bottom: 4px solid ${n||"var(--err-clr-ln)"};\n border-left: 4px solid transparent;\n &, \n &:after {\n width: 25px;\n height: 25px;\n }\n `}return"left"===r&&(o+="\n margin-left: 0;\n margin-right: 0;\n "),o}}
|
|
264
|
+
`,F=t.default.div`
|
|
265
|
+
@keyframes sk-bouncedelay {
|
|
266
|
+
0%, 80%, 100% {
|
|
267
|
+
-webkit-transform: scale(0);
|
|
268
|
+
transform: scale(0);
|
|
269
|
+
} 40% {
|
|
270
|
+
-webkit-transform: scale(1.0);
|
|
271
|
+
transform: scale(1.0);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
width: auto;
|
|
275
|
+
display: inline;
|
|
276
|
+
margin-left: 4px;
|
|
277
|
+
> div {
|
|
278
|
+
width: 5px;
|
|
279
|
+
height: 5px;
|
|
280
|
+
background-color: var(--act-clr-bg);
|
|
281
|
+
border-radius: 100%;
|
|
282
|
+
display: inline-block;
|
|
283
|
+
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
284
|
+
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
285
|
+
margin-left: 1px;
|
|
286
|
+
&:nth-child(1) {
|
|
287
|
+
animation-delay: -0.32s;
|
|
288
|
+
}
|
|
289
|
+
&:nth-child(2) {
|
|
290
|
+
animation-delay: -0.16s;
|
|
291
|
+
}
|
|
292
|
+
&:nth-child(3) {
|
|
293
|
+
animation-delay: -0.32s;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
${({$color:e})=>{if(e)return r.css`
|
|
297
|
+
> div {
|
|
298
|
+
background-color: ${e};
|
|
299
|
+
}
|
|
300
|
+
`}}
|
|
301
|
+
`,I=e=>{var{$mode:r,$position:n,$shape:o,$color:t,$extendClass:i}=e,c=a(e,["$mode","$position","$shape","$color","$extendClass"]);const l=`${c.className||""} ${i||""}`;return"dot"===o?f.jsxs(F,Object.assign({className:l,$color:t},c,{children:[f.jsx("div",{}),f.jsx("div",{}),f.jsx("div",{})]})):f.jsx(B,Object.assign({className:l,$mode:r,$color:t,$position:n},c))};const V=t.default.i`
|
|
302
|
+
display: inline-block;
|
|
303
|
+
&:before {
|
|
304
|
+
display: grid;
|
|
305
|
+
}
|
|
306
|
+
${({$mode:e,$name:r,$width:n,onClick:o})=>{let t="";switch(r){case"search":t+="\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Uploaded to: SVG Repo%2c www.svgrepo.com%2c Generator: SVG Repo Mixer Tools --%3e%3csvg width='100%25' height='100%25' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0.5C4.75329 0.5 0.5 4.75329 0.5 10C0.5 15.2467 4.75329 19.5 10 19.5C12.082 19.5 14.0076 18.8302 15.5731 17.6944L20.2929 22.4142C20.6834 22.8047 21.3166 22.8047 21.7071 22.4142L22.4142 21.7071C22.8047 21.3166 22.8047 20.6834 22.4142 20.2929L17.6944 15.5731C18.8302 14.0076 19.5 12.082 19.5 10C19.5 4.75329 15.2467 0.5 10 0.5ZM3.5 10C3.5 6.41015 6.41015 3.5 10 3.5C13.5899 3.5 16.5 6.41015 16.5 10C16.5 13.5899 13.5899 16.5 10 16.5C6.41015 16.5 3.5 13.5899 3.5 10Z' fill='%23FC5C64'/%3e%3c/svg%3e); \n }\n ";break;case"check":t+="\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 16.0.4%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 700 700' enable-background='new 0 0 700 700' xml:space='preserve'%3e%3cpath fill='%232DB84C' d='M286.024%2c656.312c-0.54%2c0-1.079-0.009-1.618-0.019c-27.785-0.475-53.887-13.426-71.079-35.25L33.782%2c418.025 C2.15%2c377.867%2c9.06%2c319.666%2c49.191%2c288.043c40.15-31.641%2c98.36-24.723%2c129.992%2c15.428l109.41%2c113.988L523.214%2c63.886 c33.003-39.035%2c91.413-43.888%2c130.431-10.867c39.017%2c33.021%2c43.889%2c91.414%2c10.867%2c130.439l-307.83%2c440.088 C339.08%2c644.339%2c313.214%2c656.312%2c286.024%2c656.312z'/%3e%3c/svg%3e); \n }\n ";break;case"check-grey":t+="\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 16.0.4%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 700 700' enable-background='new 0 0 700 700' xml:space='preserve'%3e%3cpath fill='%23cccccc' d='M286.024%2c656.312c-0.54%2c0-1.079-0.009-1.618-0.019c-27.785-0.475-53.887-13.426-71.079-35.25L33.782%2c418.025 C2.15%2c377.867%2c9.06%2c319.666%2c49.191%2c288.043c40.15-31.641%2c98.36-24.723%2c129.992%2c15.428l109.41%2c113.988L523.214%2c63.886 c33.003-39.035%2c91.413-43.888%2c130.431-10.867c39.017%2c33.021%2c43.889%2c91.414%2c10.867%2c130.439l-307.83%2c440.088 C339.08%2c644.339%2c313.214%2c656.312%2c286.024%2c656.312z'/%3e%3c/svg%3e); \n }\n ";break;case"arrow-left-blue":t+="\n &:before { \n content: url(data:image/svg+xml,%3c%3fxml version='1.0' encoding='iso-8859-1'%3f%3e%3c!-- Generator: Adobe Illustrator 18.0.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 309.143 309.143' style='enable-background:new 0 0 309.143 309.143%3b' xml:space='preserve'%3e%3cpath style='fill:%230076FF%3b' d='M112.855%2c154.571L240.481%2c26.946c2.929-2.929%2c2.929-7.678%2c0-10.606L226.339%2c2.197 C224.933%2c0.79%2c223.025%2c0%2c221.036%2c0c-1.989%2c0-3.897%2c0.79-5.303%2c2.197L68.661%2c149.268c-2.929%2c2.929-2.929%2c7.678%2c0%2c10.606 l147.071%2c147.071c1.406%2c1.407%2c3.314%2c2.197%2c5.303%2c2.197c1.989%2c0%2c3.897-0.79%2c5.303-2.197l14.142-14.143 c2.929-2.929%2c2.929-7.678%2c0-10.606L112.855%2c154.571z'/%3e%3c/svg%3e); \n }\n ";break;case"edit":t+="\n &:before { \n content: url(data:image/svg+xml,%3csvg width='auto' height='auto' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.16699 3.33417H5.66699C4.26686 3.33417 3.5668 3.33417 3.03202 3.60666C2.56161 3.84634 2.17916 4.22879 1.93948 4.6992C1.66699 5.23398 1.66699 5.93404 1.66699 7.33417V14.3342C1.66699 15.7343 1.66699 16.4344 1.93948 16.9691C2.17916 17.4396 2.56161 17.822 3.03202 18.0617C3.5668 18.3342 4.26686 18.3342 5.66699 18.3342H12.667C14.0671 18.3342 14.7672 18.3342 15.302 18.0617C15.7724 17.822 16.1548 17.4396 16.3945 16.9691C16.667 16.4344 16.667 15.7343 16.667 14.3342V10.8342M6.66697 13.3342H8.06242C8.47007 13.3342 8.6739 13.3342 8.86571 13.2881C9.03577 13.2473 9.19835 13.18 9.34747 13.0886C9.51566 12.9855 9.65979 12.8414 9.94804 12.5531L17.917 4.58417C18.6073 3.89382 18.6073 2.77453 17.917 2.08417C17.2266 1.39382 16.1073 1.39382 15.417 2.08417L7.44802 10.0531C7.15977 10.3414 7.01564 10.4855 6.91257 10.6537C6.82119 10.8028 6.75385 10.9654 6.71302 11.1355C6.66697 11.3273 6.66697 11.5311 6.66697 11.9387V13.3342Z' stroke='%231570EF' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e); \n }\n "}return n&&(t+=`\n &:before { \n width: ${n}; \n height: ${n};\n }\n `),o&&(t+="\n cursor: pointer;\n "),"filter"===e?t+="\n position: relative;\n ":"disabled"===e&&(t+="\n &, \n &:before {\n opacity: .7;\n }\n "),t}}
|
|
307
|
+
`;exports.ButtonComponent=e=>{var{children:r,$mode:n,$isIndicatorArrow:o=!1,isIndicatorArrowColor:t="initial",$isShown:i=!0,$shadow:c=!1,$isLoading:l=!1,refContainer:s,$activated:d=!1,$size:p,$iconLeft:u}=e,g=a(e,["children","$mode","$isIndicatorArrow","isIndicatorArrowColor","$isShown","$shadow","$isLoading","refContainer","$activated","$size","$iconLeft"]);const{disabled:h}=g,v=o?f.jsx(D,{color:t,height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",children:f.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})}):null;return f.jsxs(R,Object.assign({$mode:n,$isIndicatorArrow:!!o,$isShown:!!i,$shadow:!!c,disabled:h||l||!1,$isLoading:!!l,ref:s,$activated:!!d,$size:p,$iconLeft:u},g,{children:[r,v]}))},exports.CheckboxComponent=r=>{var{id:n,name:o,children:t,$flow:i,extendKey:c,extendClass:l,reset:s,setReset:d,isForceUpdate:p,setForceUpdate:u,evChange:g,$isError:h,$iconRight:v}=r,m=a(r,["id","name","children","$flow","extendKey","extendClass","reset","setReset","isForceUpdate","setForceUpdate","evChange","$isError","$iconRight"]);const{disabled:b,defaultChecked:x}=m,[w,y]=e.useState(x||!1),k=e.useRef(null);e.useEffect((()=>{p&&(y(x||!1),u&&u(!1)),s&&(y(!1),d&&d(!1))}),[s,d,p,u,x]);return delete Object.assign({},m).defaultChecked,f.jsxs(E,{$flow:i,$iconRight:v,ref:k,htmlFor:n,disabled:b||!1,children:[t,f.jsx(_,Object.assign({id:n,type:"checkbox",checked:w,name:o,evChange:e=>{y(e.target.checked),g&&g(e)}},l&&{className:l},""!==c&&{"data-key":c},m)),f.jsx(O,Object.assign({$isError:h},m["data-qa-id"]&&{"data-qa-id":m["data-qa-id"]}))]})},exports.IconComponent=e=>{var{$width:r,$name:n,$mode:o,onClick:t,$isLoading:i=!1}=e,c=a(e,["$width","$name","$mode","onClick","$isLoading"]);return i?f.jsx(I,{$mode:"small",$position:"center",$shape:"dot",$color:"#fc5c64"}):f.jsx(V,Object.assign({$mode:o,$name:n,$width:r,onClick:t},c))},exports.InputComponent=_,exports.LabelComponent=e=>{var{children:r,$mode:n,$position:o}=e,t=a(e,["children","$mode","$position"]);return f.jsx(P,Object.assign({$mode:n,$position:o},t,{children:r}))},exports.LinkComponent=e=>{var{children:r,mode:n,$activated:o=!1,href:t,$elipsis:i=!1,$shadow:c=!1,disabled:l=!1}=e,s=a(e,["children","mode","$activated","href","$elipsis","$shadow","disabled"]);const{onClick:d}=s;return t?f.jsx(y,Object.assign({className:"_refLink",mode:n,$activated:o,$elipsis:i,$shadow:c,disabled:l,href:t},s,{children:r})):f.jsx(k,Object.assign({className:"_refLink",mode:n,$activated:o,$elipsis:i,$shadow:c,disabled:l,onClick:d},s,{children:r}))},exports.LoadingComponent=I,exports.TextComponent=e=>{var{children:r,$color:n,$elipsis:o=!0}=e,t=a(e,["children","$color","$elipsis"]);return f.jsx(h,Object.assign({$elipsis:!!o,$color:n},t,{children:r}))};
|
|
240
308
|
//# sourceMappingURL=index.js.map
|