letalkui 0.0.43 → 0.0.44

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 (38) hide show
  1. package/dist/{chunk-2CEQHXZS.mjs → chunk-3EDUDDNY.mjs} +1 -1
  2. package/dist/{chunk-2CEQHXZS.mjs.map → chunk-3EDUDDNY.mjs.map} +1 -1
  3. package/dist/chunk-46R3ISKS.mjs +1 -0
  4. package/dist/{chunk-MDQEAXOA.mjs.map → chunk-46R3ISKS.mjs.map} +1 -1
  5. package/dist/{chunk-WGZNT73I.mjs → chunk-56TUJURJ.mjs} +1 -1
  6. package/dist/{chunk-WGZNT73I.mjs.map → chunk-56TUJURJ.mjs.map} +1 -1
  7. package/dist/{chunk-A3GY6EHZ.mjs → chunk-FHSOVS6Y.mjs} +1 -1
  8. package/dist/{chunk-A3GY6EHZ.mjs.map → chunk-FHSOVS6Y.mjs.map} +1 -1
  9. package/dist/{chunk-53K3RQ4T.mjs → chunk-GKTOZPE7.mjs} +1 -1
  10. package/dist/{chunk-53K3RQ4T.mjs.map → chunk-GKTOZPE7.mjs.map} +1 -1
  11. package/dist/chunk-SSRDZ5RQ.mjs +1 -0
  12. package/dist/chunk-SSRDZ5RQ.mjs.map +1 -0
  13. package/dist/chunk-ZQORH4QG.mjs +1 -0
  14. package/dist/chunk-ZQORH4QG.mjs.map +1 -0
  15. package/dist/components/index.d.mts +39 -2
  16. package/dist/components/index.d.ts +39 -2
  17. package/dist/components/index.js +1 -1
  18. package/dist/components/index.js.map +1 -1
  19. package/dist/components/index.mjs +1 -1
  20. package/dist/components/index.mjs.map +1 -1
  21. package/dist/containers/index.mjs +1 -1
  22. package/dist/containers/index.mjs.map +1 -1
  23. package/dist/index.d.mts +2 -2
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/primitives/index.mjs +1 -1
  30. package/dist/primitives/index.mjs.map +1 -1
  31. package/dist/utils/index.mjs +1 -1
  32. package/dist/utils/index.mjs.map +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-H5XWNBBV.mjs +0 -1
  35. package/dist/chunk-H5XWNBBV.mjs.map +0 -1
  36. package/dist/chunk-MDQEAXOA.mjs +0 -1
  37. package/dist/chunk-Z3RQ7GZU.mjs +0 -1
  38. package/dist/chunk-Z3RQ7GZU.mjs.map +0 -1
@@ -1 +0,0 @@
1
- import{b as r}from"./chunk-H5XWNBBV.mjs";function n(n){return function(){var o=r();return n(o)}}export{n as a};//# sourceMappingURL=chunk-MDQEAXOA.mjs.map
@@ -1 +0,0 @@
1
- function r(r,e){if(e==null||e>r.length)e=r.length;for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function e(e){if(Array.isArray(e))return r(e)}function t(r,e,t){if(e in r){Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true})}else{r[e]=t}return r}function n(r){if(typeof Symbol!=="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))}o.forEach(function(e){t(r,e,n[e])})}return r}function a(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);if(e){n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})}t.push.apply(t,n)}return t}function l(r,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(r,Object.getOwnPropertyDescriptors(e))}else{a(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function s(r,e){if(r==null)return{};var t=c(r,e);var n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++){n=i[o];if(e.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(r,n))continue;t[n]=r[n]}}return t}function c(r,e){if(r==null)return{};var t={};var n=Object.keys(r);var o,i;for(i=0;i<n.length;i++){o=n[i];if(e.indexOf(o)>=0)continue;t[o]=r[o]}return t}function u(r){return e(r)||n(r)||d(r)||o()}function d(e,t){if(!e)return;if(typeof e==="string")return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}import{c as p}from"./chunk-WGZNT73I.mjs";import{a as m,c as f}from"./chunk-HOFSR6VC.mjs";import{a as b}from"./chunk-MDQEAXOA.mjs";import{d as g,g as h,h as v,i as y,k as x,p as j,q as O,r as C}from"./chunk-H5XWNBBV.mjs";import{jsxs as w}from"react/jsx-runtime";var I=function(r){var e=r.value.length,t=e>r.maxLength;return w(p.Body,{type:"small2",color:t?f.getTextErrorColor():f.getDisabledColor(),children:[e," / ",r.maxLength]})};import{jsx as T}from"react/jsx-runtime";var P=function(r){var e=r.errorText;return e?T(j,{container:!0,children:T(p.Body,{type:"small2",color:f.getTextErrorColor(),children:e})}):null};var k=b(function(){return{chip:{backgroundColor:f.colors.info[100],borderRadius:"0.5rem",width:"4.5rem",height:"1.5rem"}}}),L=k;import{jsx as A,jsxs as E}from"react/jsx-runtime";var S=function(r){var e=r.label,t=r.subLabel,n=r.isOptional;var o=L();return e?E(j,{container:!0,spacing:.5,children:[A(j,{size:12,children:E(j,{container:!0,alignItems:"center",spacing:1,children:[A(j,{children:A(p.Body,{type:"small1",fontWeight:"bold",color:f.getTextColor(),children:e})}),n&&A(j,{children:A(h,{label:A(p.Body,{type:"smaller2",fontWeight:"regular",color:f.getTextColor(),children:"Opcional"}),sx:o.chip})})]})}),t&&A(j,{size:12,children:A(p.Body,{type:"small2",fontWeight:"regular",color:f.colors.system.gray[400],children:t})})]}):null};import B from"react";import{jsx as W}from"react/jsx-runtime";var z=B.forwardRef(function(r,e){var t=r.InputProps,n=r.inputProps,o=r.showInputUnderline,a=s(r,["InputProps","inputProps","showInputUnderline"]);return W(O,i(l(i({},a),{inputRef:e,inputProps:n,disableUnderline:!o}),t))});z.displayName="PrimitiveInput";var F=b(function(){return{input:{display:"flex",alignItems:"center",padding:"0 0.75rem",color:f.getTextColor(),border:"1px solid ".concat(f.colors.system.gray[200]),borderRadius:"0.25rem",gap:"0.5rem",width:"100%",minHeight:"3.25rem","&:hover":{borderColor:f.colors.system.gray[500]},"&.Mui-disabled":{color:f.colors.system.gray[200],backgroundColor:f.colors.system.gray[100],border:"none"},"&.Mui-focused":{borderColor:f.getPrimaryColor(),backgroundColor:f.colors.bot.activeCampaign[100]},fontSize:m.size.small2,fontWeight:m.fontWeight.medium},inputError:{border:"1px solid ".concat(f.getTextErrorColor()),borderRadius:"0.25rem",gap:"0.5rem",padding:"1rem"},chip:{backgroundColor:f.colors.info[100],borderRadius:"0.5rem",width:"4.5rem",height:"1.375rem"}}}),R=F;import{jsx as D,jsxs as M}from"react/jsx-runtime";var U=function(r){var e=r.errorText,t=r.multiline,n=r.characterCount,o=r.endAdornment,a=r.sx,c=s(r,["errorText","multiline","characterCount","endAdornment","sx"]);var u=R(),d=!!e,p=!!n;var m;return M(y,{position:"relative",width:"100%",children:[D(z,l(i({},c),{multiline:t,endAdornment:o,sx:i({},u.input,d?u.inputError:{},t&&{alignItems:"flex-start",paddingTop:"0.75rem",paddingBottom:"0.75rem"},p&&{paddingBottom:"2rem"},a)})),p&&D(y,{position:"absolute",bottom:10,right:12,sx:{pointerEvents:"none"},children:D(I,{value:(m=c.value)!==null&&m!==void 0?m:"",maxLength:n.maxLength})})]})};var V={CharacterCount:I,ErrorText:P,Label:S,Field:U};import{Fragment as q,jsx as H}from"react/jsx-runtime";var N=function(r){var e=r.isLoading,t=r.skeleton,n=r.children;return e?H(q,{children:t}):H(q,{children:n})};import{Fragment as X,jsx as G}from"react/jsx-runtime";var J=function(r){var e=r.isLoading,t=r.children;return e?G(j,{container:!0,justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:G(g,{color:"secondary"})}):G(X,{children:t})};var Q={FallbackProvidedSkeleton:N,FallbackSpinner:J};import{jsx as Z}from"react/jsx-runtime";var $=function(r){var e=r.children,t=s(r,["children"]);return Z(x,l(i({},t),{children:e}))};var K=b(function(){return{card:{flex:1,position:"relative",background:f.colors.base.white,borderRadius:"0.5rem",transition:"all 225ms cubic-bezier(0.4, 0.6, 1)"},scrollBar:{"&::-webkit-scrollbar":{width:"0.375rem !important"},"&::-webkit-scrollbar-thumb":{backgroundColor:f.colors.system.gray[200]},"&::-webkit-scrollbar-track":{background:f.colors.system.gray[900]}}}}),Y=K;import{jsx as _}from"react/jsx-runtime";var rr=function(r){var e=r.children,t=r.sx,n=s(r,["children","sx"]);var o=Y();return _($,l(i({},n),{sx:[o.card].concat(u(Array.isArray(t)?t:t?[t]:[])),children:e}))};import{jsx as re}from"react/jsx-runtime";function rt(r){var e=r.options,t=r.value,n=r.onChange,o=r.disabled,a=o===void 0?!1:o,l=r.fullWidth,c=l===void 0?!1:l,u=r.renderInput,d=r.renderOption,p=r.sx,m=r.size,f=r.multiple,b=r.getOptionLabel,g=r.isOptionEqualToValue,h=r.loadingText,y=s(r,["options","value","onChange","disabled","fullWidth","renderInput","renderOption","sx","size","multiple","getOptionLabel","isOptionEqualToValue","loadingText"]);return re(v,i({options:e,value:t,onChange:n,disabled:a,fullWidth:c,renderInput:u,renderOption:d,sx:p,size:m,multiple:f,getOptionLabel:b!==null&&b!==void 0?b:function(r){var e;return r?(e=r===null||r===void 0?void 0:r.label)!==null&&e!==void 0?e:"":""},isOptionEqualToValue:g!==null&&g!==void 0?g:function(r,e){var t=r,n=e;return(t===null||t===void 0?void 0:t.label)===(n===null||n===void 0?void 0:n.label)},loadingText:h},y))}import{jsx as rn,jsxs as ro}from"react/jsx-runtime";var ri=function(r){var e=r.label,t=r.subLabel,n=r.errorText,o=r.isOptional,a=r.id,c=r.characterCount,u=s(r,["label","subLabel","errorText","isOptional","id","characterCount"]);return ro(j,{container:!0,direction:"column",spacing:2,width:"100%",children:[rn(V.Label,{label:e,subLabel:t,isOptional:o}),ro(j,{container:!0,direction:"column",spacing:1,width:"100%",children:[rn(V.Field,l(i({},u),{showInputUnderline:!1,errorText:n,characterCount:c})),rn(V.ErrorText,{errorText:n})]})]},a)};var ra=b(function(){return{selectInternIcons:{"& .MuiAutocomplete-endAdornment":{right:16},"& .MuiAutocomplete-popupIndicator":{color:f.colors.system.gray[800]}},selectLoading:{display:"flex",justifyContent:"center",alignItems:"center",padding:2}}}),rl=ra;import{Fragment as rs,jsx as rc}from"react/jsx-runtime";var ru=function(r){var e=r.label,t=r.subLabel,n=r.isOptional,o=r.placeholder,a=r.startAdornment,c=r.isLoading,u=s(r,["label","subLabel","isOptional","placeholder","startAdornment","isLoading"]);var d=rl(),p=function(){return rc(y,{sx:d.selectLoading,children:rc(g,{size:24})})};return rc(rt,l(i({},u),{sx:d.selectInternIcons,loading:c,renderInput:function(r){return rc(ri,l(i({},r),{label:e,isOptional:n,subLabel:t,type:"text",placeholder:o,InputProps:l(i({},r.InputProps),{startAdornment:rc(rs,{children:rc(C,{position:"start",children:a})})})}))},loadingText:p()}))};export{V as a,Q as b,rr as c,ri as d,ru as e};//# sourceMappingURL=chunk-Z3RQ7GZU.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/letalk-ui/letalk-ui/dist/chunk-Z3RQ7GZU.mjs","../src/components/Input/CharacterCount/index.tsx","../src/components/Input/ErrorText/index.tsx","../src/components/Input/Label/styles.tsx","../src/components/Input/Label/index.tsx","../src/primitives/PrimitiveInput/index.tsx","../src/components/Input/Field/styles.tsx","../src/components/Input/Field/index.tsx","../src/components/Input/index.tsx","../src/components/Loading/FallbackProvidedSkeleton/index.tsx","../src/components/Loading/FallbackSpinner/index.tsx","../src/components/Loading/index.ts","../src/primitives/PrimitiveCard/index.tsx","../src/components/Portlet/styles.tsx","../src/components/Portlet/index.tsx","../src/primitives/PrimitiveSelect/index.tsx","../src/components/TextField/index.tsx","../src/components/SelectField/styles.tsx","../src/components/SelectField/index.tsx"],"names":["c","m","a","C","r","s","d","h","g","v","k","i","R","p","q","A","L","jsxs","CharacterCount","props","currentLength","value","length","isOverLimit","maxLength","Text","Body","type","color","themeColors","getTextErrorColor","getDisabledColor","children","jsx","ErrorText","errorText","Grid2_default","container","useStyles","makeStyles","chip","backgroundColor","colors","info","borderRadius","width","height","styles_default","Label","label","subLabel","isOptional","classes","spacing","size","alignItems","fontWeight","getTextColor","Chip_default","sx","system","gray","React","PrimitiveInput","forwardRef","ref","InputProps","inputProps","showInputUnderline","rest","Input_default","inputRef","disableUnderline","displayName","input","display","padding","border","gap","minHeight","borderColor","getPrimaryColor","bot","activeCampaign","fontSize","FONT","small2","medium","inputError","Field","multiline","characterCount","endAdornment","showError","showCounter","Box_default","position","paddingTop","paddingBottom","bottom","right","pointerEvents","Input","Fragment","FallbackProvidedSkeleton","isLoading","skeleton","FallbackSpinner","justifyContent","CircularProgress_default","Loading","PrimitiveCard","Card_default","card","flex","background","base","white","transition","scrollBar","Portlet","Array","isArray","PrimitiveSelect","options","onChange","disabled","fullWidth","renderInput","renderOption","multiple","getOptionLabel","isOptionEqualToValue","loadingText","Autocomplete_default","option","defaultOption","defaultValue","TextField","id","direction","selectInternIcons","selectLoading","SelectField","placeholder","startAdornment","customLoading","loading","params","InputAdornment_default","y","se","b","Ce","J","He","e"],"mappings":"glEAAA,OAAOA,KAAKC,CAAC,KAAK,sBAAuB,QAAOC,KAAKC,CAAC,CAACH,KAAKI,CAAC,KAAK,sBAAuB,QAAOF,KAAKG,CAAC,KA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QAAS,OACTiC,eAAgB,SAChBrD,WAAY,SACZqB,QAAS,CACV,CACD,IAEO7B,GAAQT,ECUV,QAmBEiE,YAAAA,EAAAA,CAnBFtE,OAAAA,EAAAA,KAAA,mBAfE,CAAA,IAAM8G,GACZ,gBACC9F,IAAAA,MACAC,IAAAA,SACAC,IAAAA,WACA6F,IAAAA,YACAC,IAAAA,eACAxC,IAAAA,UACGtF,OANH8B,QACAC,WACAC,aACA6F,cACAC,iBACAxC,cAGA,IAAMrD,EAAUL,KAEVmG,EAAgB,kBAEpBjH,GAAC8D,EAAA,CAAIpC,GAAIP,EAAQ0F,aAAA,CAChB9G,SAAAC,GAAC4E,EAAA,CAAiBvD,KAAM,EAAA,EAAI,IAI/B,OAAOrB,GAAC0F,GAAA,OACHxG,IACJwC,GAAIP,EAAQyF,iBAAA,CACZM,QAAS1C,EACTuB,YAAcoB,SAAAA,UACbnH,GAACyG,GAAA,OACIU,IACJnG,MAAOA,EACPE,WAAYA,EACZD,SAAUA,EACVvB,KAAK,OACLqH,YAAaA,EACb9E,WAAY,OACRkF,EAAOlF,UAAA,GACV+E,eACChH,GAAAsE,GAAA,CACCvE,SAAAC,GAACoH,EAAA,CAAerD,SAAS,QACvBhE,SAAAiH,CAAAA,EACF,SAMLZ,YAAaa,MAEf,SAAAI,KAAApJ,CAAA,CAAAqJ,KAAAC,CAAA,CAAAC,MAAAzJ,CAAA,CAAA0J,MAAApJ,CAAA,CAAAqJ,MAAAC,CAAA","sourcesContent":["import{c as m}from\"./chunk-WGZNT73I.mjs\";import{a as C,c as r}from\"./chunk-HOFSR6VC.mjs\";import{a as s}from\"./chunk-MDQEAXOA.mjs\";import{d as h,g as v,h as k,i as g,k as R,p as i,q as A,r as L}from\"./chunk-H5XWNBBV.mjs\";import{jsxs as eo}from\"react/jsx-runtime\";var P=o=>{let e=o.value.length,t=e>o.maxLength;return eo(m.Body,{type:\"small2\",color:t?r.getTextErrorColor():r.getDisabledColor(),children:[e,\" / \",o.maxLength]})};import{jsx as B}from\"react/jsx-runtime\";var w=({errorText:o})=>o?B(i,{container:!0,children:B(m.Body,{type:\"small2\",color:r.getTextErrorColor(),children:o})}):null;var ro=s(()=>({chip:{backgroundColor:r.colors.info[100],borderRadius:\"0.5rem\",width:\"4.5rem\",height:\"1.5rem\"}})),E=ro;import{jsx as d,jsxs as M}from\"react/jsx-runtime\";var O=({label:o,subLabel:e,isOptional:t})=>{let l=E();return o?M(i,{container:!0,spacing:.5,children:[d(i,{size:12,children:M(i,{container:!0,alignItems:\"center\",spacing:1,children:[d(i,{children:d(m.Body,{type:\"small1\",fontWeight:\"bold\",color:r.getTextColor(),children:o})}),t&&d(i,{children:d(v,{label:d(m.Body,{type:\"smaller2\",fontWeight:\"regular\",color:r.getTextColor(),children:\"Opcional\"}),sx:l.chip})})]})}),e&&d(i,{size:12,children:d(m.Body,{type:\"small2\",fontWeight:\"regular\",color:r.colors.system.gray[400],children:e})})]}):null};import to from\"react\";import{jsx as io}from\"react/jsx-runtime\";var T=to.forwardRef(({InputProps:o,inputProps:e,showInputUnderline:t,...l},n)=>io(A,{...l,inputRef:n,inputProps:e,disableUnderline:!t,...o}));T.displayName=\"PrimitiveInput\";var lo=s(()=>({input:{display:\"flex\",alignItems:\"center\",padding:\"0 0.75rem\",color:r.getTextColor(),border:`1px solid ${r.colors.system.gray[200]}`,borderRadius:\"0.25rem\",gap:\"0.5rem\",width:\"100%\",minHeight:\"3.25rem\",\"&:hover\":{borderColor:r.colors.system.gray[500]},\"&.Mui-disabled\":{color:r.colors.system.gray[200],backgroundColor:r.colors.system.gray[100],border:\"none\"},\"&.Mui-focused\":{borderColor:r.getPrimaryColor(),backgroundColor:r.colors.bot.activeCampaign[100]},fontSize:C.size.small2,fontWeight:C.fontWeight.medium},inputError:{border:`1px solid ${r.getTextErrorColor()}`,borderRadius:\"0.25rem\",gap:\"0.5rem\",padding:\"1rem\"},chip:{backgroundColor:r.colors.info[100],borderRadius:\"0.5rem\",width:\"4.5rem\",height:\"1.375rem\"}})),G=lo;import{jsx as I,jsxs as no}from\"react/jsx-runtime\";var W=({errorText:o,multiline:e,characterCount:t,endAdornment:l,sx:n,...a})=>{let p=G(),c=!!o,u=!!t;return no(g,{position:\"relative\",width:\"100%\",children:[I(T,{...a,multiline:e,endAdornment:l,sx:{...p.input,...c?p.inputError:{},...e&&{alignItems:\"flex-start\",paddingTop:\"0.75rem\",paddingBottom:\"0.75rem\"},...u&&{paddingBottom:\"2rem\"},...n}}),u&&I(g,{position:\"absolute\",bottom:10,right:12,sx:{pointerEvents:\"none\"},children:I(P,{value:a.value??\"\",maxLength:t.maxLength})})]})};var y={CharacterCount:P,ErrorText:w,Label:O,Field:W};import{Fragment as z,jsx as H}from\"react/jsx-runtime\";var N=({isLoading:o,skeleton:e,children:t})=>o?H(z,{children:e}):H(z,{children:t});import{Fragment as ao,jsx as S}from\"react/jsx-runtime\";var V=({isLoading:o,children:e})=>o?S(i,{container:!0,justifyContent:\"center\",alignItems:\"center\",sx:{height:\"100%\"},children:S(h,{color:\"secondary\"})}):S(ao,{children:e});var se={FallbackProvidedSkeleton:N,FallbackSpinner:V};import{jsx as po}from\"react/jsx-runtime\";var D=({children:o,...e})=>po(R,{...e,children:o});var so=s(()=>({card:{flex:1,position:\"relative\",background:r.colors.base.white,borderRadius:\"0.5rem\",transition:\"all 225ms cubic-bezier(0.4, 0.6, 1)\"},scrollBar:{\"&::-webkit-scrollbar\":{width:\"0.375rem !important\"},\"&::-webkit-scrollbar-thumb\":{backgroundColor:r.colors.system.gray[200]},\"&::-webkit-scrollbar-track\":{background:r.colors.system.gray[900]}}})),q=so;import{jsx as mo}from\"react/jsx-runtime\";var Ce=({children:o,sx:e,...t})=>{let l=q();return mo(D,{...t,sx:[l.card,...Array.isArray(e)?e:e?[e]:[]],children:o})};import{jsx as co}from\"react/jsx-runtime\";function U({options:o,value:e,onChange:t,disabled:l=!1,fullWidth:n=!1,renderInput:a,renderOption:p,sx:c,size:u,multiple:b,getOptionLabel:Q,isOptionEqualToValue:X,loadingText:Y,...Z}){return co(k,{options:o,value:e,onChange:t,disabled:l,fullWidth:n,renderInput:a,renderOption:p,sx:c,size:u,multiple:b,getOptionLabel:Q??(x=>x?x?.label??\"\":\"\"),isOptionEqualToValue:X??((x,_)=>{let j=x,oo=_;return j?.label===oo?.label}),loadingText:Y,...Z})}import{jsx as F,jsxs as $}from\"react/jsx-runtime\";var J=({label:o,subLabel:e,errorText:t,isOptional:l,id:n,characterCount:a,...p})=>$(i,{container:!0,direction:\"column\",spacing:2,width:\"100%\",children:[F(y.Label,{label:o,subLabel:e,isOptional:l}),$(i,{container:!0,direction:\"column\",spacing:1,width:\"100%\",children:[F(y.Field,{...p,showInputUnderline:!1,errorText:t,characterCount:a}),F(y.ErrorText,{errorText:t})]})]},n);var uo=s(()=>({selectInternIcons:{\"& .MuiAutocomplete-endAdornment\":{right:16},\"& .MuiAutocomplete-popupIndicator\":{color:r.colors.system.gray[800]}},selectLoading:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",padding:2}})),K=uo;import{Fragment as fo,jsx as f}from\"react/jsx-runtime\";var He=({label:o,subLabel:e,isOptional:t,placeholder:l,startAdornment:n,isLoading:a,...p})=>{let c=K(),u=()=>f(g,{sx:c.selectLoading,children:f(h,{size:24})});return f(U,{...p,sx:c.selectInternIcons,loading:a,renderInput:b=>f(J,{...b,label:o,isOptional:t,subLabel:e,type:\"text\",placeholder:l,InputProps:{...b.InputProps,startAdornment:f(fo,{children:f(L,{position:\"start\",children:n})})}}),loadingText:u()})};export{y as a,se as b,Ce as c,J as d,He as e};\n","import React from \"react\"\nimport { Text } from \"@/components/Text\"\n\nimport { themeColors } from \"@/styles\"\n\nimport { InputCharacterCountProps } from \"@/components/Input/protocols\"\n\nexport const CharacterCount = (props: InputCharacterCountProps) => {\n\tconst currentLength = props.value.length\n\tconst isOverLimit = currentLength > props.maxLength\n\n\treturn (\n\t\t<Text.Body\n\t\t\ttype=\"small2\"\n\t\t\tcolor={\n\t\t\t\tisOverLimit\n\t\t\t\t\t? themeColors.getTextErrorColor()\n\t\t\t\t\t: themeColors.getDisabledColor()\n\t\t\t}\n\t\t>\n\t\t\t{currentLength} / {props.maxLength}\n\t\t</Text.Body>\n\t)\n}\n","import React from \"react\"\nimport { Grid2 } from \"@mui/material\"\nimport { Text } from \"@/components/Text\"\n\nimport { themeColors } from \"@/styles\"\n\nimport { InputErrorTextProps } from \"@/components/Input/protocols\"\n\nexport const ErrorText = ({\n\terrorText\n}: InputErrorTextProps) => {\n\tif (!errorText) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<Grid2 container>\n\t\t\t<Text.Body type=\"small2\" color={themeColors.getTextErrorColor()}>\n\t\t\t\t{errorText}\n\t\t\t</Text.Body>\n\t\t</Grid2>\n\t)\n}\n","import { themeColors } from \"@/styles\"\nimport { makeStyles } from \"@/utils/makeStyles\"\n\nconst useStyles = makeStyles(() => ({\n\tchip: {\n\t\tbackgroundColor: themeColors.colors.info[100],\n\t\tborderRadius: \"0.5rem\",\n\t\twidth: \"4.5rem\",\n\t\theight: \"1.5rem\"\n\t}\n}))\n\nexport default useStyles","import React from \"react\"\nimport { Chip, Grid2 } from \"@mui/material\"\n\nimport { Text } from \"@/components/Text\"\nimport { InputLabelProps } from \"@/components/Input/protocols\"\n\nimport useStyles from \"@/components/Input/Label/styles\"\nimport { themeColors } from \"@/styles\"\n\nexport const Label = ({\n\tlabel,\n\tsubLabel,\n\tisOptional\n}: InputLabelProps) => {\n\tconst classes = useStyles()\n\n\tif (!label) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<Grid2 container spacing={0.5}>\n\t\t\t<Grid2 size={12}>\n\t\t\t\t<Grid2 container alignItems=\"center\" spacing={1}>\n\t\t\t\t\t<Grid2>\n\t\t\t\t\t\t<Text.Body\n\t\t\t\t\t\t\ttype=\"small1\"\n\t\t\t\t\t\t\tfontWeight=\"bold\"\n\t\t\t\t\t\t\tcolor={themeColors.getTextColor()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Text.Body>\n\t\t\t\t\t</Grid2>\n\t\t\t\t\t{isOptional && (\n\t\t\t\t\t\t<Grid2>\n\t\t\t\t\t\t\t<Chip\n\t\t\t\t\t\t\t\tlabel={(\n\t\t\t\t\t\t\t\t\t<Text.Body\n\t\t\t\t\t\t\t\t\t\ttype=\"smaller2\"\n\t\t\t\t\t\t\t\t\t\tfontWeight=\"regular\"\n\t\t\t\t\t\t\t\t\t\tcolor={themeColors.getTextColor()}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tOpcional\n\t\t\t\t\t\t\t\t\t</Text.Body>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\tsx={classes.chip}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Grid2>\n\t\t\t\t\t)}\n\t\t\t\t</Grid2>\n\t\t\t</Grid2>\n\t\t\t{subLabel && (\n\t\t\t\t<Grid2 size={12}>\n\t\t\t\t\t<Text.Body\n\t\t\t\t\t\ttype=\"small2\"\n\t\t\t\t\t\tfontWeight=\"regular\"\n\t\t\t\t\t\tcolor={themeColors.colors.system.gray[400]}\n\t\t\t\t\t>\n\t\t\t\t\t\t{subLabel}\n\t\t\t\t\t</Text.Body>\n\t\t\t\t</Grid2>\n\t\t\t)}\n\t\t</Grid2>\n\t)\n}","import React, { ReactNode } from \"react\"\nimport { Input, InputProps as MuiInputProps } from \"@mui/material\"\nimport { SxProps, Theme } from \"@mui/material\"\n\nexport type PrimitiveInputProps = {\n\tplaceholder?: string\n\tdisabled?: boolean\n\tfullWidth?: boolean\n\tname?: string\n\tonChange?: (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => Promise<void> | void\n\ttype: \"text\" | \"button\" | \"password\" | \"radio\" | \"number\" | \"file\" | \"checkbox\" | \"email\"\n\tvalue?: string\n\treadonly?: boolean\n\tsx?: SxProps<Theme>\n\tshowInputUnderline?: boolean\n\tstartAdornment?: ReactNode\n\tendAdornment?: ReactNode\n\tclassName?: string\n\tinputProps?: React.InputHTMLAttributes<HTMLInputElement>\n\tInputProps?: Partial<Omit<MuiInputProps, \"type\"> & {\n\t\tinputProps?: React.InputHTMLAttributes<HTMLInputElement>\n\t}>\n\tid?: string\n\tsize?: \"small\"\n\tminRows?: number\n\tmultiline?: boolean\n}\n\nexport const PrimitiveInput = React.forwardRef<HTMLInputElement, PrimitiveInputProps>(\n\t({ InputProps, inputProps, showInputUnderline, ...rest }, ref) => {\n\t\treturn (\n\t\t\t<Input\n\t\t\t\t{...rest}\n\t\t\t\tinputRef={ref}\n\t\t\t\tinputProps={inputProps}\n\t\t\t\tdisableUnderline={!showInputUnderline}\n\t\t\t\t{...InputProps}\n\t\t\t/>\n\t\t)\n\t}\n)\n\nPrimitiveInput.displayName = \"PrimitiveInput\"","import { themeColors } from \"@/styles\"\nimport { FONT } from \"@/styles/fonts\"\nimport { makeStyles } from \"@/utils\"\n\nconst useStyles = makeStyles(() => ({\n\tinput: {\n\t\tdisplay: \"flex\",\n\t\talignItems: \"center\",\n\t\tpadding: \"0 0.75rem\",\n\t\tcolor: themeColors.getTextColor(),\n\t\tborder: `1px solid ${themeColors.colors.system.gray[200]}`,\n\t\tborderRadius: \"0.25rem\",\n\t\tgap: \"0.5rem\",\n\t\twidth: \"100%\",\n\t\tminHeight: \"3.25rem\",\n\t\t\"&:hover\": {\n\t\t\tborderColor: themeColors.colors.system.gray[500]\n\t\t},\n\t\t\"&.Mui-disabled\": {\n\t\t\tcolor: themeColors.colors.system.gray[200],\n\t\t\tbackgroundColor: themeColors.colors.system.gray[100],\n\t\t\tborder: \"none\"\n\t\t},\n\t\t\"&.Mui-focused\": {\n\t\t\tborderColor: themeColors.getPrimaryColor(),\n\t\t\tbackgroundColor: themeColors.colors.bot.activeCampaign[100]\n\t\t},\n\t\tfontSize: FONT.size.small2,\n\t\tfontWeight: FONT.fontWeight.medium\n\t},\n\tinputError: {\n\t\tborder: `1px solid ${themeColors.getTextErrorColor()}`,\n\t\tborderRadius: \"0.25rem\",\n\t\tgap: \"0.5rem\",\n\t\tpadding: \"1rem\"\n\t},\n\tchip: {\n\t\tbackgroundColor: themeColors.colors.info[100],\n\t\tborderRadius: \"0.5rem\",\n\t\twidth: \"4.5rem\",\n\t\theight: \"1.375rem\"\n\t}\n}))\n\nexport default useStyles\n","import React from \"react\"\nimport { Box } from \"@mui/material\"\n\nimport { PrimitiveInput } from \"@/primitives/PrimitiveInput\"\nimport { CharacterCount } from \"@/components/Input/CharacterCount\"\nimport { InputFieldProps } from \"@/components/Input/protocols\"\n\nimport useStyles from \"@/components/Input/Field/styles\"\n\nexport const Field = ({\n\terrorText,\n\tmultiline,\n\tcharacterCount,\n\tendAdornment,\n\tsx,\n\t...props\n}: InputFieldProps) => {\n\tconst classes = useStyles()\n\n\tconst showError = Boolean(errorText)\n\tconst showCounter = Boolean(characterCount)\n\n\treturn (\n\t\t<Box position=\"relative\" width=\"100%\">\n\t\t\t<PrimitiveInput\n\t\t\t\t{...props}\n\t\t\t\tmultiline={multiline}\n\t\t\t\tendAdornment={endAdornment}\n\t\t\t\tsx={{\n\t\t\t\t\t...classes.input,\n\t\t\t\t\t...(showError ? classes.inputError : {}),\n\t\t\t\t\t...(multiline && {\n\t\t\t\t\t\talignItems: \"flex-start\",\n\t\t\t\t\t\tpaddingTop: \"0.75rem\",\n\t\t\t\t\t\tpaddingBottom: \"0.75rem\"\n\t\t\t\t\t}),\n\t\t\t\t\t...(showCounter && {\n\t\t\t\t\t\tpaddingBottom: \"2rem\"\n\t\t\t\t\t}),\n\t\t\t\t\t...sx\n\t\t\t\t}}\n\t\t\t/>\n\t\t\t{showCounter && (\n\t\t\t\t<Box\n\t\t\t\t\tposition=\"absolute\"\n\t\t\t\t\tbottom={10}\n\t\t\t\t\tright={12}\n\t\t\t\t\tsx={{ pointerEvents: \"none\" }}\n\t\t\t\t>\n\t\t\t\t\t<CharacterCount value={props.value ?? \"\"} maxLength={characterCount!.maxLength} />\n\t\t\t\t</Box>\n\t\t\t)}\n\t\t</Box>\n\t)\n}\n","import { CharacterCount } from \"@/components/Input/CharacterCount\"\nimport { ErrorText } from \"@/components/Input/ErrorText\"\nimport { Label } from \"@/components/Input/Label\"\nimport { Field } from \"@/components/Input/Field\"\n\nexport const Input = {\n\tCharacterCount,\n\tErrorText,\n\tLabel,\n\tField\n}","import React, { PropsWithChildren } from \"react\"\n\ntype FallbackProvidedSkeletonProps = PropsWithChildren<{\n\tisLoading: boolean\n\tskeleton: React.ReactNode\n}>\n\nexport const FallbackProvidedSkeleton: React.FC<FallbackProvidedSkeletonProps> = ({ isLoading, skeleton, children }) => {\n\tif (isLoading) {\n\t\treturn <>{skeleton}</>\n\t}\n\n\treturn <>{children}</>\n}\n","import React, { PropsWithChildren } from \"react\"\nimport {\n\tGrid2,\n\tCircularProgress\n} from \"@mui/material\"\n\ntype FallbackSpinnerProps = PropsWithChildren<{\n\tisLoading: boolean\n}>\n\nexport const FallbackSpinner: React.FC<FallbackSpinnerProps> = ({ isLoading, children }) => {\n\tif (isLoading) {\n\t\treturn (\n\t\t\t<Grid2\n\t\t\t\tcontainer\n\t\t\t\tjustifyContent=\"center\"\n\t\t\t\talignItems=\"center\"\n\t\t\t\tsx={{\n\t\t\t\t\theight: \"100%\"\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<CircularProgress color=\"secondary\" />\n\t\t\t</Grid2>\n\t\t)\n\t}\n\n\treturn <>{children}</>\n}\n","import { FallbackProvidedSkeleton } from \"@/components/Loading/FallbackProvidedSkeleton\"\nimport { FallbackSpinner } from \"@/components/Loading/FallbackSpinner\"\n\nexport const Loading = {\n\tFallbackProvidedSkeleton,\n\tFallbackSpinner\n}","import React, { PropsWithChildren } from \"react\"\nimport { Card, SxProps, Theme } from \"@mui/material\"\n\nexport type PrimiveCardProps = PropsWithChildren<{\n\televation?: number\n\tsx?: SxProps<Theme>\n}>\n\nexport const PrimitiveCard = ({\n\tchildren,\n\t...props\n}: PrimiveCardProps) => {\n\treturn (\n\t\t<Card\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</Card>\n\t)\n}","import { themeColors } from \"@/styles\"\nimport { makeStyles } from \"@/utils/makeStyles\"\n\nconst useStyles = makeStyles(() => ({\n\tcard: {\n\t\tflex: 1,\n\t\tposition: \"relative\",\n\t\tbackground: themeColors.colors.base.white,\n\t\tborderRadius: \"0.5rem\",\n\t\ttransition: \"all 225ms cubic-bezier(0.4, 0.6, 1)\"\n\t},\n\tscrollBar: {\n\t\t\"&::-webkit-scrollbar\": {\n\t\t\twidth: \"0.375rem !important\"\n\t\t},\n\t\t\"&::-webkit-scrollbar-thumb\": {\n\t\t\tbackgroundColor: themeColors.colors.system.gray[200]\n\t\t},\n\t\t\"&::-webkit-scrollbar-track\": {\n\t\t\tbackground: themeColors.colors.system.gray[900]\n\t\t}\n\t}\n}))\n\nexport default useStyles","import React from \"react\"\n\nimport { PrimitiveCard } from \"@/primitives/PrimitiveCard\"\n\nimport { PortletProps } from \"@/components/Portlet/protocols\"\n\nimport useStyles from \"@/components/Portlet/styles\"\n\nexport const Portlet = ({\n\tchildren,\n\tsx,\n\t...props\n}: PortletProps) => {\n\tconst classes = useStyles()\n\n\treturn (\n\t\t<PrimitiveCard\n\t\t\t{...props}\n\t\t\tsx={[classes.card, ...(Array.isArray(sx) ? sx : sx ? [sx] : [])]}\n\t\t>\n\t\t\t{children}\n\t\t</PrimitiveCard>\n\t)\n}","import React from \"react\"\nimport { Autocomplete, AutocompleteFreeSoloValueMapping } from \"@mui/material\"\nimport { AutocompleteFlag, BaseAutocompleteOption, PrimitiveSelectProps } from \"@/primitives/PrimitiveSelect/protocols\"\n\nexport function PrimitiveSelect<T, Multiple extends AutocompleteFlag = false, DisableClearable extends AutocompleteFlag = false, FreeSolo extends AutocompleteFlag = false>({\n\toptions,\n\tvalue,\n\tonChange,\n\tdisabled = false,\n\tfullWidth = false,\n\trenderInput,\n\trenderOption,\n\tsx,\n\tsize,\n\tmultiple,\n\tgetOptionLabel,\n\tisOptionEqualToValue,\n\tloadingText,\n\t...props\n}: PrimitiveSelectProps<T, Multiple, DisableClearable, FreeSolo>) {\n\tconst defaultGetOptionLabel = (\n\t\toption: T | AutocompleteFreeSoloValueMapping<FreeSolo>\n\t) => {\n\t\tif (!option) {\n\t\t\treturn \"\"\n\t\t}\n\n\t\treturn ((option as unknown) as BaseAutocompleteOption)?.label ?? \"\"\n\t}\n\n\tconst defaultIsOptionEqualToValue = (option: T, value: T) => {\n\t\tconst defaultOption = (option as unknown) as BaseAutocompleteOption\n\t\tconst defaultValue = (value as unknown) as BaseAutocompleteOption\n\t\treturn defaultOption?.label === defaultValue?.label\n\t}\n\n\treturn (\n\t\t<Autocomplete\n\t\t\toptions={options}\n\t\t\tvalue={value}\n\t\t\tonChange={onChange}\n\t\t\tdisabled={disabled}\n\t\t\tfullWidth={fullWidth}\n\t\t\trenderInput={renderInput}\n\t\t\trenderOption={renderOption}\n\t\t\tsx={sx}\n\t\t\tsize={size}\n\t\t\tmultiple={multiple}\n\t\t\tgetOptionLabel={getOptionLabel ?? defaultGetOptionLabel}\n\t\t\tisOptionEqualToValue={isOptionEqualToValue ?? defaultIsOptionEqualToValue}\n\t\t\tloadingText={loadingText}\n\t\t\t{...props}\n\t\t/>\n\t)\n}","import React from \"react\"\nimport { Grid2 } from \"@mui/material\"\n\nimport { TextFieldProps } from \"@/components/TextField/protocols\"\nimport { Input } from \"@/components/Input\"\n\nexport const TextField = ({\n\tlabel,\n\tsubLabel,\n\terrorText,\n\tisOptional,\n\tid,\n\tcharacterCount,\n\t...props\n}: TextFieldProps) => {\n\treturn (\n\t\t<Grid2 container direction=\"column\" key={id} spacing={2} width=\"100%\">\n\t\t\t<Input.Label\n\t\t\t\tlabel={label}\n\t\t\t\tsubLabel={subLabel}\n\t\t\t\tisOptional={isOptional}\n\t\t\t/>\n\t\t\t<Grid2 container direction=\"column\" spacing={1} width=\"100%\">\n\t\t\t\t<Input.Field\n\t\t\t\t\t{...props}\n\t\t\t\t\tshowInputUnderline={false}\n\t\t\t\t\terrorText={errorText}\n\t\t\t\t\tcharacterCount={characterCount}\n\t\t\t\t/>\n\t\t\t\t<Input.ErrorText errorText={errorText} />\n\t\t\t</Grid2>\n\t\t</Grid2>\n\t)\n}\n","import { themeColors } from \"@/styles\"\n\nimport { makeStyles } from \"@/utils/makeStyles\"\n\nconst useStyles = makeStyles(() => ({\n\tselectInternIcons: {\n\t\t\"& .MuiAutocomplete-endAdornment\": {\n\t\t\tright: 16\n\t\t},\n\t\t\"& .MuiAutocomplete-popupIndicator\": {\n\t\t\tcolor: themeColors.colors.system.gray[800]\n\t\t}\n\t},\n\tselectLoading: {\n\t\tdisplay: \"flex\",\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t\tpadding: 2\n\t}\n}))\n\nexport default useStyles","import React from \"react\"\n\nimport { Box, CircularProgress, InputAdornment } from \"@mui/material\"\n\nimport { PrimitiveSelect } from \"@/primitives/PrimitiveSelect\"\nimport { TextField } from \"@/components/TextField\"\n\nimport { SelectFieldProps } from \"@/components/SelectField/protocols\"\n\nimport useStyles from \"@/components/SelectField/styles\"\nimport { AutocompleteFlag } from \"@/primitives/PrimitiveSelect/protocols\"\n\n/**\n * The comma in <T,> avoids ambiguity with JSX parsing in .tsx files by making it\n * clear that this is a generic type declaration rather than a JSX tag.\n */\nexport const SelectField =\n\t<T, Multiple extends AutocompleteFlag = false, DisableClearable extends AutocompleteFlag = false, FreeSolo extends AutocompleteFlag = false>({\n\t\tlabel,\n\t\tsubLabel,\n\t\tisOptional,\n\t\tplaceholder,\n\t\tstartAdornment,\n\t\tisLoading,\n\t\t...props\n\t}: SelectFieldProps<T, Multiple, DisableClearable, FreeSolo>) => {\n\t\tconst classes = useStyles()\n\n\t\tconst customLoading = () => {\n\t\t\treturn (\n\t\t\t\t<Box sx={classes.selectLoading}>\n\t\t\t\t\t<CircularProgress size={24} />\n\t\t\t\t</Box>\n\t\t\t)\n\t\t}\n\t\treturn <PrimitiveSelect\n\t\t\t{...props}\n\t\t\tsx={classes.selectInternIcons}\n\t\t\tloading={isLoading}\n\t\t\trenderInput={(params) => (\n\t\t\t\t<TextField\n\t\t\t\t\t{...params}\n\t\t\t\t\tlabel={label}\n\t\t\t\t\tisOptional={isOptional}\n\t\t\t\t\tsubLabel={subLabel}\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tplaceholder={placeholder}\n\t\t\t\t\tInputProps={{\n\t\t\t\t\t\t...params.InputProps,\n\t\t\t\t\t\tstartAdornment: (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t<InputAdornment position=\"start\">\n\t\t\t\t\t\t\t\t\t{startAdornment}\n\t\t\t\t\t\t\t\t</InputAdornment>\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t)\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\tloadingText={customLoading()}\n\t\t/>\n\t}"]}