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.
Files changed (64) hide show
  1. package/dist/cjs/index.js +1126 -79
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/src/assets/icons/DecreIcon.d.ts +3 -0
  4. package/dist/cjs/types/src/assets/icons/DotIcon.d.ts +3 -0
  5. package/dist/cjs/types/src/assets/icons/HomeIcon.d.ts +3 -0
  6. package/dist/cjs/types/src/assets/icons/IncreIcon.d.ts +3 -0
  7. package/dist/cjs/types/src/assets/icons/ResizeIcon.d.ts +3 -0
  8. package/dist/cjs/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
  9. package/dist/cjs/types/src/assets/icons/index.d.ts +6 -0
  10. package/dist/cjs/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
  11. package/dist/cjs/types/src/components/Avatar/index.d.ts +19 -0
  12. package/dist/cjs/types/src/components/Avatar/styles.d.ts +13 -0
  13. package/dist/cjs/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
  14. package/dist/cjs/types/src/components/Breadcrumb/index.d.ts +14 -0
  15. package/dist/cjs/types/src/components/Breadcrumb/styles.d.ts +7 -0
  16. package/dist/cjs/types/src/components/Button/Button.stories.d.ts +1 -1
  17. package/dist/cjs/types/src/components/Button/index.d.ts +1 -1
  18. package/dist/cjs/types/src/components/Button/styles.d.ts +1 -1
  19. package/dist/cjs/types/src/components/GroupButton/index.d.ts +2 -0
  20. package/dist/cjs/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
  21. package/dist/cjs/types/src/components/Input/InputField/index.d.ts +4 -4
  22. package/dist/cjs/types/src/components/Input/InputLabel/index.d.ts +1 -1
  23. package/dist/cjs/types/src/components/Input/InputLabel/styles.d.ts +1 -1
  24. package/dist/cjs/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
  25. package/dist/cjs/types/src/components/Input/InputStepper/index.d.ts +20 -0
  26. package/dist/cjs/types/src/components/Input/InputStepper/styles.d.ts +5 -0
  27. package/dist/cjs/types/src/components/Input/InputText/index.d.ts +3 -11
  28. package/dist/cjs/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
  29. package/dist/cjs/types/src/components/Input/TextArea/index.d.ts +33 -0
  30. package/dist/cjs/types/src/components/Input/TextArea/styles.d.ts +9 -0
  31. package/dist/cjs/types/src/index.d.ts +4 -0
  32. package/dist/esm/index.js +1113 -70
  33. package/dist/esm/index.js.map +1 -1
  34. package/dist/esm/types/src/assets/icons/DecreIcon.d.ts +3 -0
  35. package/dist/esm/types/src/assets/icons/DotIcon.d.ts +3 -0
  36. package/dist/esm/types/src/assets/icons/HomeIcon.d.ts +3 -0
  37. package/dist/esm/types/src/assets/icons/IncreIcon.d.ts +3 -0
  38. package/dist/esm/types/src/assets/icons/ResizeIcon.d.ts +3 -0
  39. package/dist/esm/types/src/assets/icons/SeparatorIcon.d.ts +3 -0
  40. package/dist/esm/types/src/assets/icons/index.d.ts +6 -0
  41. package/dist/esm/types/src/components/Avatar/Avatar.stories.d.ts +4 -0
  42. package/dist/esm/types/src/components/Avatar/index.d.ts +19 -0
  43. package/dist/esm/types/src/components/Avatar/styles.d.ts +13 -0
  44. package/dist/esm/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +14 -0
  45. package/dist/esm/types/src/components/Breadcrumb/index.d.ts +14 -0
  46. package/dist/esm/types/src/components/Breadcrumb/styles.d.ts +7 -0
  47. package/dist/esm/types/src/components/Button/Button.stories.d.ts +1 -1
  48. package/dist/esm/types/src/components/Button/index.d.ts +1 -1
  49. package/dist/esm/types/src/components/Button/styles.d.ts +1 -1
  50. package/dist/esm/types/src/components/GroupButton/index.d.ts +2 -0
  51. package/dist/esm/types/src/components/Input/InputField/InputField.stories.d.ts +2 -1
  52. package/dist/esm/types/src/components/Input/InputField/index.d.ts +4 -4
  53. package/dist/esm/types/src/components/Input/InputLabel/index.d.ts +1 -1
  54. package/dist/esm/types/src/components/Input/InputLabel/styles.d.ts +1 -1
  55. package/dist/esm/types/src/components/Input/InputStepper/InputStepper.stories.d.ts +5 -0
  56. package/dist/esm/types/src/components/Input/InputStepper/index.d.ts +20 -0
  57. package/dist/esm/types/src/components/Input/InputStepper/styles.d.ts +5 -0
  58. package/dist/esm/types/src/components/Input/InputText/index.d.ts +3 -11
  59. package/dist/esm/types/src/components/Input/TextArea/TextArea.stories.d.ts +5 -0
  60. package/dist/esm/types/src/components/Input/TextArea/index.d.ts +33 -0
  61. package/dist/esm/types/src/components/Input/TextArea/styles.d.ts +9 -0
  62. package/dist/esm/types/src/index.d.ts +4 -0
  63. package/dist/index.d.ts +94 -20
  64. package/package.json +3 -2
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var r = require('react');
4
+ var React = require('react');
5
5
 
6
6
  /******************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
@@ -923,7 +923,7 @@ var unitlessKeys = {
923
923
  strokeWidth: 1
924
924
  };
925
925
 
926
- 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$1=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r$1," 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));},r.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 r.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=r.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&&r.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$1=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&r.useDebugValue(r$1),r$1}(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),r.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);
926
+ 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));},React.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 React.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=React.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&&React.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&&React.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),React.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);
927
927
 
928
928
  var theme = {
929
929
  "com/breadcrumbs/module/horizontal-gap": "4px",
@@ -3663,6 +3663,26 @@ const FISThemeProvider = ({ theme: theme$1 = theme, children, }) => jsxRuntime.j
3663
3663
 
3664
3664
  const getTheme = (key) => (props) => props.theme[key];
3665
3665
 
3666
+ function IncreIcon(props) {
3667
+ const { width = 16, height = 16, ...rest } = props;
3668
+ return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M7.99992 3.33331V12.6666M3.33325 7.99998H12.6666", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
3669
+ }
3670
+
3671
+ function DecreIcon(props) {
3672
+ const { width = 16, height = 16, ...rest } = props;
3673
+ return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M3.33325 8H12.6666", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
3674
+ }
3675
+
3676
+ function DotIcon(props) {
3677
+ const { width = 16, height = 16, ...rest } = props;
3678
+ return (jsxRuntime.jsxs("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: [jsxRuntime.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" }), jsxRuntime.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" }), jsxRuntime.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" })] }));
3679
+ }
3680
+
3681
+ function SeparatorIcon(props) {
3682
+ const { width = 12, height = 12, ...rest } = props;
3683
+ return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M3.5 11L8.5 1", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round", strokeLinejoin: "round" }) }));
3684
+ }
3685
+
3666
3686
  function DropdownIcon(props) {
3667
3687
  const { width = 16, height = 16, ...rest } = props;
3668
3688
  return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" }) }));
@@ -3692,6 +3712,11 @@ function RequestButtonLoadingIcon(props) {
3692
3712
  } }) }) }) }), jsxRuntime.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}' }), jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "a", children: jsxRuntime.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" }) }) })] }));
3693
3713
  }
3694
3714
 
3715
+ function ResizeIcon(props) {
3716
+ const { width = 20, height = 20, ...rest } = props;
3717
+ return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest, children: jsxRuntime.jsx("path", { d: "M12 14L14 12M7 14L14 7", stroke: "currentColor", "stroke-linecap": "round" }) }));
3718
+ }
3719
+
3695
3720
  const ButtonSC = dt.button `
3696
3721
  display: flex;
3697
3722
  justify-content: center;
@@ -3706,16 +3731,22 @@ const ButtonSC = dt.button `
3706
3731
  cursor: not-allowed;
3707
3732
  }
3708
3733
 
3734
+ &:focus {
3735
+ outline: none;
3736
+ box-shadow: none;
3737
+ }
3738
+
3709
3739
  &:focus-visible {
3710
3740
  box-shadow:
3711
3741
  0px 0px 0px ${getTheme("sem/dimension/stroke-width/divider/lg")}
3712
3742
  ${getTheme("com/focus-mark/color-gap-spacing")},
3713
- 0px 0px 0px 4px ${getTheme("com/focus-mark/color-stroke")} !important;
3743
+ 0px 0px 0px ${getTheme("com/focus-mark/corner-radius-default")}
3744
+ ${getTheme("com/focus-mark/color-stroke")} !important;
3714
3745
  outline: none;
3715
3746
  }
3716
3747
 
3717
3748
  .button-content {
3718
- visibility: ${(props) => (props.$isLoading ? "hidden" : "visible")};
3749
+ visibility: ${(props) => (props.$loading ? "hidden" : "visible")};
3719
3750
  }
3720
3751
 
3721
3752
  // size of the button
@@ -3850,7 +3881,7 @@ const ButtonSC = dt.button `
3850
3881
  }
3851
3882
  }
3852
3883
 
3853
- ${props.$isLoading &&
3884
+ ${props.$loading &&
3854
3885
  lt `
3855
3886
  background-color: ${getTheme("com/button/loading/background-color")} !important;
3856
3887
  `}
@@ -3910,7 +3941,7 @@ const ButtonSC = dt.button `
3910
3941
  }
3911
3942
  }
3912
3943
 
3913
- ${props.$isLoading &&
3944
+ ${props.$loading &&
3914
3945
  lt `
3915
3946
  background-color: ${getTheme("com/button/loading/background-color")} !important;
3916
3947
  border-color: ${getTheme("com/button/loading/stroke-color")} !important;
@@ -3971,7 +4002,7 @@ const ButtonSC = dt.button `
3971
4002
  }
3972
4003
  }
3973
4004
 
3974
- ${props.$isLoading &&
4005
+ ${props.$loading &&
3975
4006
  lt `
3976
4007
  background-color: ${getTheme("com/button/loading/background-color")} !important;
3977
4008
  border-color: ${getTheme("com/button/loading/stroke-color")} !important;
@@ -4025,7 +4056,7 @@ const ButtonSC = dt.button `
4025
4056
  }
4026
4057
  }
4027
4058
 
4028
- ${props.$isLoading &&
4059
+ ${props.$loading &&
4029
4060
  lt `
4030
4061
  background-color: ${getTheme("com/button/loading/background-color")} !important;
4031
4062
  `}
@@ -4085,7 +4116,7 @@ const ButtonSC = dt.button `
4085
4116
  }
4086
4117
  }
4087
4118
 
4088
- ${props.$isLoading &&
4119
+ ${props.$loading &&
4089
4120
  lt `
4090
4121
  background-color: ${getTheme("com/button/loading/background-color")} !important;
4091
4122
  border-color: ${getTheme("com/button/loading/stroke-color")};
@@ -4139,7 +4170,7 @@ const ButtonSC = dt.button `
4139
4170
  }
4140
4171
  }
4141
4172
 
4142
- ${props.$isLoading &&
4173
+ ${props.$loading &&
4143
4174
  lt `
4144
4175
  background-color: ${getTheme("com/button/loading-invert/solid-background-color")} !important;
4145
4176
  `}
@@ -4201,7 +4232,7 @@ const ButtonSC = dt.button `
4201
4232
  }
4202
4233
  }
4203
4234
 
4204
- ${props.$isLoading &&
4235
+ ${props.$loading &&
4205
4236
  lt `
4206
4237
  background-color: ${getTheme("com/button/disable-invert/background-color-transparent")} !important;
4207
4238
  border-color: ${getTheme("com/button/disable-invert/stroke-color")} !important;
@@ -4236,13 +4267,14 @@ const SvgSpinningIconSC = dt(RequestButtonLoadingIcon) `
4236
4267
  animation: ${spin} 0.9s linear infinite;
4237
4268
  `;
4238
4269
 
4239
- const FISButton = r.forwardRef((props, ref) => {
4240
- const { active, type, children, size = "md", variant = "primary", isLoading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
4241
- const startIcon = startIconProp && (jsxRuntime.jsx(SpanIconSC, { children: startIconProp }));
4242
- const endIcon = endIconProp && (jsxRuntime.jsx(SpanIconSC, { children: endIconProp }));
4243
- return (jsxRuntime.jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$isLoading": isLoading, disabled: disabled || isLoading, children: [isLoading &&
4270
+ const FISButton = React.forwardRef((props, ref) => {
4271
+ const { active, type, children, size = "md", variant = "primary", loading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
4272
+ const startIcon = startIconProp && jsxRuntime.jsx(SpanIconSC, { children: startIconProp });
4273
+ const endIcon = endIconProp && jsxRuntime.jsx(SpanIconSC, { children: endIconProp });
4274
+ return (jsxRuntime.jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: [loading &&
4244
4275
  (variant === "primary-white" || variant === "secondary-white" ? (jsxRuntime.jsx(SvgSpinningWhiteIconSC, {})) : (jsxRuntime.jsx(SvgSpinningIconSC, {}))), startIcon, jsxRuntime.jsx("span", { className: "button-content", children: children }), endIcon] }));
4245
4276
  });
4277
+ FISButton.displayName = "FISButton";
4246
4278
 
4247
4279
  const LinkButtonStyled = dt.button `
4248
4280
  display: flex;
@@ -4477,12 +4509,13 @@ const IconStyled$1 = dt.span `
4477
4509
  align-items: center;
4478
4510
  `;
4479
4511
 
4480
- const FISLinkButton = r.forwardRef((props, ref) => {
4512
+ const FISLinkButton = React.forwardRef((props, ref) => {
4481
4513
  const { type, children, size = "sm", variant = "default", underline, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
4482
4514
  const startIcon = startIconProp && (jsxRuntime.jsx(IconStyled$1, { className: "button-icon", children: startIconProp }));
4483
4515
  const endIcon = endIconProp && (jsxRuntime.jsx(IconStyled$1, { className: "button-icon", children: endIconProp }));
4484
4516
  return (jsxRuntime.jsxs(LinkButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$underline": underline, children: [startIcon, jsxRuntime.jsx("span", { className: "button-content", children: children }), endIcon] }));
4485
4517
  });
4518
+ FISLinkButton.displayName = "FISLinkButton";
4486
4519
 
4487
4520
  const ButtonStyled = dt.button `
4488
4521
  display: flex;
@@ -4911,7 +4944,7 @@ const ButtonStyled = dt.button `
4911
4944
  }}
4912
4945
  `;
4913
4946
 
4914
- const FISIconButton = r.forwardRef((props, ref) => {
4947
+ const FISIconButton = React.forwardRef((props, ref) => {
4915
4948
  const { type, children, active = false, size = "md", variant = "primary", icon: iconProp, ...rest } = props;
4916
4949
  return (jsxRuntime.jsx(ButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, children: iconProp }));
4917
4950
  });
@@ -5185,8 +5218,8 @@ const IconStyled = dt.span `
5185
5218
  align-items: center;
5186
5219
  `;
5187
5220
 
5188
- const FISGroupButton = ({ size = "md", disabled = false, options, variant, }) => {
5189
- return (jsxRuntime.jsx(GroupButtonContainerStyled, { children: options.map((option, index) => (r.createElement(Button, { ...option, key: index, disabledContainer: disabled, size: size, variant: variant }))) }));
5221
+ const FISGroupButton = ({ className, size = "md", disabled = false, options, variant, }) => {
5222
+ return (jsxRuntime.jsx(GroupButtonContainerStyled, { className: className, children: options.map((option, index) => (React.createElement(Button, { ...option, key: index, disabledContainer: disabled, size: size, variant: variant }))) }));
5190
5223
  };
5191
5224
  const Button = ({ disabledContainer, startIcon: startIconProp, endIcon: endIconProp, size = "md", variant = "default", label, disabled, ...rest }) => {
5192
5225
  const onlyIcon = Boolean(!label &&
@@ -5196,6 +5229,89 @@ const Button = ({ disabledContainer, startIcon: startIconProp, endIcon: endIconP
5196
5229
  return (jsxRuntime.jsxs(ButtonItemStyled, { ...rest, disabled: disabledContainer || disabled, "$onlyIcon": onlyIcon, "$size": size, "$variant": variant, children: [startIcon, label && jsxRuntime.jsx("span", { className: "button-content", children: label }), endIcon] }));
5197
5230
  };
5198
5231
 
5232
+ const DivContainerSC$3 = dt.div `
5233
+ display: flex;
5234
+ align-items: center;
5235
+ `;
5236
+ const DivIconSC$2 = dt.div `
5237
+ display: flex;
5238
+ align-items: center;
5239
+ `;
5240
+ const SpanLabelSC$1 = dt.span `
5241
+ ${getTheme("Label/XS")};
5242
+ color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/default")};
5243
+ `;
5244
+ const ButtonItemSC = dt.button `
5245
+ all: unset;
5246
+ display: flex;
5247
+ align-items: center;
5248
+ cursor: pointer;
5249
+
5250
+ ${getTheme("Label/XS")}
5251
+ color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/default")};
5252
+ padding-top: ${getTheme("com/breadcrumbs/module/vertical-padding")};
5253
+ padding-bottom: ${getTheme("com/breadcrumbs/module/vertical-padding")};
5254
+ padding-right: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
5255
+ padding-left: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
5256
+ border-radius: ${getTheme("sem/dimension/radius/component/sm")};
5257
+ gap: ${getTheme("com/breadcrumbs/module/horizontal-gap")};
5258
+
5259
+ &:hover {
5260
+ background-color: ${getTheme("sem/color/background/neutral/canvas/hover")};
5261
+ ${SpanLabelSC$1} {
5262
+ color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/hover")};
5263
+ }
5264
+
5265
+ ${DivIconSC$2} {
5266
+ color: ${getTheme("com/breadcrumbs/module/non-current/icon/color-icon/hover")};
5267
+ }
5268
+ }
5269
+
5270
+ ${(props) => props.$active &&
5271
+ lt `
5272
+ background-color: ${getTheme("sem/color/background/neutral/canvas/active")};
5273
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
5274
+ ${getTheme("com/actived-mark/color-gap-spacing")};
5275
+
5276
+ ${SpanLabelSC$1} {
5277
+ color: ${getTheme("com/breadcrumbs/module/non-current/label/color-text/active")};
5278
+ }
5279
+
5280
+ ${DivIconSC$2} {
5281
+ color: ${getTheme("com/breadcrumbs/module/non-current/icon/color-icon/active")};
5282
+ }
5283
+ `}
5284
+
5285
+ &:focus-visible {
5286
+ background-color: ${getTheme("com/focus-mark/background-color")};
5287
+ box-shadow: 0 0 0 ${getTheme("sem/dimension/stroke-width/divider/lg")}
5288
+ ${getTheme("com/focus-mark/color-gap-spacing")},
5289
+ 0 0 0 4px ${getTheme("com/focus-mark/color-stroke")};
5290
+ }
5291
+ `;
5292
+ const DivIconDotSC = dt.div `
5293
+ display: flex;
5294
+ align-items: center;
5295
+ justify-items: center;
5296
+ padding-top: ${getTheme("com/breadcrumbs/module/vertical-padding")};
5297
+ padding-bottom: ${getTheme("com/breadcrumbs/module/vertical-padding")};
5298
+ padding-right: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
5299
+ padding-left: ${getTheme("com/breadcrumbs/module/horizontal-padding")};
5300
+ gap: ${getTheme("com/breadcrumbs/module/horizontal-gap")};
5301
+ border-radius: ${getTheme("com/breadcrumbs/module/corner-radius")};
5302
+ `;
5303
+
5304
+ const MAX_VISIBLE_ITEMS = 4;
5305
+ const BreadcrumbItem = React.forwardRef(({ label, icon, active, onClick, ...rest }, ref) => {
5306
+ return (jsxRuntime.jsxs(ButtonItemSC, { ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsxRuntime.jsx(DivIconSC$2, { children: icon }), label && jsxRuntime.jsx(SpanLabelSC$1, { children: label })] }));
5307
+ });
5308
+ const BreadcrumbEllipsis = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DivIconDotSC, { children: jsxRuntime.jsx(DotIcon, {}) }), jsxRuntime.jsx(SeparatorIcon, {})] }));
5309
+ const FISBreadcrumb = ({ items, className }) => {
5310
+ if (items.length === 0)
5311
+ return null;
5312
+ return (jsxRuntime.jsxs(DivContainerSC$3, { className: className, children: [items?.[0]?.icon && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FISIconButton, { size: "xs", icon: items?.[0]?.icon, variant: "tertiary-invisible", onClick: items[0].onClick }), jsxRuntime.jsx(SeparatorIcon, {})] })), items.length > MAX_VISIBLE_ITEMS ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.slice(1, 2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(SeparatorIcon, {})] }, index))), jsxRuntime.jsx(BreadcrumbEllipsis, {}), items.slice(-2).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(SeparatorIcon, {})] }, `end-${index}`)))] })) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: items.slice(1).map((item, index) => (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx(BreadcrumbItem, { ...item }), jsxRuntime.jsx(SeparatorIcon, {})] }, index))) }))] }));
5313
+ };
5314
+
5199
5315
  const SpanRadioControlSC = dt.span `
5200
5316
  display: inline-flex;
5201
5317
  align-items: center;
@@ -5376,10 +5492,11 @@ const LabelRadioContainerSC = dt.label `
5376
5492
  }}
5377
5493
  `;
5378
5494
 
5379
- const FISRadio = r.forwardRef(({ className, children, subLabel, checked = false, disabled = false, size = "md", variant = "primary", inputRef, "aria-label": ariaLabel, ...rest }, forwardedRef) => {
5380
- const radioId = `radio-${r.useId()}`;
5495
+ const FISRadio = React.forwardRef(({ className, children, subLabel, checked = false, disabled = false, size = "md", variant = "primary", inputRef, "aria-label": ariaLabel, ...rest }, forwardedRef) => {
5496
+ const radioId = `radio-${React.useId()}`;
5381
5497
  return (jsxRuntime.jsxs(LabelRadioContainerSC, { ref: forwardedRef, className: className, "$checked": checked, "$disabled": disabled, "$size": size, "$variant": variant, children: [jsxRuntime.jsxs(SpanRadioControlSC, { tabIndex: disabled ? -1 : 0, children: [jsxRuntime.jsx(InputVisuallyHiddenSC, { ...rest, ref: inputRef, type: "radio", checked: checked, disabled: disabled, "aria-label": ariaLabel, "aria-labelledby": children ? radioId : undefined }), checked && jsxRuntime.jsx(SpanRadioControlInnerSC, {})] }), (children || subLabel) && (jsxRuntime.jsxs(SpanLabelContainerSC, { children: [children && jsxRuntime.jsx(SpanLabelSC, { id: radioId, children: children }), subLabel && jsxRuntime.jsx(SpanSubLabelSC, { children: subLabel })] }))] }));
5382
5498
  });
5499
+ FISRadio.displayName = "FISRadio";
5383
5500
 
5384
5501
  const CheckboxControlStyled = dt.span `
5385
5502
  display: inline-flex;
@@ -5570,10 +5687,11 @@ const CheckboxContainerStyled = dt.label `
5570
5687
  `;
5571
5688
 
5572
5689
  // Main Component
5573
- const FISCheckbox = r.forwardRef(({ className, children, subLabel, checked = false, indeterminate = false, disabled = false, size = "md", variant = "primary", inputRef, ...rest }, forwardedRef) => {
5574
- const checkboxId = `checkbox-${r.useId()}`;
5690
+ const FISCheckbox = React.forwardRef(({ className, children, subLabel, checked = false, indeterminate = false, disabled = false, size = "md", variant = "primary", inputRef, ...rest }, forwardedRef) => {
5691
+ const checkboxId = `checkbox-${React.useId()}`;
5575
5692
  return (jsxRuntime.jsxs(CheckboxContainerStyled, { ref: forwardedRef, className: className, "$checked": checked, "$indeterminate": indeterminate, "$disabled": disabled, "$size": size, "$variant": variant, children: [jsxRuntime.jsxs(CheckboxControlStyled, { tabIndex: disabled ? -1 : 0, children: [jsxRuntime.jsx(VisuallyHiddenStyled, { ...rest, ref: inputRef, type: "checkbox", checked: checked, disabled: disabled, "aria-labelledby": children ? checkboxId : undefined }), checked ? jsxRuntime.jsx(checkedIcon, {}) : null, !checked && indeterminate ? jsxRuntime.jsx(IndeterminateIcon, {}) : null] }), (children || subLabel) && (jsxRuntime.jsxs(LabelContainerStyled, { children: [children && jsxRuntime.jsx(LabelStyled, { id: checkboxId, children: children }), subLabel && jsxRuntime.jsx(SubLabelStyled, { children: subLabel })] }))] }));
5576
5693
  });
5694
+ FISCheckbox.displayName = "FISCheckbox";
5577
5695
 
5578
5696
  var classnames = {exports: {}};
5579
5697
 
@@ -5655,12 +5773,13 @@ var classnames = {exports: {}};
5655
5773
  var classnamesExports = classnames.exports;
5656
5774
  var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
5657
5775
 
5658
- const InputSC = dt.input `
5776
+ const InputSC$1 = dt.input `
5659
5777
  width: 100%;
5660
5778
  ${getTheme("Paragraph/Sm")}
5661
5779
  color: ${getTheme("com/input/field/default/label/color-text/inputed")};
5662
5780
  padding-right: ${getTheme("com/input/field/size-md/label/sub-spacing")};
5663
5781
  padding-left: ${getTheme("com/input/field/size-md/label/sub-spacing")};
5782
+ caret-color: ${getTheme("com/typing-cursor/default")};
5664
5783
  border: none;
5665
5784
  background: transparent;
5666
5785
  outline: none;
@@ -5674,11 +5793,11 @@ const InputSC = dt.input `
5674
5793
  color: ${getTheme("com/input/field/disable/label-color")};
5675
5794
  }
5676
5795
  }
5677
- &.is-error {
5796
+ &.negative {
5678
5797
  color: ${getTheme("com/input/field/negative/label/color-text/inputed")};
5679
5798
  }
5680
5799
  `;
5681
- const DivIconSC = dt.div `
5800
+ const DivIconSC$1 = dt.div `
5682
5801
  display: flex;
5683
5802
  flex-shrink: 0;
5684
5803
  align-items: center;
@@ -5742,19 +5861,24 @@ const DivDropdownSC = dt.div `
5742
5861
  }
5743
5862
 
5744
5863
  &:focus {
5745
- box-shadow: 0 0 0 ${getTheme("com/focus-mark/gap-spacing")}
5864
+ box-shadow:
5865
+ 0 0 0 ${getTheme("com/focus-mark/gap-spacing")}
5746
5866
  ${getTheme("com/focus-mark/color-gap-spacing")},
5747
5867
  0 0 0 4px ${getTheme("com/focus-mark/color-stroke")};
5748
5868
  border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
5749
5869
  border-left: none;
5750
5870
  }
5751
5871
 
5752
- &.is-actived {
5872
+ &.actived {
5753
5873
  background-color: ${getTheme("com/input/dropdown/background/actived")};
5754
5874
  outline: ${getTheme("com/actived-mark/gap-spacing")} solid
5755
5875
  ${getTheme("com/actived-mark/color-gap-spacing")};
5756
5876
  border-left: none;
5757
5877
  }
5878
+
5879
+ &.disabled {
5880
+ cursor: not-allowed;
5881
+ }
5758
5882
  `;
5759
5883
  const DivSuffixSC = dt.div `
5760
5884
  display: flex;
@@ -5767,12 +5891,17 @@ const DivSuffixSC = dt.div `
5767
5891
  ${getTheme("com/input/suffix/divider/color-stroke")};
5768
5892
  height: 100%;
5769
5893
  cursor: pointer;
5894
+
5895
+ &.disabled {
5896
+ cursor: not-allowed;
5897
+ }
5770
5898
  `;
5771
5899
  const SpanTextSC = dt.span `
5772
5900
  ${getTheme("Paragraph/XS")};
5773
5901
  color: ${getTheme("com/input/suffix/label/color-text")};
5774
5902
  `;
5775
- const DivContainerSC$1 = dt.div `
5903
+ const DivContainerSC$2 = dt.div `
5904
+ width: fit-content;
5776
5905
  height: ${getTheme("com/input/field/size-md/height")};
5777
5906
  min-height: ${getTheme("com/input/field/size-md/height")};
5778
5907
  max-height: ${getTheme("com/input/field/size-md/height")};
@@ -5786,7 +5915,7 @@ const DivContainerSC$1 = dt.div `
5786
5915
  display: flex;
5787
5916
  align-items: center;
5788
5917
 
5789
- &.is-dropdown {
5918
+ &.dropdown {
5790
5919
  padding-right: 0;
5791
5920
  }
5792
5921
  .icon-suffix {
@@ -5794,7 +5923,7 @@ const DivContainerSC$1 = dt.div `
5794
5923
  color: ${getTheme("com/button/tertiary/icon/color-icon/default")};
5795
5924
  }
5796
5925
 
5797
- &.is-error {
5926
+ &.negative {
5798
5927
  color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
5799
5928
  }
5800
5929
 
@@ -5805,12 +5934,12 @@ const DivContainerSC$1 = dt.div `
5805
5934
  border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
5806
5935
  }
5807
5936
 
5808
- &:has(${InputSC}:disabled) {
5937
+ &:has(${InputSC$1}:disabled) {
5809
5938
  border-color: ${getTheme("com/input/field/disable/stroke-color")};
5810
5939
  background-color: ${getTheme("com/input/field/disable/background-color")};
5811
5940
  cursor: not-allowed;
5812
5941
 
5813
- ${DivIconSC} {
5942
+ ${DivIconSC$1} {
5814
5943
  color: ${getTheme("com/input/field/disable/icon-color")};
5815
5944
  }
5816
5945
  ${DivIconSuffixSC} {
@@ -5834,25 +5963,25 @@ const DivContainerSC$1 = dt.div `
5834
5963
  border-color: ${getTheme("com/input/field/default/border/hover")};
5835
5964
  background-color: ${getTheme("com/input/field/default/background/hover")};
5836
5965
 
5837
- ${DivIconSC} {
5966
+ ${DivIconSC$1} {
5838
5967
  color: ${getTheme("com/input/field/default/icon/color-icon/hover")};
5839
5968
  }
5840
5969
  }
5841
- &:has(${InputSC}:focus) {
5970
+ &:has(${InputSC$1}:focus) {
5842
5971
  border-color: ${getTheme("com/input/field/default/border/active")};
5843
5972
  background-color: ${getTheme("com/input/field/default/background/active")};
5844
5973
  outline: ${getTheme("com/actived-mark/gap-spacing")} solid
5845
5974
  ${getTheme("com/actived-mark/color-gap-spacing")};
5846
5975
 
5847
- ${DivIconSC} {
5976
+ ${DivIconSC$1} {
5848
5977
  color: ${getTheme("com/input/field/default/icon/color-icon/active")};
5849
5978
  }
5850
5979
  }
5851
- &.is-error {
5980
+ &.negative {
5852
5981
  border-color: ${getTheme("com/input/field/negative/border/default")};
5853
5982
  background-color: ${getTheme("com/input/field/negative/background/default")};
5854
5983
 
5855
- ${DivIconSC} {
5984
+ ${DivIconSC$1} {
5856
5985
  color: ${getTheme("com/input/field/negative/icon/color-icon/default")};
5857
5986
  }
5858
5987
 
@@ -5860,33 +5989,45 @@ const DivContainerSC$1 = dt.div `
5860
5989
  border-color: ${getTheme("com/input/field/negative/border/hover")};
5861
5990
  background-color: ${getTheme("com/input/field/negative/background/hover")};
5862
5991
 
5863
- ${DivIconSC} {
5992
+ ${DivIconSC$1} {
5864
5993
  color: ${getTheme("com/input/field/negative/icon/color-icon/hover")};
5865
5994
  }
5866
5995
  }
5867
5996
 
5997
+ &:has(${InputSC$1}:focus) {
5998
+ border-color: ${getTheme("com/input/field/negative/border/active")};
5999
+ background-color: ${getTheme("com/input/field/negative/background/active")};
6000
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
6001
+ ${getTheme("com/actived-mark/color-gap-spacing")};
6002
+
6003
+ ${DivIconSC$1} {
6004
+ color: ${getTheme("com/input/field/negative/icon/color-icon/active")};
6005
+ }
6006
+ }
6007
+
5868
6008
  &::placeholder {
5869
6009
  color: ${getTheme("com/input/field/negative/label/color-text/placeholder")};
5870
6010
  }
5871
6011
  }
5872
6012
  `;
5873
6013
 
5874
- const FISInputField = r.forwardRef(({ onClickSuffix, ...props }, ref) => {
5875
- const { sizeInput = "md", iconPrefix, iconSuffix, labelSuffix, typeSuffix, isNegative, isActived, ...rest } = props;
5876
- return (jsxRuntime.jsxs(DivContainerSC$1, { className: classNames({
6014
+ const FISInputField = React.forwardRef(({ onClickSuffix, ...props }, ref) => {
6015
+ const { sizeInput = "md", iconPrefix, iconSuffix, labelSuffix, typeSuffix, disabled = true, negative, actived, ...rest } = props;
6016
+ return (jsxRuntime.jsxs(DivContainerSC$2, { className: classNames({
5877
6017
  "input-text-lg": sizeInput === "lg",
5878
- "is-error": isNegative,
5879
- "is-dropdown": typeSuffix === "dropdown",
5880
- }), children: [iconPrefix && jsxRuntime.jsx(DivIconSC, { children: iconPrefix }), jsxRuntime.jsx(InputSC, { ...rest, ref: ref, className: classNames({
5881
- "is-error": isNegative,
5882
- }) }), typeSuffix === "icon" && iconSuffix && (jsxRuntime.jsx(FISIconButton, { size: "sm", icon: iconSuffix, variant: "tertiary-invisible", className: "icon-suffix", onClick: onClickSuffix })), typeSuffix === "suffix" && (jsxRuntime.jsxs(DivSuffixSC, { onClick: onClickSuffix, children: [iconSuffix && jsxRuntime.jsx(DivIconSuffixSC, { children: iconSuffix }), labelSuffix && jsxRuntime.jsx(SpanTextSC, { children: labelSuffix })] })), typeSuffix === "dropdown" && (jsxRuntime.jsxs(DivDropdownSC, { className: classNames({ "is-actived": isActived }), onClick: onClickSuffix, children: [iconSuffix && jsxRuntime.jsx(DivIconDropSC, { children: iconSuffix }), labelSuffix && jsxRuntime.jsx(SpanTextDropSC, { children: labelSuffix }), jsxRuntime.jsx(DivIconSuffixSC, { children: jsxRuntime.jsx(DropdownIcon, {}) })] }))] }));
6018
+ negative: negative,
6019
+ dropdown: typeSuffix === "dropdown",
6020
+ }), children: [iconPrefix && jsxRuntime.jsx(DivIconSC$1, { children: iconPrefix }), jsxRuntime.jsx(InputSC$1, { ...rest, ref: ref, disabled: disabled, className: classNames({
6021
+ negative: negative,
6022
+ }) }), typeSuffix === "icon" && iconSuffix && (jsxRuntime.jsx(FISIconButton, { size: "sm", icon: iconSuffix, variant: "tertiary-invisible", className: "icon-suffix", onClick: onClickSuffix, disabled: disabled })), typeSuffix === "suffix" && (jsxRuntime.jsxs(DivSuffixSC, { onClick: onClickSuffix, className: classNames({ disabled: disabled }), children: [iconSuffix && jsxRuntime.jsx(DivIconSuffixSC, { children: iconSuffix }), labelSuffix && jsxRuntime.jsx(SpanTextSC, { children: labelSuffix })] })), typeSuffix === "dropdown" && (jsxRuntime.jsxs(DivDropdownSC, { className: classNames({ actived: actived, disabled: disabled }), onClick: onClickSuffix, children: [iconSuffix && jsxRuntime.jsx(DivIconDropSC, { children: iconSuffix }), labelSuffix && jsxRuntime.jsx(SpanTextDropSC, { children: labelSuffix }), jsxRuntime.jsx(DivIconSuffixSC, { children: jsxRuntime.jsx(DropdownIcon, {}) })] }))] }));
5883
6023
  });
5884
6024
  FISInputField.displayName = "FISInputField";
5885
6025
 
5886
- const DivContainerSC = dt.div `
6026
+ const DivContainerSC$1 = dt.div `
5887
6027
  display: flex;
5888
6028
  flex-direction: column;
5889
6029
  gap: ${getTheme("com/input/vertical-gap")};
6030
+ width: fit-content;
5890
6031
  `;
5891
6032
  const SpanCountSC = dt.span `
5892
6033
  ${getTheme("Subheading/XS")}
@@ -5894,7 +6035,7 @@ const SpanCountSC = dt.span `
5894
6035
  padding-right: ${getTheme("com/input/character-limit/horizontal-padding")};
5895
6036
  padding-left: ${getTheme("com/input/character-limit/horizontal-padding")};
5896
6037
 
5897
- &.is-error {
6038
+ &.negative {
5898
6039
  color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
5899
6040
  }
5900
6041
  `;
@@ -5902,25 +6043,25 @@ const DivHintWrapperSC = dt.div `
5902
6043
  display: flex;
5903
6044
  justify-content: space-between;
5904
6045
  `;
5905
- const SpanHintSC = dt.span `
6046
+ const SpanHintSC$2 = dt.span `
5906
6047
  ${getTheme("Paragraph/XS")}
5907
6048
  color: ${getTheme("com/input/hint/neutral/label/color-text")};
5908
6049
  padding-top: ${getTheme("com/input/hint/top-padding")};
5909
6050
 
5910
- &.is-error {
6051
+ &.negative {
5911
6052
  color: ${getTheme("com/input/hint/negative/label/color-text")};
5912
6053
  }
5913
6054
 
5914
- &.is-positive {
6055
+ &.positive {
5915
6056
  color: ${getTheme("com/input/hint/positive/label/color-text")};
5916
6057
  }
5917
6058
 
5918
- &.disabled-field {
6059
+ &.disabled {
5919
6060
  color: ${getTheme("com/input/hint/disable/label/color-text")};
5920
6061
  }
5921
6062
  `;
5922
6063
 
5923
- const DivLabel = dt.div `
6064
+ const DivLabelSC = dt.div `
5924
6065
  width: 100%;
5925
6066
  display: flex;
5926
6067
  align-items: center;
@@ -5934,23 +6075,24 @@ const SpanRequiredSC = dt.span `
5934
6075
  color: ${getTheme("com/input/label/required-mark/color-text")};
5935
6076
  `;
5936
6077
 
5937
- const FISInputLabel = r.forwardRef((props) => {
5938
- const { textLabel, isRequired, iconLabel, onClickIconLabel } = props;
5939
- return (jsxRuntime.jsxs(DivLabel, { children: [jsxRuntime.jsxs(LabelTextSC, { children: [textLabel, isRequired && jsxRuntime.jsx(SpanRequiredSC, { children: "\u00A0*" })] }), iconLabel && (jsxRuntime.jsx(FISIconButton, { size: "xs", variant: "tertiary-invisible", icon: iconLabel, onClick: onClickIconLabel }))] }));
6078
+ const FISInputLabel = React.forwardRef((props) => {
6079
+ const { textLabel, required, iconLabel, onClickIconLabel } = props;
6080
+ return (jsxRuntime.jsxs(DivLabelSC, { children: [jsxRuntime.jsxs(LabelTextSC, { children: [textLabel, required && jsxRuntime.jsx(SpanRequiredSC, { children: "\u00A0*" })] }), iconLabel && (jsxRuntime.jsx(FISIconButton, { size: "xs", variant: "tertiary-invisible", icon: iconLabel, onClick: onClickIconLabel }))] }));
5940
6081
  });
5941
-
5942
- const FISInputText = r.forwardRef((props, ref) => {
5943
- const { typeSuffix, textLabel = "", isLabel, iconLabel, isRequired = false, iconPrefix, sizeInput, showCount, hintText, isHintText = false, errorMessage, positiveMessage, isNegative = false, isPositive = true, maxLength = 0, value, disabled = false, onChange, onEnter, onBlur, onKeyDown, onClickIconLabel, onClickSuffix, autoFocus, ...rest } = props;
5944
- const [internalValue, setInternalValue] = r.useState("");
5945
- const isEdited = r.useRef(false);
5946
- const inputRef = r.useRef(null);
5947
- const handleChange = r.useCallback((event) => {
6082
+ FISInputLabel.displayName = "FISInputLabel";
6083
+
6084
+ const FISInputText = React.forwardRef((props, ref) => {
6085
+ 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;
6086
+ const [internalValue, setInternalValue] = React.useState("");
6087
+ const isEdited = React.useRef(false);
6088
+ const inputRef = React.useRef(null);
6089
+ const handleChange = React.useCallback((event) => {
5948
6090
  setInternalValue(event.target.value);
5949
6091
  if (onChange) {
5950
6092
  onChange(event.target.value);
5951
6093
  }
5952
6094
  }, [onChange]);
5953
- const handleKeyPress = r.useCallback((event) => {
6095
+ const handleKeyPress = React.useCallback((event) => {
5954
6096
  if (!event)
5955
6097
  return;
5956
6098
  if (event.key === "Enter") {
@@ -5959,17 +6101,17 @@ const FISInputText = r.forwardRef((props, ref) => {
5959
6101
  }
5960
6102
  }
5961
6103
  }, [onEnter]);
5962
- const handleKeyDown = r.useCallback((event) => {
6104
+ const handleKeyDown = React.useCallback((event) => {
5963
6105
  if (onKeyDown) {
5964
6106
  onKeyDown(event);
5965
6107
  }
5966
6108
  }, [onKeyDown]);
5967
- const handleBlur = r.useCallback((event) => {
6109
+ const handleBlur = React.useCallback((event) => {
5968
6110
  if (typeof onBlur === "function") {
5969
6111
  onBlur(event.currentTarget.value);
5970
6112
  }
5971
6113
  }, [onBlur]);
5972
- r.useEffect(() => {
6114
+ React.useEffect(() => {
5973
6115
  if (value) {
5974
6116
  setInternalValue(value);
5975
6117
  }
@@ -5978,12 +6120,12 @@ const FISInputText = r.forwardRef((props, ref) => {
5978
6120
  }
5979
6121
  isEdited.current = true;
5980
6122
  }, [value]);
5981
- r.useEffect(() => {
6123
+ React.useEffect(() => {
5982
6124
  if (autoFocus && inputRef.current) {
5983
6125
  inputRef.current.focus();
5984
6126
  }
5985
6127
  }, [autoFocus]);
5986
- r.useImperativeHandle(ref, () => {
6128
+ React.useImperativeHandle(ref, () => {
5987
6129
  const inputElement = inputRef.current;
5988
6130
  return {
5989
6131
  ...inputElement,
@@ -6005,26 +6147,931 @@ const FISInputText = r.forwardRef((props, ref) => {
6005
6147
  },
6006
6148
  };
6007
6149
  });
6008
- return (jsxRuntime.jsxs(DivContainerSC, { children: [isLabel && (jsxRuntime.jsx(FISInputLabel, { textLabel: textLabel, isRequired: isRequired, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxRuntime.jsx(FISInputField, { ...rest, typeSuffix: typeSuffix, sizeInput: sizeInput, value: internalValue, iconPrefix: iconPrefix, onChange: handleChange, onKeyPress: handleKeyPress, onKeyDown: handleKeyDown, onBlur: handleBlur, disabled: disabled, ref: inputRef, isNegative: isNegative, onClickSuffix: onClickSuffix }), jsxRuntime.jsxs(DivHintWrapperSC, { children: [isNegative ? (jsxRuntime.jsx(SpanHintSC, { className: classNames({
6009
- "is-error": isNegative,
6010
- }), children: errorMessage })) : isPositive ? (jsxRuntime.jsx(SpanHintSC, { className: classNames({
6011
- "is-positive": isPositive,
6012
- }), children: positiveMessage })) : (jsxRuntime.jsx(SpanHintSC, { className: classNames({
6013
- "disabled-field": disabled,
6014
- }), children: isHintText ? hintText : "" })), showCount && maxLength > 0 && (jsxRuntime.jsxs(SpanCountSC, { className: classNames({
6015
- "is-error": internalValue.length > maxLength,
6150
+ return (jsxRuntime.jsxs(DivContainerSC$1, { className: className, children: [(textLabel || iconLabel) && (jsxRuntime.jsx(FISInputLabel, { textLabel: textLabel, required: required, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxRuntime.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 }), jsxRuntime.jsxs(DivHintWrapperSC, { children: [jsxRuntime.jsx(SpanHintSC$2, { className: classNames({
6151
+ disabled: disabled,
6152
+ negative: negative,
6153
+ positive: positive,
6154
+ }), children: message ? message : "" }), showCount && maxLength > 0 && (jsxRuntime.jsxs(SpanCountSC, { className: classNames({
6155
+ negative: internalValue.length > maxLength,
6016
6156
  }), children: [internalValue.length, "/", maxLength] }))] })] }));
6017
6157
  });
6018
6158
  FISInputText.displayName = "FISInputText";
6019
6159
 
6160
+ const DivContainer = dt.div `
6161
+ position: relative;
6162
+ display: flex;
6163
+ align-items: center;
6164
+ justify-content: center;
6165
+
6166
+ ${(props) => {
6167
+ switch (props.$size) {
6168
+ case "2xs":
6169
+ return lt `
6170
+ border: ${getTheme("com/avatar/size-2xs/stroke-width")} solid
6171
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6172
+ `;
6173
+ case "xs":
6174
+ return lt `
6175
+ border: ${getTheme("com/avatar/size-xs/stroke-width")} solid
6176
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6177
+ `;
6178
+ case "sm":
6179
+ return lt `
6180
+ border: ${getTheme("com/avatar/size-sm/stroke-width")} solid
6181
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6182
+ `;
6183
+ case "md":
6184
+ return lt `
6185
+ border: ${getTheme("com/avatar/size-md/stroke-width")} solid
6186
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6187
+ `;
6188
+ case "lg":
6189
+ return lt `
6190
+ border: ${getTheme("com/avatar/size-lg/stroke-width")} solid
6191
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6192
+ `;
6193
+ case "xl":
6194
+ return lt `
6195
+ border: ${getTheme("com/avatar/size-xl/stroke-width")} solid
6196
+ ${getTheme("com/avatar/theme/color-stroke/neutral")};
6197
+ `;
6198
+ }
6199
+ }}
6200
+ ${(props) => {
6201
+ switch (props.$color) {
6202
+ case "neutral":
6203
+ return lt `
6204
+ border-color: ${getTheme("com/avatar/theme/color-stroke/neutral")};
6205
+ background-color: ${getTheme("com/avatar/theme/background-color/neutral")};
6206
+ `;
6207
+ case "orange":
6208
+ return lt `
6209
+ border-color: ${getTheme("com/avatar/theme/color-stroke/orange")};
6210
+ background-color: ${getTheme("com/avatar/theme/background-color/orange")};
6211
+ `;
6212
+ case "yellow":
6213
+ return lt `
6214
+ border-color: ${getTheme("com/avatar/theme/color-stroke/yellow")};
6215
+ background-color: ${getTheme("com/avatar/theme/background-color/yellow")};
6216
+ `;
6217
+ case "lime":
6218
+ return lt `
6219
+ border-color: ${getTheme("com/avatar/theme/color-stroke/lime")};
6220
+ background-color: ${getTheme("com/avatar/theme/background-color/lime")};
6221
+ `;
6222
+ case "green":
6223
+ return lt `
6224
+ border-color: ${getTheme("com/avatar/theme/color-stroke/green")};
6225
+ background-color: ${getTheme("com/avatar/theme/background-color/green")};
6226
+ `;
6227
+ case "ocean":
6228
+ return lt `
6229
+ border-color: ${getTheme("com/avatar/theme/color-stroke/ocean")};
6230
+ background-color: ${getTheme("com/avatar/theme/background-color/ocean")};
6231
+ `;
6232
+ case "blue":
6233
+ return lt `
6234
+ border-color: ${getTheme("com/avatar/theme/color-stroke/blue")};
6235
+ background-color: ${getTheme("com/avatar/theme/background-color/blue")};
6236
+ `;
6237
+ case "indigo":
6238
+ return lt `
6239
+ border-color: ${getTheme("com/avatar/theme/color-stroke/indigo")};
6240
+ background-color: ${getTheme("com/avatar/theme/background-color/indigo")};
6241
+ `;
6242
+ case "violet":
6243
+ return lt `
6244
+ border-color: ${getTheme("com/avatar/theme/color-stroke/violet")};
6245
+ background-color: ${getTheme("com/avatar/theme/background-color/violet")};
6246
+ `;
6247
+ case "pink":
6248
+ return lt `
6249
+ border-color: ${getTheme("com/avatar/theme/color-stroke/pink")};
6250
+ background-color: ${getTheme("com/avatar/theme/background-color/pink")};
6251
+ `;
6252
+ case "disable":
6253
+ return lt `
6254
+ border-color: ${getTheme("com/avatar/disable/color-stroke")};
6255
+ background-color: ${getTheme("com/avatar/disable/background-color")};
6256
+ `;
6257
+ }
6258
+ }}
6259
+ // size of the avatar
6260
+ ${(props) => {
6261
+ switch (props.$size) {
6262
+ case "2xs":
6263
+ return lt `
6264
+ width: ${getTheme("com/avatar/size-2xs/width")};
6265
+ height: ${getTheme("com/avatar/size-2xs/height")};
6266
+ min-width: ${getTheme("com/avatar/size-2xs/width")};
6267
+ max-width: ${getTheme("com/avatar/size-2xs/width")};
6268
+ min-height: ${getTheme("com/avatar/size-2xs/height")};
6269
+ max-height: ${getTheme("com/avatar/size-2xs/height")};
6270
+ `;
6271
+ case "xs":
6272
+ return lt `
6273
+ width: ${getTheme("com/avatar/size-xs/width")};
6274
+ height: ${getTheme("com/avatar/size-xs/height")};
6275
+ min-width: ${getTheme("com/avatar/size-xs/width")};
6276
+ max-width: ${getTheme("com/avatar/size-xs/width")};
6277
+ min-height: ${getTheme("com/avatar/size-xs/height")};
6278
+ max-height: ${getTheme("com/avatar/size-xs/height")};
6279
+ `;
6280
+ case "sm":
6281
+ return lt `
6282
+ width: ${getTheme("com/avatar/size-sm/width")};
6283
+ height: ${getTheme("com/avatar/size-sm/height")};
6284
+ min-width: ${getTheme("com/avatar/size-sm/width")};
6285
+ max-width: ${getTheme("com/avatar/size-sm/width")};
6286
+ min-height: ${getTheme("com/avatar/size-sm/height")};
6287
+ max-height: ${getTheme("com/avatar/size-sm/height")};
6288
+ `;
6289
+ case "md":
6290
+ return lt `
6291
+ width: ${getTheme("com/avatar/size-md/width")};
6292
+ height: ${getTheme("com/avatar/size-md/height")};
6293
+ min-width: ${getTheme("com/avatar/size-md/width")};
6294
+ max-width: ${getTheme("com/avatar/size-md/width")};
6295
+ min-height: ${getTheme("com/avatar/size-md/height")};
6296
+ max-height: ${getTheme("com/avatar/size-md/height")};
6297
+ `;
6298
+ case "lg":
6299
+ return lt `
6300
+ width: ${getTheme("com/avatar/size-lg/width")};
6301
+ height: ${getTheme("com/avatar/size-lg/height")};
6302
+ min-width: ${getTheme("com/avatar/size-lg/width")};
6303
+ max-width: ${getTheme("com/avatar/size-lg/width")};
6304
+ min-height: ${getTheme("com/avatar/size-lg/height")};
6305
+ max-height: ${getTheme("com/avatar/size-lg/height")};
6306
+ `;
6307
+ case "xl":
6308
+ return lt `
6309
+ width: ${getTheme("com/avatar/size-xl/width")};
6310
+ height: ${getTheme("com/avatar/size-xl/height")};
6311
+ min-width: ${getTheme("com/avatar/size-xl/width")};
6312
+ max-width: ${getTheme("com/avatar/size-xl/width")};
6313
+ min-height: ${getTheme("com/avatar/size-xl/height")};
6314
+ max-height: ${getTheme("com/avatar/size-xl/height")};
6315
+ `;
6316
+ }
6317
+ }}
6318
+ ${(props) => {
6319
+ switch (props.$badge) {
6320
+ case "rounded":
6321
+ return lt `
6322
+ border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
6323
+ `;
6324
+ case "square":
6325
+ return lt `
6326
+ border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
6327
+ `;
6328
+ }
6329
+ }};
6330
+ `;
6331
+ const ImgAvatar = dt.img `
6332
+ object-fit: cover;
6333
+ display: flex;
6334
+ align-items: center;
6335
+ justify-content: center;
6336
+ width: 100%;
6337
+ height: 100%;
6338
+
6339
+ // badge of the avatar
6340
+ ${(props) => {
6341
+ switch (props.$badge) {
6342
+ case "rounded":
6343
+ return lt `
6344
+ border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
6345
+ `;
6346
+ case "square":
6347
+ return lt `
6348
+ border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
6349
+ `;
6350
+ }
6351
+ }}
6352
+ `;
6353
+ const DivIcon = dt.div `
6354
+ object-fit: cover;
6355
+ display: flex;
6356
+ align-items: center;
6357
+ justify-content: center;
6358
+
6359
+ ${(props) => {
6360
+ switch (props.$size) {
6361
+ case "2xs":
6362
+ return lt `
6363
+ width: ${getTheme("com/avatar/size-2xs/size-icon")};
6364
+ height: ${getTheme("com/avatar/size-2xs/size-icon")};
6365
+ `;
6366
+ case "xs":
6367
+ return lt `
6368
+ width: ${getTheme("com/avatar/size-xs/size-icon")};
6369
+ height: ${getTheme("com/avatar/size-xs/size-icon")};
6370
+ `;
6371
+ case "sm":
6372
+ return lt `
6373
+ width: ${getTheme("com/avatar/size-sm/size-icon")};
6374
+ height: ${getTheme("com/avatar/size-sm/size-icon")};
6375
+ `;
6376
+ case "md":
6377
+ return lt `
6378
+ width: ${getTheme("com/avatar/size-md/size-icon")};
6379
+ height: ${getTheme("com/avatar/size-md/size-icon")};
6380
+ `;
6381
+ case "lg":
6382
+ return lt `
6383
+ width: ${getTheme("com/avatar/size-lg/size-icon")};
6384
+ height: ${getTheme("com/avatar/size-lg/size-icon")};
6385
+ `;
6386
+ case "xl":
6387
+ return lt `
6388
+ width: ${getTheme("com/avatar/size-xl/size-icon")};
6389
+ height: ${getTheme("com/avatar/size-xl/size-icon")};
6390
+ `;
6391
+ }
6392
+ }}
6393
+ // badge of the avatar
6394
+ ${(props) => {
6395
+ switch (props.$badge) {
6396
+ case "rounded":
6397
+ return lt `
6398
+ border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
6399
+ `;
6400
+ case "square":
6401
+ return lt `
6402
+ border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
6403
+ `;
6404
+ }
6405
+ }}
6406
+ `;
6407
+ const SpanLetter = dt.span `
6408
+ object-fit: cover;
6409
+ display: flex;
6410
+ align-items: center;
6411
+ justify-content: center;
6412
+ width: 100%;
6413
+ height: 100%;
6414
+ text-transform: uppercase;
6415
+
6416
+ ${(props) => {
6417
+ switch (props.$size) {
6418
+ case "2xs":
6419
+ return lt `
6420
+ font-size: 8px;
6421
+ font: ${getTheme("sem/typo/subheading/font")};
6422
+ font-weight: ${getTheme("sem/typo/subheading/weight")};
6423
+ font-size: 8px;
6424
+ line-height: ${getTheme("sem/typo/subheading/line-height/xs")};
6425
+ letter-spacing: ${getTheme("sem/typo/subheading/letter-spacing/xs")};
6426
+ text-align: center;
6427
+ `;
6428
+ case "xs":
6429
+ return lt `
6430
+ font-size: 8px;
6431
+ font: ${getTheme("sem/typo/subheading/font")};
6432
+ font-weight: ${getTheme("sem/typo/subheading/weight")};
6433
+ font-size: 8px;
6434
+ line-height: ${getTheme("sem/typo/subheading/line-height/xs")};
6435
+ letter-spacing: ${getTheme("sem/typo/subheading/letter-spacing/xs")};
6436
+ text-align: center;
6437
+ `;
6438
+ case "sm":
6439
+ return lt `
6440
+ ${getTheme("Subheading/XS")};
6441
+ `;
6442
+ case "md":
6443
+ return lt `
6444
+ ${getTheme("Subheading/Sm")};
6445
+ `;
6446
+ case "lg":
6447
+ return lt `
6448
+ ${getTheme("Subheading/Md")};
6449
+ `;
6450
+ case "xl":
6451
+ return lt `
6452
+ ${getTheme("Subheading/Lg")};
6453
+ `;
6454
+ }
6455
+ }}
6456
+
6457
+ ${(props) => {
6458
+ switch (props.$color) {
6459
+ case "neutral":
6460
+ return lt `
6461
+ color: ${getTheme("com/avatar/theme/label/color-text/neutral")};
6462
+ `;
6463
+ case "orange":
6464
+ return lt `
6465
+ color: ${getTheme("com/avatar/theme/label/color-text/orange")};
6466
+ `;
6467
+ case "yellow":
6468
+ return lt `
6469
+ color: ${getTheme("com/avatar/theme/label/color-text/yellow")};
6470
+ `;
6471
+ case "lime":
6472
+ return lt `
6473
+ color: ${getTheme("com/avatar/theme/label/color-text/lime")};
6474
+ `;
6475
+ case "green":
6476
+ return lt `
6477
+ color: ${getTheme("com/avatar/theme/label/color-text/green")};
6478
+ `;
6479
+ case "ocean":
6480
+ return lt `
6481
+ color: ${getTheme("com/avatar/theme/label/color-text/ocean")};
6482
+ `;
6483
+ case "blue":
6484
+ return lt `
6485
+ color: ${getTheme("com/avatar/theme/label/color-text/blue")};
6486
+ `;
6487
+ case "indigo":
6488
+ return lt `
6489
+ color: ${getTheme("com/avatar/theme/label/color-text/indigo")};
6490
+ `;
6491
+ case "violet":
6492
+ return lt `
6493
+ color: ${getTheme("com/avatar/theme/label/color-text/violet")};
6494
+ `;
6495
+ case "pink":
6496
+ return lt `
6497
+ color: ${getTheme("com/avatar/theme/label/color-text/pink")};
6498
+ `;
6499
+ case "disable":
6500
+ return lt `
6501
+ color: ${getTheme("com/avatar/disable/color-text")};
6502
+ `;
6503
+ }
6504
+ }}
6505
+
6506
+ // badge of the avatar
6507
+ ${(props) => {
6508
+ switch (props.$badge) {
6509
+ case "rounded":
6510
+ return lt `
6511
+ border-radius: ${getTheme("com/avatar/corner-radius-rounded")};
6512
+ `;
6513
+ case "square":
6514
+ return lt `
6515
+ border-radius: ${getTheme("com/avatar/size-xl/corner-radius")};
6516
+ `;
6517
+ }
6518
+ }}
6519
+ `;
6520
+ const DivBadge = dt.div `
6521
+ position: absolute;
6522
+ bottom: -2px;
6523
+ right: -2px;
6524
+ border: ${getTheme("com/avatar/status-badge/size-lg/stroke-width")} solid
6525
+ ${getTheme("com/avatar/status-badge/color-stroke")};
6526
+ border-radius: ${getTheme("sem/dimension/radius/component/round")};
6527
+
6528
+ ${(props) => {
6529
+ switch (props.$size) {
6530
+ case "xl":
6531
+ return lt `
6532
+ width: 10px;
6533
+ height: 10px;
6534
+ min-width: 10px;
6535
+ max-width: 10px;
6536
+ min-height: 10px;
6537
+ max-height: 10px;
6538
+ `;
6539
+ case "lg":
6540
+ return lt `
6541
+ width: 8px;
6542
+ height: 8px;
6543
+ min-width: 8px;
6544
+ max-width: 8px;
6545
+ min-height: 8px;
6546
+ max-height: 8px;
6547
+ `;
6548
+ case "md":
6549
+ return lt `
6550
+ width: 8px;
6551
+ height: 8px;
6552
+ min-width: 8px;
6553
+ max-width: 8px;
6554
+ min-height: 8px;
6555
+ max-height: 8px;
6556
+ `;
6557
+ case "sm":
6558
+ return lt `
6559
+ width: 6px;
6560
+ height: 6px;
6561
+ min-width: 6px;
6562
+ max-width: 6px;
6563
+ min-height: 6px;
6564
+ max-height: 6px;
6565
+ `;
6566
+ case "xs":
6567
+ return lt `
6568
+ width: 6px;
6569
+ height: 6px;
6570
+ min-width: 6px;
6571
+ max-width: 6px;
6572
+ min-height: 6px;
6573
+ max-height: 6px;
6574
+ `;
6575
+ case "2xs":
6576
+ return lt `
6577
+ width: 4px;
6578
+ height: 4px;
6579
+ min-width: 4px;
6580
+ max-width: 4px;
6581
+ min-height: 4px;
6582
+ max-height: 4px;
6583
+ `;
6584
+ }
6585
+ }}
6586
+ ${(props) => {
6587
+ switch (props.$status) {
6588
+ case "green":
6589
+ return lt `
6590
+ background-color: ${getTheme("com/avatar/status-badge/theme/green")};
6591
+ `;
6592
+ case "red":
6593
+ return lt `
6594
+ background-color: ${getTheme("com/avatar/status-badge/theme/red")};
6595
+ `;
6596
+ case "yellow":
6597
+ return lt `
6598
+ background-color: ${getTheme("com/avatar/status-badge/theme/yellow")};
6599
+ `;
6600
+ case "blue":
6601
+ return lt `
6602
+ background-color: ${getTheme("com/avatar/status-badge/theme/blue")};
6603
+ `;
6604
+ case "neutral":
6605
+ return lt `
6606
+ background-color: ${getTheme("com/avatar/status-badge/theme/neutral")};
6607
+ `;
6608
+ }
6609
+ }}
6610
+ `;
6611
+
6612
+ const FISAvatar = ({ className, src, alt = "Avatar", badge = "rounded", size = "xl", icon, status = "green", color = "neutral", letter, isBadgeDot = true, }) => {
6613
+ return (jsxRuntime.jsxs(DivContainer, { className: className, "$size": size, "$badge": badge, "$color": color, children: [src ? (jsxRuntime.jsx(ImgAvatar, { "$size": size, "$badge": badge, src: src, alt: alt })) : icon ? (jsxRuntime.jsx(DivIcon, { "$size": size, "$badge": badge, children: icon })) : (jsxRuntime.jsx(SpanLetter, { "$size": size, "$badge": badge, "$color": color, children: letter?.slice(0, 2) })), isBadgeDot && jsxRuntime.jsx(DivBadge, { "$size": size, "$status": status })] }));
6614
+ };
6615
+
6616
+ const DicContainerSC = dt.div `
6617
+ display: flex;
6618
+ flex-direction: column;
6619
+ gap: ${getTheme("sem/dimension/gap/xs")};
6620
+ width: fit-content;
6621
+ `;
6622
+ const DivResizeSC = dt.div `
6623
+ position: absolute;
6624
+ bottom: -2px;
6625
+ right: -2px;
6626
+ cursor: nwse-resize;
6627
+ display: flex;
6628
+ align-items: center;
6629
+ justify-content: center;
6630
+ user-select: none;
6631
+ `;
6632
+ const DivIconSC = dt.div `
6633
+ width: ${getTheme("com/button/size-sm/height")};
6634
+ height: ${getTheme("com/button/size-sm/height")};
6635
+ min-width: ${getTheme("com/button/size-sm/height")};
6636
+ max-width: ${getTheme("com/button/size-sm/height")};
6637
+ min-height: ${getTheme("com/button/size-sm/height")};
6638
+ max-height: ${getTheme("com/button/size-sm/height")};
6639
+ border-radius: ${getTheme("com/button/size-xs/corner-radius")};
6640
+ border-width: ${getTheme("com/button/secondary/border/stroke-width/default")};
6641
+ gap: ${getTheme("com/button/size-sm/horizontal-gap")};
6642
+ position: absolute;
6643
+ bottom: ${getTheme("sem/dimension/padding/2xs")};
6644
+ top: ${getTheme("sem/dimension/padding/2xs")};
6645
+ right: ${getTheme("com/input/field/right-padding")};
6646
+ display: flex;
6647
+ align-items: center;
6648
+ justify-content: center;
6649
+ `;
6650
+ const TextAreaSC = dt.textarea `
6651
+ font-family: inherit;
6652
+ outline: none;
6653
+ border: none;
6654
+ ${getTheme("Paragraph/Sm")};
6655
+ padding-top: ${getTheme("com/input/field/size-md/label/vertical-padding")};
6656
+ padding-right: ${getTheme("com/input/field/size-md/label/horizontal-padding")};
6657
+ padding-bottom: ${getTheme("com/input/field/size-md/label/vertical-padding")};
6658
+ padding-left: ${getTheme("com/input/field/size-md/label/horizontal-padding")};
6659
+ background-color: inherit;
6660
+ resize: none;
6661
+
6662
+ &::placeholder {
6663
+ ${getTheme("Paragraph/Sm")}
6664
+ color: ${getTheme("com/input/field/default/label/color-text/placeholder")};
6665
+ }
6666
+
6667
+ &:focus::placeholder {
6668
+ color: transparent;
6669
+ }
6670
+
6671
+ &.input-area-lg {
6672
+ padding-top: ${getTheme("com/input/field/size-lg/label/vertical-padding")};
6673
+ padding-right: ${getTheme("com/input/field/size-lg/label/horizontal-padding")};
6674
+ padding-bottom: ${getTheme("com/input/field/size-lg/label/vertical-padding")};
6675
+ padding-left: ${getTheme("com/input/field/size-lg/label/horizontal-padding")};
6676
+ }
6677
+
6678
+ &.input-area-icon {
6679
+ margin-right: calc(
6680
+ ${getTheme("com/input/field/size-md/label/horizontal-padding")} +
6681
+ ${getTheme("com/button/size-sm/height")}
6682
+ );
6683
+ //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)
6684
+ }
6685
+ `;
6686
+ const DivAreaFieldSC = dt.div `
6687
+ position: relative;
6688
+ display: flex;
6689
+ height: inherit;
6690
+ min-height: ${getTheme("com/input/field/size-md/height")};
6691
+ border: ${getTheme("com/input/field/stroke-width")} solid
6692
+ ${getTheme("com/input/field/default/border/default")};
6693
+ padding-right: ${getTheme("com/input/field/right-padding")};
6694
+ padding-left: ${getTheme("com/input/field/left-padding")};
6695
+ border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
6696
+ background-color: ${getTheme("com/input/field/default/background/default")};
6697
+
6698
+ &.input-area-icon {
6699
+ padding-right: 0;
6700
+ }
6701
+
6702
+ &.negative {
6703
+ border-color: ${getTheme("com/input/field/negative/border/default")};
6704
+ background-color: ${getTheme("com/input/field/negative/background/default")};
6705
+
6706
+ &:hover {
6707
+ border-color: ${getTheme("com/input/field/negative/border/hover")};
6708
+ background-color: ${getTheme("com/input/field/negative/background/hover")};
6709
+ }
6710
+
6711
+ &:focus-within {
6712
+ border-color: ${getTheme("com/input/field/negative/border/active")};
6713
+ background-color: ${getTheme("com/input/field/negative/background/active")};
6714
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
6715
+ ${getTheme("com/actived-mark/color-gap-spacing")};
6716
+ }
6717
+
6718
+ &::placeholder {
6719
+ color: ${getTheme("com/input/field/negative/label/color-text/placeholder")};
6720
+ }
6721
+ }
6722
+
6723
+ &:hover {
6724
+ border-color: ${getTheme("com/input/field/default/border/hover")};
6725
+ background-color: ${getTheme("com/input/field/default/background/hover")};
6726
+ }
6727
+
6728
+ &:focus-within {
6729
+ border-color: ${getTheme("com/input/field/default/border/active")};
6730
+ background-color: ${getTheme("com/input/field/default/background/active")};
6731
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
6732
+ ${getTheme("com/actived-mark/color-gap-spacing")};
6733
+ }
6734
+
6735
+ &:has(${TextAreaSC}:disabled),
6736
+ &:has(${TextAreaSC}:read-only) {
6737
+ border-color: ${getTheme("com/input/field/disable/stroke-color")};
6738
+ background-color: ${getTheme("com/input/field/disable/background-color")};
6739
+ cursor: not-allowed;
6740
+
6741
+ &::placeholder {
6742
+ color: ${getTheme("com/input/field/disable/label-color")};
6743
+ }
6744
+
6745
+ ${DivIconSC}, ${DivResizeSC} {
6746
+ display: none;
6747
+ }
6748
+ }
6749
+
6750
+ &.input-area-lg {
6751
+ min-height: ${getTheme("com/input/field/size-lg/height")};
6752
+ border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
6753
+ }
6754
+ `;
6755
+ const DivCountSC = dt.div `
6756
+ display: flex;
6757
+ justify-content: flex-end;
6758
+ ${getTheme("Subheading/XS")}
6759
+ color: ${getTheme("com/input/character-limit/label/default/color-text")};
6760
+
6761
+ span.negative { {
6762
+ color: ${getTheme("com/input/character-limit/label/over-limit/color-text")};
6763
+ }
6764
+ padding-left: ${getTheme("com/input/character-limit/horizontal-padding")};
6765
+ padding-right: ${getTheme("com/input/character-limit/horizontal-padding")};
6766
+ `;
6767
+ const SpanHintSC$1 = dt.span `
6768
+ ${getTheme("Paragraph/XS")}
6769
+ color: ${getTheme("com/input/hint/neutral/label/color-text")};
6770
+ padding-top: ${getTheme("com/input/hint/top-padding")};
6771
+
6772
+ &.negative {
6773
+ color: ${getTheme("com/input/hint/negative/label/color-text")};
6774
+ }
6775
+
6776
+ &.positive {
6777
+ color: ${getTheme("com/input/hint/positive/label/color-text")};
6778
+ }
6779
+
6780
+ &.disabled {
6781
+ color: ${getTheme("com/input/hint/disable/label/color-text")};
6782
+ }
6783
+ `;
6784
+ const DivBottomSC = dt.div `
6785
+ display: flex;
6786
+ justify-content: space-between;
6787
+ `;
6788
+ dt.div `
6789
+ ${getTheme("Paragraph/XS")};
6790
+ color: ${getTheme("com/input/hint/neutral/label/color-text")};
6791
+ `;
6792
+
6793
+ const FISTextArea = React.forwardRef((props, ref) => {
6794
+ 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;
6795
+ const [internalValue, setInternalValue] = React.useState("");
6796
+ const inputRef = React.useRef(null);
6797
+ const handleChange = React.useCallback((event) => {
6798
+ const newValue = event.target.value;
6799
+ if (newValue !== internalValue) {
6800
+ setInternalValue(newValue);
6801
+ onChange?.(newValue);
6802
+ }
6803
+ }, [internalValue, onChange]);
6804
+ const handleKeyPress = React.useCallback((event) => {
6805
+ if (event.key === "Enter") {
6806
+ if (typeof onEnter === "function") {
6807
+ onEnter(event.currentTarget.value);
6808
+ }
6809
+ }
6810
+ }, [onEnter]);
6811
+ const handleBlur = React.useCallback((event) => {
6812
+ const value = event.target.value;
6813
+ if (typeof onBlur === "function") {
6814
+ onBlur(value);
6815
+ }
6816
+ }, [onBlur]);
6817
+ React.useEffect(() => {
6818
+ if (value !== undefined && value !== null) {
6819
+ setInternalValue(value);
6820
+ }
6821
+ }, [value]);
6822
+ React.useImperativeHandle(ref, () => {
6823
+ const inputElement = inputRef.current;
6824
+ return {
6825
+ ...inputElement,
6826
+ focus: () => {
6827
+ if (inputRef.current) {
6828
+ inputRef.current.focus();
6829
+ }
6830
+ },
6831
+ blur: () => {
6832
+ if (inputRef.current) {
6833
+ inputRef.current.blur();
6834
+ }
6835
+ },
6836
+ clear: () => {
6837
+ if (inputRef.current) {
6838
+ inputRef.current.value = "";
6839
+ setInternalValue("");
6840
+ }
6841
+ },
6842
+ };
6843
+ });
6844
+ const handleResize = (e) => {
6845
+ e.preventDefault();
6846
+ e.stopPropagation();
6847
+ const textArea = inputRef.current;
6848
+ if (!textArea)
6849
+ return;
6850
+ const rect = textArea.getBoundingClientRect();
6851
+ const startX = e.clientX;
6852
+ const startY = e.clientY;
6853
+ const startWidth = rect.width;
6854
+ const startHeight = rect.height;
6855
+ const doResize = (event) => {
6856
+ event.preventDefault();
6857
+ const resizeHandle = document.getElementById("resizeHandle");
6858
+ const handleSize = resizeHandle ? resizeHandle.offsetWidth : 10;
6859
+ const themeValue = getTheme("sem/typo/paragraph/line-height/sm");
6860
+ const minHeight = themeValue
6861
+ ? parseInt(themeValue.toString(), 10) || 20
6862
+ : 20;
6863
+ const newWidth = Math.max(startWidth + (event.clientX - startX) - handleSize);
6864
+ const newHeight = Math.max(minHeight, startHeight + (event.clientY - startY) - handleSize);
6865
+ textArea.style.width = `${newWidth}px`;
6866
+ textArea.style.height = `${newHeight}px`;
6867
+ if (resizeHandle) {
6868
+ resizeHandle.style.right = "-2px";
6869
+ resizeHandle.style.bottom = "-2px";
6870
+ }
6871
+ };
6872
+ const stopResize = () => {
6873
+ document.body.style.cursor = "";
6874
+ document.removeEventListener("mousemove", doResize);
6875
+ document.removeEventListener("mouseup", stopResize);
6876
+ };
6877
+ document.addEventListener("mousemove", doResize);
6878
+ document.addEventListener("mouseup", stopResize);
6879
+ };
6880
+ return (jsxRuntime.jsxs(DicContainerSC, { className: className, children: [(textLabel || iconLabel) && (jsxRuntime.jsx(FISInputLabel, { textLabel: textLabel, required: required, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxRuntime.jsxs(DivAreaFieldSC, { className: classNames({
6881
+ "input-area-lg": size === "lg",
6882
+ "input-area-icon": iconSuffix,
6883
+ negative,
6884
+ }), style: { width: fixedWidth ? `${fixedWidth}px` : "auto" }, children: [jsxRuntime.jsx(TextAreaSC, { ...rest, value: internalValue, onChange: handleChange, onKeyDown: handleKeyPress, onBlur: handleBlur, ref: inputRef, placeholder: placeholder, disabled: disabled, readOnly: readOnly, className: classNames({
6885
+ "input-area-lg": size === "lg",
6886
+ "input-area-icon": iconSuffix,
6887
+ }) }), iconSuffix && (jsxRuntime.jsx(DivIconSC, { children: jsxRuntime.jsx(FISIconButton, { variant: "tertiary-invisible", size: "sm", icon: iconSuffix, onClick: onClickIconSuffix }) })), jsxRuntime.jsx(DivResizeSC, { id: "resizeHandle", onMouseDown: handleResize, children: jsxRuntime.jsx(ResizeIcon, {}) })] }), jsxRuntime.jsxs(DivBottomSC, { children: [jsxRuntime.jsx(SpanHintSC$1, { className: classNames({
6888
+ disabled,
6889
+ negative,
6890
+ positive,
6891
+ }), children: message ? message : "" }), jsxRuntime.jsx(DivCountSC, { children: showCount && maxLength > 0 && (jsxRuntime.jsxs("span", { className: classNames("text-area__count", {
6892
+ negative: internalValue.length > maxLength,
6893
+ }), children: [internalValue?.replaceAll("\n", "")?.length, "/", maxLength] })) })] })] }));
6894
+ });
6895
+ FISTextArea.displayName = "FISTextArea";
6896
+
6897
+ const InputSC = dt.input `
6898
+ all: unset;
6899
+ text-align: center;
6900
+ caret-color: ${getTheme("com/typing-cursor/default")};
6901
+ ${getTheme("Paragraph/Md")}
6902
+ &::-webkit-outer-spin-button,
6903
+ &::-webkit-inner-spin-button {
6904
+ -webkit-appearance: none;
6905
+ margin: 0;
6906
+ }
6907
+ -moz-appearance: textfield;
6908
+
6909
+ ::placeholder {
6910
+ color: ${getTheme("com/input/field/default/label/color-text/placeholder")};
6911
+ }
6912
+
6913
+ &:disabled,
6914
+ &:read-only {
6915
+ text-align: left;
6916
+ &::placeholder {
6917
+ color: ${getTheme("com/input/field/disable/label-color")};
6918
+ }
6919
+ }
6920
+
6921
+ &.negative {
6922
+ color: ${getTheme("com/input/field/negative/label/color-text/inputed")};
6923
+ }
6924
+ `;
6925
+ const DivContainerSC = dt.div `
6926
+ display: flex;
6927
+ align-items: center;
6928
+ justify-content: space-between;
6929
+ width: fit-content;
6930
+ background-color: ${getTheme("com/input/field/default/background/default")};
6931
+ height: ${getTheme("com/input/field/size-md/height")};
6932
+ min-width: ${getTheme("com/input/field/size-md/number/min-width")};
6933
+ min-height: ${getTheme("com/input/field/size-md/height")};
6934
+ max-height: ${getTheme("com/input/field/size-md/height")};
6935
+ border-radius: ${getTheme("com/input/field/size-md/corner-radius")};
6936
+ border: ${getTheme("com/input/field/stroke-width")} solid
6937
+ ${getTheme("com/input/field/default/border/default")};
6938
+ padding-right: ${getTheme("com/input/field/right-padding")};
6939
+ padding-left: ${getTheme("com/input/field/left-padding")};
6940
+
6941
+ .decrement,
6942
+ .increment {
6943
+ flex-shrink: 0;
6944
+ }
6945
+
6946
+ .disabled-button {
6947
+ display: none;
6948
+ }
6949
+
6950
+ &.input-text-lg {
6951
+ height: ${getTheme("com/input/field/size-lg/height")};
6952
+ min-width: ${getTheme("com/input/field/size-lg/number/min-width")};
6953
+ min-height: ${getTheme("com/input/field/size-lg/height")};
6954
+ max-height: ${getTheme("com/input/field/size-lg/height")};
6955
+ border-radius: ${getTheme("com/input/field/size-lg/corner-radius")};
6956
+ }
6957
+
6958
+ &:hover {
6959
+ border-color: ${getTheme("com/input/field/default/border/hover")};
6960
+ background-color: ${getTheme("com/input/field/default/background/hover")};
6961
+ }
6962
+
6963
+ &:has(${InputSC}:focus) {
6964
+ border-color: ${getTheme("com/input/field/default/border/active")};
6965
+ background-color: ${getTheme("com/input/field/default/background/active")};
6966
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
6967
+ ${getTheme("com/actived-mark/color-gap-spacing")};
6968
+ }
6969
+
6970
+ &:has(${InputSC}:disabled),
6971
+ &:has(${InputSC}:read-only) {
6972
+ cursor: not-allowed;
6973
+ border-color: ${getTheme("com/input/field/disable/stroke-color")};
6974
+ background-color: ${getTheme("com/input/field/disable/background-color")};
6975
+ }
6976
+
6977
+ &.negative {
6978
+ border-color: ${getTheme("com/input/field/negative/border/default")};
6979
+ background-color: ${getTheme("com/input/field/negative/background/default")};
6980
+
6981
+ &:hover {
6982
+ border-color: ${getTheme("com/input/field/negative/border/hover")};
6983
+ background-color: ${getTheme("com/input/field/negative/background/hover")};
6984
+ }
6985
+
6986
+ &:has(${InputSC}:focus) {
6987
+ border-color: ${getTheme("com/input/field/negative/border/active")};
6988
+ background-color: ${getTheme("com/input/field/negative/background/active")};
6989
+ outline: ${getTheme("com/actived-mark/gap-spacing")} solid
6990
+ ${getTheme("com/actived-mark/color-gap-spacing")};
6991
+ }
6992
+ }
6993
+ `;
6994
+ const DivHintSC = dt.div `
6995
+ display: flex;
6996
+ justify-content: space-between;
6997
+ `;
6998
+ const SpanHintSC = dt.span `
6999
+ ${getTheme("Paragraph/XS")}
7000
+ color: ${getTheme("com/input/hint/neutral/label/color-text")};
7001
+ padding-top: ${getTheme("com/input/hint/top-padding")};
7002
+
7003
+ &.negative {
7004
+ color: ${getTheme("com/input/hint/negative/label/color-text")};
7005
+ }
7006
+
7007
+ &.positive {
7008
+ color: ${getTheme("com/input/hint/positive/label/color-text")};
7009
+ }
7010
+
7011
+ &.disabled {
7012
+ color: ${getTheme("com/input/hint/disable/label/color-text")};
7013
+ }
7014
+ `;
7015
+ const DivWrapperSC = dt.div `
7016
+ display: flex;
7017
+ flex-direction: column;
7018
+ gap: ${getTheme("com/input/vertical-gap")};
7019
+ `;
7020
+
7021
+ const FISInputStepper = React.forwardRef((props) => {
7022
+ const { min, max, step = 1, defaultValue, sizeInput = "md", StartIcon, EndIcon, negative, positive, message, iconLabel, textLabel = "", onClickIconLabel, disabled, readOnly, onChange, ...rest } = props;
7023
+ const [count, setCount] = React.useState(defaultValue !== undefined ? defaultValue : undefined);
7024
+ const handleIncrement = () => {
7025
+ setCount((prev) => {
7026
+ const newValue = (prev ?? min ?? 0) + step;
7027
+ return max !== undefined && newValue > max ? max : newValue;
7028
+ });
7029
+ };
7030
+ const handleDecrement = () => {
7031
+ setCount((prev) => {
7032
+ const newValue = (prev ?? min ?? 0) - step;
7033
+ return min !== undefined && newValue < min ? min : newValue;
7034
+ });
7035
+ };
7036
+ const handleChange = (e) => {
7037
+ const newValue = e.target.value
7038
+ ? parseInt(e.target.value, 10)
7039
+ : undefined;
7040
+ if (!isNaN(newValue)) {
7041
+ setCount(newValue);
7042
+ onChange?.(newValue);
7043
+ }
7044
+ else {
7045
+ setCount(undefined);
7046
+ }
7047
+ };
7048
+ return (jsxRuntime.jsxs(DivWrapperSC, { children: [(textLabel || iconLabel) && (jsxRuntime.jsx(FISInputLabel, { textLabel: textLabel, required: true, iconLabel: iconLabel, onClickIconLabel: onClickIconLabel })), jsxRuntime.jsxs(DivContainerSC, { className: classNames({
7049
+ negative: negative,
7050
+ "input-text-lg": sizeInput === "lg",
7051
+ }), children: [jsxRuntime.jsx(FISIconButton, { icon: StartIcon ? StartIcon : jsxRuntime.jsx(DecreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleDecrement, disabled: min !== undefined && count !== undefined && count <= min, className: classNames("decrement", {
7052
+ "disabled-button": disabled || readOnly,
7053
+ }) }), jsxRuntime.jsx(InputSC, { ...rest, disabled: disabled, readOnly: readOnly, type: "number", value: count !== undefined ? count : "", className: classNames({ negative: negative }), onChange: handleChange }), jsxRuntime.jsx(FISIconButton, { icon: EndIcon ? EndIcon : jsxRuntime.jsx(IncreIcon, {}), size: sizeInput === "lg" ? "md" : "sm", variant: "tertiary-invisible", onClick: handleIncrement, disabled: max !== undefined && count !== undefined && count >= max, className: classNames("increment", {
7054
+ "disabled-button": disabled || readOnly,
7055
+ }) })] }), jsxRuntime.jsx(DivHintSC, { children: jsxRuntime.jsx(SpanHintSC, { className: classNames({
7056
+ disabled: disabled,
7057
+ negative: negative,
7058
+ positive: positive,
7059
+ }), children: message ? message : "" }) })] }));
7060
+ });
7061
+ FISInputStepper.displayName = "FISInputStepper";
7062
+
7063
+ exports.FISAvatar = FISAvatar;
7064
+ exports.FISBreadcrumb = FISBreadcrumb;
6020
7065
  exports.FISButton = FISButton;
6021
7066
  exports.FISCheckbox = FISCheckbox;
6022
7067
  exports.FISGroupButton = FISGroupButton;
6023
7068
  exports.FISIconButton = FISIconButton;
6024
7069
  exports.FISInputField = FISInputField;
6025
7070
  exports.FISInputLabel = FISInputLabel;
7071
+ exports.FISInputStepper = FISInputStepper;
6026
7072
  exports.FISInputText = FISInputText;
6027
7073
  exports.FISLinkButton = FISLinkButton;
6028
7074
  exports.FISRadio = FISRadio;
7075
+ exports.FISTextArea = FISTextArea;
6029
7076
  exports.FISThemeProvider = FISThemeProvider;
6030
7077
  //# sourceMappingURL=index.js.map