fis-component 0.0.21 → 0.0.23

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