fis-component 0.0.20 → 0.0.22
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/cjs/index.js +1126 -79
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/assets/icons/DecreIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/DotIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/HomeIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/IncreIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/ResizeIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
- package/dist/cjs/types/src/assets/icons/index.d.ts +6 -0
- package/dist/cjs/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
- package/dist/cjs/types/src/components/Avatar/index.d.ts +19 -0
- package/dist/cjs/types/src/components/Avatar/styles.d.ts +13 -0
- package/dist/cjs/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
- package/dist/cjs/types/src/components/Breadcrumb/index.d.ts +14 -0
- package/dist/cjs/types/src/components/Breadcrumb/styles.d.ts +7 -0
- package/dist/cjs/types/src/components/Button/Button.stories.d.ts +1 -1
- package/dist/cjs/types/src/components/Button/index.d.ts +1 -1
- package/dist/cjs/types/src/components/Button/styles.d.ts +1 -1
- package/dist/cjs/types/src/components/GroupButton/index.d.ts +2 -0
- package/dist/cjs/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
- package/dist/cjs/types/src/components/Input/InputField/index.d.ts +4 -4
- package/dist/cjs/types/src/components/Input/InputLabel/index.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/InputLabel/styles.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/Input/InputStepper/index.d.ts +20 -0
- package/dist/cjs/types/src/components/Input/InputStepper/styles.d.ts +5 -0
- package/dist/cjs/types/src/components/Input/InputText/index.d.ts +3 -11
- package/dist/cjs/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
- package/dist/cjs/types/src/components/Input/TextArea/index.d.ts +33 -0
- package/dist/cjs/types/src/components/Input/TextArea/styles.d.ts +9 -0
- package/dist/cjs/types/src/index.d.ts +4 -0
- package/dist/esm/index.js +1113 -70
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/assets/icons/DecreIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/DotIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/HomeIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/IncreIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/ResizeIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
- package/dist/esm/types/src/assets/icons/index.d.ts +6 -0
- package/dist/esm/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
- package/dist/esm/types/src/components/Avatar/index.d.ts +19 -0
- package/dist/esm/types/src/components/Avatar/styles.d.ts +13 -0
- package/dist/esm/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
- package/dist/esm/types/src/components/Breadcrumb/index.d.ts +14 -0
- package/dist/esm/types/src/components/Breadcrumb/styles.d.ts +7 -0
- package/dist/esm/types/src/components/Button/Button.stories.d.ts +1 -1
- package/dist/esm/types/src/components/Button/index.d.ts +1 -1
- package/dist/esm/types/src/components/Button/styles.d.ts +1 -1
- package/dist/esm/types/src/components/GroupButton/index.d.ts +2 -0
- package/dist/esm/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
- package/dist/esm/types/src/components/Input/InputField/index.d.ts +4 -4
- package/dist/esm/types/src/components/Input/InputLabel/index.d.ts +1 -1
- package/dist/esm/types/src/components/Input/InputLabel/styles.d.ts +1 -1
- package/dist/esm/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
- package/dist/esm/types/src/components/Input/InputStepper/index.d.ts +20 -0
- package/dist/esm/types/src/components/Input/InputStepper/styles.d.ts +5 -0
- package/dist/esm/types/src/components/Input/InputText/index.d.ts +3 -11
- package/dist/esm/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
- package/dist/esm/types/src/components/Input/TextArea/index.d.ts +33 -0
- package/dist/esm/types/src/components/Input/TextArea/styles.d.ts +9 -0
- package/dist/esm/types/src/index.d.ts +4 -0
- package/dist/index.d.ts +94 -20
- package/package.json +3 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import React, { useMemo, useDebugValue, createElement, useRef, useContext, forwardRef, useId, useImperativeHandle, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
/******************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -921,7 +921,7 @@ var unitlessKeys = {
|
|
|
921
921
|
strokeWidth: 1
|
|
922
922
|
};
|
|
923
923
|
|
|
924
|
-
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.15",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function re(e,t,n){if("string"!=typeof t){if(ne){var r=te(t);r&&r!==ne&&re(e,r,n);}var o=K(t);Q&&(o=o.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<o.length;++a){var c=o[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function oe(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=le(e[r],t[r]);else if(ce(t))for(var r in t)e[r]=le(e[r],t[r]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,false)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},Pe=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0;}else o.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(f)!==m&&(Pe(e,o),o.parentNode&&o.parentNode.removeChild(o));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(f,m),r.setAttribute(y,v);var i=Ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,r){ void 0===e&&(e=C),void 0===n&&(n={});var o=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ve.get(e)}(n);if(void 0===o)return "continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)o(s);return r}(o)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=true),new e(__assign(__assign({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,r,o=C,s=o.options,i=void 0===s?C:s,a=o.plugins,c=void 0===a?_:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(r,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,o,s,a){ void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=r.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;r.createContext(void 0);function Ge(){return useContext($e)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=ze);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||oe(i)?o.push("".concat(He(s),":"),i,";"):ce(i)?o.push.apply(o,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):o.push("".concat(He(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in unitlessKeys||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")));}return o};function Xe(e,t,n,r){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(oe(e)){if(!oe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var o=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||ce(o)||null===o||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!se(n))return false}return true}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else {var o=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}r=ie(r,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=ie(r,d);}}return r},e}(),et=r.createContext(void 0);et.Consumer;function rt(e){var n=r.useContext(et),o=useMemo(function(){return function(e,n){if(!e)throw he(14);if(oe(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw he(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw he(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?r.createElement(et.Provider,{value:o},e.children):null}var ot={},st=new Set;function it(e,o,s){var i=se(e),a=e,c=!L(e),p=o.attrs,d=void 0===p?_:p,h=o.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);ot[n]=(ot[n]||0)+1;var r="".concat(n,"-").concat($(v+n+ot[n]));return t?"".concat(t,"-").concat(r):r}(o.displayName,o.parentComponentId):h,m=o.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=o.displayName&&o.componentId?"".concat(R(o.displayName),"-").concat(o.componentId):o.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=o.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(o.shouldForwardProp){var E=o.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,o){return function(e,o,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=r.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(o,f,c)||C,g=function(e,n,r){for(var o,s=__assign(__assign({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=oe(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,o,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(r),r}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),createElement(S,w)}(D,e,o)}O.displayName=y;var D=r.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)le(e,o[r],true);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},r=false;return function(o){if(!r&&(n[o]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=true,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&re(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(oe(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):ct(Xe(at(o,n)))}function ut(n,r,o){if(void 0===o&&(o=C),!r)throw he(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,r,__assign(__assign({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,r,__assign(__assign({},o),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ae(lt.apply(void 0,__spreadArray([t],n,false))),s=$(o);return new qe(s,o)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var wt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wt]||(window[wt]=0),1===window[wt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[wt]+=1);
|
|
924
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.15",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,q=G?Symbol.for("react.forward_ref"):60112,W={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},H={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},U={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},J=((V={})[q]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:W;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function re(e,t,n){if("string"!=typeof t){if(ne){var r=te(t);r&&r!==ne&&re(e,r,n);}var o=K(t);Q&&(o=o.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<o.length;++a){var c=o[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function oe(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=false),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=le(e[r],t[r]);else if(ce(t))for(var r in t)e[r]=le(e[r],t[r]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,false)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},Pe=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,o)),o.length=0;}else o.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(f)!==m&&(Pe(e,o),o.parentNode&&o.parentNode.removeChild(o));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(f,m),r.setAttribute(y,v);var i=Ce();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,r){ void 0===e&&(e=C),void 0===n&&(n={});var o=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(r),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=false,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ve.get(e)}(n);if(void 0===o)return "continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)o(s);return r}(o)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=true),new e(__assign(__assign({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,r,o=C,s=o.options,i=void 0===s?C:s,a=o.plugins,c=void 0===a?_:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(r,l));}),i.prefix&&u.push(prefixer),u.push(stringify);var p=function(e,o,s,a){ void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=React.createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;React.createContext(void 0);function Ge(){return useContext($e)}var qe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=ze);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),We=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;We(r)?t+="-"+r.toLowerCase():t+=r;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||false===e||""===e},Je=function(t){var n,r,o=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||oe(i)?o.push("".concat(He(s),":"),i,";"):ce(i)?o.push.apply(o,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),false),["}"],false)):o.push("".concat(He(s),": ").concat((n=s,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in unitlessKeys||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")));}return o};function Xe(e,t,n,r){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(oe(e)){if(!oe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var o=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof qe||ce(o)||null===o||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(o,t,n,r)}var s;return e instanceof qe?n?(e.inject(n,r),[e.getName(r)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,r)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!se(n))return false}return true}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else {var o=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}r=ie(r,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=ie(r,d);}}return r},e}(),et=React.createContext(void 0);et.Consumer;function rt(e){var n=React.useContext(et),o=useMemo(function(){return function(e,n){if(!e)throw he(14);if(oe(e)){var r=e(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw he(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw he(8);return n?__assign(__assign({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?React.createElement(et.Provider,{value:o},e.children):null}var ot={},st=new Set;function it(e,o,s){var i=se(e),a=e,c=!L(e),p=o.attrs,d=void 0===p?_:p,h=o.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);ot[n]=(ot[n]||0)+1;var r="".concat(n,"-").concat($(v+n+ot[n]));return t?"".concat(t,"-").concat(r):r}(o.displayName,o.parentComponentId):h,m=o.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=o.displayName&&o.componentId?"".concat(R(o.displayName),"-").concat(o.componentId):o.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=o.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(o.shouldForwardProp){var E=o.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,o){return function(e,o,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(o,f,c)||C,g=function(e,n,r){for(var o,s=__assign(__assign({},n),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=oe(o=e[i])?o(s):o;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,o,v),S=g.as||h,w={};for(var b in g) void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(r),r}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,s&&(w.ref=s),createElement(S,w)}(D,e,o)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)le(e,o[r],true);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},r=false;return function(o){if(!r&&(n[o]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=true,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&re(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function at(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ct=function(e){return Object.assign(e,{isCss:true})};function lt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(oe(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,true))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Xe(o):ct(Xe(at(o,n)))}function ut(n,r,o){if(void 0===o&&(o=C),!r)throw he(1,r);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(r,o,lt.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ut(n,r,__assign(__assign({},o),{attrs:Array.prototype.concat(o.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,r,__assign(__assign({},o),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});function mt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ae(lt.apply(void 0,__spreadArray([t],n,false))),s=$(o);return new qe(s,o)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var wt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[wt]||(window[wt]=0),1===window[wt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[wt]+=1);
|
|
925
925
|
|
|
926
926
|
var theme = {
|
|
927
927
|
"com/breadcrumbs/module/horizontal-gap": "4px",
|
|
@@ -3661,6 +3661,26 @@ const FISThemeProvider = ({ theme: theme$1 = theme, children, }) => jsx(rt, { th
|
|
|
3661
3661
|
|
|
3662
3662
|
const getTheme = (key) => (props) => props.theme[key];
|
|
3663
3663
|
|
|
3664
|
+
function IncreIcon(props) {
|
|
3665
|
+
const { width = 16, height = 16, ...rest } = props;
|
|
3666
|
+
return (jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsx("path", { d: "M7.99992 3.33331V12.6666M3.33325 7.99998H12.6666", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
function DecreIcon(props) {
|
|
3670
|
+
const { width = 16, height = 16, ...rest } = props;
|
|
3671
|
+
return (jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsx("path", { d: "M3.33325 8H12.6666", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
function DotIcon(props) {
|
|
3675
|
+
const { width = 16, height = 16, ...rest } = props;
|
|
3676
|
+
return (jsxs("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: [jsx("path", { d: "M7.99999 8.66667C8.36818 8.66667 8.66666 8.36819 8.66666 8C8.66666 7.63181 8.36818 7.33334 7.99999 7.33334C7.6318 7.33334 7.33332 7.63181 7.33332 8C7.33332 8.36819 7.6318 8.66667 7.99999 8.66667Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M12.6667 8.66667C13.0348 8.66667 13.3333 8.36819 13.3333 8C13.3333 7.63181 13.0348 7.33334 12.6667 7.33334C12.2985 7.33334 12 7.63181 12 8C12 8.36819 12.2985 8.66667 12.6667 8.66667Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M3.33332 8.66667C3.70151 8.66667 3.99999 8.36819 3.99999 8C3.99999 7.63181 3.70151 7.33334 3.33332 7.33334C2.96513 7.33334 2.66666 7.63181 2.66666 8C2.66666 8.36819 2.96513 8.66667 3.33332 8.66667Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
function SeparatorIcon(props) {
|
|
3680
|
+
const { width = 12, height = 12, ...rest } = props;
|
|
3681
|
+
return (jsx("svg", { width: width, height: height, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsx("path", { d: "M3.5 11L8.5 1", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3664
3684
|
function DropdownIcon(props) {
|
|
3665
3685
|
const { width = 16, height = 16, ...rest } = props;
|
|
3666
3686
|
return (jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
|
|
@@ -3690,6 +3710,11 @@ function RequestButtonLoadingIcon(props) {
|
|
|
3690
3710
|
} }) }) }) }), jsx("path", { d: "m17.294 8.7879c-0.5367 0.17067-1.1132-0.11679-1.2876-0.64204-0.3494-1.0524-0.9894-1.9897-1.8492-2.7083-0.8598-0.71864-1.906-1.1906-3.0228-1.3637s-2.2607-0.0406-3.3054 0.38286c-1.0447 0.42345-1.9493 1.1214-2.6139 2.0166-0.66463 0.89521-1.0633 1.9528-1.152 3.056-0.08872 1.1032 0.13602 2.2088 0.64936 3.1946 0.51334 0.986 1.2953 1.8138 2.2594 2.3919 0.9641 0.5782 2.0728 0.8842 3.2035 0.8842 0.5644 0 1.0219 0.4477 1.0219 1s-0.4575 1-1.0219 1c-1.5076 0-2.9859-0.408-4.2714-1.1789s-2.3281-1.8746-3.0125-3.1892c-0.68445-1.3145-0.9841-2.7887-0.86581-4.2596 0.11829-1.4708 0.6499-2.881 1.5361-4.0746 0.88616-1.1936 2.0924-2.1242 3.4852-2.6888 1.3929-0.56461 2.9182-0.74127 4.4072-0.51047 1.4891 0.2308 2.884 0.86007 4.0304 1.8183 1.1464 0.95818 1.9997 2.2079 2.4656 3.6111 0.1744 0.52525-0.1193 1.0894-0.6561 1.2601z", clipRule: "evenodd", fillRule: "evenodd", "data-figma-gradient-fill": '{"type":"GRADIENT_ANGULAR","stops":[{"color":{"r":0.20392157137393951,"g":0.23921568691730499,"b":0.25490197539329529,"a":1.0},"position":0.69999998807907104},{"color":{"r":0.015686275437474251,"g":0.31764706969261169,"b":0.47058823704719543,"a":0.052999999374151230},"position":0.99000000953674316}],"stopsVar":[{"color":{"r":0.20392157137393951,"g":0.23921568691730499,"b":0.25490197539329529,"a":1.0},"position":0.69999998807907104},{"color":{"r":0.015686275437474251,"g":0.31764706969261169,"b":0.47058823704719543,"a":0.052999999374151230},"position":0.99000000953674316}],"transform":{"m00":2.1799759864807129,"m01":-17.439807891845703,"m02":17.804824829101562,"m10":17.066665649414062,"m11":2.1333332061767578,"m12":0.40000331401824951},"opacity":1.0,"blendMode":"NORMAL","visible":true}' }), jsx("defs", { children: jsx("clipPath", { id: "a", children: jsx("path", { d: "m17.294 8.7879c-0.5367 0.17067-1.1132-0.11679-1.2876-0.64204-0.3494-1.0524-0.9894-1.9897-1.8492-2.7083-0.8598-0.71864-1.906-1.1906-3.0228-1.3637s-2.2607-0.0406-3.3054 0.38286c-1.0447 0.42345-1.9493 1.1214-2.6139 2.0166-0.66463 0.89521-1.0633 1.9528-1.152 3.056-0.08872 1.1032 0.13602 2.2088 0.64936 3.1946 0.51334 0.986 1.2953 1.8138 2.2594 2.3919 0.9641 0.5782 2.0728 0.8842 3.2035 0.8842 0.5644 0 1.0219 0.4477 1.0219 1s-0.4575 1-1.0219 1c-1.5076 0-2.9859-0.408-4.2714-1.1789s-2.3281-1.8746-3.0125-3.1892c-0.68445-1.3145-0.9841-2.7887-0.86581-4.2596 0.11829-1.4708 0.6499-2.881 1.5361-4.0746 0.88616-1.1936 2.0924-2.1242 3.4852-2.6888 1.3929-0.56461 2.9182-0.74127 4.4072-0.51047 1.4891 0.2308 2.884 0.86007 4.0304 1.8183 1.1464 0.95818 1.9997 2.2079 2.4656 3.6111 0.1744 0.52525-0.1193 1.0894-0.6561 1.2601z", clipRule: "evenodd", fillRule: "evenodd" }) }) })] }));
|
|
3691
3711
|
}
|
|
3692
3712
|
|
|
3713
|
+
function ResizeIcon(props) {
|
|
3714
|
+
const { width = 20, height = 20, ...rest } = props;
|
|
3715
|
+
return (jsx("svg", { width: width, height: height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsx("path", { d: "M12 14L14 12M7 14L14 7", stroke: "currentColor", "stroke-linecap": "round" }) }));
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3693
3718
|
const ButtonSC = dt.button `
|
|
3694
3719
|
display: flex;
|
|
3695
3720
|
justify-content: center;
|
|
@@ -3704,16 +3729,22 @@ const ButtonSC = dt.button `
|
|
|
3704
3729
|
cursor: not-allowed;
|
|
3705
3730
|
}
|
|
3706
3731
|
|
|
3732
|
+
&:focus {
|
|
3733
|
+
outline: none;
|
|
3734
|
+
box-shadow: none;
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3707
3737
|
&:focus-visible {
|
|
3708
3738
|
box-shadow:
|
|
3709
3739
|
0px 0px 0px ${getTheme("sem/dimension/stroke-width/divider/lg")}
|
|
3710
3740
|
${getTheme("com/focus-mark/color-gap-spacing")},
|
|
3711
|
-
0px 0px 0px
|
|
3741
|
+
0px 0px 0px ${getTheme("com/focus-mark/corner-radius-default")}
|
|
3742
|
+
${getTheme("com/focus-mark/color-stroke")} !important;
|
|
3712
3743
|
outline: none;
|
|
3713
3744
|
}
|
|
3714
3745
|
|
|
3715
3746
|
.button-content {
|
|
3716
|
-
visibility: ${(props) => (props.$
|
|
3747
|
+
visibility: ${(props) => (props.$loading ? "hidden" : "visible")};
|
|
3717
3748
|
}
|
|
3718
3749
|
|
|
3719
3750
|
// size of the button
|
|
@@ -3848,7 +3879,7 @@ const ButtonSC = dt.button `
|
|
|
3848
3879
|
}
|
|
3849
3880
|
}
|
|
3850
3881
|
|
|
3851
|
-
${props.$
|
|
3882
|
+
${props.$loading &&
|
|
3852
3883
|
lt `
|
|
3853
3884
|
background-color: ${getTheme("com/button/loading/background-color")} !important;
|
|
3854
3885
|
`}
|
|
@@ -3908,7 +3939,7 @@ const ButtonSC = dt.button `
|
|
|
3908
3939
|
}
|
|
3909
3940
|
}
|
|
3910
3941
|
|
|
3911
|
-
${props.$
|
|
3942
|
+
${props.$loading &&
|
|
3912
3943
|
lt `
|
|
3913
3944
|
background-color: ${getTheme("com/button/loading/background-color")} !important;
|
|
3914
3945
|
border-color: ${getTheme("com/button/loading/stroke-color")} !important;
|
|
@@ -3969,7 +4000,7 @@ const ButtonSC = dt.button `
|
|
|
3969
4000
|
}
|
|
3970
4001
|
}
|
|
3971
4002
|
|
|
3972
|
-
${props.$
|
|
4003
|
+
${props.$loading &&
|
|
3973
4004
|
lt `
|
|
3974
4005
|
background-color: ${getTheme("com/button/loading/background-color")} !important;
|
|
3975
4006
|
border-color: ${getTheme("com/button/loading/stroke-color")} !important;
|
|
@@ -4023,7 +4054,7 @@ const ButtonSC = dt.button `
|
|
|
4023
4054
|
}
|
|
4024
4055
|
}
|
|
4025
4056
|
|
|
4026
|
-
${props.$
|
|
4057
|
+
${props.$loading &&
|
|
4027
4058
|
lt `
|
|
4028
4059
|
background-color: ${getTheme("com/button/loading/background-color")} !important;
|
|
4029
4060
|
`}
|
|
@@ -4083,7 +4114,7 @@ const ButtonSC = dt.button `
|
|
|
4083
4114
|
}
|
|
4084
4115
|
}
|
|
4085
4116
|
|
|
4086
|
-
${props.$
|
|
4117
|
+
${props.$loading &&
|
|
4087
4118
|
lt `
|
|
4088
4119
|
background-color: ${getTheme("com/button/loading/background-color")} !important;
|
|
4089
4120
|
border-color: ${getTheme("com/button/loading/stroke-color")};
|
|
@@ -4137,7 +4168,7 @@ const ButtonSC = dt.button `
|
|
|
4137
4168
|
}
|
|
4138
4169
|
}
|
|
4139
4170
|
|
|
4140
|
-
${props.$
|
|
4171
|
+
${props.$loading &&
|
|
4141
4172
|
lt `
|
|
4142
4173
|
background-color: ${getTheme("com/button/loading-invert/solid-background-color")} !important;
|
|
4143
4174
|
`}
|
|
@@ -4199,7 +4230,7 @@ const ButtonSC = dt.button `
|
|
|
4199
4230
|
}
|
|
4200
4231
|
}
|
|
4201
4232
|
|
|
4202
|
-
${props.$
|
|
4233
|
+
${props.$loading &&
|
|
4203
4234
|
lt `
|
|
4204
4235
|
background-color: ${getTheme("com/button/disable-invert/background-color-transparent")} !important;
|
|
4205
4236
|
border-color: ${getTheme("com/button/disable-invert/stroke-color")} !important;
|
|
@@ -4235,12 +4266,13 @@ const SvgSpinningIconSC = dt(RequestButtonLoadingIcon) `
|
|
|
4235
4266
|
`;
|
|
4236
4267
|
|
|
4237
4268
|
const FISButton = forwardRef((props, ref) => {
|
|
4238
|
-
const { active, type, children, size = "md", variant = "primary",
|
|
4239
|
-
const startIcon = startIconProp &&
|
|
4240
|
-
const endIcon = endIconProp &&
|
|
4241
|
-
return (jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$
|
|
4269
|
+
const { active, type, children, size = "md", variant = "primary", loading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
|
|
4270
|
+
const startIcon = startIconProp && jsx(SpanIconSC, { children: startIconProp });
|
|
4271
|
+
const endIcon = endIconProp && jsx(SpanIconSC, { children: endIconProp });
|
|
4272
|
+
return (jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: [loading &&
|
|
4242
4273
|
(variant === "primary-white" || variant === "secondary-white" ? (jsx(SvgSpinningWhiteIconSC, {})) : (jsx(SvgSpinningIconSC, {}))), startIcon, jsx("span", { className: "button-content", children: children }), endIcon] }));
|
|
4243
4274
|
});
|
|
4275
|
+
FISButton.displayName = "FISButton";
|
|
4244
4276
|
|
|
4245
4277
|
const LinkButtonStyled = dt.button `
|
|
4246
4278
|
display: flex;
|
|
@@ -4481,6 +4513,7 @@ const FISLinkButton = forwardRef((props, ref) => {
|
|
|
4481
4513
|
const endIcon = endIconProp && (jsx(IconStyled$1, { className: "button-icon", children: endIconProp }));
|
|
4482
4514
|
return (jsxs(LinkButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$underline": underline, children: [startIcon, jsx("span", { className: "button-content", children: children }), endIcon] }));
|
|
4483
4515
|
});
|
|
4516
|
+
FISLinkButton.displayName = "FISLinkButton";
|
|
4484
4517
|
|
|
4485
4518
|
const ButtonStyled = dt.button `
|
|
4486
4519
|
display: flex;
|
|
@@ -5183,8 +5216,8 @@ const IconStyled = dt.span `
|
|
|
5183
5216
|
align-items: center;
|
|
5184
5217
|
`;
|
|
5185
5218
|
|
|
5186
|
-
const FISGroupButton = ({ size = "md", disabled = false, options, variant, }) => {
|
|
5187
|
-
return (jsx(GroupButtonContainerStyled, { children: options.map((option, index) => (createElement(Button, { ...option, key: index, disabledContainer: disabled, size: size, variant: variant }))) }));
|
|
5219
|
+
const FISGroupButton = ({ className, size = "md", disabled = false, options, variant, }) => {
|
|
5220
|
+
return (jsx(GroupButtonContainerStyled, { className: className, children: options.map((option, index) => (createElement(Button, { ...option, key: index, disabledContainer: disabled, size: size, variant: variant }))) }));
|
|
5188
5221
|
};
|
|
5189
5222
|
const Button = ({ disabledContainer, startIcon: startIconProp, endIcon: endIconProp, size = "md", variant = "default", label, disabled, ...rest }) => {
|
|
5190
5223
|
const onlyIcon = Boolean(!label &&
|
|
@@ -5194,6 +5227,89 @@ const Button = ({ disabledContainer, startIcon: startIconProp, endIcon: endIconP
|
|
|
5194
5227
|
return (jsxs(ButtonItemStyled, { ...rest, disabled: disabledContainer || disabled, "$onlyIcon": onlyIcon, "$size": size, "$variant": variant, children: [startIcon, label && jsx("span", { className: "button-content", children: label }), endIcon] }));
|
|
5195
5228
|
};
|
|
5196
5229
|
|
|
5230
|
+
const DivContainerSC$3 = dt.div `
|
|
5231
|
+
display: flex;
|
|
5232
|
+
align-items: center;
|
|
5233
|
+
`;
|
|
5234
|
+
const DivIconSC$2 = dt.div `
|
|
5235
|
+
display: flex;
|
|
5236
|
+
align-items: center;
|
|
5237
|
+
`;
|
|
5238
|
+
const SpanLabelSC$1 = dt.span `
|
|
5239
|
+
${getTheme("Label/XS")};
|
|
5240
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/default")};
|
|
5241
|
+
`;
|
|
5242
|
+
const ButtonItemSC = dt.button `
|
|
5243
|
+
all: unset;
|
|
5244
|
+
display: flex;
|
|
5245
|
+
align-items: center;
|
|
5246
|
+
cursor: pointer;
|
|
5247
|
+
|
|
5248
|
+
${getTheme("Label/XS")}
|
|
5249
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/default")};
|
|
5250
|
+
padding-top: ${getTheme("com/breadcrumbs/module/vertical-padding")};
|
|
5251
|
+
padding-bottom: ${getTheme("com/breadcrumbs/module/vertical-padding")};
|
|
5252
|
+
padding-right: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
|
|
5253
|
+
padding-left: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
|
|
5254
|
+
border-radius: ${getTheme("sem/dimension/radius/component/sm")};
|
|
5255
|
+
gap: ${getTheme("com/breadcrumbs/module/horizontal-gap")};
|
|
5256
|
+
|
|
5257
|
+
&:hover {
|
|
5258
|
+
background-color: ${getTheme("sem/color/background/neutral/canvas/hover")};
|
|
5259
|
+
${SpanLabelSC$1} {
|
|
5260
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/hover")};
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
${DivIconSC$2} {
|
|
5264
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/icon/color-icon/hover")};
|
|
5265
|
+
}
|
|
5266
|
+
}
|
|
5267
|
+
|
|
5268
|
+
${(props) => props.$active &&
|
|
5269
|
+
lt `
|
|
5270
|
+
background-color: ${getTheme("sem/color/background/neutral/canvas/active")};
|
|
5271
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
5272
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
5273
|
+
|
|
5274
|
+
${SpanLabelSC$1} {
|
|
5275
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/active")};
|
|
5276
|
+
}
|
|
5277
|
+
|
|
5278
|
+
${DivIconSC$2} {
|
|
5279
|
+
color: ${getTheme("com/breadcrumbs/module/non-current/icon/color-icon/active")};
|
|
5280
|
+
}
|
|
5281
|
+
`}
|
|
5282
|
+
|
|
5283
|
+
&:focus-visible {
|
|
5284
|
+
background-color: ${getTheme("com/focus-mark/background-color")};
|
|
5285
|
+
box-shadow: 0 0 0 ${getTheme("sem/dimension/stroke-width/divider/lg")}
|
|
5286
|
+
${getTheme("com/focus-mark/color-gap-spacing")},
|
|
5287
|
+
0 0 0 4px ${getTheme("com/focus-mark/color-stroke")};
|
|
5288
|
+
}
|
|
5289
|
+
`;
|
|
5290
|
+
const DivIconDotSC = dt.div `
|
|
5291
|
+
display: flex;
|
|
5292
|
+
align-items: center;
|
|
5293
|
+
justify-items: center;
|
|
5294
|
+
padding-top: ${getTheme("com/breadcrumbs/module/vertical-padding")};
|
|
5295
|
+
padding-bottom: ${getTheme("com/breadcrumbs/module/vertical-padding")};
|
|
5296
|
+
padding-right: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
|
|
5297
|
+
padding-left: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
|
|
5298
|
+
gap: ${getTheme("com/breadcrumbs/module/horizontal-gap")};
|
|
5299
|
+
border-radius: ${getTheme("com/breadcrumbs/module/corner-radius")};
|
|
5300
|
+
`;
|
|
5301
|
+
|
|
5302
|
+
const MAX_VISIBLE_ITEMS = 4;
|
|
5303
|
+
const BreadcrumbItem = forwardRef(({ label, icon, active, onClick, ...rest }, ref) => {
|
|
5304
|
+
return (jsxs(ButtonItemSC, { ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsx(DivIconSC$2, { children: icon }), label && jsx(SpanLabelSC$1, { children: label })] }));
|
|
5305
|
+
});
|
|
5306
|
+
const BreadcrumbEllipsis = () => (jsxs(Fragment, { children: [jsx(DivIconDotSC, { children: jsx(DotIcon, {}) }), jsx(SeparatorIcon, {})] }));
|
|
5307
|
+
const FISBreadcrumb = ({ items, className }) => {
|
|
5308
|
+
if (items.length === 0)
|
|
5309
|
+
return null;
|
|
5310
|
+
return (jsxs(DivContainerSC$3, { className: className, children: [items?.[0]?.icon && (jsxs(Fragment, { children: [jsx(FISIconButton, { size: "xs", icon: items?.[0]?.icon, variant: "tertiary-invisible", onClick: items[0].onClick }), jsx(SeparatorIcon, {})] })), items.length > MAX_VISIBLE_ITEMS ? (jsxs(Fragment, { children: [items.slice(1, 2).map((item, index) => (jsxs(React.Fragment, { children: [jsx(BreadcrumbItem, { ...item }), jsx(SeparatorIcon, {})] }, index))), jsx(BreadcrumbEllipsis, {}), items.slice(-2).map((item, index) => (jsxs(React.Fragment, { children: [jsx(BreadcrumbItem, { ...item }), jsx(SeparatorIcon, {})] }, `end-${index}`)))] })) : (jsx(Fragment, { children: items.slice(1).map((item, index) => (jsxs(React.Fragment, { children: [jsx(BreadcrumbItem, { ...item }), jsx(SeparatorIcon, {})] }, index))) }))] }));
|
|
5311
|
+
};
|
|
5312
|
+
|
|
5197
5313
|
const SpanRadioControlSC = dt.span `
|
|
5198
5314
|
display: inline-flex;
|
|
5199
5315
|
align-items: center;
|
|
@@ -5378,6 +5494,7 @@ const FISRadio = forwardRef(({ className, children, subLabel, checked = false, d
|
|
|
5378
5494
|
const radioId = `radio-${useId()}`;
|
|
5379
5495
|
return (jsxs(LabelRadioContainerSC, { ref: forwardedRef, className: className, "$checked": checked, "$disabled": disabled, "$size": size, "$variant": variant, children: [jsxs(SpanRadioControlSC, { tabIndex: disabled ? -1 : 0, children: [jsx(InputVisuallyHiddenSC, { ...rest, ref: inputRef, type: "radio", checked: checked, disabled: disabled, "aria-label": ariaLabel, "aria-labelledby": children ? radioId : undefined }), checked && jsx(SpanRadioControlInnerSC, {})] }), (children || subLabel) && (jsxs(SpanLabelContainerSC, { children: [children && jsx(SpanLabelSC, { id: radioId, children: children }), subLabel && jsx(SpanSubLabelSC, { children: subLabel })] }))] }));
|
|
5380
5496
|
});
|
|
5497
|
+
FISRadio.displayName = "FISRadio";
|
|
5381
5498
|
|
|
5382
5499
|
const CheckboxControlStyled = dt.span `
|
|
5383
5500
|
display: inline-flex;
|
|
@@ -5572,6 +5689,7 @@ const FISCheckbox = forwardRef(({ className, children, subLabel, checked = false
|
|
|
5572
5689
|
const checkboxId = `checkbox-${useId()}`;
|
|
5573
5690
|
return (jsxs(CheckboxContainerStyled, { ref: forwardedRef, className: className, "$checked": checked, "$indeterminate": indeterminate, "$disabled": disabled, "$size": size, "$variant": variant, children: [jsxs(CheckboxControlStyled, { tabIndex: disabled ? -1 : 0, children: [jsx(VisuallyHiddenStyled, { ...rest, ref: inputRef, type: "checkbox", checked: checked, disabled: disabled, "aria-labelledby": children ? checkboxId : undefined }), checked ? jsx(checkedIcon, {}) : null, !checked && indeterminate ? jsx(IndeterminateIcon, {}) : null] }), (children || subLabel) && (jsxs(LabelContainerStyled, { children: [children && jsx(LabelStyled, { id: checkboxId, children: children }), subLabel && jsx(SubLabelStyled, { children: subLabel })] }))] }));
|
|
5574
5691
|
});
|
|
5692
|
+
FISCheckbox.displayName = "FISCheckbox";
|
|
5575
5693
|
|
|
5576
5694
|
var classnames = {exports: {}};
|
|
5577
5695
|
|
|
@@ -5653,12 +5771,13 @@ var classnames = {exports: {}};
|
|
|
5653
5771
|
var classnamesExports = classnames.exports;
|
|
5654
5772
|
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
5655
5773
|
|
|
5656
|
-
const InputSC = dt.input `
|
|
5774
|
+
const InputSC$1 = dt.input `
|
|
5657
5775
|
width: 100%;
|
|
5658
5776
|
${getTheme("Paragraph/Sm")}
|
|
5659
5777
|
color: ${getTheme("com/input/field/default/label/color-text/inputed")};
|
|
5660
5778
|
padding-right: ${getTheme("com/input/field/size-md/label/sub-spacing")};
|
|
5661
5779
|
padding-left: ${getTheme("com/input/field/size-md/label/sub-spacing")};
|
|
5780
|
+
caret-color: ${getTheme("com/typing-cursor/default")};
|
|
5662
5781
|
border: none;
|
|
5663
5782
|
background: transparent;
|
|
5664
5783
|
outline: none;
|
|
@@ -5672,11 +5791,11 @@ const InputSC = dt.input `
|
|
|
5672
5791
|
color: ${getTheme("com/input/field/disable/label-color")};
|
|
5673
5792
|
}
|
|
5674
5793
|
}
|
|
5675
|
-
&.
|
|
5794
|
+
&.negative {
|
|
5676
5795
|
color: ${getTheme("com/input/field/negative/label/color-text/inputed")};
|
|
5677
5796
|
}
|
|
5678
5797
|
`;
|
|
5679
|
-
const DivIconSC = dt.div `
|
|
5798
|
+
const DivIconSC$1 = dt.div `
|
|
5680
5799
|
display: flex;
|
|
5681
5800
|
flex-shrink: 0;
|
|
5682
5801
|
align-items: center;
|
|
@@ -5740,19 +5859,24 @@ const DivDropdownSC = dt.div `
|
|
|
5740
5859
|
}
|
|
5741
5860
|
|
|
5742
5861
|
&:focus {
|
|
5743
|
-
box-shadow:
|
|
5862
|
+
box-shadow:
|
|
5863
|
+
0 0 0 ${getTheme("com/focus-mark/gap-spacing")}
|
|
5744
5864
|
${getTheme("com/focus-mark/color-gap-spacing")},
|
|
5745
5865
|
0 0 0 4px ${getTheme("com/focus-mark/color-stroke")};
|
|
5746
5866
|
border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
|
|
5747
5867
|
border-left: none;
|
|
5748
5868
|
}
|
|
5749
5869
|
|
|
5750
|
-
&.
|
|
5870
|
+
&.actived {
|
|
5751
5871
|
background-color: ${getTheme("com/input/dropdown/background/actived")};
|
|
5752
5872
|
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
5753
5873
|
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
5754
5874
|
border-left: none;
|
|
5755
5875
|
}
|
|
5876
|
+
|
|
5877
|
+
&.disabled {
|
|
5878
|
+
cursor: not-allowed;
|
|
5879
|
+
}
|
|
5756
5880
|
`;
|
|
5757
5881
|
const DivSuffixSC = dt.div `
|
|
5758
5882
|
display: flex;
|
|
@@ -5765,12 +5889,17 @@ const DivSuffixSC = dt.div `
|
|
|
5765
5889
|
${getTheme("com/input/suffix/divider/color-stroke")};
|
|
5766
5890
|
height: 100%;
|
|
5767
5891
|
cursor: pointer;
|
|
5892
|
+
|
|
5893
|
+
&.disabled {
|
|
5894
|
+
cursor: not-allowed;
|
|
5895
|
+
}
|
|
5768
5896
|
`;
|
|
5769
5897
|
const SpanTextSC = dt.span `
|
|
5770
5898
|
${getTheme("Paragraph/XS")};
|
|
5771
5899
|
color: ${getTheme("com/input/suffix/label/color-text")};
|
|
5772
5900
|
`;
|
|
5773
|
-
const DivContainerSC$
|
|
5901
|
+
const DivContainerSC$2 = dt.div `
|
|
5902
|
+
width: fit-content;
|
|
5774
5903
|
height: ${getTheme("com/input/field/size-md/height")};
|
|
5775
5904
|
min-height: ${getTheme("com/input/field/size-md/height")};
|
|
5776
5905
|
max-height: ${getTheme("com/input/field/size-md/height")};
|
|
@@ -5784,7 +5913,7 @@ const DivContainerSC$1 = dt.div `
|
|
|
5784
5913
|
display: flex;
|
|
5785
5914
|
align-items: center;
|
|
5786
5915
|
|
|
5787
|
-
&.
|
|
5916
|
+
&.dropdown {
|
|
5788
5917
|
padding-right: 0;
|
|
5789
5918
|
}
|
|
5790
5919
|
.icon-suffix {
|
|
@@ -5792,7 +5921,7 @@ const DivContainerSC$1 = dt.div `
|
|
|
5792
5921
|
color: ${getTheme("com/button/tertiary/icon/color-icon/default")};
|
|
5793
5922
|
}
|
|
5794
5923
|
|
|
5795
|
-
&.
|
|
5924
|
+
&.negative {
|
|
5796
5925
|
color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
|
|
5797
5926
|
}
|
|
5798
5927
|
|
|
@@ -5803,12 +5932,12 @@ const DivContainerSC$1 = dt.div `
|
|
|
5803
5932
|
border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
|
|
5804
5933
|
}
|
|
5805
5934
|
|
|
5806
|
-
&:has(${InputSC}:disabled) {
|
|
5935
|
+
&:has(${InputSC$1}:disabled) {
|
|
5807
5936
|
border-color: ${getTheme("com/input/field/disable/stroke-color")};
|
|
5808
5937
|
background-color: ${getTheme("com/input/field/disable/background-color")};
|
|
5809
5938
|
cursor: not-allowed;
|
|
5810
5939
|
|
|
5811
|
-
${DivIconSC} {
|
|
5940
|
+
${DivIconSC$1} {
|
|
5812
5941
|
color: ${getTheme("com/input/field/disable/icon-color")};
|
|
5813
5942
|
}
|
|
5814
5943
|
${DivIconSuffixSC} {
|
|
@@ -5832,25 +5961,25 @@ const DivContainerSC$1 = dt.div `
|
|
|
5832
5961
|
border-color: ${getTheme("com/input/field/default/border/hover")};
|
|
5833
5962
|
background-color: ${getTheme("com/input/field/default/background/hover")};
|
|
5834
5963
|
|
|
5835
|
-
${DivIconSC} {
|
|
5964
|
+
${DivIconSC$1} {
|
|
5836
5965
|
color: ${getTheme("com/input/field/default/icon/color-icon/hover")};
|
|
5837
5966
|
}
|
|
5838
5967
|
}
|
|
5839
|
-
&:has(${InputSC}:focus) {
|
|
5968
|
+
&:has(${InputSC$1}:focus) {
|
|
5840
5969
|
border-color: ${getTheme("com/input/field/default/border/active")};
|
|
5841
5970
|
background-color: ${getTheme("com/input/field/default/background/active")};
|
|
5842
5971
|
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
5843
5972
|
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
5844
5973
|
|
|
5845
|
-
${DivIconSC} {
|
|
5974
|
+
${DivIconSC$1} {
|
|
5846
5975
|
color: ${getTheme("com/input/field/default/icon/color-icon/active")};
|
|
5847
5976
|
}
|
|
5848
5977
|
}
|
|
5849
|
-
&.
|
|
5978
|
+
&.negative {
|
|
5850
5979
|
border-color: ${getTheme("com/input/field/negative/border/default")};
|
|
5851
5980
|
background-color: ${getTheme("com/input/field/negative/background/default")};
|
|
5852
5981
|
|
|
5853
|
-
${DivIconSC} {
|
|
5982
|
+
${DivIconSC$1} {
|
|
5854
5983
|
color: ${getTheme("com/input/field/negative/icon/color-icon/default")};
|
|
5855
5984
|
}
|
|
5856
5985
|
|
|
@@ -5858,11 +5987,22 @@ const DivContainerSC$1 = dt.div `
|
|
|
5858
5987
|
border-color: ${getTheme("com/input/field/negative/border/hover")};
|
|
5859
5988
|
background-color: ${getTheme("com/input/field/negative/background/hover")};
|
|
5860
5989
|
|
|
5861
|
-
${DivIconSC} {
|
|
5990
|
+
${DivIconSC$1} {
|
|
5862
5991
|
color: ${getTheme("com/input/field/negative/icon/color-icon/hover")};
|
|
5863
5992
|
}
|
|
5864
5993
|
}
|
|
5865
5994
|
|
|
5995
|
+
&:has(${InputSC$1}:focus) {
|
|
5996
|
+
border-color: ${getTheme("com/input/field/negative/border/active")};
|
|
5997
|
+
background-color: ${getTheme("com/input/field/negative/background/active")};
|
|
5998
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
5999
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
6000
|
+
|
|
6001
|
+
${DivIconSC$1} {
|
|
6002
|
+
color: ${getTheme("com/input/field/negative/icon/color-icon/active")};
|
|
6003
|
+
}
|
|
6004
|
+
}
|
|
6005
|
+
|
|
5866
6006
|
&::placeholder {
|
|
5867
6007
|
color: ${getTheme("com/input/field/negative/label/color-text/placeholder")};
|
|
5868
6008
|
}
|
|
@@ -5870,21 +6010,22 @@ const DivContainerSC$1 = dt.div `
|
|
|
5870
6010
|
`;
|
|
5871
6011
|
|
|
5872
6012
|
const FISInputField = forwardRef(({ onClickSuffix, ...props }, ref) => {
|
|
5873
|
-
const { sizeInput = "md", iconPrefix, iconSuffix, labelSuffix, typeSuffix,
|
|
5874
|
-
return (jsxs(DivContainerSC$
|
|
6013
|
+
const { sizeInput = "md", iconPrefix, iconSuffix, labelSuffix, typeSuffix, disabled = true, negative, actived, ...rest } = props;
|
|
6014
|
+
return (jsxs(DivContainerSC$2, { className: classNames({
|
|
5875
6015
|
"input-text-lg": sizeInput === "lg",
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
}), children: [iconPrefix && jsx(DivIconSC, { children: iconPrefix }), jsx(InputSC, { ...rest, ref: ref, className: classNames({
|
|
5879
|
-
|
|
5880
|
-
}) }), typeSuffix === "icon" && iconSuffix && (jsx(FISIconButton, { size: "sm", icon: iconSuffix, variant: "tertiary-invisible", className: "icon-suffix", onClick: onClickSuffix })), typeSuffix === "suffix" && (jsxs(DivSuffixSC, { onClick: onClickSuffix, children: [iconSuffix && jsx(DivIconSuffixSC, { children: iconSuffix }), labelSuffix && jsx(SpanTextSC, { children: labelSuffix })] })), typeSuffix === "dropdown" && (jsxs(DivDropdownSC, { className: classNames({
|
|
6016
|
+
negative: negative,
|
|
6017
|
+
dropdown: typeSuffix === "dropdown",
|
|
6018
|
+
}), children: [iconPrefix && jsx(DivIconSC$1, { children: iconPrefix }), jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, className: classNames({
|
|
6019
|
+
negative: negative,
|
|
6020
|
+
}) }), typeSuffix === "icon" && iconSuffix && (jsx(FISIconButton, { size: "sm", icon: iconSuffix, variant: "tertiary-invisible", className: "icon-suffix", onClick: onClickSuffix, disabled: disabled })), typeSuffix === "suffix" && (jsxs(DivSuffixSC, { onClick: onClickSuffix, className: classNames({ disabled: disabled }), children: [iconSuffix && jsx(DivIconSuffixSC, { children: iconSuffix }), labelSuffix && jsx(SpanTextSC, { children: labelSuffix })] })), typeSuffix === "dropdown" && (jsxs(DivDropdownSC, { className: classNames({ actived: actived, disabled: disabled }), onClick: onClickSuffix, children: [iconSuffix && jsx(DivIconDropSC, { children: iconSuffix }), labelSuffix && jsx(SpanTextDropSC, { children: labelSuffix }), jsx(DivIconSuffixSC, { children: jsx(DropdownIcon, {}) })] }))] }));
|
|
5881
6021
|
});
|
|
5882
6022
|
FISInputField.displayName = "FISInputField";
|
|
5883
6023
|
|
|
5884
|
-
const DivContainerSC = dt.div `
|
|
6024
|
+
const DivContainerSC$1 = dt.div `
|
|
5885
6025
|
display: flex;
|
|
5886
6026
|
flex-direction: column;
|
|
5887
6027
|
gap: ${getTheme("com/input/vertical-gap")};
|
|
6028
|
+
width: fit-content;
|
|
5888
6029
|
`;
|
|
5889
6030
|
const SpanCountSC = dt.span `
|
|
5890
6031
|
${getTheme("Subheading/XS")}
|
|
@@ -5892,7 +6033,7 @@ const SpanCountSC = dt.span `
|
|
|
5892
6033
|
padding-right: ${getTheme("com/input/character-limit/horizontal-padding")};
|
|
5893
6034
|
padding-left: ${getTheme("com/input/character-limit/horizontal-padding")};
|
|
5894
6035
|
|
|
5895
|
-
&.
|
|
6036
|
+
&.negative {
|
|
5896
6037
|
color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
|
|
5897
6038
|
}
|
|
5898
6039
|
`;
|
|
@@ -5900,25 +6041,25 @@ const DivHintWrapperSC = dt.div `
|
|
|
5900
6041
|
display: flex;
|
|
5901
6042
|
justify-content: space-between;
|
|
5902
6043
|
`;
|
|
5903
|
-
const SpanHintSC = dt.span `
|
|
6044
|
+
const SpanHintSC$2 = dt.span `
|
|
5904
6045
|
${getTheme("Paragraph/XS")}
|
|
5905
6046
|
color: ${getTheme("com/input/hint/neutral/label/color-text")};
|
|
5906
6047
|
padding-top: ${getTheme("com/input/hint/top-padding")};
|
|
5907
6048
|
|
|
5908
|
-
&.
|
|
6049
|
+
&.negative {
|
|
5909
6050
|
color: ${getTheme("com/input/hint/negative/label/color-text")};
|
|
5910
6051
|
}
|
|
5911
6052
|
|
|
5912
|
-
&.
|
|
6053
|
+
&.positive {
|
|
5913
6054
|
color: ${getTheme("com/input/hint/positive/label/color-text")};
|
|
5914
6055
|
}
|
|
5915
6056
|
|
|
5916
|
-
&.disabled
|
|
6057
|
+
&.disabled {
|
|
5917
6058
|
color: ${getTheme("com/input/hint/disable/label/color-text")};
|
|
5918
6059
|
}
|
|
5919
6060
|
`;
|
|
5920
6061
|
|
|
5921
|
-
const
|
|
6062
|
+
const DivLabelSC = dt.div `
|
|
5922
6063
|
width: 100%;
|
|
5923
6064
|
display: flex;
|
|
5924
6065
|
align-items: center;
|
|
@@ -5932,23 +6073,24 @@ const SpanRequiredSC = dt.span `
|
|
|
5932
6073
|
color: ${getTheme("com/input/label/required-mark/color-text")};
|
|
5933
6074
|
`;
|
|
5934
6075
|
|
|
5935
|
-
const FISInputLabel =
|
|
5936
|
-
const { textLabel,
|
|
5937
|
-
return (jsxs(
|
|
6076
|
+
const FISInputLabel = React.forwardRef((props) => {
|
|
6077
|
+
const { textLabel, required, iconLabel, onClickIconLabel } = props;
|
|
6078
|
+
return (jsxs(DivLabelSC, { children: [jsxs(LabelTextSC, { children: [textLabel, required && jsx(SpanRequiredSC, { children: "\u00A0*" })] }), iconLabel && (jsx(FISIconButton, { size: "xs", variant: "tertiary-invisible", icon: iconLabel, onClick: onClickIconLabel }))] }));
|
|
5938
6079
|
});
|
|
6080
|
+
FISInputLabel.displayName = "FISInputLabel";
|
|
5939
6081
|
|
|
5940
6082
|
const FISInputText = forwardRef((props, ref) => {
|
|
5941
|
-
const { typeSuffix, textLabel = "",
|
|
5942
|
-
const [internalValue, setInternalValue] =
|
|
5943
|
-
const isEdited =
|
|
5944
|
-
const inputRef =
|
|
5945
|
-
const handleChange =
|
|
6083
|
+
const { className, typeSuffix, textLabel = "", iconLabel, required, iconPrefix, sizeInput, showCount, message, negative, positive, maxLength = 500, value, disabled, onChange, onEnter, onBlur, onKeyDown, onClickIconLabel, onClickSuffix, autoFocus, ...rest } = props;
|
|
6084
|
+
const [internalValue, setInternalValue] = React.useState("");
|
|
6085
|
+
const isEdited = React.useRef(false);
|
|
6086
|
+
const inputRef = React.useRef(null);
|
|
6087
|
+
const handleChange = React.useCallback((event) => {
|
|
5946
6088
|
setInternalValue(event.target.value);
|
|
5947
6089
|
if (onChange) {
|
|
5948
6090
|
onChange(event.target.value);
|
|
5949
6091
|
}
|
|
5950
6092
|
}, [onChange]);
|
|
5951
|
-
const handleKeyPress =
|
|
6093
|
+
const handleKeyPress = React.useCallback((event) => {
|
|
5952
6094
|
if (!event)
|
|
5953
6095
|
return;
|
|
5954
6096
|
if (event.key === "Enter") {
|
|
@@ -5957,17 +6099,17 @@ const FISInputText = forwardRef((props, ref) => {
|
|
|
5957
6099
|
}
|
|
5958
6100
|
}
|
|
5959
6101
|
}, [onEnter]);
|
|
5960
|
-
const handleKeyDown =
|
|
6102
|
+
const handleKeyDown = React.useCallback((event) => {
|
|
5961
6103
|
if (onKeyDown) {
|
|
5962
6104
|
onKeyDown(event);
|
|
5963
6105
|
}
|
|
5964
6106
|
}, [onKeyDown]);
|
|
5965
|
-
const handleBlur =
|
|
6107
|
+
const handleBlur = React.useCallback((event) => {
|
|
5966
6108
|
if (typeof onBlur === "function") {
|
|
5967
6109
|
onBlur(event.currentTarget.value);
|
|
5968
6110
|
}
|
|
5969
6111
|
}, [onBlur]);
|
|
5970
|
-
|
|
6112
|
+
React.useEffect(() => {
|
|
5971
6113
|
if (value) {
|
|
5972
6114
|
setInternalValue(value);
|
|
5973
6115
|
}
|
|
@@ -5976,7 +6118,7 @@ const FISInputText = forwardRef((props, ref) => {
|
|
|
5976
6118
|
}
|
|
5977
6119
|
isEdited.current = true;
|
|
5978
6120
|
}, [value]);
|
|
5979
|
-
|
|
6121
|
+
React.useEffect(() => {
|
|
5980
6122
|
if (autoFocus && inputRef.current) {
|
|
5981
6123
|
inputRef.current.focus();
|
|
5982
6124
|
}
|
|
@@ -6003,17 +6145,918 @@ const FISInputText = forwardRef((props, ref) => {
|
|
|
6003
6145
|
},
|
|
6004
6146
|
};
|
|
6005
6147
|
});
|
|
6006
|
-
return (jsxs(DivContainerSC, { children: [
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
}), children:
|
|
6011
|
-
|
|
6012
|
-
}), children: isHintText ? hintText : "" })), showCount && maxLength > 0 && (jsxs(SpanCountSC, { className: classNames({
|
|
6013
|
-
"is-error": internalValue.length > maxLength,
|
|
6148
|
+
return (jsxs(DivContainerSC$1, { className: className, children: [(textLabel || iconLabel) && (jsx(FISInputLabel, { textLabel: textLabel, required: required, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsx(FISInputField, { ...rest, typeSuffix: typeSuffix, sizeInput: sizeInput, value: internalValue, iconPrefix: iconPrefix, onChange: handleChange, onKeyPress: handleKeyPress, onKeyDown: handleKeyDown, onBlur: handleBlur, disabled: disabled, ref: inputRef, negative: negative, onClickSuffix: onClickSuffix }), jsxs(DivHintWrapperSC, { children: [jsx(SpanHintSC$2, { className: classNames({
|
|
6149
|
+
disabled: disabled,
|
|
6150
|
+
negative: negative,
|
|
6151
|
+
positive: positive,
|
|
6152
|
+
}), children: message ? message : "" }), showCount && maxLength > 0 && (jsxs(SpanCountSC, { className: classNames({
|
|
6153
|
+
negative: internalValue.length > maxLength,
|
|
6014
6154
|
}), children: [internalValue.length, "/", maxLength] }))] })] }));
|
|
6015
6155
|
});
|
|
6016
6156
|
FISInputText.displayName = "FISInputText";
|
|
6017
6157
|
|
|
6018
|
-
|
|
6158
|
+
const DivContainer = dt.div `
|
|
6159
|
+
position: relative;
|
|
6160
|
+
display: flex;
|
|
6161
|
+
align-items: center;
|
|
6162
|
+
justify-content: center;
|
|
6163
|
+
|
|
6164
|
+
${(props) => {
|
|
6165
|
+
switch (props.$size) {
|
|
6166
|
+
case "2xs":
|
|
6167
|
+
return lt `
|
|
6168
|
+
border: ${getTheme("com/avatar/size-2xs/stroke-width")} solid
|
|
6169
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6170
|
+
`;
|
|
6171
|
+
case "xs":
|
|
6172
|
+
return lt `
|
|
6173
|
+
border: ${getTheme("com/avatar/size-xs/stroke-width")} solid
|
|
6174
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6175
|
+
`;
|
|
6176
|
+
case "sm":
|
|
6177
|
+
return lt `
|
|
6178
|
+
border: ${getTheme("com/avatar/size-sm/stroke-width")} solid
|
|
6179
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6180
|
+
`;
|
|
6181
|
+
case "md":
|
|
6182
|
+
return lt `
|
|
6183
|
+
border: ${getTheme("com/avatar/size-md/stroke-width")} solid
|
|
6184
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6185
|
+
`;
|
|
6186
|
+
case "lg":
|
|
6187
|
+
return lt `
|
|
6188
|
+
border: ${getTheme("com/avatar/size-lg/stroke-width")} solid
|
|
6189
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6190
|
+
`;
|
|
6191
|
+
case "xl":
|
|
6192
|
+
return lt `
|
|
6193
|
+
border: ${getTheme("com/avatar/size-xl/stroke-width")} solid
|
|
6194
|
+
${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6195
|
+
`;
|
|
6196
|
+
}
|
|
6197
|
+
}}
|
|
6198
|
+
${(props) => {
|
|
6199
|
+
switch (props.$color) {
|
|
6200
|
+
case "neutral":
|
|
6201
|
+
return lt `
|
|
6202
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/neutral")};
|
|
6203
|
+
background-color: ${getTheme("com/avatar/theme/background-color/neutral")};
|
|
6204
|
+
`;
|
|
6205
|
+
case "orange":
|
|
6206
|
+
return lt `
|
|
6207
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/orange")};
|
|
6208
|
+
background-color: ${getTheme("com/avatar/theme/background-color/orange")};
|
|
6209
|
+
`;
|
|
6210
|
+
case "yellow":
|
|
6211
|
+
return lt `
|
|
6212
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/yellow")};
|
|
6213
|
+
background-color: ${getTheme("com/avatar/theme/background-color/yellow")};
|
|
6214
|
+
`;
|
|
6215
|
+
case "lime":
|
|
6216
|
+
return lt `
|
|
6217
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/lime")};
|
|
6218
|
+
background-color: ${getTheme("com/avatar/theme/background-color/lime")};
|
|
6219
|
+
`;
|
|
6220
|
+
case "green":
|
|
6221
|
+
return lt `
|
|
6222
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/green")};
|
|
6223
|
+
background-color: ${getTheme("com/avatar/theme/background-color/green")};
|
|
6224
|
+
`;
|
|
6225
|
+
case "ocean":
|
|
6226
|
+
return lt `
|
|
6227
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/ocean")};
|
|
6228
|
+
background-color: ${getTheme("com/avatar/theme/background-color/ocean")};
|
|
6229
|
+
`;
|
|
6230
|
+
case "blue":
|
|
6231
|
+
return lt `
|
|
6232
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/blue")};
|
|
6233
|
+
background-color: ${getTheme("com/avatar/theme/background-color/blue")};
|
|
6234
|
+
`;
|
|
6235
|
+
case "indigo":
|
|
6236
|
+
return lt `
|
|
6237
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/indigo")};
|
|
6238
|
+
background-color: ${getTheme("com/avatar/theme/background-color/indigo")};
|
|
6239
|
+
`;
|
|
6240
|
+
case "violet":
|
|
6241
|
+
return lt `
|
|
6242
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/violet")};
|
|
6243
|
+
background-color: ${getTheme("com/avatar/theme/background-color/violet")};
|
|
6244
|
+
`;
|
|
6245
|
+
case "pink":
|
|
6246
|
+
return lt `
|
|
6247
|
+
border-color: ${getTheme("com/avatar/theme/color-stroke/pink")};
|
|
6248
|
+
background-color: ${getTheme("com/avatar/theme/background-color/pink")};
|
|
6249
|
+
`;
|
|
6250
|
+
case "disable":
|
|
6251
|
+
return lt `
|
|
6252
|
+
border-color: ${getTheme("com/avatar/disable/color-stroke")};
|
|
6253
|
+
background-color: ${getTheme("com/avatar/disable/background-color")};
|
|
6254
|
+
`;
|
|
6255
|
+
}
|
|
6256
|
+
}}
|
|
6257
|
+
// size of the avatar
|
|
6258
|
+
${(props) => {
|
|
6259
|
+
switch (props.$size) {
|
|
6260
|
+
case "2xs":
|
|
6261
|
+
return lt `
|
|
6262
|
+
width: ${getTheme("com/avatar/size-2xs/width")};
|
|
6263
|
+
height: ${getTheme("com/avatar/size-2xs/height")};
|
|
6264
|
+
min-width: ${getTheme("com/avatar/size-2xs/width")};
|
|
6265
|
+
max-width: ${getTheme("com/avatar/size-2xs/width")};
|
|
6266
|
+
min-height: ${getTheme("com/avatar/size-2xs/height")};
|
|
6267
|
+
max-height: ${getTheme("com/avatar/size-2xs/height")};
|
|
6268
|
+
`;
|
|
6269
|
+
case "xs":
|
|
6270
|
+
return lt `
|
|
6271
|
+
width: ${getTheme("com/avatar/size-xs/width")};
|
|
6272
|
+
height: ${getTheme("com/avatar/size-xs/height")};
|
|
6273
|
+
min-width: ${getTheme("com/avatar/size-xs/width")};
|
|
6274
|
+
max-width: ${getTheme("com/avatar/size-xs/width")};
|
|
6275
|
+
min-height: ${getTheme("com/avatar/size-xs/height")};
|
|
6276
|
+
max-height: ${getTheme("com/avatar/size-xs/height")};
|
|
6277
|
+
`;
|
|
6278
|
+
case "sm":
|
|
6279
|
+
return lt `
|
|
6280
|
+
width: ${getTheme("com/avatar/size-sm/width")};
|
|
6281
|
+
height: ${getTheme("com/avatar/size-sm/height")};
|
|
6282
|
+
min-width: ${getTheme("com/avatar/size-sm/width")};
|
|
6283
|
+
max-width: ${getTheme("com/avatar/size-sm/width")};
|
|
6284
|
+
min-height: ${getTheme("com/avatar/size-sm/height")};
|
|
6285
|
+
max-height: ${getTheme("com/avatar/size-sm/height")};
|
|
6286
|
+
`;
|
|
6287
|
+
case "md":
|
|
6288
|
+
return lt `
|
|
6289
|
+
width: ${getTheme("com/avatar/size-md/width")};
|
|
6290
|
+
height: ${getTheme("com/avatar/size-md/height")};
|
|
6291
|
+
min-width: ${getTheme("com/avatar/size-md/width")};
|
|
6292
|
+
max-width: ${getTheme("com/avatar/size-md/width")};
|
|
6293
|
+
min-height: ${getTheme("com/avatar/size-md/height")};
|
|
6294
|
+
max-height: ${getTheme("com/avatar/size-md/height")};
|
|
6295
|
+
`;
|
|
6296
|
+
case "lg":
|
|
6297
|
+
return lt `
|
|
6298
|
+
width: ${getTheme("com/avatar/size-lg/width")};
|
|
6299
|
+
height: ${getTheme("com/avatar/size-lg/height")};
|
|
6300
|
+
min-width: ${getTheme("com/avatar/size-lg/width")};
|
|
6301
|
+
max-width: ${getTheme("com/avatar/size-lg/width")};
|
|
6302
|
+
min-height: ${getTheme("com/avatar/size-lg/height")};
|
|
6303
|
+
max-height: ${getTheme("com/avatar/size-lg/height")};
|
|
6304
|
+
`;
|
|
6305
|
+
case "xl":
|
|
6306
|
+
return lt `
|
|
6307
|
+
width: ${getTheme("com/avatar/size-xl/width")};
|
|
6308
|
+
height: ${getTheme("com/avatar/size-xl/height")};
|
|
6309
|
+
min-width: ${getTheme("com/avatar/size-xl/width")};
|
|
6310
|
+
max-width: ${getTheme("com/avatar/size-xl/width")};
|
|
6311
|
+
min-height: ${getTheme("com/avatar/size-xl/height")};
|
|
6312
|
+
max-height: ${getTheme("com/avatar/size-xl/height")};
|
|
6313
|
+
`;
|
|
6314
|
+
}
|
|
6315
|
+
}}
|
|
6316
|
+
${(props) => {
|
|
6317
|
+
switch (props.$badge) {
|
|
6318
|
+
case "rounded":
|
|
6319
|
+
return lt `
|
|
6320
|
+
border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
|
|
6321
|
+
`;
|
|
6322
|
+
case "square":
|
|
6323
|
+
return lt `
|
|
6324
|
+
border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
|
|
6325
|
+
`;
|
|
6326
|
+
}
|
|
6327
|
+
}};
|
|
6328
|
+
`;
|
|
6329
|
+
const ImgAvatar = dt.img `
|
|
6330
|
+
object-fit: cover;
|
|
6331
|
+
display: flex;
|
|
6332
|
+
align-items: center;
|
|
6333
|
+
justify-content: center;
|
|
6334
|
+
width: 100%;
|
|
6335
|
+
height: 100%;
|
|
6336
|
+
|
|
6337
|
+
// badge of the avatar
|
|
6338
|
+
${(props) => {
|
|
6339
|
+
switch (props.$badge) {
|
|
6340
|
+
case "rounded":
|
|
6341
|
+
return lt `
|
|
6342
|
+
border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
|
|
6343
|
+
`;
|
|
6344
|
+
case "square":
|
|
6345
|
+
return lt `
|
|
6346
|
+
border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
|
|
6347
|
+
`;
|
|
6348
|
+
}
|
|
6349
|
+
}}
|
|
6350
|
+
`;
|
|
6351
|
+
const DivIcon = dt.div `
|
|
6352
|
+
object-fit: cover;
|
|
6353
|
+
display: flex;
|
|
6354
|
+
align-items: center;
|
|
6355
|
+
justify-content: center;
|
|
6356
|
+
|
|
6357
|
+
${(props) => {
|
|
6358
|
+
switch (props.$size) {
|
|
6359
|
+
case "2xs":
|
|
6360
|
+
return lt `
|
|
6361
|
+
width: ${getTheme("com/avatar/size-2xs/size-icon")};
|
|
6362
|
+
height: ${getTheme("com/avatar/size-2xs/size-icon")};
|
|
6363
|
+
`;
|
|
6364
|
+
case "xs":
|
|
6365
|
+
return lt `
|
|
6366
|
+
width: ${getTheme("com/avatar/size-xs/size-icon")};
|
|
6367
|
+
height: ${getTheme("com/avatar/size-xs/size-icon")};
|
|
6368
|
+
`;
|
|
6369
|
+
case "sm":
|
|
6370
|
+
return lt `
|
|
6371
|
+
width: ${getTheme("com/avatar/size-sm/size-icon")};
|
|
6372
|
+
height: ${getTheme("com/avatar/size-sm/size-icon")};
|
|
6373
|
+
`;
|
|
6374
|
+
case "md":
|
|
6375
|
+
return lt `
|
|
6376
|
+
width: ${getTheme("com/avatar/size-md/size-icon")};
|
|
6377
|
+
height: ${getTheme("com/avatar/size-md/size-icon")};
|
|
6378
|
+
`;
|
|
6379
|
+
case "lg":
|
|
6380
|
+
return lt `
|
|
6381
|
+
width: ${getTheme("com/avatar/size-lg/size-icon")};
|
|
6382
|
+
height: ${getTheme("com/avatar/size-lg/size-icon")};
|
|
6383
|
+
`;
|
|
6384
|
+
case "xl":
|
|
6385
|
+
return lt `
|
|
6386
|
+
width: ${getTheme("com/avatar/size-xl/size-icon")};
|
|
6387
|
+
height: ${getTheme("com/avatar/size-xl/size-icon")};
|
|
6388
|
+
`;
|
|
6389
|
+
}
|
|
6390
|
+
}}
|
|
6391
|
+
// badge of the avatar
|
|
6392
|
+
${(props) => {
|
|
6393
|
+
switch (props.$badge) {
|
|
6394
|
+
case "rounded":
|
|
6395
|
+
return lt `
|
|
6396
|
+
border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
|
|
6397
|
+
`;
|
|
6398
|
+
case "square":
|
|
6399
|
+
return lt `
|
|
6400
|
+
border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
|
|
6401
|
+
`;
|
|
6402
|
+
}
|
|
6403
|
+
}}
|
|
6404
|
+
`;
|
|
6405
|
+
const SpanLetter = dt.span `
|
|
6406
|
+
object-fit: cover;
|
|
6407
|
+
display: flex;
|
|
6408
|
+
align-items: center;
|
|
6409
|
+
justify-content: center;
|
|
6410
|
+
width: 100%;
|
|
6411
|
+
height: 100%;
|
|
6412
|
+
text-transform: uppercase;
|
|
6413
|
+
|
|
6414
|
+
${(props) => {
|
|
6415
|
+
switch (props.$size) {
|
|
6416
|
+
case "2xs":
|
|
6417
|
+
return lt `
|
|
6418
|
+
font-size: 8px;
|
|
6419
|
+
font: ${getTheme("sem/typo/subheading/font")};
|
|
6420
|
+
font-weight: ${getTheme("sem/typo/subheading/weight")};
|
|
6421
|
+
font-size: 8px;
|
|
6422
|
+
line-height: ${getTheme("sem/typo/subheading/line-height/xs")};
|
|
6423
|
+
letter-spacing: ${getTheme("sem/typo/subheading/letter-spacing/xs")};
|
|
6424
|
+
text-align: center;
|
|
6425
|
+
`;
|
|
6426
|
+
case "xs":
|
|
6427
|
+
return lt `
|
|
6428
|
+
font-size: 8px;
|
|
6429
|
+
font: ${getTheme("sem/typo/subheading/font")};
|
|
6430
|
+
font-weight: ${getTheme("sem/typo/subheading/weight")};
|
|
6431
|
+
font-size: 8px;
|
|
6432
|
+
line-height: ${getTheme("sem/typo/subheading/line-height/xs")};
|
|
6433
|
+
letter-spacing: ${getTheme("sem/typo/subheading/letter-spacing/xs")};
|
|
6434
|
+
text-align: center;
|
|
6435
|
+
`;
|
|
6436
|
+
case "sm":
|
|
6437
|
+
return lt `
|
|
6438
|
+
${getTheme("Subheading/XS")};
|
|
6439
|
+
`;
|
|
6440
|
+
case "md":
|
|
6441
|
+
return lt `
|
|
6442
|
+
${getTheme("Subheading/Sm")};
|
|
6443
|
+
`;
|
|
6444
|
+
case "lg":
|
|
6445
|
+
return lt `
|
|
6446
|
+
${getTheme("Subheading/Md")};
|
|
6447
|
+
`;
|
|
6448
|
+
case "xl":
|
|
6449
|
+
return lt `
|
|
6450
|
+
${getTheme("Subheading/Lg")};
|
|
6451
|
+
`;
|
|
6452
|
+
}
|
|
6453
|
+
}}
|
|
6454
|
+
|
|
6455
|
+
${(props) => {
|
|
6456
|
+
switch (props.$color) {
|
|
6457
|
+
case "neutral":
|
|
6458
|
+
return lt `
|
|
6459
|
+
color: ${getTheme("com/avatar/theme/label/color-text/neutral")};
|
|
6460
|
+
`;
|
|
6461
|
+
case "orange":
|
|
6462
|
+
return lt `
|
|
6463
|
+
color: ${getTheme("com/avatar/theme/label/color-text/orange")};
|
|
6464
|
+
`;
|
|
6465
|
+
case "yellow":
|
|
6466
|
+
return lt `
|
|
6467
|
+
color: ${getTheme("com/avatar/theme/label/color-text/yellow")};
|
|
6468
|
+
`;
|
|
6469
|
+
case "lime":
|
|
6470
|
+
return lt `
|
|
6471
|
+
color: ${getTheme("com/avatar/theme/label/color-text/lime")};
|
|
6472
|
+
`;
|
|
6473
|
+
case "green":
|
|
6474
|
+
return lt `
|
|
6475
|
+
color: ${getTheme("com/avatar/theme/label/color-text/green")};
|
|
6476
|
+
`;
|
|
6477
|
+
case "ocean":
|
|
6478
|
+
return lt `
|
|
6479
|
+
color: ${getTheme("com/avatar/theme/label/color-text/ocean")};
|
|
6480
|
+
`;
|
|
6481
|
+
case "blue":
|
|
6482
|
+
return lt `
|
|
6483
|
+
color: ${getTheme("com/avatar/theme/label/color-text/blue")};
|
|
6484
|
+
`;
|
|
6485
|
+
case "indigo":
|
|
6486
|
+
return lt `
|
|
6487
|
+
color: ${getTheme("com/avatar/theme/label/color-text/indigo")};
|
|
6488
|
+
`;
|
|
6489
|
+
case "violet":
|
|
6490
|
+
return lt `
|
|
6491
|
+
color: ${getTheme("com/avatar/theme/label/color-text/violet")};
|
|
6492
|
+
`;
|
|
6493
|
+
case "pink":
|
|
6494
|
+
return lt `
|
|
6495
|
+
color: ${getTheme("com/avatar/theme/label/color-text/pink")};
|
|
6496
|
+
`;
|
|
6497
|
+
case "disable":
|
|
6498
|
+
return lt `
|
|
6499
|
+
color: ${getTheme("com/avatar/disable/color-text")};
|
|
6500
|
+
`;
|
|
6501
|
+
}
|
|
6502
|
+
}}
|
|
6503
|
+
|
|
6504
|
+
// badge of the avatar
|
|
6505
|
+
${(props) => {
|
|
6506
|
+
switch (props.$badge) {
|
|
6507
|
+
case "rounded":
|
|
6508
|
+
return lt `
|
|
6509
|
+
border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
|
|
6510
|
+
`;
|
|
6511
|
+
case "square":
|
|
6512
|
+
return lt `
|
|
6513
|
+
border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
|
|
6514
|
+
`;
|
|
6515
|
+
}
|
|
6516
|
+
}}
|
|
6517
|
+
`;
|
|
6518
|
+
const DivBadge = dt.div `
|
|
6519
|
+
position: absolute;
|
|
6520
|
+
bottom: -2px;
|
|
6521
|
+
right: -2px;
|
|
6522
|
+
border: ${getTheme("com/avatar/status-badge/size-lg/stroke-width")} solid
|
|
6523
|
+
${getTheme("com/avatar/status-badge/color-stroke")};
|
|
6524
|
+
border-radius: ${getTheme("sem/dimension/radius/component/round")};
|
|
6525
|
+
|
|
6526
|
+
${(props) => {
|
|
6527
|
+
switch (props.$size) {
|
|
6528
|
+
case "xl":
|
|
6529
|
+
return lt `
|
|
6530
|
+
width: 10px;
|
|
6531
|
+
height: 10px;
|
|
6532
|
+
min-width: 10px;
|
|
6533
|
+
max-width: 10px;
|
|
6534
|
+
min-height: 10px;
|
|
6535
|
+
max-height: 10px;
|
|
6536
|
+
`;
|
|
6537
|
+
case "lg":
|
|
6538
|
+
return lt `
|
|
6539
|
+
width: 8px;
|
|
6540
|
+
height: 8px;
|
|
6541
|
+
min-width: 8px;
|
|
6542
|
+
max-width: 8px;
|
|
6543
|
+
min-height: 8px;
|
|
6544
|
+
max-height: 8px;
|
|
6545
|
+
`;
|
|
6546
|
+
case "md":
|
|
6547
|
+
return lt `
|
|
6548
|
+
width: 8px;
|
|
6549
|
+
height: 8px;
|
|
6550
|
+
min-width: 8px;
|
|
6551
|
+
max-width: 8px;
|
|
6552
|
+
min-height: 8px;
|
|
6553
|
+
max-height: 8px;
|
|
6554
|
+
`;
|
|
6555
|
+
case "sm":
|
|
6556
|
+
return lt `
|
|
6557
|
+
width: 6px;
|
|
6558
|
+
height: 6px;
|
|
6559
|
+
min-width: 6px;
|
|
6560
|
+
max-width: 6px;
|
|
6561
|
+
min-height: 6px;
|
|
6562
|
+
max-height: 6px;
|
|
6563
|
+
`;
|
|
6564
|
+
case "xs":
|
|
6565
|
+
return lt `
|
|
6566
|
+
width: 6px;
|
|
6567
|
+
height: 6px;
|
|
6568
|
+
min-width: 6px;
|
|
6569
|
+
max-width: 6px;
|
|
6570
|
+
min-height: 6px;
|
|
6571
|
+
max-height: 6px;
|
|
6572
|
+
`;
|
|
6573
|
+
case "2xs":
|
|
6574
|
+
return lt `
|
|
6575
|
+
width: 4px;
|
|
6576
|
+
height: 4px;
|
|
6577
|
+
min-width: 4px;
|
|
6578
|
+
max-width: 4px;
|
|
6579
|
+
min-height: 4px;
|
|
6580
|
+
max-height: 4px;
|
|
6581
|
+
`;
|
|
6582
|
+
}
|
|
6583
|
+
}}
|
|
6584
|
+
${(props) => {
|
|
6585
|
+
switch (props.$status) {
|
|
6586
|
+
case "green":
|
|
6587
|
+
return lt `
|
|
6588
|
+
background-color: ${getTheme("com/avatar/status-badge/theme/green")};
|
|
6589
|
+
`;
|
|
6590
|
+
case "red":
|
|
6591
|
+
return lt `
|
|
6592
|
+
background-color: ${getTheme("com/avatar/status-badge/theme/red")};
|
|
6593
|
+
`;
|
|
6594
|
+
case "yellow":
|
|
6595
|
+
return lt `
|
|
6596
|
+
background-color: ${getTheme("com/avatar/status-badge/theme/yellow")};
|
|
6597
|
+
`;
|
|
6598
|
+
case "blue":
|
|
6599
|
+
return lt `
|
|
6600
|
+
background-color: ${getTheme("com/avatar/status-badge/theme/blue")};
|
|
6601
|
+
`;
|
|
6602
|
+
case "neutral":
|
|
6603
|
+
return lt `
|
|
6604
|
+
background-color: ${getTheme("com/avatar/status-badge/theme/neutral")};
|
|
6605
|
+
`;
|
|
6606
|
+
}
|
|
6607
|
+
}}
|
|
6608
|
+
`;
|
|
6609
|
+
|
|
6610
|
+
const FISAvatar = ({ className, src, alt = "Avatar", badge = "rounded", size = "xl", icon, status = "green", color = "neutral", letter, isBadgeDot = true, }) => {
|
|
6611
|
+
return (jsxs(DivContainer, { className: className, "$size": size, "$badge": badge, "$color": color, children: [src ? (jsx(ImgAvatar, { "$size": size, "$badge": badge, src: src, alt: alt })) : icon ? (jsx(DivIcon, { "$size": size, "$badge": badge, children: icon })) : (jsx(SpanLetter, { "$size": size, "$badge": badge, "$color": color, children: letter?.slice(0, 2) })), isBadgeDot && jsx(DivBadge, { "$size": size, "$status": status })] }));
|
|
6612
|
+
};
|
|
6613
|
+
|
|
6614
|
+
const DicContainerSC = dt.div `
|
|
6615
|
+
display: flex;
|
|
6616
|
+
flex-direction: column;
|
|
6617
|
+
gap: ${getTheme("sem/dimension/gap/xs")};
|
|
6618
|
+
width: fit-content;
|
|
6619
|
+
`;
|
|
6620
|
+
const DivResizeSC = dt.div `
|
|
6621
|
+
position: absolute;
|
|
6622
|
+
bottom: -2px;
|
|
6623
|
+
right: -2px;
|
|
6624
|
+
cursor: nwse-resize;
|
|
6625
|
+
display: flex;
|
|
6626
|
+
align-items: center;
|
|
6627
|
+
justify-content: center;
|
|
6628
|
+
user-select: none;
|
|
6629
|
+
`;
|
|
6630
|
+
const DivIconSC = dt.div `
|
|
6631
|
+
width: ${getTheme("com/button/size-sm/height")};
|
|
6632
|
+
height: ${getTheme("com/button/size-sm/height")};
|
|
6633
|
+
min-width: ${getTheme("com/button/size-sm/height")};
|
|
6634
|
+
max-width: ${getTheme("com/button/size-sm/height")};
|
|
6635
|
+
min-height: ${getTheme("com/button/size-sm/height")};
|
|
6636
|
+
max-height: ${getTheme("com/button/size-sm/height")};
|
|
6637
|
+
border-radius: ${getTheme("com/button/size-xs/corner-radius")};
|
|
6638
|
+
border-width: ${getTheme("com/button/secondary/border/stroke-width/default")};
|
|
6639
|
+
gap: ${getTheme("com/button/size-sm/horizontal-gap")};
|
|
6640
|
+
position: absolute;
|
|
6641
|
+
bottom: ${getTheme("sem/dimension/padding/2xs")};
|
|
6642
|
+
top: ${getTheme("sem/dimension/padding/2xs")};
|
|
6643
|
+
right: ${getTheme("com/input/field/right-padding")};
|
|
6644
|
+
display: flex;
|
|
6645
|
+
align-items: center;
|
|
6646
|
+
justify-content: center;
|
|
6647
|
+
`;
|
|
6648
|
+
const TextAreaSC = dt.textarea `
|
|
6649
|
+
font-family: inherit;
|
|
6650
|
+
outline: none;
|
|
6651
|
+
border: none;
|
|
6652
|
+
${getTheme("Paragraph/Sm")};
|
|
6653
|
+
padding-top: ${getTheme("com/input/field/size-md/label/vertical-padding")};
|
|
6654
|
+
padding-right: ${getTheme("com/input/field/size-md/label/horizontal-padding")};
|
|
6655
|
+
padding-bottom: ${getTheme("com/input/field/size-md/label/vertical-padding")};
|
|
6656
|
+
padding-left: ${getTheme("com/input/field/size-md/label/horizontal-padding")};
|
|
6657
|
+
background-color: inherit;
|
|
6658
|
+
resize: none;
|
|
6659
|
+
|
|
6660
|
+
&::placeholder {
|
|
6661
|
+
${getTheme("Paragraph/Sm")}
|
|
6662
|
+
color: ${getTheme("com/input/field/default/label/color-text/placeholder")};
|
|
6663
|
+
}
|
|
6664
|
+
|
|
6665
|
+
&:focus::placeholder {
|
|
6666
|
+
color: transparent;
|
|
6667
|
+
}
|
|
6668
|
+
|
|
6669
|
+
&.input-area-lg {
|
|
6670
|
+
padding-top: ${getTheme("com/input/field/size-lg/label/vertical-padding")};
|
|
6671
|
+
padding-right: ${getTheme("com/input/field/size-lg/label/horizontal-padding")};
|
|
6672
|
+
padding-bottom: ${getTheme("com/input/field/size-lg/label/vertical-padding")};
|
|
6673
|
+
padding-left: ${getTheme("com/input/field/size-lg/label/horizontal-padding")};
|
|
6674
|
+
}
|
|
6675
|
+
|
|
6676
|
+
&.input-area-icon {
|
|
6677
|
+
margin-right: calc(
|
|
6678
|
+
${getTheme("com/input/field/size-md/label/horizontal-padding")} +
|
|
6679
|
+
${getTheme("com/button/size-sm/height")}
|
|
6680
|
+
);
|
|
6681
|
+
//cheat margin để khắc phục giới hạn của variable trên figma không có khả năng thêm toán tử tính toán (yêu cầu từ anh KhoiNQ3)
|
|
6682
|
+
}
|
|
6683
|
+
`;
|
|
6684
|
+
const DivAreaFieldSC = dt.div `
|
|
6685
|
+
position: relative;
|
|
6686
|
+
display: flex;
|
|
6687
|
+
height: inherit;
|
|
6688
|
+
min-height: ${getTheme("com/input/field/size-md/height")};
|
|
6689
|
+
border: ${getTheme("com/input/field/stroke-width")} solid
|
|
6690
|
+
${getTheme("com/input/field/default/border/default")};
|
|
6691
|
+
padding-right: ${getTheme("com/input/field/right-padding")};
|
|
6692
|
+
padding-left: ${getTheme("com/input/field/left-padding")};
|
|
6693
|
+
border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
|
|
6694
|
+
background-color: ${getTheme("com/input/field/default/background/default")};
|
|
6695
|
+
|
|
6696
|
+
&.input-area-icon {
|
|
6697
|
+
padding-right: 0;
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
&.negative {
|
|
6701
|
+
border-color: ${getTheme("com/input/field/negative/border/default")};
|
|
6702
|
+
background-color: ${getTheme("com/input/field/negative/background/default")};
|
|
6703
|
+
|
|
6704
|
+
&:hover {
|
|
6705
|
+
border-color: ${getTheme("com/input/field/negative/border/hover")};
|
|
6706
|
+
background-color: ${getTheme("com/input/field/negative/background/hover")};
|
|
6707
|
+
}
|
|
6708
|
+
|
|
6709
|
+
&:focus-within {
|
|
6710
|
+
border-color: ${getTheme("com/input/field/negative/border/active")};
|
|
6711
|
+
background-color: ${getTheme("com/input/field/negative/background/active")};
|
|
6712
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
6713
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
6714
|
+
}
|
|
6715
|
+
|
|
6716
|
+
&::placeholder {
|
|
6717
|
+
color: ${getTheme("com/input/field/negative/label/color-text/placeholder")};
|
|
6718
|
+
}
|
|
6719
|
+
}
|
|
6720
|
+
|
|
6721
|
+
&:hover {
|
|
6722
|
+
border-color: ${getTheme("com/input/field/default/border/hover")};
|
|
6723
|
+
background-color: ${getTheme("com/input/field/default/background/hover")};
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
&:focus-within {
|
|
6727
|
+
border-color: ${getTheme("com/input/field/default/border/active")};
|
|
6728
|
+
background-color: ${getTheme("com/input/field/default/background/active")};
|
|
6729
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
6730
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
6731
|
+
}
|
|
6732
|
+
|
|
6733
|
+
&:has(${TextAreaSC}:disabled),
|
|
6734
|
+
&:has(${TextAreaSC}:read-only) {
|
|
6735
|
+
border-color: ${getTheme("com/input/field/disable/stroke-color")};
|
|
6736
|
+
background-color: ${getTheme("com/input/field/disable/background-color")};
|
|
6737
|
+
cursor: not-allowed;
|
|
6738
|
+
|
|
6739
|
+
&::placeholder {
|
|
6740
|
+
color: ${getTheme("com/input/field/disable/label-color")};
|
|
6741
|
+
}
|
|
6742
|
+
|
|
6743
|
+
${DivIconSC}, ${DivResizeSC} {
|
|
6744
|
+
display: none;
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
|
|
6748
|
+
&.input-area-lg {
|
|
6749
|
+
min-height: ${getTheme("com/input/field/size-lg/height")};
|
|
6750
|
+
border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
|
|
6751
|
+
}
|
|
6752
|
+
`;
|
|
6753
|
+
const DivCountSC = dt.div `
|
|
6754
|
+
display: flex;
|
|
6755
|
+
justify-content: flex-end;
|
|
6756
|
+
${getTheme("Subheading/XS")}
|
|
6757
|
+
color: ${getTheme("com/input/character-limit/label/default/color-text")};
|
|
6758
|
+
|
|
6759
|
+
span.negative { {
|
|
6760
|
+
color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
|
|
6761
|
+
}
|
|
6762
|
+
padding-left: ${getTheme("com/input/character-limit/horizontal-padding")};
|
|
6763
|
+
padding-right: ${getTheme("com/input/character-limit/horizontal-padding")};
|
|
6764
|
+
`;
|
|
6765
|
+
const SpanHintSC$1 = dt.span `
|
|
6766
|
+
${getTheme("Paragraph/XS")}
|
|
6767
|
+
color: ${getTheme("com/input/hint/neutral/label/color-text")};
|
|
6768
|
+
padding-top: ${getTheme("com/input/hint/top-padding")};
|
|
6769
|
+
|
|
6770
|
+
&.negative {
|
|
6771
|
+
color: ${getTheme("com/input/hint/negative/label/color-text")};
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
&.positive {
|
|
6775
|
+
color: ${getTheme("com/input/hint/positive/label/color-text")};
|
|
6776
|
+
}
|
|
6777
|
+
|
|
6778
|
+
&.disabled {
|
|
6779
|
+
color: ${getTheme("com/input/hint/disable/label/color-text")};
|
|
6780
|
+
}
|
|
6781
|
+
`;
|
|
6782
|
+
const DivBottomSC = dt.div `
|
|
6783
|
+
display: flex;
|
|
6784
|
+
justify-content: space-between;
|
|
6785
|
+
`;
|
|
6786
|
+
dt.div `
|
|
6787
|
+
${getTheme("Paragraph/XS")};
|
|
6788
|
+
color: ${getTheme("com/input/hint/neutral/label/color-text")};
|
|
6789
|
+
`;
|
|
6790
|
+
|
|
6791
|
+
const FISTextArea = forwardRef((props, ref) => {
|
|
6792
|
+
const { className, required = false, textLabel = "", iconLabel, iconSuffix, placeholder, disabled = false, readOnly = true, negative, message, positive, maxLength = 50, showCount, size = "md", fixedWidth, value, onClickIconLabel, onClickIconSuffix, onChange, onEnter, onBlur, ...rest } = props;
|
|
6793
|
+
const [internalValue, setInternalValue] = React.useState("");
|
|
6794
|
+
const inputRef = React.useRef(null);
|
|
6795
|
+
const handleChange = React.useCallback((event) => {
|
|
6796
|
+
const newValue = event.target.value;
|
|
6797
|
+
if (newValue !== internalValue) {
|
|
6798
|
+
setInternalValue(newValue);
|
|
6799
|
+
onChange?.(newValue);
|
|
6800
|
+
}
|
|
6801
|
+
}, [internalValue, onChange]);
|
|
6802
|
+
const handleKeyPress = React.useCallback((event) => {
|
|
6803
|
+
if (event.key === "Enter") {
|
|
6804
|
+
if (typeof onEnter === "function") {
|
|
6805
|
+
onEnter(event.currentTarget.value);
|
|
6806
|
+
}
|
|
6807
|
+
}
|
|
6808
|
+
}, [onEnter]);
|
|
6809
|
+
const handleBlur = React.useCallback((event) => {
|
|
6810
|
+
const value = event.target.value;
|
|
6811
|
+
if (typeof onBlur === "function") {
|
|
6812
|
+
onBlur(value);
|
|
6813
|
+
}
|
|
6814
|
+
}, [onBlur]);
|
|
6815
|
+
React.useEffect(() => {
|
|
6816
|
+
if (value !== undefined && value !== null) {
|
|
6817
|
+
setInternalValue(value);
|
|
6818
|
+
}
|
|
6819
|
+
}, [value]);
|
|
6820
|
+
useImperativeHandle(ref, () => {
|
|
6821
|
+
const inputElement = inputRef.current;
|
|
6822
|
+
return {
|
|
6823
|
+
...inputElement,
|
|
6824
|
+
focus: () => {
|
|
6825
|
+
if (inputRef.current) {
|
|
6826
|
+
inputRef.current.focus();
|
|
6827
|
+
}
|
|
6828
|
+
},
|
|
6829
|
+
blur: () => {
|
|
6830
|
+
if (inputRef.current) {
|
|
6831
|
+
inputRef.current.blur();
|
|
6832
|
+
}
|
|
6833
|
+
},
|
|
6834
|
+
clear: () => {
|
|
6835
|
+
if (inputRef.current) {
|
|
6836
|
+
inputRef.current.value = "";
|
|
6837
|
+
setInternalValue("");
|
|
6838
|
+
}
|
|
6839
|
+
},
|
|
6840
|
+
};
|
|
6841
|
+
});
|
|
6842
|
+
const handleResize = (e) => {
|
|
6843
|
+
e.preventDefault();
|
|
6844
|
+
e.stopPropagation();
|
|
6845
|
+
const textArea = inputRef.current;
|
|
6846
|
+
if (!textArea)
|
|
6847
|
+
return;
|
|
6848
|
+
const rect = textArea.getBoundingClientRect();
|
|
6849
|
+
const startX = e.clientX;
|
|
6850
|
+
const startY = e.clientY;
|
|
6851
|
+
const startWidth = rect.width;
|
|
6852
|
+
const startHeight = rect.height;
|
|
6853
|
+
const doResize = (event) => {
|
|
6854
|
+
event.preventDefault();
|
|
6855
|
+
const resizeHandle = document.getElementById("resizeHandle");
|
|
6856
|
+
const handleSize = resizeHandle ? resizeHandle.offsetWidth : 10;
|
|
6857
|
+
const themeValue = getTheme("sem/typo/paragraph/line-height/sm");
|
|
6858
|
+
const minHeight = themeValue
|
|
6859
|
+
? parseInt(themeValue.toString(), 10) || 20
|
|
6860
|
+
: 20;
|
|
6861
|
+
const newWidth = Math.max(startWidth + (event.clientX - startX) - handleSize);
|
|
6862
|
+
const newHeight = Math.max(minHeight, startHeight + (event.clientY - startY) - handleSize);
|
|
6863
|
+
textArea.style.width = `${newWidth}px`;
|
|
6864
|
+
textArea.style.height = `${newHeight}px`;
|
|
6865
|
+
if (resizeHandle) {
|
|
6866
|
+
resizeHandle.style.right = "-2px";
|
|
6867
|
+
resizeHandle.style.bottom = "-2px";
|
|
6868
|
+
}
|
|
6869
|
+
};
|
|
6870
|
+
const stopResize = () => {
|
|
6871
|
+
document.body.style.cursor = "";
|
|
6872
|
+
document.removeEventListener("mousemove", doResize);
|
|
6873
|
+
document.removeEventListener("mouseup", stopResize);
|
|
6874
|
+
};
|
|
6875
|
+
document.addEventListener("mousemove", doResize);
|
|
6876
|
+
document.addEventListener("mouseup", stopResize);
|
|
6877
|
+
};
|
|
6878
|
+
return (jsxs(DicContainerSC, { className: className, children: [(textLabel || iconLabel) && (jsx(FISInputLabel, { textLabel: textLabel, required: required, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxs(DivAreaFieldSC, { className: classNames({
|
|
6879
|
+
"input-area-lg": size === "lg",
|
|
6880
|
+
"input-area-icon": iconSuffix,
|
|
6881
|
+
negative,
|
|
6882
|
+
}), style: { width: fixedWidth ? `${fixedWidth}px` : "auto" }, children: [jsx(TextAreaSC, { ...rest, value: internalValue, onChange: handleChange, onKeyDown: handleKeyPress, onBlur: handleBlur, ref: inputRef, placeholder: placeholder, disabled: disabled, readOnly: readOnly, className: classNames({
|
|
6883
|
+
"input-area-lg": size === "lg",
|
|
6884
|
+
"input-area-icon": iconSuffix,
|
|
6885
|
+
}) }), iconSuffix && (jsx(DivIconSC, { children: jsx(FISIconButton, { variant: "tertiary-invisible", size: "sm", icon: iconSuffix, onClick: onClickIconSuffix }) })), jsx(DivResizeSC, { id: "resizeHandle", onMouseDown: handleResize, children: jsx(ResizeIcon, {}) })] }), jsxs(DivBottomSC, { children: [jsx(SpanHintSC$1, { className: classNames({
|
|
6886
|
+
disabled,
|
|
6887
|
+
negative,
|
|
6888
|
+
positive,
|
|
6889
|
+
}), children: message ? message : "" }), jsx(DivCountSC, { children: showCount && maxLength > 0 && (jsxs("span", { className: classNames("text-area__count", {
|
|
6890
|
+
negative: internalValue.length > maxLength,
|
|
6891
|
+
}), children: [internalValue?.replaceAll("\n", "")?.length, "/", maxLength] })) })] })] }));
|
|
6892
|
+
});
|
|
6893
|
+
FISTextArea.displayName = "FISTextArea";
|
|
6894
|
+
|
|
6895
|
+
const InputSC = dt.input `
|
|
6896
|
+
all: unset;
|
|
6897
|
+
text-align: center;
|
|
6898
|
+
caret-color: ${getTheme("com/typing-cursor/default")};
|
|
6899
|
+
${getTheme("Paragraph/Md")}
|
|
6900
|
+
&::-webkit-outer-spin-button,
|
|
6901
|
+
&::-webkit-inner-spin-button {
|
|
6902
|
+
-webkit-appearance: none;
|
|
6903
|
+
margin: 0;
|
|
6904
|
+
}
|
|
6905
|
+
-moz-appearance: textfield;
|
|
6906
|
+
|
|
6907
|
+
::placeholder {
|
|
6908
|
+
color: ${getTheme("com/input/field/default/label/color-text/placeholder")};
|
|
6909
|
+
}
|
|
6910
|
+
|
|
6911
|
+
&:disabled,
|
|
6912
|
+
&:read-only {
|
|
6913
|
+
text-align: left;
|
|
6914
|
+
&::placeholder {
|
|
6915
|
+
color: ${getTheme("com/input/field/disable/label-color")};
|
|
6916
|
+
}
|
|
6917
|
+
}
|
|
6918
|
+
|
|
6919
|
+
&.negative {
|
|
6920
|
+
color: ${getTheme("com/input/field/negative/label/color-text/inputed")};
|
|
6921
|
+
}
|
|
6922
|
+
`;
|
|
6923
|
+
const DivContainerSC = dt.div `
|
|
6924
|
+
display: flex;
|
|
6925
|
+
align-items: center;
|
|
6926
|
+
justify-content: space-between;
|
|
6927
|
+
width: fit-content;
|
|
6928
|
+
background-color: ${getTheme("com/input/field/default/background/default")};
|
|
6929
|
+
height: ${getTheme("com/input/field/size-md/height")};
|
|
6930
|
+
min-width: ${getTheme("com/input/field/size-md/number/min-width")};
|
|
6931
|
+
min-height: ${getTheme("com/input/field/size-md/height")};
|
|
6932
|
+
max-height: ${getTheme("com/input/field/size-md/height")};
|
|
6933
|
+
border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
|
|
6934
|
+
border: ${getTheme("com/input/field/stroke-width")} solid
|
|
6935
|
+
${getTheme("com/input/field/default/border/default")};
|
|
6936
|
+
padding-right: ${getTheme("com/input/field/right-padding")};
|
|
6937
|
+
padding-left: ${getTheme("com/input/field/left-padding")};
|
|
6938
|
+
|
|
6939
|
+
.decrement,
|
|
6940
|
+
.increment {
|
|
6941
|
+
flex-shrink: 0;
|
|
6942
|
+
}
|
|
6943
|
+
|
|
6944
|
+
.disabled-button {
|
|
6945
|
+
display: none;
|
|
6946
|
+
}
|
|
6947
|
+
|
|
6948
|
+
&.input-text-lg {
|
|
6949
|
+
height: ${getTheme("com/input/field/size-lg/height")};
|
|
6950
|
+
min-width: ${getTheme("com/input/field/size-lg/number/min-width")};
|
|
6951
|
+
min-height: ${getTheme("com/input/field/size-lg/height")};
|
|
6952
|
+
max-height: ${getTheme("com/input/field/size-lg/height")};
|
|
6953
|
+
border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
&:hover {
|
|
6957
|
+
border-color: ${getTheme("com/input/field/default/border/hover")};
|
|
6958
|
+
background-color: ${getTheme("com/input/field/default/background/hover")};
|
|
6959
|
+
}
|
|
6960
|
+
|
|
6961
|
+
&:has(${InputSC}:focus) {
|
|
6962
|
+
border-color: ${getTheme("com/input/field/default/border/active")};
|
|
6963
|
+
background-color: ${getTheme("com/input/field/default/background/active")};
|
|
6964
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
6965
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
6966
|
+
}
|
|
6967
|
+
|
|
6968
|
+
&:has(${InputSC}:disabled),
|
|
6969
|
+
&:has(${InputSC}:read-only) {
|
|
6970
|
+
cursor: not-allowed;
|
|
6971
|
+
border-color: ${getTheme("com/input/field/disable/stroke-color")};
|
|
6972
|
+
background-color: ${getTheme("com/input/field/disable/background-color")};
|
|
6973
|
+
}
|
|
6974
|
+
|
|
6975
|
+
&.negative {
|
|
6976
|
+
border-color: ${getTheme("com/input/field/negative/border/default")};
|
|
6977
|
+
background-color: ${getTheme("com/input/field/negative/background/default")};
|
|
6978
|
+
|
|
6979
|
+
&:hover {
|
|
6980
|
+
border-color: ${getTheme("com/input/field/negative/border/hover")};
|
|
6981
|
+
background-color: ${getTheme("com/input/field/negative/background/hover")};
|
|
6982
|
+
}
|
|
6983
|
+
|
|
6984
|
+
&:has(${InputSC}:focus) {
|
|
6985
|
+
border-color: ${getTheme("com/input/field/negative/border/active")};
|
|
6986
|
+
background-color: ${getTheme("com/input/field/negative/background/active")};
|
|
6987
|
+
outline: ${getTheme("com/actived-mark/gap-spacing")} solid
|
|
6988
|
+
${getTheme("com/actived-mark/color-gap-spacing")};
|
|
6989
|
+
}
|
|
6990
|
+
}
|
|
6991
|
+
`;
|
|
6992
|
+
const DivHintSC = dt.div `
|
|
6993
|
+
display: flex;
|
|
6994
|
+
justify-content: space-between;
|
|
6995
|
+
`;
|
|
6996
|
+
const SpanHintSC = dt.span `
|
|
6997
|
+
${getTheme("Paragraph/XS")}
|
|
6998
|
+
color: ${getTheme("com/input/hint/neutral/label/color-text")};
|
|
6999
|
+
padding-top: ${getTheme("com/input/hint/top-padding")};
|
|
7000
|
+
|
|
7001
|
+
&.negative {
|
|
7002
|
+
color: ${getTheme("com/input/hint/negative/label/color-text")};
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
&.positive {
|
|
7006
|
+
color: ${getTheme("com/input/hint/positive/label/color-text")};
|
|
7007
|
+
}
|
|
7008
|
+
|
|
7009
|
+
&.disabled {
|
|
7010
|
+
color: ${getTheme("com/input/hint/disable/label/color-text")};
|
|
7011
|
+
}
|
|
7012
|
+
`;
|
|
7013
|
+
const DivWrapperSC = dt.div `
|
|
7014
|
+
display: flex;
|
|
7015
|
+
flex-direction: column;
|
|
7016
|
+
gap: ${getTheme("com/input/vertical-gap")};
|
|
7017
|
+
`;
|
|
7018
|
+
|
|
7019
|
+
const FISInputStepper = forwardRef((props) => {
|
|
7020
|
+
const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, ...rest } = props;
|
|
7021
|
+
const [count, setCount] = useState(defaultValue !== undefined ? defaultValue : undefined);
|
|
7022
|
+
const handleIncrement = () => {
|
|
7023
|
+
setCount((prev) => {
|
|
7024
|
+
const newValue = (prev ?? min ?? 0) + step;
|
|
7025
|
+
return max !== undefined && newValue > max ? max : newValue;
|
|
7026
|
+
});
|
|
7027
|
+
};
|
|
7028
|
+
const handleDecrement = () => {
|
|
7029
|
+
setCount((prev) => {
|
|
7030
|
+
const newValue = (prev ?? min ?? 0) - step;
|
|
7031
|
+
return min !== undefined && newValue < min ? min : newValue;
|
|
7032
|
+
});
|
|
7033
|
+
};
|
|
7034
|
+
const handleChange = (e) => {
|
|
7035
|
+
const newValue = e.target.value
|
|
7036
|
+
? parseInt(e.target.value, 10)
|
|
7037
|
+
: undefined;
|
|
7038
|
+
if (!isNaN(newValue)) {
|
|
7039
|
+
setCount(newValue);
|
|
7040
|
+
onChange?.(newValue);
|
|
7041
|
+
}
|
|
7042
|
+
else {
|
|
7043
|
+
setCount(undefined);
|
|
7044
|
+
}
|
|
7045
|
+
};
|
|
7046
|
+
return (jsxs(DivWrapperSC, { children: [(textLabel || iconLabel) && (jsx(FISInputLabel, { textLabel: textLabel, required: true, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxs(DivContainerSC, { className: classNames({
|
|
7047
|
+
negative: negative,
|
|
7048
|
+
"input-text-lg": sizeInput === "lg",
|
|
7049
|
+
}), children: [jsx(FISIconButton, { icon: StartIcon ? StartIcon : jsx(DecreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleDecrement, disabled: min !== undefined && count !== undefined && count <= min, className: classNames("decrement", {
|
|
7050
|
+
"disabled-button": disabled || readOnly,
|
|
7051
|
+
}) }), jsx(InputSC, { ...rest, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames({ negative: negative }), onChange: handleChange }), jsx(FISIconButton, { icon: EndIcon ? EndIcon : jsx(IncreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleIncrement, disabled: max !== undefined && count !== undefined && count >= max, className: classNames("increment", {
|
|
7052
|
+
"disabled-button": disabled || readOnly,
|
|
7053
|
+
}) })] }), jsx(DivHintSC, { children: jsx(SpanHintSC, { className: classNames({
|
|
7054
|
+
disabled: disabled,
|
|
7055
|
+
negative: negative,
|
|
7056
|
+
positive: positive,
|
|
7057
|
+
}), children: message ? message : "" }) })] }));
|
|
7058
|
+
});
|
|
7059
|
+
FISInputStepper.displayName = "FISInputStepper";
|
|
7060
|
+
|
|
7061
|
+
export { FISAvatar, FISBreadcrumb, FISButton, FISCheckbox, FISGroupButton, FISIconButton, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISLinkButton, FISRadio, FISTextArea, FISThemeProvider };
|
|
6019
7062
|
//# sourceMappingURL=index.js.map
|