solace-ui-components 18.0.1 → 18.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +1 -1
- package/dist/charts.modern.mjs +1 -1
- package/dist/{chunk-ULYCLLUO.modern.mjs → chunk-54TEARQI.modern.mjs} +2 -2
- package/dist/{chunk-ULYCLLUO.modern.mjs.map → chunk-54TEARQI.modern.mjs.map} +1 -1
- package/dist/{chunk-2RTZL4CF.modern.mjs → chunk-HQH2WKJP.modern.mjs} +3 -3
- package/dist/{chunk-2RTZL4CF.modern.mjs.map → chunk-HQH2WKJP.modern.mjs.map} +1 -1
- package/dist/{chunk-IHSXSGCC.modern.mjs → chunk-I7OJ5H4U.modern.mjs} +2 -2
- package/dist/{chunk-IHSXSGCC.modern.mjs.map → chunk-I7OJ5H4U.modern.mjs.map} +1 -1
- package/dist/{chunk-HLXBN2OE.modern.mjs → chunk-LGBO373S.modern.mjs} +2 -2
- package/dist/{chunk-HLXBN2OE.modern.mjs.map → chunk-LGBO373S.modern.mjs.map} +1 -1
- package/dist/{chunk-AOKITPX2.js → chunk-PYADJP2I.js} +2 -2
- package/dist/{chunk-AOKITPX2.js.map → chunk-PYADJP2I.js.map} +1 -1
- package/dist/{chunk-ROSPS5NM.modern.mjs → chunk-QKQRCYG4.modern.mjs} +2 -2
- package/dist/{chunk-ROSPS5NM.modern.mjs.map → chunk-QKQRCYG4.modern.mjs.map} +1 -1
- package/dist/{chunk-TSSPQLS6.js → chunk-SKQ7JGO5.js} +3 -3
- package/dist/{chunk-TSSPQLS6.js.map → chunk-SKQ7JGO5.js.map} +1 -1
- package/dist/{chunk-7SKICMGL.js → chunk-SWGQVSXQ.js} +2 -2
- package/dist/{chunk-7SKICMGL.js.map → chunk-SWGQVSXQ.js.map} +1 -1
- package/dist/{chunk-UFDVHFXE.js → chunk-SXQRCXMP.js} +2 -2
- package/dist/{chunk-UFDVHFXE.js.map → chunk-SXQRCXMP.js.map} +1 -1
- package/dist/{chunk-4XH33OL7.js → chunk-V45EFIXB.js} +2 -2
- package/dist/{chunk-4XH33OL7.js.map → chunk-V45EFIXB.js.map} +1 -1
- package/dist/{chunk-QV564WAK.modern.mjs → chunk-VYHLNTMX.modern.mjs} +2 -2
- package/dist/{chunk-QV564WAK.modern.mjs.map → chunk-VYHLNTMX.modern.mjs.map} +1 -1
- package/dist/chunk-YQTPPT5K.js +2 -0
- package/dist/{chunk-GDZZVHFP.js.map → chunk-YQTPPT5K.js.map} +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/code-editor.modern.mjs +1 -1
- package/dist/datepicker.js +1 -1
- package/dist/datepicker.modern.mjs +1 -1
- package/dist/drag-drop.js +1 -1
- package/dist/drag-drop.modern.mjs +1 -1
- package/dist/index.js +58 -58
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +55 -55
- package/dist/index.modern.mjs.map +1 -1
- package/dist/json-schema-form.js +1 -1
- package/dist/json-schema-form.modern.mjs +1 -1
- package/dist/textDiff.js +2 -2
- package/dist/textDiff.modern.mjs +1 -1
- package/package.json +7 -5
- package/dist/chunk-GDZZVHFP.js +0 -2
package/dist/charts.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkV45EFIXB_js=require('./chunk-V45EFIXB.js'),D=require('react'),recharts=require('recharts'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var D__default=/*#__PURE__*/_interopDefault(D);var L=0,N={lg:{chartWidth:160,chartHeight:160,width:24},md:{chartWidth:100,chartHeight:100,width:16},sm:{chartWidth:60,chartHeight:60,width:8}},F=chunkV45EFIXB_js.wa("div")(({theme:t})=>({display:"flex",columnGap:t.spacing(2),padding:t.spacing(1),backgroundColor:t.palette.ux.background.w10,boxShadow:`0px 1px 4px ${t.palette.ux.secondary.w40}`,borderRadius:t.spacing(.5)})),q=chunkV45EFIXB_js.wa("div")(({theme:t})=>({flex:1,display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:t.spacing(1),".tooltip-label":{whiteSpace:"nowrap"}})),B=chunkV45EFIXB_js.wa("div",{shouldForwardProp:t=>t!=="bgColor"})(({bgColor:t,theme:o})=>({width:"16px",height:"16px",display:"inline-block",backgroundColor:t??o.palette.ux.secondary.w40})),G=chunkV45EFIXB_js.wa("div",{shouldForwardProp:t=>t!=="width"&&t!=="height"})(({width:t,height:o})=>({position:"relative",width:t,height:o})),J=chunkV45EFIXB_js.wa("div",{shouldForwardProp:t=>t!=="width"&&t!=="height"})(({width:t,height:o})=>({position:"absolute",width:t,height:o,top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),x=D__default.default.forwardRef(({active:t,payload:o},s)=>{if(!t||!o||!o[0]?.payload)return null;let{name:a,color:r,label:h,value:e}=o[0].payload;return jsxRuntime.jsxs(F,{ref:s,children:[jsxRuntime.jsxs(q,{children:[jsxRuntime.jsx(B,{bgColor:r}),jsxRuntime.jsx("div",{className:"tooltip-label",children:h??a})]}),jsxRuntime.jsx("div",{children:e})]})});x.displayName="CustomTooltip";var K=(t,o,s,a,r)=>{let e,i;e=t.x+10,i=t.y+10;let c=t.y<s/2,d=t.x>o/2;return c&&d?(e=t.x+10,i=t.y-r-10):!c&&d?(e=t.x+10,i=t.y+10):c&&!d?(e=t.x-a-10,i=t.y-r-10):(e=t.x-a-10,i=t.y+10),{x:e,y:i}};function X({id:t,data:o,size:s="sm",icon:a,iconWidth:r=24,iconHeight:h=24,showTooltip:e=false,dataQa:i,dataTags:c}){let d=chunkV45EFIXB_js.ua(),[C,v]=D.useState({x:0,y:0}),b=D.useRef(null),{chartWidth:m,chartHeight:p,width:P}=N[s],y=p/2,T=y-P;return jsxRuntime.jsxs(G,{width:m,height:p,id:t,"data-qa":i,"data-tags":c,children:[jsxRuntime.jsxs(recharts.PieChart,{width:m,height:p,children:[jsxRuntime.jsx(recharts.Pie,{nameKey:"name",dataKey:"value",data:o,cx:"50%",cy:"50%",innerRadius:T,outerRadius:y,isAnimationActive:true,animationBegin:L,paddingAngle:0,startAngle:90,endAngle:-270,onMouseMove:f=>{let u=b.current,S=u?.offsetWidth??170,k=u?.offsetHeight??40,A=K({x:f.tooltipPosition.x,y:f.tooltipPosition.y},m,p,S,k);v(A);},children:o.map((f,u)=>jsxRuntime.jsx(recharts.Cell,{fill:f.color??d.palette.ux.secondary.w40,style:{strokeWidth:.5,userSelect:"none",outline:"none"}},`cell-${u}`))}),e&&jsxRuntime.jsx(recharts.Tooltip,{content:jsxRuntime.jsx(x,{ref:b}),position:C,isAnimationActive:false,allowEscapeViewBox:{x:true,y:true}})]}),a&&jsxRuntime.jsx(J,{width:r,height:h,children:a})]})}var $=X;exports.SolaceDonutChart=$;//# sourceMappingURL=charts.js.map
|
|
2
2
|
//# sourceMappingURL=charts.js.map
|
package/dist/charts.modern.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {wa,ua}from'./chunk-
|
|
1
|
+
import {wa,ua}from'./chunk-I7OJ5H4U.modern.mjs';import D,{useState,useRef}from'react';import {PieChart,Pie,Cell,Tooltip}from'recharts';import {jsxs,jsx}from'react/jsx-runtime';var L=0,N={lg:{chartWidth:160,chartHeight:160,width:24},md:{chartWidth:100,chartHeight:100,width:16},sm:{chartWidth:60,chartHeight:60,width:8}},F=wa("div")(({theme:t})=>({display:"flex",columnGap:t.spacing(2),padding:t.spacing(1),backgroundColor:t.palette.ux.background.w10,boxShadow:`0px 1px 4px ${t.palette.ux.secondary.w40}`,borderRadius:t.spacing(.5)})),q=wa("div")(({theme:t})=>({flex:1,display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:t.spacing(1),".tooltip-label":{whiteSpace:"nowrap"}})),B=wa("div",{shouldForwardProp:t=>t!=="bgColor"})(({bgColor:t,theme:o})=>({width:"16px",height:"16px",display:"inline-block",backgroundColor:t??o.palette.ux.secondary.w40})),G=wa("div",{shouldForwardProp:t=>t!=="width"&&t!=="height"})(({width:t,height:o})=>({position:"relative",width:t,height:o})),J=wa("div",{shouldForwardProp:t=>t!=="width"&&t!=="height"})(({width:t,height:o})=>({position:"absolute",width:t,height:o,top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),x=D.forwardRef(({active:t,payload:o},s)=>{if(!t||!o||!o[0]?.payload)return null;let{name:a,color:r,label:h,value:e}=o[0].payload;return jsxs(F,{ref:s,children:[jsxs(q,{children:[jsx(B,{bgColor:r}),jsx("div",{className:"tooltip-label",children:h??a})]}),jsx("div",{children:e})]})});x.displayName="CustomTooltip";var K=(t,o,s,a,r)=>{let e,i;e=t.x+10,i=t.y+10;let c=t.y<s/2,d=t.x>o/2;return c&&d?(e=t.x+10,i=t.y-r-10):!c&&d?(e=t.x+10,i=t.y+10):c&&!d?(e=t.x-a-10,i=t.y-r-10):(e=t.x-a-10,i=t.y+10),{x:e,y:i}};function X({id:t,data:o,size:s="sm",icon:a,iconWidth:r=24,iconHeight:h=24,showTooltip:e=false,dataQa:i,dataTags:c}){let d=ua(),[C,v]=useState({x:0,y:0}),b=useRef(null),{chartWidth:m,chartHeight:p,width:P}=N[s],y=p/2,T=y-P;return jsxs(G,{width:m,height:p,id:t,"data-qa":i,"data-tags":c,children:[jsxs(PieChart,{width:m,height:p,children:[jsx(Pie,{nameKey:"name",dataKey:"value",data:o,cx:"50%",cy:"50%",innerRadius:T,outerRadius:y,isAnimationActive:true,animationBegin:L,paddingAngle:0,startAngle:90,endAngle:-270,onMouseMove:f=>{let u=b.current,S=u?.offsetWidth??170,k=u?.offsetHeight??40,A=K({x:f.tooltipPosition.x,y:f.tooltipPosition.y},m,p,S,k);v(A);},children:o.map((f,u)=>jsx(Cell,{fill:f.color??d.palette.ux.secondary.w40,style:{strokeWidth:.5,userSelect:"none",outline:"none"}},`cell-${u}`))}),e&&jsx(Tooltip,{content:jsx(x,{ref:b}),position:C,isAnimationActive:false,allowEscapeViewBox:{x:true,y:true}})]}),a&&jsx(J,{width:r,height:h,children:a})]})}var $=X;export{$ as SolaceDonutChart};//# sourceMappingURL=charts.modern.mjs.map
|
|
2
2
|
//# sourceMappingURL=charts.modern.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {wa,li,le,Bg,uc,ua,Na,ni}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {wa,li,le,Bg,uc,ua,Na,ni}from'./chunk-I7OJ5H4U.modern.mjs';import {useState,useRef,useCallback}from'react';import {isEmpty}from'lodash';import {jsx,jsxs}from'react/jsx-runtime';var O="text",z="overflow",B="rich",$="html",f={text:O,overflow:z,rich:B,html:$};var q=wa("div")(()=>({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",position:"relative","&::after":{content:'""',display:"block"}}));function G({id:e,title:t,variant:o=f.text,children:l,placement:L="bottom",maxWidth:T="small",disableFocusListener:H=false,disableHoverListener:V=false,enterDelay:W=500,enterNextDelay:X=0,leaveDelay:M=0,open:J,onOpen:c,onClose:C,dataQa:R,dataTags:Z}){let[_,u]=useState(false),p=useRef(null),D=useCallback(x=>{if(isEmpty(t))return;let E=true;o==="overflow"&&p.current&&p.current.scrollWidth<=p.current.clientWidth&&(E=false),E&&(u(true),c&&c(x));},[c,t,o]),F=useCallback(x=>{u(false),C&&C(x);},[C]);return jsx(Bg,{id:e,title:t??"",classes:{tooltip:`${o===f.html||o===f.rich?"htmlContent":""} ${T?T+"Width":""}`},placement:L,"data-qa":R,"data-tags":Z,disableFocusListener:H,disableHoverListener:V,enterDelay:W,enterNextDelay:X,leaveDelay:M,TransitionComponent:uc,TransitionProps:{timeout:{enter:150,exit:200}},open:J??_,onOpen:D,onClose:F,children:o==="overflow"?jsx(q,{ref:p,children:l}):typeof l=="string"?jsx("span",{children:l}):l})}var x1=G;function K({children:e}){let t=ua();return jsx(le,{sx:{color:t.palette.ux.secondary.text.wMain,fontSize:t.typography.caption.fontSize,marginTop:"2px"},children:e})}var T1=K;function P({size:e,fill:t}){return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("path",{d:"M11.208 14.784C11.2827 14.8587 11.3733 14.896 11.48 14.896H12.776C12.8933 14.896 12.984 14.8587 13.048 14.784C13.1227 14.7093 13.16 14.6187 13.16 14.512V7.184C13.16 7.06667 13.1227 6.976 13.048 6.912C12.984 6.83733 12.8933 6.8 12.776 6.8H11.48C11.3733 6.8 11.2827 6.83733 11.208 6.912C11.1333 6.98667 11.096 7.07733 11.096 7.184V14.512C11.096 14.6187 11.1333 14.7093 11.208 14.784Z",fill:t}),jsx("path",{d:"M11.112 17.888C11.1867 17.9627 11.2773 18 11.384 18H12.872C12.9893 18 13.0853 17.9627 13.16 17.888C13.2347 17.8133 13.272 17.7227 13.272 17.616V16.128C13.272 16.0107 13.2347 15.9147 13.16 15.84C13.0853 15.7653 12.9893 15.728 12.872 15.728H11.384C11.2773 15.728 11.1867 15.7653 11.112 15.84C11.0373 15.9147 11 16.0107 11 16.128V17.616C11 17.7227 11.0373 17.8133 11.112 17.888Z",fill:t}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:t})]})}var Y=wa(li)(({theme:e})=>({...e.mixins.formComponent_ErrorText.container})),j=wa(le)(({theme:e})=>({...e.mixins.formComponent_ErrorText.label}));function e1({children:e}){let t=ua(),o=t.typography.subtitle1.fontSize?.toString();return jsxs(Y,{children:[jsx(P,{size:o?parseInt(o):ni.md,fill:t.palette.ux.error.wMain}),jsx(j,{children:e})]})}var L1=e1;function w({size:e,fill:t}){return jsxs(Na,{sx:{width:`${e}px`,height:`${e}px`},viewBox:"0 0 24 24",children:[jsx("path",{d:"M11.8746 14.996C11.9493 15.0706 12.04 15.108 12.1466 15.108H13.4426C13.56 15.108 13.6506 15.0706 13.7146 14.996C13.7893 14.9213 13.8266 14.8306 13.8266 14.724V10.396C13.8266 10.2786 13.7893 10.188 13.7146 10.124C13.6506 10.0493 13.56 10.012 13.4426 10.012H12.1466C12.04 10.012 11.9493 10.0493 11.8746 10.124C11.8 10.1986 11.7626 10.2893 11.7626 10.396V14.724C11.7626 14.8306 11.8 14.9213 11.8746 14.996Z",fill:t}),jsx("path",{d:"M11.7786 18.1C11.8533 18.1746 11.944 18.212 12.0506 18.212H13.5386C13.656 18.212 13.752 18.1746 13.8266 18.1C13.9013 18.0253 13.9386 17.9346 13.9386 17.828V16.34C13.9386 16.2226 13.9013 16.1266 13.8266 16.052C13.752 15.9773 13.656 15.94 13.5386 15.94H12.0506C11.944 15.94 11.8533 15.9773 11.7786 16.052C11.704 16.1266 11.6666 16.2226 11.6666 16.34V17.828C11.6666 17.9346 11.704 18.0253 11.7786 18.1Z",fill:t}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7919 3.79001C12.1726 3.10304 13.1604 3.10304 13.5411 3.79001L22.2358 19.4772C22.6053 20.1437 22.1233 20.962 21.3612 20.962H3.97177C3.20973 20.962 2.72771 20.1437 3.09713 19.4772L11.7919 3.79001ZM5.66936 18.962L12.6665 6.3376L19.6636 18.962H5.66936Z",fill:t})]})}var r1=wa(li)(({theme:e})=>({...e.mixins.formComponent_WarningText.container})),n1=wa(le)(({theme:e})=>({...e.mixins.formComponent_WarningText.label}));function i1({children:e}){let t=ua(),o=t.typography.subtitle1.fontSize?.toString();return jsxs(r1,{children:[jsx(w,{size:o?parseInt(o):ni.md,fill:t.palette.ux.warning.w100}),jsx(n1,{children:e})]})}var D1=i1;export{f as a,x1 as b,T1 as c,P as d,L1 as e,w as f,D1 as g};//# sourceMappingURL=chunk-54TEARQI.modern.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-54TEARQI.modern.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/solaceTooltip.ts","../src/components/SolaceToolTip.tsx","../src/components/form/HelperText.tsx","../src/resources/icons/ErrorIcon.tsx","../src/components/form/ErrorText.tsx","../src/resources/icons/WarnIcon.tsx","../src/components/form/WarningText.tsx"],"names":["text","overflow","rich","html","TooltipVariant","OverflowDiv","styled_default","SolaceTooltip","id","title","variant","children","placement","maxWidth","disableFocusListener","disableHoverListener","enterDelay","enterNextDelay","leaveDelay","open","onOpen","onClose","dataQa","dataTags","internalOpen","setInternalOpen","useState","textElementRef","useRef","handleOpen","useCallback","event","isEmpty","shouldOpen","handleClose","jsx","Tooltip_default","Fade_default","SolaceToolTip_default","HelperText","theme","useTheme","FormLabel_default","HelperText_default","ErrorIcon","size","fill","jsxs","SvgIcon_default","ErrorTextContainer","Box_default","ErrorTextLabel","ErrorText","BASE_FONT_PX_SIZES","ErrorText_default","WarnIcon","WarningTextContainer","WarningTextLabel","WarningText","WarningText_default"],"mappings":"wLAgBA,IAAMA,CAAAA,CAAO,MAAA,CACPC,CAAAA,CAAW,UAAA,CACXC,EAAO,MAAA,CAEPC,CAAAA,CAAO,MAAA,CAEAC,CAAAA,CAAiB,CAC7B,IAAA,CAAMJ,CAAAA,CACN,QAAA,CAAUC,EACV,IAAA,CAAMC,CAAAA,CAEN,IAAA,CAAMC,CACP,ECkEA,IAAME,CAAAA,CAAcC,EAAAA,CAAO,KAAK,CAAA,CAAE,KAAO,CACxC,WAAY,QAAA,CACZ,QAAA,CAAU,QAAA,CACV,YAAA,CAAc,WACd,QAAA,CAAU,UAAA,CAEV,UAAA,CAAY,CACX,QAAS,IAAA,CACT,OAAA,CAAS,OACV,CACD,CAAA,CAAE,CAAA,CAEF,SAASC,CAAAA,CAAc,CACtB,EAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CAAUN,CAAAA,CAAe,IAAA,CACzB,QAAA,CAAAO,EACA,SAAA,CAAAC,CAAAA,CAAY,QAAA,CACZ,QAAA,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,GACRI,CAAAA,CAAOL,CAAAA,CAAM,UAAA,CAAW,SAAA,CAAU,QAAA,EAAU,QAAA,EAAS,CAC3D,OACCO,KAACS,EAAAA,CAAA,CACA,QAAA,CAAA,CAAArB,GAAAA,CAACoB,EAAA,CAAS,IAAA,CAAMV,CAAAA,CAAO,QAAA,CAASA,CAAI,CAAA,CAAIQ,EAAAA,CAAmB,EAAA,CAAI,IAAA,CAAMb,CAAAA,CAAM,OAAA,CAAQ,EAAA,CAAG,OAAA,CAAQ,KAAM,CAAA,CACpGL,GAAAA,CAACsB,EAAAA,CAAA,CAAkB,SAAA9C,CAAAA,CAAS,CAAA,CAAA,CAC7B,CAEF,KAEOgD,EAAAA,CAAQD","file":"chunk-ULYCLLUO.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst text = \"text\";\nconst overflow = \"overflow\";\nconst rich = \"rich\";\n/** @deprecated - as of Nov 12, 2024 the 'html variant is being deprecated in favour of using the rich variant**/\nconst html = \"html\";\n\nexport const TooltipVariant = {\n\ttext: text,\n\toverflow: overflow,\n\trich: rich,\n\t/** @deprecated [Nov 2024] the \"html\" variant for SolaceTooltip has been deprecated, please use rich variant instead */\n\thtml: html\n};\n\nexport type TooltipVariantTypes = (typeof TooltipVariant)[keyof typeof TooltipVariant];\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { styled, Tooltip } from \"@mui/material\";\nimport { Fade } from \"@mui/material\";\nimport SolaceComponentProps from \"./SolaceComponentProps\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { isEmpty } from \"lodash\";\nimport { TooltipVariant, TooltipVariantTypes } from \"../types/solaceTooltip\";\n\nexport interface SolaceTooltipProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, a randomly generated value will be used in order to make it accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Tooltip title\n\t */\n\ttitle?: string | JSX.Element;\n\t/**\n\t * Different type of tooltip, default to `text`\n\t */\n\tvariant?: TooltipVariantTypes;\n\t/**\n\t * Tooltip referenced element.\n\t */\n\tchildren: string | JSX.Element;\n\t/**\n\t * Tooltip placement, default to `bottom`\n\t */\n\tplacement?:\n\t\t| \"bottom-end\"\n\t\t| \"bottom-start\"\n\t\t| \"bottom\"\n\t\t| \"left-end\"\n\t\t| \"left-start\"\n\t\t| \"left\"\n\t\t| \"right-end\"\n\t\t| \"right-start\"\n\t\t| \"right\"\n\t\t| \"top-end\"\n\t\t| \"top-start\"\n\t\t| \"top\";\n\t/**\n\t * Tooltip maximum width, default to small\n\t */\n\tmaxWidth?: \"small\" | \"medium\" | \"full\";\n\t/**\n\t * Disable listener to show tooltip when referenced element is focused, default to false\n\t */\n\tdisableFocusListener?: boolean;\n\t/**\n\t * Disable listener to show tooltip when referenced element is hovered, default to false\n\t */\n\tdisableHoverListener?: boolean;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip. Default is 500ms\n\t */\n\tenterDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip when one was already recently opened. Default is 0ms\n\t */\n\tenterNextDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before hiding the tooltip. Default is 0ms\n\t */\n\tleaveDelay?: number;\n\t/**\n\t * Controlled open state for tooltip. If `true`, the component is shown\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback fired when the component requests to be open. Used in conjunction with `open` and `onClose`\n\t */\n\tonOpen?: (event: React.SyntheticEvent) => void;\n\t/**\n\t * Callback fired when the component requests to be closed. Used in conjunction with `open` and `onOpen`\n\t */\n\tonClose?: (event: Event | React.SyntheticEvent<Element, Event>) => void;\n}\n\nconst OverflowDiv = styled(\"div\")(() => ({\n\twhiteSpace: \"nowrap\",\n\toverflow: \"hidden\",\n\ttextOverflow: \"ellipsis\",\n\tposition: \"relative\",\n\t// adding this empty block to prevent showing tooltip twice on Safari\n\t\"&::after\": {\n\t\tcontent: '\"\"',\n\t\tdisplay: \"block\"\n\t}\n}));\n\nfunction SolaceTooltip({\n\tid,\n\ttitle,\n\tvariant = TooltipVariant.text,\n\tchildren,\n\tplacement = \"bottom\",\n\tmaxWidth = \"small\",\n\tdisableFocusListener = false,\n\tdisableHoverListener = false,\n\tenterDelay = 500,\n\tenterNextDelay = 0,\n\tleaveDelay = 0,\n\topen,\n\tonOpen,\n\tonClose,\n\tdataQa,\n\tdataTags\n}: SolaceTooltipProps) {\n\tconst [internalOpen, setInternalOpen] = useState(false);\n\tconst textElementRef = useRef<HTMLDivElement>(null);\n\n\tconst handleOpen = useCallback(\n\t\t(event: React.SyntheticEvent) => {\n\t\t\t// if empty, don't open the tooltip.\n\t\t\tif (isEmpty(title)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet shouldOpen = true;\n\t\t\tif (\n\t\t\t\tvariant === \"overflow\" &&\n\t\t\t\ttextElementRef.current &&\n\t\t\t\ttextElementRef.current.scrollWidth <= textElementRef.current.clientWidth\n\t\t\t) {\n\t\t\t\tshouldOpen = false;\n\t\t\t}\n\t\t\tif (shouldOpen) {\n\t\t\t\tsetInternalOpen(true);\n\t\t\t\tif (onOpen) {\n\t\t\t\t\tonOpen(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[onOpen, title, variant]\n\t);\n\n\tconst handleClose = useCallback(\n\t\t(event: Event | React.SyntheticEvent<Element, Event>) => {\n\t\t\tsetInternalOpen(false);\n\t\t\tif (onClose) {\n\t\t\t\tonClose(event);\n\t\t\t}\n\t\t},\n\t\t[onClose]\n\t);\n\n\treturn (\n\t\t<Tooltip\n\t\t\tid={id}\n\t\t\ttitle={title ?? \"\"}\n\t\t\tclasses={{\n\t\t\t\ttooltip: `${variant === TooltipVariant.html || variant === TooltipVariant.rich ? \"htmlContent\" : \"\"} ${\n\t\t\t\t\tmaxWidth ? maxWidth + \"Width\" : \"\"\n\t\t\t\t}`\n\t\t\t}}\n\t\t\tplacement={placement}\n\t\t\tdata-qa={dataQa}\n\t\t\tdata-tags={dataTags}\n\t\t\tdisableFocusListener={disableFocusListener}\n\t\t\tdisableHoverListener={disableHoverListener}\n\t\t\tenterDelay={enterDelay}\n\t\t\tenterNextDelay={enterNextDelay}\n\t\t\tleaveDelay={leaveDelay}\n\t\t\tTransitionComponent={Fade}\n\t\t\tTransitionProps={{ timeout: { enter: 150, exit: 200 } }}\n\t\t\topen={open ?? internalOpen}\n\t\t\tonOpen={handleOpen}\n\t\t\tonClose={handleClose}\n\t\t>\n\t\t\t{variant === \"overflow\" ? (\n\t\t\t\t<OverflowDiv ref={textElementRef}>{children}</OverflowDiv>\n\t\t\t) : typeof children === \"string\" ? (\n\t\t\t\t<span>{children}</span>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</Tooltip>\n\t);\n}\n\nexport default SolaceTooltip;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme } from \"@mui/material\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\n\nexport interface HelperTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction HelperText({ children }: HelperTextProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tsx={{\n\t\t\t\tcolor: theme.palette.ux.secondary.text.wMain,\n\t\t\t\tfontSize: theme.typography.caption.fontSize,\n\t\t\t\tmarginTop: \"2px\"\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default HelperText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function ErrorIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.208 14.784C11.2827 14.8587 11.3733 14.896 11.48 14.896H12.776C12.8933 14.896 12.984 14.8587 13.048 14.784C13.1227 14.7093 13.16 14.6187 13.16 14.512V7.184C13.16 7.06667 13.1227 6.976 13.048 6.912C12.984 6.83733 12.8933 6.8 12.776 6.8H11.48C11.3733 6.8 11.2827 6.83733 11.208 6.912C11.1333 6.98667 11.096 7.07733 11.096 7.184V14.512C11.096 14.6187 11.1333 14.7093 11.208 14.784Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.112 17.888C11.1867 17.9627 11.2773 18 11.384 18H12.872C12.9893 18 13.0853 17.9627 13.16 17.888C13.2347 17.8133 13.272 17.7227 13.272 17.616V16.128C13.272 16.0107 13.2347 15.9147 13.16 15.84C13.0853 15.7653 12.9893 15.728 12.872 15.728H11.384C11.2773 15.728 11.1867 15.7653 11.112 15.84C11.0373 15.9147 11 16.0107 11 16.128V17.616C11 17.7227 11.0373 17.8133 11.112 17.888Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { ErrorIcon } from \"../../resources/icons/ErrorIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst ErrorTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.container as CSSProperties)\n}));\n\nconst ErrorTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.label as CSSProperties)\n}));\n\nexport interface ErrorTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction ErrorText({ children }: ErrorTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<ErrorTextContainer>\n\t\t\t<ErrorIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.error.wMain} />\n\t\t\t<ErrorTextLabel>{children}</ErrorTextLabel>\n\t\t</ErrorTextContainer>\n\t);\n}\n\nexport default ErrorText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function WarnIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.8746 14.996C11.9493 15.0706 12.04 15.108 12.1466 15.108H13.4426C13.56 15.108 13.6506 15.0706 13.7146 14.996C13.7893 14.9213 13.8266 14.8306 13.8266 14.724V10.396C13.8266 10.2786 13.7893 10.188 13.7146 10.124C13.6506 10.0493 13.56 10.012 13.4426 10.012H12.1466C12.04 10.012 11.9493 10.0493 11.8746 10.124C11.8 10.1986 11.7626 10.2893 11.7626 10.396V14.724C11.7626 14.8306 11.8 14.9213 11.8746 14.996Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.7786 18.1C11.8533 18.1746 11.944 18.212 12.0506 18.212H13.5386C13.656 18.212 13.752 18.1746 13.8266 18.1C13.9013 18.0253 13.9386 17.9346 13.9386 17.828V16.34C13.9386 16.2226 13.9013 16.1266 13.8266 16.052C13.752 15.9773 13.656 15.94 13.5386 15.94H12.0506C11.944 15.94 11.8533 15.9773 11.7786 16.052C11.704 16.1266 11.6666 16.2226 11.6666 16.34V17.828C11.6666 17.9346 11.704 18.0253 11.7786 18.1Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M11.7919 3.79001C12.1726 3.10304 13.1604 3.10304 13.5411 3.79001L22.2358 19.4772C22.6053 20.1437 22.1233 20.962 21.3612 20.962H3.97177C3.20973 20.962 2.72771 20.1437 3.09713 19.4772L11.7919 3.79001ZM5.66936 18.962L12.6665 6.3376L19.6636 18.962H5.66936Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { WarnIcon } from \"../../resources/icons/WarnIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst WarningTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.container as CSSProperties)\n}));\n\nconst WarningTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.label as CSSProperties)\n}));\n\nexport interface WarningTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction WarningText({ children }: WarningTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<WarningTextContainer>\n\t\t\t<WarnIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.warning.w100}></WarnIcon>\n\t\t\t<WarningTextLabel>{children}</WarningTextLabel>\n\t\t</WarningTextContainer>\n\t);\n}\n\nexport default WarningText;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/types/solaceTooltip.ts","../src/components/SolaceToolTip.tsx","../src/components/form/HelperText.tsx","../src/resources/icons/ErrorIcon.tsx","../src/components/form/ErrorText.tsx","../src/resources/icons/WarnIcon.tsx","../src/components/form/WarningText.tsx"],"names":["text","overflow","rich","html","TooltipVariant","OverflowDiv","styled_default","SolaceTooltip","id","title","variant","children","placement","maxWidth","disableFocusListener","disableHoverListener","enterDelay","enterNextDelay","leaveDelay","open","onOpen","onClose","dataQa","dataTags","internalOpen","setInternalOpen","useState","textElementRef","useRef","handleOpen","useCallback","event","isEmpty","shouldOpen","handleClose","jsx","Tooltip_default","Fade_default","SolaceToolTip_default","HelperText","theme","useTheme","FormLabel_default","HelperText_default","ErrorIcon","size","fill","jsxs","SvgIcon_default","ErrorTextContainer","Box_default","ErrorTextLabel","ErrorText","BASE_FONT_PX_SIZES","ErrorText_default","WarnIcon","WarningTextContainer","WarningTextLabel","WarningText","WarningText_default"],"mappings":"wLAgBA,IAAMA,CAAAA,CAAO,MAAA,CACPC,CAAAA,CAAW,UAAA,CACX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AA,CACAX,GAAAA,CAAC,MAAA,CAAA,CACA,SAAS,SAAA,CACT,QAAA,CAAS,SAAA,CACT,CAAA,CAAE,+PACF,IAAA,CAAMW,CAAAA,CACP,CAAA,CAAA,CACD,CAEF,CCfA,IAAMU,EAAAA,CAAuBlD,GAAO4C,EAAG,CAAA,CAAE,CAAC,CAAE,MAAAV,CAAM,CAAA,IAAO,CACxD,GAAIA,CAAAA,CAAM,MAAA,CAAO,yBAAA,CAA0B,SAC5C,EAAE,CAAA,CAEIiB,EAAAA,CAAmBnD,EAAAA,CAAOoC,EAAS,EAAE,CAAC,CAAE,KAAA,CAAAF,CAAM,KAAO,CAC1D,GAAIA,CAAAA,CAAM,MAAA,CAAO,yBAAA,CAA0B,KAC5C,CAAA,CAAE,CAAA,CAMF,SAASkB,EAAAA,CAAY,CAAE,QAAA,CAAA/C,CAAS,EAAkC,CACjE,IAAM6B,CAAAA,CAAQC,EAAAA,GACRI,CAAAA,CAAOL,CAAAA,CAAM,UAAA,CAAW,SAAA,CAAU,QAAA,EAAU,QAAA,EAAS,CAC3D,OACCO,KAACS,EAAAA,CAAA,CACA,QAAA,CAAA,CAAArB,GAAAA,CAACoB,EAAA,CAAS,IAAA,CAAMV,CAAAA,CAAO,QAAA,CAASA,CAAI,CAAA,CAAIQ,EAAAA,CAAmB,EAAA,CAAI,IAAA,CAAMb,CAAAA,CAAM,OAAA,CAAQ,EAAA,CAAG,OAAA,CAAQ,KAAM,CAAA,CACpGL,GAAAA,CAACsB,EAAAA,CAAA,CAAkB,SAAA9C,CAAAA,CAAS,CAAA,CAAA,CAC7B,CAEF,KAEOgD,EAAAA,CAAQD","file":"chunk-54TEARQI.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst text = \"text\";\nconst overflow = \"overflow\";\nconst rich = \"rich\";\n/** @deprecated - as of Nov 12, 2024 the 'html variant is being deprecated in favour of using the rich variant**/\nconst html = \"html\";\n\nexport const TooltipVariant = {\n\ttext: text,\n\toverflow: overflow,\n\trich: rich,\n\t/** @deprecated [Nov 2024] the \"html\" variant for SolaceTooltip has been deprecated, please use rich variant instead */\n\thtml: html\n};\n\nexport type TooltipVariantTypes = (typeof TooltipVariant)[keyof typeof TooltipVariant];\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { styled, Tooltip } from \"@mui/material\";\nimport { Fade } from \"@mui/material\";\nimport SolaceComponentProps from \"./SolaceComponentProps\";\nimport { useCallback, useRef, useState } from \"react\";\nimport { isEmpty } from \"lodash\";\nimport { TooltipVariant, TooltipVariantTypes } from \"../types/solaceTooltip\";\n\nexport interface SolaceTooltipProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, a randomly generated value will be used in order to make it accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Tooltip title\n\t */\n\ttitle?: string | JSX.Element;\n\t/**\n\t * Different type of tooltip, default to `text`\n\t */\n\tvariant?: TooltipVariantTypes;\n\t/**\n\t * Tooltip referenced element.\n\t */\n\tchildren: string | JSX.Element;\n\t/**\n\t * Tooltip placement, default to `bottom`\n\t */\n\tplacement?:\n\t\t| \"bottom-end\"\n\t\t| \"bottom-start\"\n\t\t| \"bottom\"\n\t\t| \"left-end\"\n\t\t| \"left-start\"\n\t\t| \"left\"\n\t\t| \"right-end\"\n\t\t| \"right-start\"\n\t\t| \"right\"\n\t\t| \"top-end\"\n\t\t| \"top-start\"\n\t\t| \"top\";\n\t/**\n\t * Tooltip maximum width, default to small\n\t */\n\tmaxWidth?: \"small\" | \"medium\" | \"full\";\n\t/**\n\t * Disable listener to show tooltip when referenced element is focused, default to false\n\t */\n\tdisableFocusListener?: boolean;\n\t/**\n\t * Disable listener to show tooltip when referenced element is hovered, default to false\n\t */\n\tdisableHoverListener?: boolean;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip. Default is 500ms\n\t */\n\tenterDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before showing the tooltip when one was already recently opened. Default is 0ms\n\t */\n\tenterNextDelay?: number;\n\t/**\n\t * The number of milliseconds to wait before hiding the tooltip. Default is 0ms\n\t */\n\tleaveDelay?: number;\n\t/**\n\t * Controlled open state for tooltip. If `true`, the component is shown\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback fired when the component requests to be open. Used in conjunction with `open` and `onClose`\n\t */\n\tonOpen?: (event: React.SyntheticEvent) => void;\n\t/**\n\t * Callback fired when the component requests to be closed. Used in conjunction with `open` and `onOpen`\n\t */\n\tonClose?: (event: Event | React.SyntheticEvent<Element, Event>) => void;\n}\n\nconst OverflowDiv = styled(\"div\")(() => ({\n\twhiteSpace: \"nowrap\",\n\toverflow: \"hidden\",\n\ttextOverflow: \"ellipsis\",\n\tposition: \"relative\",\n\t// adding this empty block to prevent showing tooltip twice on Safari\n\t\"&::after\": {\n\t\tcontent: '\"\"',\n\t\tdisplay: \"block\"\n\t}\n}));\n\nfunction SolaceTooltip({\n\tid,\n\ttitle,\n\tvariant = TooltipVariant.text,\n\tchildren,\n\tplacement = \"bottom\",\n\tmaxWidth = \"small\",\n\tdisableFocusListener = false,\n\tdisableHoverListener = false,\n\tenterDelay = 500,\n\tenterNextDelay = 0,\n\tleaveDelay = 0,\n\topen,\n\tonOpen,\n\tonClose,\n\tdataQa,\n\tdataTags\n}: SolaceTooltipProps) {\n\tconst [internalOpen, setInternalOpen] = useState(false);\n\tconst textElementRef = useRef<HTMLDivElement>(null);\n\n\tconst handleOpen = useCallback(\n\t\t(event: React.SyntheticEvent) => {\n\t\t\t// if empty, don't open the tooltip.\n\t\t\tif (isEmpty(title)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet shouldOpen = true;\n\t\t\tif (\n\t\t\t\tvariant === \"overflow\" &&\n\t\t\t\ttextElementRef.current &&\n\t\t\t\ttextElementRef.current.scrollWidth <= textElementRef.current.clientWidth\n\t\t\t) {\n\t\t\t\tshouldOpen = false;\n\t\t\t}\n\t\t\tif (shouldOpen) {\n\t\t\t\tsetInternalOpen(true);\n\t\t\t\tif (onOpen) {\n\t\t\t\t\tonOpen(event);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[onOpen, title, variant]\n\t);\n\n\tconst handleClose = useCallback(\n\t\t(event: Event | React.SyntheticEvent<Element, Event>) => {\n\t\t\tsetInternalOpen(false);\n\t\t\tif (onClose) {\n\t\t\t\tonClose(event);\n\t\t\t}\n\t\t},\n\t\t[onClose]\n\t);\n\n\treturn (\n\t\t<Tooltip\n\t\t\tid={id}\n\t\t\ttitle={title ?? \"\"}\n\t\t\tclasses={{\n\t\t\t\ttooltip: `${variant === TooltipVariant.html || variant === TooltipVariant.rich ? \"htmlContent\" : \"\"} ${\n\t\t\t\t\tmaxWidth ? maxWidth + \"Width\" : \"\"\n\t\t\t\t}`\n\t\t\t}}\n\t\t\tplacement={placement}\n\t\t\tdata-qa={dataQa}\n\t\t\tdata-tags={dataTags}\n\t\t\tdisableFocusListener={disableFocusListener}\n\t\t\tdisableHoverListener={disableHoverListener}\n\t\t\tenterDelay={enterDelay}\n\t\t\tenterNextDelay={enterNextDelay}\n\t\t\tleaveDelay={leaveDelay}\n\t\t\tTransitionComponent={Fade}\n\t\t\tTransitionProps={{ timeout: { enter: 150, exit: 200 } }}\n\t\t\topen={open ?? internalOpen}\n\t\t\tonOpen={handleOpen}\n\t\t\tonClose={handleClose}\n\t\t>\n\t\t\t{variant === \"overflow\" ? (\n\t\t\t\t<OverflowDiv ref={textElementRef}>{children}</OverflowDiv>\n\t\t\t) : typeof children === \"string\" ? (\n\t\t\t\t<span>{children}</span>\n\t\t\t) : (\n\t\t\t\tchildren\n\t\t\t)}\n\t\t</Tooltip>\n\t);\n}\n\nexport default SolaceTooltip;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme } from \"@mui/material\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\n\nexport interface HelperTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction HelperText({ children }: HelperTextProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tsx={{\n\t\t\t\tcolor: theme.palette.ux.secondary.text.wMain,\n\t\t\t\tfontSize: theme.typography.caption.fontSize,\n\t\t\t\tmarginTop: \"2px\"\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nexport default HelperText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function ErrorIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.208 14.784C11.2827 14.8587 11.3733 14.896 11.48 14.896H12.776C12.8933 14.896 12.984 14.8587 13.048 14.784C13.1227 14.7093 13.16 14.6187 13.16 14.512V7.184C13.16 7.06667 13.1227 6.976 13.048 6.912C12.984 6.83733 12.8933 6.8 12.776 6.8H11.48C11.3733 6.8 11.2827 6.83733 11.208 6.912C11.1333 6.98667 11.096 7.07733 11.096 7.184V14.512C11.096 14.6187 11.1333 14.7093 11.208 14.784Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.112 17.888C11.1867 17.9627 11.2773 18 11.384 18H12.872C12.9893 18 13.0853 17.9627 13.16 17.888C13.2347 17.8133 13.272 17.7227 13.272 17.616V16.128C13.272 16.0107 13.2347 15.9147 13.16 15.84C13.0853 15.7653 12.9893 15.728 12.872 15.728H11.384C11.2773 15.728 11.1867 15.7653 11.112 15.84C11.0373 15.9147 11 16.0107 11 16.128V17.616C11 17.7227 11.0373 17.8133 11.112 17.888Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { ErrorIcon } from \"../../resources/icons/ErrorIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst ErrorTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.container as CSSProperties)\n}));\n\nconst ErrorTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_ErrorText.label as CSSProperties)\n}));\n\nexport interface ErrorTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction ErrorText({ children }: ErrorTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<ErrorTextContainer>\n\t\t\t<ErrorIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.error.wMain} />\n\t\t\t<ErrorTextLabel>{children}</ErrorTextLabel>\n\t\t</ErrorTextContainer>\n\t);\n}\n\nexport default ErrorText;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IconProps } from \"./IconProps\";\nimport { SvgIcon } from \"@mui/material\";\n\nexport function WarnIcon({ size, fill }: IconProps): JSX.Element {\n\treturn (\n\t\t<SvgIcon sx={{ width: `${size}px`, height: `${size}px` }} viewBox=\"0 0 24 24\">\n\t\t\t<path\n\t\t\t\td=\"M11.8746 14.996C11.9493 15.0706 12.04 15.108 12.1466 15.108H13.4426C13.56 15.108 13.6506 15.0706 13.7146 14.996C13.7893 14.9213 13.8266 14.8306 13.8266 14.724V10.396C13.8266 10.2786 13.7893 10.188 13.7146 10.124C13.6506 10.0493 13.56 10.012 13.4426 10.012H12.1466C12.04 10.012 11.9493 10.0493 11.8746 10.124C11.8 10.1986 11.7626 10.2893 11.7626 10.396V14.724C11.7626 14.8306 11.8 14.9213 11.8746 14.996Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\td=\"M11.7786 18.1C11.8533 18.1746 11.944 18.212 12.0506 18.212H13.5386C13.656 18.212 13.752 18.1746 13.8266 18.1C13.9013 18.0253 13.9386 17.9346 13.9386 17.828V16.34C13.9386 16.2226 13.9013 16.1266 13.8266 16.052C13.752 15.9773 13.656 15.94 13.5386 15.94H12.0506C11.944 15.94 11.8533 15.9773 11.7786 16.052C11.704 16.1266 11.6666 16.2226 11.6666 16.34V17.828C11.6666 17.9346 11.704 18.0253 11.7786 18.1Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t\t<path\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M11.7919 3.79001C12.1726 3.10304 13.1604 3.10304 13.5411 3.79001L22.2358 19.4772C22.6053 20.1437 22.1233 20.962 21.3612 20.962H3.97177C3.20973 20.962 2.72771 20.1437 3.09713 19.4772L11.7919 3.79001ZM5.66936 18.962L12.6665 6.3376L19.6636 18.962H5.66936Z\"\n\t\t\t\tfill={fill}\n\t\t\t/>\n\t\t</SvgIcon>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FormLabel, useTheme, styled } from \"@mui/material\";\nimport { Box } from \"@mui/system\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport { WarnIcon } from \"../../resources/icons/WarnIcon\";\nimport { BASE_FONT_PX_SIZES } from \"../../resources/typography\";\nimport { CSSProperties } from \"@mui/styled-engine\";\n\nconst WarningTextContainer = styled(Box)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.container as CSSProperties)\n}));\n\nconst WarningTextLabel = styled(FormLabel)(({ theme }) => ({\n\t...(theme.mixins.formComponent_WarningText.label as CSSProperties)\n}));\n\nexport interface WarningTextProps extends SolaceComponentProps {\n\tchildren: string | JSX.Element;\n}\n\nfunction WarningText({ children }: WarningTextProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst size = theme.typography.subtitle1.fontSize?.toString();\n\treturn (\n\t\t<WarningTextContainer>\n\t\t\t<WarnIcon size={size ? parseInt(size) : BASE_FONT_PX_SIZES.md} fill={theme.palette.ux.warning.w100}></WarnIcon>\n\t\t\t<WarningTextLabel>{children}</WarningTextLabel>\n\t\t</WarningTextContainer>\n\t);\n}\n\nexport default WarningText;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,c}from'./chunk-
|
|
1
|
+
import {b,c}from'./chunk-VYHLNTMX.modern.mjs';import {Oa,ua,Ic,md,D,le,he,Kb,_h,eb}from'./chunk-I7OJ5H4U.modern.mjs';import {jsx,jsxs}from'react/jsx-runtime';import ne,{useState,useEffect}from'react';var j=Oa(jsx("path",{d:`M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563
|
|
2
2
|
l5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851
|
|
3
|
-
C16.637,8.957,16.387,8.957,16.233,9.111z`}),"SelectDropDownIcon");var q=Oa(jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J=Oa(jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineOutlined");var We=Oa(jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var Ie=Oa(jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var Ke=Oa(jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe=Oa(jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Xe=Oa(jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");var oo=Oa(jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");var fo=Oa(jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var V=Oa(jsx("path",{d:"M19 13H5v-2h14z"}),"Remove");var xo=Oa(jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"ReportProblemOutlined");var ho=Oa(jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");function ie({id:f,htmlForId:o,required:d=false,disabled:p=false,bold:t=false,large:r=false,readOnly:l=false,children:n}){let a=ua();return jsx(le,{id:f,htmlFor:o,required:d,disabled:p,sx:{display:"block",fontSize:r?a.typography.subtitle1:a.typography.body1},className:D({"bold-label":t,"check-box-label":true,readOnly:l}),children:n})}var Te=({id:f,name:o,label:d,title:p,helperText:t,hasErrors:r=false,checked:l=false,required:n=false,disabled:a=false,indeterminate:m=false,readOnly:S=false,boldLabel:A=false,largeLabel:c=false,subTextProps:s={label:"",light:false},onChange:w,dataQa:R,dataTags:y})=>{let O=ua(),[B,P]=useState(l);useEffect(()=>{P(l);},[l]);let k=g=>{P(g.target.checked),w&&w({name:o,value:g.target.checked});},D$1=()=>jsxs(Ic,{display:"flex",children:[r&&jsx(J,{sx:{marginRight:O.spacing()}}),t]}),x=()=>f||o;return jsx(ne.Fragment,{children:jsxs(Ic,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsx(md,{id:`${x()}-checkbox`,name:o,indeterminate:m,inputProps:{"aria-labelledby":d?`${x()}-label`:"","data-qa":R,"data-tags":y},role:"checkbox",title:p,disabled:a||S,className:D({readOnly:S}),disableRipple:true,checked:B,onChange:k,checkedIcon:jsx(q,{}),indeterminateIcon:jsx(V,{})}),d&&jsx(Ic,{children:jsx(ie,{id:`${x()}-label`,htmlForId:`${x()}-checkbox`,required:n,disabled:a,bold:A||!!s.label&&!s.light,large:c,readOnly:S,children:d})}),s.label&&jsx(Ic,{gridColumn:"2",gridRow:"2",children:jsx(le,{id:`${f}-subtext`,disabled:a,className:D({"light-sub-text":s.light,"check-box-label":true}),children:s.label})}),t&&jsx(Ic,{gridColumn:"2",gridRow:"3",children:jsx(he,{error:r,component:"div",sx:{marginTop:O.spacing(.25)},children:D$1()})})]})})},bo=Te;function Se(f){let o=ua(),d={info:o.palette.ux.info.w100,error:o.palette.ux.error.w100,warning:o.palette.ux.warning.w100,success:o.palette.ux.success.w100},{variant:p="body1",children:t,color:r,...l}=f;return jsx(Kb,{variant:p,color:r&&typeof r=="string"?(a=>d[a])(r)||r:"textPrimary",...l,children:t})}function Re({id:f,name:o,label:d,value:p="",helperText:t,title:r,hasErrors:l=false,required:n=false,disabled:a=false,readOnly:m=false,inlineLabel:S=false,displayEmpty:A=false,onChange:c,getOptionDisplayValue:s,dataQa:w,dataTags:R,children:y,width:O,maxHeight:B,open:P,onOpen:k,onClose:D$1,menuAnchorOrigin:x,menuTransformOrigin:g}){let M=ua(),[L,v]=useState(p);useEffect(()=>{v(p);},[p]);let E=h=>{v(h.target.value),c&&c({name:o,value:h.target.value});},i=()=>f||o,H=()=>{let h={sx:{maxHeight:B,width:O}};return x&&(h.anchorOrigin=x),g&&(h.transformOrigin=g),h},C=()=>jsx(_h,{id:i(),name:o,inputProps:{"data-qa":w,"data-tags":R,"aria-describedby":t?`${i()}-select-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":m,role:"select",title:r},select:true,InputProps:{sx:{height:M.spacing(4)},className:D({readOnlySelect:m,emptySelect:!L}),disabled:a&&!m,readOnly:m,required:n},title:r,autoComplete:"off",required:n,disabled:a||m,error:l,margin:"dense",value:L,onChange:E,SelectProps:{IconComponent:j,MenuProps:{TransitionComponent:eb,...H()},renderValue:s?h=>s(h):void 0,displayEmpty:A,onOpen:k,onClose:D$1,open:P},children:y});return jsx(b,{id:i(),label:d,helperText:t,errorText:l?t:void 0,disabled:a,readOnly:m,required:n,inlineLabel:S,centerInlineLabel:S,sx:{width:O},children:C()})}var Go=Re;function Oe({id:f,name:o,label:d,value:p,helperText:t,placeholder:r,maxLength:l=c.maxLength,minRows:n=4,maxRows:a=4,title:m,autoFocus:S=false,hasErrors:A=false,required:c$1=false,inlineLabel:s=false,disabled:w=false,readOnly:R=false,onChange:y,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,dataQa:D,dataTags:x,fullWidth:g=false,resizable:M,width:L}){let v=ua(),E=C=>{y&&y({name:o,value:C.target.value});},i=()=>{let C=f||o;return M&&(C=`${C}-resizable-${M}`),C},H=()=>jsx(_h,{id:`${i()}`,name:o,inputProps:{maxLength:l,"data-qa":D,"data-tags":x,readOnly:R,"aria-describedby":t?`${i()}-textfield-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":R,role:"textbox",title:m},type:"text",autoComplete:"off",autoFocus:S,error:A,minRows:n,maxRows:a,multiline:true,InputProps:{sx:{height:v.spacing(4)},disabled:w,required:c$1,className:s?"inline-label":""},margin:"dense",placeholder:r,value:p,onChange:E,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,fullWidth:g});return jsx(b,{id:i(),label:d,helperText:t,errorText:A?t:void 0,disabled:w,readOnly:R,required:c$1,inlineLabel:s,sx:{width:L},children:H()})}var Jo=Oe;export{j as a,Ie as b,Ke as c,Xe as d,xo as e,We as f,J as g,qe as h,oo as i,fo as j,ho as k,bo as l,Se as m,Go as n,Jo as o};//# sourceMappingURL=chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
C16.637,8.957,16.387,8.957,16.233,9.111z`}),"SelectDropDownIcon");var q=Oa(jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var J=Oa(jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutlineOutlined");var We=Oa(jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var Ie=Oa(jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined");var Ke=Oa(jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe=Oa(jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Xe=Oa(jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");var oo=Oa(jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz");var fo=Oa(jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");var V=Oa(jsx("path",{d:"M19 13H5v-2h14z"}),"Remove");var xo=Oa(jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"ReportProblemOutlined");var ho=Oa(jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");function ie({id:f,htmlForId:o,required:d=false,disabled:p=false,bold:t=false,large:r=false,readOnly:l=false,children:n}){let a=ua();return jsx(le,{id:f,htmlFor:o,required:d,disabled:p,sx:{display:"block",fontSize:r?a.typography.subtitle1:a.typography.body1},className:D({"bold-label":t,"check-box-label":true,readOnly:l}),children:n})}var Te=({id:f,name:o,label:d,title:p,helperText:t,hasErrors:r=false,checked:l=false,required:n=false,disabled:a=false,indeterminate:m=false,readOnly:S=false,boldLabel:A=false,largeLabel:c=false,subTextProps:s={label:"",light:false},onChange:w,dataQa:R,dataTags:y})=>{let O=ua(),[B,P]=useState(l);useEffect(()=>{P(l);},[l]);let k=g=>{P(g.target.checked),w&&w({name:o,value:g.target.checked});},D$1=()=>jsxs(Ic,{display:"flex",children:[r&&jsx(J,{sx:{marginRight:O.spacing()}}),t]}),x=()=>f||o;return jsx(ne.Fragment,{children:jsxs(Ic,{display:"grid",gridTemplateColumns:"auto 1fr",gridTemplateRows:"auto auto",alignItems:"center",children:[jsx(md,{id:`${x()}-checkbox`,name:o,indeterminate:m,inputProps:{"aria-labelledby":d?`${x()}-label`:"","data-qa":R,"data-tags":y},role:"checkbox",title:p,disabled:a||S,className:D({readOnly:S}),disableRipple:true,checked:B,onChange:k,checkedIcon:jsx(q,{}),indeterminateIcon:jsx(V,{})}),d&&jsx(Ic,{children:jsx(ie,{id:`${x()}-label`,htmlForId:`${x()}-checkbox`,required:n,disabled:a,bold:A||!!s.label&&!s.light,large:c,readOnly:S,children:d})}),s.label&&jsx(Ic,{gridColumn:"2",gridRow:"2",children:jsx(le,{id:`${f}-subtext`,disabled:a,className:D({"light-sub-text":s.light,"check-box-label":true}),children:s.label})}),t&&jsx(Ic,{gridColumn:"2",gridRow:"3",children:jsx(he,{error:r,component:"div",sx:{marginTop:O.spacing(.25)},children:D$1()})})]})})},bo=Te;function Se(f){let o=ua(),d={info:o.palette.ux.info.w100,error:o.palette.ux.error.w100,warning:o.palette.ux.warning.w100,success:o.palette.ux.success.w100},{variant:p="body1",children:t,color:r,...l}=f;return jsx(Kb,{variant:p,color:r&&typeof r=="string"?(a=>d[a])(r)||r:"textPrimary",...l,children:t})}function Re({id:f,name:o,label:d,value:p="",helperText:t,title:r,hasErrors:l=false,required:n=false,disabled:a=false,readOnly:m=false,inlineLabel:S=false,displayEmpty:A=false,onChange:c,getOptionDisplayValue:s,dataQa:w,dataTags:R,children:y,width:O,maxHeight:B,open:P,onOpen:k,onClose:D$1,menuAnchorOrigin:x,menuTransformOrigin:g}){let M=ua(),[L,v]=useState(p);useEffect(()=>{v(p);},[p]);let E=h=>{v(h.target.value),c&&c({name:o,value:h.target.value});},i=()=>f||o,H=()=>{let h={sx:{maxHeight:B,width:O}};return x&&(h.anchorOrigin=x),g&&(h.transformOrigin=g),h},C=()=>jsx(_h,{id:i(),name:o,inputProps:{"data-qa":w,"data-tags":R,"aria-describedby":t?`${i()}-select-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":m,role:"select",title:r},select:true,InputProps:{sx:{height:M.spacing(4)},className:D({readOnlySelect:m,emptySelect:!L}),disabled:a&&!m,readOnly:m,required:n},title:r,autoComplete:"off",required:n,disabled:a||m,error:l,margin:"dense",value:L,onChange:E,SelectProps:{IconComponent:j,MenuProps:{TransitionComponent:eb,...H()},renderValue:s?h=>s(h):void 0,displayEmpty:A,onOpen:k,onClose:D$1,open:P},children:y});return jsx(b,{id:i(),label:d,helperText:t,errorText:l?t:void 0,disabled:a,readOnly:m,required:n,inlineLabel:S,centerInlineLabel:S,sx:{width:O},children:C()})}var Go=Re;function Oe({id:f,name:o,label:d,value:p,helperText:t,placeholder:r,maxLength:l=c.maxLength,minRows:n=4,maxRows:a=4,title:m,autoFocus:S=false,hasErrors:A=false,required:c$1=false,inlineLabel:s=false,disabled:w=false,readOnly:R=false,onChange:y,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,dataQa:D,dataTags:x,fullWidth:g=false,resizable:M,width:L}){let v=ua(),E=C=>{y&&y({name:o,value:C.target.value});},i=()=>{let C=f||o;return M&&(C=`${C}-resizable-${M}`),C},H=()=>jsx(_h,{id:`${i()}`,name:o,inputProps:{maxLength:l,"data-qa":D,"data-tags":x,readOnly:R,"aria-describedby":t?`${i()}-textfield-helper-text`:"","aria-labelledby":d?`${i()}-label`:"","aria-readonly":R,role:"textbox",title:m},type:"text",autoComplete:"off",autoFocus:S,error:A,minRows:n,maxRows:a,multiline:true,InputProps:{sx:{height:v.spacing(4)},disabled:w,required:c$1,className:s?"inline-label":""},margin:"dense",placeholder:r,value:p,onChange:E,onBlur:O,onKeyDown:B,onKeyUp:P,onFocus:k,fullWidth:g});return jsx(b,{id:i(),label:d,helperText:t,errorText:A?t:void 0,disabled:w,readOnly:R,required:c$1,inlineLabel:s,sx:{width:L},children:H()})}var Jo=Oe;export{j as a,Ie as b,Ke as c,Xe as d,xo as e,We as f,J as g,qe as h,oo as i,fo as j,ho as k,bo as l,Se as m,Go as n,Jo as o};//# sourceMappingURL=chunk-HQH2WKJP.modern.mjs.map
|
|
4
|
+
//# sourceMappingURL=chunk-HQH2WKJP.modern.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/icons/SelectIcons.tsx","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Check.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ErrorOutlineOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Block.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CancelOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CheckCircleOutline.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Close.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/InfoOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/MoreHoriz.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/NavigateNext.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Remove.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ReportProblemOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Tune.js","../src/components/form/SolaceCheckBox.tsx","../src/components/SolaceTypography.tsx","../src/components/form/SolaceSelect.tsx","../src/components/form/SolaceTextArea.tsx"],"names":["SelectDropdownIcon","createSvgIcon","jsx","Check_default","_jsx","ErrorOutlineOutlined_default","Block_default","CancelOutlined_default","CheckCircleOutline_default","Close_default","InfoOutlined_default","MoreHoriz_default","NavigateNext_default","Remove_default","ReportProblemOutlined_default","Tune_default","CheckBoxLabel","id","htmlForId","required","disabled","bold","large","readOnly","children","theme","useTheme","FormLabel_default","clsx_default","SolaceCheckBox","name","label","title","helperText","hasErrors","checked","indeterminate","boldLabel","largeLabel","subTextProps","onChange","dataQa","dataTags","selected","setSelected","useState","useEffect","handleChange","event","getHelperText","jsxs","Box_default","getId","React","Checkbox_default","FormHelperText_default","SolaceCheckBox_default","SolaceTypography","props","colorMap","variant","color","rest","Typography_default","SolaceSelect","value","inlineLabel","displayEmpty","getOptionDisplayValue","width","maxHeight","open","onOpen","onClose","menuAnchorOrigin","menuTransformOrigin","selectedValue","setSelectedValue","getMenuProps","menuProps","select","TextField_default","Collapse_default","FormChildBase_default","SolaceSelect_default","SolaceTextArea","placeholder","maxLength","constants","minRows","maxRows","autoFocus","onBlur","onKeyDown","onKeyUp","onFocus","fullWidth","resizable","generatedId","textField","SolaceTextArea_default"],"mappings":"wMAkBO,IAAMA,EAAqBC,EAAAA,CACjCC,GAAAA,CAAC,QACA,CAAA,CAAE,CAAA;AAAA;AAAA,yCAAA,CAAA,CAGH,CAAA,CACA,oBACD,ECrBA,IAAOC,CAAAA,CAAQF,EAAAA,CAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,EAAG,mDACL,CAAC,CAAA,CAAG,OAAO,CAAA,CCFX,IAAOC,CAAAA,CAAQJ,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,uKACL,CAAC,EAAG,sBAAsB,ECF1B,IAAOE,EAAAA,CAAQL,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,wOACL,CAAC,CAAA,CAAG,OAAO,ECFX,IAAOG,EAAAA,CAAQN,GAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,CAAA,CAAG,iOACL,CAAC,CAAA,CAAG,gBAAgB,MCFbI,EAAAA,CAAQP,EAAAA,CAA2BG,GAAAA,CAAK,MAAA,CAAQ,C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,CAAAA,CACP,WAAYE,CAAAA,CACZ,SAAA,CAAWC,CAAAA,CAAYD,CAAAA,CAAa,OACpC,QAAA,CAAUb,CAAAA,CACV,QAAA,CAAUG,CAAAA,CACV,QAAA,CAAUJ,GAAAA,CACV,WAAA,CAAa+C,CAAAA,CACb,GAAI,CAAE,KAAA,CAAAG,CAAM,CAAA,CAEX,SAAA8B,CAAAA,EAAU,CACZ,CAEF,KAEOC,EAAAA,CAAQf","file":"chunk-2RTZL4CF.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSvgIcon } from \"@mui/material\";\n\nexport const SelectDropdownIcon = createSvgIcon(\n\t<path\n\t\td=\"M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563\n\tl5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851\n\tC16.637,8.957,16.387,8.957,16.233,9.111z\"\n\t/>,\n\t\"SelectDropDownIcon\"\n);\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'ErrorOutlineOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8\"\n}), 'Block');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z\"\n}), 'CancelOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'CheckCircleOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreHoriz');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z\"\n}), 'ReportProblemOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z\"\n}), 'Tune');","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, Checkbox, FormHelperText, useTheme, FormLabel } from \"@mui/material\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport ErrorOutlineOutlinedIcon from \"@mui/icons-material/ErrorOutlineOutlined\";\nimport React, { useEffect, useState } from \"react\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport SolaceHTMLAttributeProps from \"../SolaceHTMLAttributesProps\";\nimport clsx from \"clsx\";\nimport { Remove } from \"@mui/icons-material\";\n\nexport interface SolaceCheckboxChangeEvent {\n\tname: string;\n\tvalue: boolean;\n}\n\nexport interface SolaceCheckBoxProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `checkbox` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\tsubTextProps?: { label?: string | JSX.Element; light?: boolean };\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to check or uncheck the `checkbox`\n\t */\n\tchecked?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `checkbox` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `checkbox`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `checkbox` is changed\n\t */\n\tonChange?: (event: SolaceCheckboxChangeEvent) => void;\n\t/**\n\t * Boolean flag to set the checkbox to indeterminate\n\t */\n\tindeterminate?: boolean;\n\t/**\n\t * Boolean flag to set the checkbox to readOnly\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to allow font weight of medium (default to regular) for label\n\t */\n\tboldLabel?: boolean;\n\t/**\n\t * Display the label with a larger font\n\t */\n\tlargeLabel?: boolean;\n}\n\ninterface CheckBoxLabelProps {\n\tid: string;\n\thtmlForId?: string;\n\trequired: boolean;\n\tdisabled: boolean;\n\tbold: boolean;\n\tlarge: boolean;\n\treadOnly: boolean;\n\tchildren?: JSX.Element | string;\n}\n\nfunction CheckBoxLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\tbold = false,\n\tlarge = false,\n\treadOnly = false,\n\tchildren\n}: CheckBoxLabelProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{ display: \"block\", fontSize: large ? theme.typography.subtitle1 : theme.typography.body1 }}\n\t\t\tclassName={clsx({ \"bold-label\": bold, \"check-box-label\": true, readOnly: readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nconst SolaceCheckBox = ({\n\tid,\n\tname,\n\tlabel,\n\ttitle,\n\thelperText,\n\thasErrors = false,\n\tchecked = false,\n\trequired = false,\n\tdisabled = false,\n\tindeterminate = false,\n\treadOnly = false,\n\tboldLabel = false,\n\tlargeLabel = false,\n\tsubTextProps = { label: \"\", light: false },\n\tonChange,\n\tdataQa,\n\tdataTags\n}: SolaceCheckBoxProps): JSX.Element => {\n\tconst theme = useTheme();\n\tconst [selected, setSelected] = useState(checked);\n\n\tuseEffect(() => {\n\t\tsetSelected(checked);\n\t}, [checked]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelected(event.target.checked);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.checked\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getHelperText = () => (\n\t\t<Box display=\"flex\">\n\t\t\t{hasErrors && <ErrorOutlineOutlinedIcon sx={{ marginRight: theme.spacing() }} />}\n\t\t\t{helperText}\n\t\t</Box>\n\t);\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\t// No need to get custom icons as we're using MUI's built-in icons\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Box display=\"grid\" gridTemplateColumns=\"auto 1fr\" gridTemplateRows=\"auto auto\" alignItems=\"center\">\n\t\t\t\t<Checkbox\n\t\t\t\t\tid={`${getId()}-checkbox`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tindeterminate={indeterminate}\n\t\t\t\t\tinputProps={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\t\"data-tags\": dataTags\n\t\t\t\t\t\t} as SolaceHTMLAttributeProps\n\t\t\t\t\t}\n\t\t\t\t\trole=\"checkbox\"\n\t\t\t\t\ttitle={title}\n\t\t\t\t\tdisabled={disabled || readOnly}\n\t\t\t\t\tclassName={clsx({ readOnly: readOnly })}\n\t\t\t\t\tdisableRipple\n\t\t\t\t\tchecked={selected}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tcheckedIcon={<CheckIcon />}\n\t\t\t\t\tindeterminateIcon={<Remove />}\n\t\t\t\t/>\n\t\t\t\t{label && (\n\t\t\t\t\t<Box>\n\t\t\t\t\t\t<CheckBoxLabel\n\t\t\t\t\t\t\tid={`${getId()}-label`}\n\t\t\t\t\t\t\thtmlForId={`${getId()}-checkbox`}\n\t\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tbold={boldLabel || (!!subTextProps.label && !subTextProps.light)}\n\t\t\t\t\t\t\tlarge={largeLabel}\n\t\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</CheckBoxLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{subTextProps.label && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"2\">\n\t\t\t\t\t\t<FormLabel\n\t\t\t\t\t\t\tid={`${id}-subtext`}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tclassName={clsx({ \"light-sub-text\": subTextProps.light, \"check-box-label\": true })}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{subTextProps.label}\n\t\t\t\t\t\t</FormLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{helperText && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"3\">\n\t\t\t\t\t\t<FormHelperText error={hasErrors} component=\"div\" sx={{ marginTop: theme.spacing(0.25) }}>\n\t\t\t\t\t\t\t{getHelperText()}\n\t\t\t\t\t\t</FormHelperText>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</React.Fragment>\n\t);\n};\n\nexport default SolaceCheckBox;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Typography, useTheme } from \"@mui/material\";\nimport { SolaceTypographyProps } from \"../types\";\n\nexport default function SolaceTypography(props: SolaceTypographyProps) {\n\tconst theme = useTheme();\n\n\tconst colorMap = {\n\t\tinfo: theme.palette.ux.info.w100,\n\t\terror: theme.palette.ux.error.w100,\n\t\twarning: theme.palette.ux.warning.w100,\n\t\tsuccess: theme.palette.ux.success.w100\n\t} as const;\n\n\tconst { variant = \"body1\", children, color, ...rest } = props;\n\n\t// Helper function to safely get color from colorMap\n\tconst getCustomColor = (color: string): string | undefined => {\n\t\treturn colorMap[color as keyof typeof colorMap];\n\t};\n\n\treturn (\n\t\t<Typography\n\t\t\tvariant={variant}\n\t\t\tcolor={color && typeof color === \"string\" ? getCustomColor(color) || color : \"textPrimary\"}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Typography>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MenuProps, PopoverOrigin, TextField, useTheme, Collapse } from \"@mui/material\";\nimport React, { ReactNode, useEffect, useState } from \"react\";\nimport { SelectDropdownIcon } from \"../../resources/icons/SelectIcons\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport clsx from \"clsx\";\nexport interface SolaceSelectChangeEvent {\n\tname: string;\n\tvalue: string;\n}\nexport interface SolaceSelectProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceSelectChangeEvent) => void;\n\t/**\n\t * Callback function to return option display value based on selected option value\n\t */\n\tgetOptionDisplayValue?: (value: unknown) => ReactNode;\n\t/**\n\t * An array of MenuItems to render as the select options\n\t */\n\tchildren: Array<JSX.Element>;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * Custom maxHeight of the component.\n\t */\n\tmaxHeight?: string;\n\t/**\n\t * Boolean flag to show the select option that has empty value\n\t */\n\n\tdisplayEmpty?: boolean;\n\t/**\n\t * Boolean flag to show the select options\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback function to trigger whenever the dropdown opens\n\t */\n\tonOpen?: () => void;\n\t/**\n\t * Callback function to trigger whenever the dropdown closes\n\t */\n\tonClose?: () => void;\n\t/**\n\t * Custom anchorOrigin of the menu\n\t */\n\tmenuAnchorOrigin?: PopoverOrigin;\n\t/**\n\t * Custom transformOrigin of the menu\n\t */\n\tmenuTransformOrigin?: PopoverOrigin;\n}\n\nfunction SolaceSelect({\n\tid,\n\tname,\n\tlabel,\n\tvalue = \"\",\n\thelperText,\n\ttitle,\n\thasErrors = false,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tinlineLabel = false,\n\tdisplayEmpty = false,\n\tonChange,\n\tgetOptionDisplayValue,\n\tdataQa,\n\tdataTags,\n\tchildren,\n\twidth,\n\tmaxHeight,\n\topen,\n\tonOpen,\n\tonClose,\n\tmenuAnchorOrigin,\n\tmenuTransformOrigin\n}: SolaceSelectProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst [selectedValue, setSelectedValue] = useState(value);\n\n\tuseEffect(() => {\n\t\tsetSelectedValue(value);\n\t}, [value]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelectedValue(event.target.value);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst getMenuProps = () => {\n\t\tconst menuProps: Partial<MenuProps> = {\n\t\t\tsx: { maxHeight: maxHeight, width: width }\n\t\t};\n\t\tif (menuAnchorOrigin) {\n\t\t\tmenuProps.anchorOrigin = menuAnchorOrigin;\n\t\t}\n\t\tif (menuTransformOrigin) {\n\t\t\tmenuProps.transformOrigin = menuTransformOrigin;\n\t\t}\n\t\treturn menuProps;\n\t};\n\n\tconst select = () => (\n\t\t<TextField\n\t\t\tid={getId()}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-select-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"select\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\tselect\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tclassName: clsx({ readOnlySelect: readOnly, emptySelect: !selectedValue }),\n\t\t\t\tdisabled: disabled && !readOnly,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\trequired: required\n\t\t\t}}\n\t\t\ttitle={title}\n\t\t\tautoComplete=\"off\"\n\t\t\trequired={required}\n\t\t\tdisabled={disabled || readOnly}\n\t\t\terror={hasErrors}\n\t\t\tmargin=\"dense\"\n\t\t\tvalue={selectedValue}\n\t\t\tonChange={handleChange}\n\t\t\tSelectProps={{\n\t\t\t\tIconComponent: SelectDropdownIcon,\n\t\t\t\tMenuProps: {\n\t\t\t\t\tTransitionComponent: Collapse,\n\t\t\t\t\t...getMenuProps()\n\t\t\t\t},\n\n\t\t\t\trenderValue: getOptionDisplayValue\n\t\t\t\t\t? (value: unknown) => {\n\t\t\t\t\t\t\treturn getOptionDisplayValue(value);\n\t\t\t\t\t }\n\t\t\t\t\t: undefined,\n\t\t\t\tdisplayEmpty: displayEmpty,\n\t\t\t\tonOpen: onOpen,\n\t\t\t\tonClose: onClose,\n\t\t\t\topen: open\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TextField>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{select()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceSelect;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\n\nexport interface SolaceTextAreaChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextAreaProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The minimum numbers of rows the text area can shrink to\n\t */\n\tminRows?: number;\n\t/**\n\t * The maximum number of rows the text area can expand to (overflow scrollbar will render if necessary)\n\t */\n\tmaxRows?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextAreaChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * both: The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.\n\t * horizontal: The element displays a mechanism for allowing the user to resize it in the horizontal direction.\n\t * vertical: The element displays a mechanism for allowing the user to resize it in the vertical direction.\n\t */\n\tresizable?: \"both\" | \"horizontal\" | \"vertical\";\n}\n\nfunction SolaceTextArea({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\tminRows = 4,\n\tmaxRows = 4,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\trequired = false,\n\tinlineLabel = false,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\tresizable,\n\twidth\n}: SolaceTextAreaProps) {\n\tconst theme = useTheme();\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\tlet generatedId = id ? id : name;\n\t\tif (resizable) {\n\t\t\tgeneratedId = `${generatedId}-resizable-${resizable}`;\n\t\t}\n\t\treturn generatedId;\n\t};\n\n\tconst textField = () => (\n\t\t<TextField\n\t\t\tid={`${getId()}`}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"textbox\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\ttype=\"text\"\n\t\t\tautoComplete=\"off\"\n\t\t\tautoFocus={autoFocus}\n\t\t\terror={hasErrors}\n\t\t\tminRows={minRows}\n\t\t\tmaxRows={maxRows}\n\t\t\tmultiline={true}\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tdisabled: disabled,\n\t\t\t\trequired: required,\n\t\t\t\tclassName: inlineLabel ? \"inline-label\" : \"\"\n\t\t\t}}\n\t\t\tmargin=\"dense\"\n\t\t\tplaceholder={placeholder}\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tonBlur={onBlur}\n\t\t\tonKeyDown={onKeyDown}\n\t\t\tonKeyUp={onKeyUp}\n\t\t\tonFocus={onFocus}\n\t\t\tfullWidth={fullWidth}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextArea;\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/resources/icons/SelectIcons.tsx","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Check.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ErrorOutlineOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Block.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CancelOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/CheckCircleOutline.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Close.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/InfoOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/MoreHoriz.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/NavigateNext.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Remove.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/ReportProblemOutlined.js","../node_modules/.pnpm/@mui+icons-material@6.5.0_@mui+material@6.5.0_@emotion+react@11.13.5_@types+react@18.3._85d25bd2ba92771ca3eb30fd32562de4/node_modules/@mui/icons-material/esm/Tune.js","../src/components/form/SolaceCheckBox.tsx","../src/components/SolaceTypography.tsx","../src/components/form/SolaceSelect.tsx","../src/components/form/SolaceTextArea.tsx"],"names":["SelectDropdownIcon","createSvgIcon","jsx","Check_default","_jsx","ErrorOutlineOutlined_default","Block_default","CancelOutlined_default","CheckCircleOutline_default","Close_default","InfoOutlined_default","MoreHoriz_default","NavigateNext_default","Remove_default","ReportProblemOutlined_default","Tune_default","CheckBoxLabel","id","htmlForId","required","disabled","bold","large","readOnly","children","theme","useTheme","FormLabel_default","clsx_default","SolaceCheckBox","name","label","title","helperText","hasErrors","checked","indeterminate","boldLabel","largeLabel","subTextProps","onChange","dataQa","dataTags","selected","setSelected","useState","useEffect","handleChange","event","getHelperText","jsxs","Box_default","getId","React","Checkbox_default","FormHelperText_default","SolaceCheckBox_default","SolaceTypography","props","colorMap","variant","color","rest","Typography_default","SolaceSelect","value","inlineLabel","displayEmpty","getOptionDisplayValue","width","maxHeight","open","onOpen","onClose","menuAnchorOrigin","menuTransformOrigin","selectedValue","setSelectedValue","getMenuProps","menuProps","select","TextField_default","Collapse_default","FormChildBase_default","SolaceSelect_default","SolaceTextArea","placeholder","maxLength","constants","minRows","maxRows","autoFocus","onBlur","onKeyDown","onKeyUp","onFocus","fullWidth","resizable","generatedId","textField","SolaceTextArea_default"],"mappings":"wMAkBO,IAAMA,EAAqBC,EAAAA,CACjCC,GAAAA,CAAC,QACA,CAAA,CAAE,CAAA;AAAA;AAAA,yCAAA,CAAA,CAGH,CAAA,CACA,oBACD,ECrBA,IAAOC,CAAAA,CAAQF,EAAAA,CAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,EAAG,mDACL,CAAC,CAAA,CAAG,OAAO,CAAA,CCFX,IAAOC,CAAAA,CAAQJ,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,uKACL,CAAC,EAAG,sBAAsB,ECF1B,IAAOE,EAAAA,CAAQL,EAAAA,CAA2BG,GAAAA,CAAK,OAAQ,CACrD,CAAA,CAAG,wOACL,CAAC,CAAA,CAAG,OAAO,ECFX,IAAOG,EAAAA,CAAQN,GAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,CAAA,CAAG,iOACL,CAAC,CAAA,CAAG,gBAAgB,MCFbI,EAAAA,CAAQP,EAAAA,CAA2BG,GAAAA,CAAK,MAAA,CAAQ,CACrD,CAAA,CAAG,yKACL,CAAC,EAAG,oBAAoB,ECFxB,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AA,CAAYD,CAAAA,CAAa,OACpC,QAAA,CAAUb,CAAAA,CACV,QAAA,CAAUG,CAAAA,CACV,QAAA,CAAUJ,GAAAA,CACV,WAAA,CAAa+C,CAAAA,CACb,GAAI,CAAE,KAAA,CAAAG,CAAM,CAAA,CAEX,SAAA8B,CAAAA,EAAU,CACZ,CAEF,KAEOC,EAAAA,CAAQf","file":"chunk-HQH2WKJP.modern.mjs","sourcesContent":["/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createSvgIcon } from \"@mui/material\";\n\nexport const SelectDropdownIcon = createSvgIcon(\n\t<path\n\t\td=\"M16.233,9.111L12,13.334L7.769,9.112c-0.157-0.157-0.412-0.157-0.57,0L6.359,9.96c-0.157,0.157-0.157,0.406,0,0.563\n\tl5.361,5.361c0.155,0.155,0.406,0.155,0.561,0l5.362-5.362c0.154-0.154,0.154-0.405,0-0.559l-0.851-0.851\n\tC16.637,8.957,16.387,8.957,16.233,9.111z\"\n\t/>,\n\t\"SelectDropDownIcon\"\n);\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"\n}), 'Check');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'ErrorOutlineOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8\"\n}), 'Block');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z\"\n}), 'CancelOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8\"\n}), 'CheckCircleOutline');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8\"\n}), 'InfoOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2\"\n}), 'MoreHoriz');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 13H5v-2h14z\"\n}), 'Remove');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z\"\n}), 'ReportProblemOutlined');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z\"\n}), 'Tune');","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Box, Checkbox, FormHelperText, useTheme, FormLabel } from \"@mui/material\";\nimport CheckIcon from \"@mui/icons-material/Check\";\nimport ErrorOutlineOutlinedIcon from \"@mui/icons-material/ErrorOutlineOutlined\";\nimport React, { useEffect, useState } from \"react\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport SolaceHTMLAttributeProps from \"../SolaceHTMLAttributesProps\";\nimport clsx from \"clsx\";\nimport { Remove } from \"@mui/icons-material\";\n\nexport interface SolaceCheckboxChangeEvent {\n\tname: string;\n\tvalue: boolean;\n}\n\nexport interface SolaceCheckBoxProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `checkbox` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\tsubTextProps?: { label?: string | JSX.Element; light?: boolean };\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag to check or uncheck the `checkbox`\n\t */\n\tchecked?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `checkbox` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to disable the `checkbox`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `checkbox` is changed\n\t */\n\tonChange?: (event: SolaceCheckboxChangeEvent) => void;\n\t/**\n\t * Boolean flag to set the checkbox to indeterminate\n\t */\n\tindeterminate?: boolean;\n\t/**\n\t * Boolean flag to set the checkbox to readOnly\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Boolean flag to allow font weight of medium (default to regular) for label\n\t */\n\tboldLabel?: boolean;\n\t/**\n\t * Display the label with a larger font\n\t */\n\tlargeLabel?: boolean;\n}\n\ninterface CheckBoxLabelProps {\n\tid: string;\n\thtmlForId?: string;\n\trequired: boolean;\n\tdisabled: boolean;\n\tbold: boolean;\n\tlarge: boolean;\n\treadOnly: boolean;\n\tchildren?: JSX.Element | string;\n}\n\nfunction CheckBoxLabel({\n\tid,\n\thtmlForId,\n\trequired = false,\n\tdisabled = false,\n\tbold = false,\n\tlarge = false,\n\treadOnly = false,\n\tchildren\n}: CheckBoxLabelProps): JSX.Element {\n\tconst theme = useTheme();\n\treturn (\n\t\t<FormLabel\n\t\t\tid={id}\n\t\t\thtmlFor={htmlForId}\n\t\t\trequired={required}\n\t\t\tdisabled={disabled}\n\t\t\tsx={{ display: \"block\", fontSize: large ? theme.typography.subtitle1 : theme.typography.body1 }}\n\t\t\tclassName={clsx({ \"bold-label\": bold, \"check-box-label\": true, readOnly: readOnly })}\n\t\t>\n\t\t\t{children}\n\t\t</FormLabel>\n\t);\n}\n\nconst SolaceCheckBox = ({\n\tid,\n\tname,\n\tlabel,\n\ttitle,\n\thelperText,\n\thasErrors = false,\n\tchecked = false,\n\trequired = false,\n\tdisabled = false,\n\tindeterminate = false,\n\treadOnly = false,\n\tboldLabel = false,\n\tlargeLabel = false,\n\tsubTextProps = { label: \"\", light: false },\n\tonChange,\n\tdataQa,\n\tdataTags\n}: SolaceCheckBoxProps): JSX.Element => {\n\tconst theme = useTheme();\n\tconst [selected, setSelected] = useState(checked);\n\n\tuseEffect(() => {\n\t\tsetSelected(checked);\n\t}, [checked]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelected(event.target.checked);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.checked\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getHelperText = () => (\n\t\t<Box display=\"flex\">\n\t\t\t{hasErrors && <ErrorOutlineOutlinedIcon sx={{ marginRight: theme.spacing() }} />}\n\t\t\t{helperText}\n\t\t</Box>\n\t);\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\t// No need to get custom icons as we're using MUI's built-in icons\n\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Box display=\"grid\" gridTemplateColumns=\"auto 1fr\" gridTemplateRows=\"auto auto\" alignItems=\"center\">\n\t\t\t\t<Checkbox\n\t\t\t\t\tid={`${getId()}-checkbox`}\n\t\t\t\t\tname={name}\n\t\t\t\t\tindeterminate={indeterminate}\n\t\t\t\t\tinputProps={\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\t\t\t\"data-tags\": dataTags\n\t\t\t\t\t\t} as SolaceHTMLAttributeProps\n\t\t\t\t\t}\n\t\t\t\t\trole=\"checkbox\"\n\t\t\t\t\ttitle={title}\n\t\t\t\t\tdisabled={disabled || readOnly}\n\t\t\t\t\tclassName={clsx({ readOnly: readOnly })}\n\t\t\t\t\tdisableRipple\n\t\t\t\t\tchecked={selected}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tcheckedIcon={<CheckIcon />}\n\t\t\t\t\tindeterminateIcon={<Remove />}\n\t\t\t\t/>\n\t\t\t\t{label && (\n\t\t\t\t\t<Box>\n\t\t\t\t\t\t<CheckBoxLabel\n\t\t\t\t\t\t\tid={`${getId()}-label`}\n\t\t\t\t\t\t\thtmlForId={`${getId()}-checkbox`}\n\t\t\t\t\t\t\trequired={required}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tbold={boldLabel || (!!subTextProps.label && !subTextProps.light)}\n\t\t\t\t\t\t\tlarge={largeLabel}\n\t\t\t\t\t\t\treadOnly={readOnly}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</CheckBoxLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{subTextProps.label && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"2\">\n\t\t\t\t\t\t<FormLabel\n\t\t\t\t\t\t\tid={`${id}-subtext`}\n\t\t\t\t\t\t\tdisabled={disabled}\n\t\t\t\t\t\t\tclassName={clsx({ \"light-sub-text\": subTextProps.light, \"check-box-label\": true })}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{subTextProps.label}\n\t\t\t\t\t\t</FormLabel>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t\t{helperText && (\n\t\t\t\t\t<Box gridColumn=\"2\" gridRow=\"3\">\n\t\t\t\t\t\t<FormHelperText error={hasErrors} component=\"div\" sx={{ marginTop: theme.spacing(0.25) }}>\n\t\t\t\t\t\t\t{getHelperText()}\n\t\t\t\t\t\t</FormHelperText>\n\t\t\t\t\t</Box>\n\t\t\t\t)}\n\t\t\t</Box>\n\t\t</React.Fragment>\n\t);\n};\n\nexport default SolaceCheckBox;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Typography, useTheme } from \"@mui/material\";\nimport { SolaceTypographyProps } from \"../types\";\n\nexport default function SolaceTypography(props: SolaceTypographyProps) {\n\tconst theme = useTheme();\n\n\tconst colorMap = {\n\t\tinfo: theme.palette.ux.info.w100,\n\t\terror: theme.palette.ux.error.w100,\n\t\twarning: theme.palette.ux.warning.w100,\n\t\tsuccess: theme.palette.ux.success.w100\n\t} as const;\n\n\tconst { variant = \"body1\", children, color, ...rest } = props;\n\n\t// Helper function to safely get color from colorMap\n\tconst getCustomColor = (color: string): string | undefined => {\n\t\treturn colorMap[color as keyof typeof colorMap];\n\t};\n\n\treturn (\n\t\t<Typography\n\t\t\tvariant={variant}\n\t\t\tcolor={color && typeof color === \"string\" ? getCustomColor(color) || color : \"textPrimary\"}\n\t\t\t{...rest}\n\t\t>\n\t\t\t{children}\n\t\t</Typography>\n\t);\n}\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MenuProps, PopoverOrigin, TextField, useTheme, Collapse } from \"@mui/material\";\nimport React, { ReactNode, useEffect, useState } from \"react\";\nimport { SelectDropdownIcon } from \"../../resources/icons/SelectIcons\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\nimport clsx from \"clsx\";\nexport interface SolaceSelectChangeEvent {\n\tname: string;\n\tvalue: string;\n}\nexport interface SolaceSelectProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceSelectChangeEvent) => void;\n\t/**\n\t * Callback function to return option display value based on selected option value\n\t */\n\tgetOptionDisplayValue?: (value: unknown) => ReactNode;\n\t/**\n\t * An array of MenuItems to render as the select options\n\t */\n\tchildren: Array<JSX.Element>;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * Custom maxHeight of the component.\n\t */\n\tmaxHeight?: string;\n\t/**\n\t * Boolean flag to show the select option that has empty value\n\t */\n\n\tdisplayEmpty?: boolean;\n\t/**\n\t * Boolean flag to show the select options\n\t */\n\topen?: boolean;\n\t/**\n\t * Callback function to trigger whenever the dropdown opens\n\t */\n\tonOpen?: () => void;\n\t/**\n\t * Callback function to trigger whenever the dropdown closes\n\t */\n\tonClose?: () => void;\n\t/**\n\t * Custom anchorOrigin of the menu\n\t */\n\tmenuAnchorOrigin?: PopoverOrigin;\n\t/**\n\t * Custom transformOrigin of the menu\n\t */\n\tmenuTransformOrigin?: PopoverOrigin;\n}\n\nfunction SolaceSelect({\n\tid,\n\tname,\n\tlabel,\n\tvalue = \"\",\n\thelperText,\n\ttitle,\n\thasErrors = false,\n\trequired = false,\n\tdisabled = false,\n\treadOnly = false,\n\tinlineLabel = false,\n\tdisplayEmpty = false,\n\tonChange,\n\tgetOptionDisplayValue,\n\tdataQa,\n\tdataTags,\n\tchildren,\n\twidth,\n\tmaxHeight,\n\topen,\n\tonOpen,\n\tonClose,\n\tmenuAnchorOrigin,\n\tmenuTransformOrigin\n}: SolaceSelectProps): JSX.Element {\n\tconst theme = useTheme();\n\tconst [selectedValue, setSelectedValue] = useState(value);\n\n\tuseEffect(() => {\n\t\tsetSelectedValue(value);\n\t}, [value]);\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetSelectedValue(event.target.value);\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\treturn id ? id : name;\n\t};\n\n\tconst getMenuProps = () => {\n\t\tconst menuProps: Partial<MenuProps> = {\n\t\t\tsx: { maxHeight: maxHeight, width: width }\n\t\t};\n\t\tif (menuAnchorOrigin) {\n\t\t\tmenuProps.anchorOrigin = menuAnchorOrigin;\n\t\t}\n\t\tif (menuTransformOrigin) {\n\t\t\tmenuProps.transformOrigin = menuTransformOrigin;\n\t\t}\n\t\treturn menuProps;\n\t};\n\n\tconst select = () => (\n\t\t<TextField\n\t\t\tid={getId()}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-select-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"select\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\tselect\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tclassName: clsx({ readOnlySelect: readOnly, emptySelect: !selectedValue }),\n\t\t\t\tdisabled: disabled && !readOnly,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\trequired: required\n\t\t\t}}\n\t\t\ttitle={title}\n\t\t\tautoComplete=\"off\"\n\t\t\trequired={required}\n\t\t\tdisabled={disabled || readOnly}\n\t\t\terror={hasErrors}\n\t\t\tmargin=\"dense\"\n\t\t\tvalue={selectedValue}\n\t\t\tonChange={handleChange}\n\t\t\tSelectProps={{\n\t\t\t\tIconComponent: SelectDropdownIcon,\n\t\t\t\tMenuProps: {\n\t\t\t\t\tTransitionComponent: Collapse,\n\t\t\t\t\t...getMenuProps()\n\t\t\t\t},\n\n\t\t\t\trenderValue: getOptionDisplayValue\n\t\t\t\t\t? (value: unknown) => {\n\t\t\t\t\t\t\treturn getOptionDisplayValue(value);\n\t\t\t\t\t }\n\t\t\t\t\t: undefined,\n\t\t\t\tdisplayEmpty: displayEmpty,\n\t\t\t\tonOpen: onOpen,\n\t\t\t\tonClose: onClose,\n\t\t\t\topen: open\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</TextField>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tcenterInlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{select()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceSelect;\n","/*\n * Copyright 2023-2025 Solace Systems. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TextField, useTheme } from \"@mui/material\";\nimport React from \"react\";\nimport { constants } from \"../../constants\";\nimport SolaceComponentProps from \"../SolaceComponentProps\";\nimport FormChildBase from \"./FormChildBase\";\n\nexport interface SolaceTextAreaChangeEvent {\n\tname: string;\n\tvalue: string;\n}\n\nexport interface SolaceTextAreaProps extends SolaceComponentProps {\n\t/**\n\t * Unique identifier ... if `id` is not specified, `name` value will be used in order to make `label` and `helperText` accessible for screen readers\n\t */\n\tid?: string;\n\t/**\n\t * Name attribute to assign to the `input` element\n\t */\n\tname: string;\n\t/**\n\t * the label content to display on the screen\n\t */\n\tlabel?: string | JSX.Element;\n\t/**\n\t * The value of the `input` element, required for controlled component\n\t */\n\tvalue?: string;\n\t/**\n\t * Content to display as supportive/explanitory text\n\t */\n\thelperText?: string | JSX.Element;\n\t/**\n\t * Short hint displayed in the `input` before user enters a value\n\t */\n\tplaceholder?: string;\n\t/**\n\t * The maximum number of characters which can be typed as the `input` value\n\t */\n\tmaxLength?: number;\n\t/**\n\t * The minimum numbers of rows the text area can shrink to\n\t */\n\tminRows?: number;\n\t/**\n\t * The maximum number of rows the text area can expand to (overflow scrollbar will render if necessary)\n\t */\n\tmaxRows?: number;\n\t/**\n\t * The text to display as the tooltip hint\n\t */\n\ttitle?: string;\n\t/**\n\t * Boolean flag to control whether the `input` element is focused during first mount\n\t */\n\tautoFocus?: boolean;\n\t/**\n\t * Boolean flag to mark the `input` in error state\n\t */\n\thasErrors?: boolean;\n\t/**\n\t * Boolean flag used to display an indicator of whether or not this `input` is mandatory\n\t */\n\trequired?: boolean;\n\t/**\n\t * Boolean flag to control whether to stack the label on top of the `input` element (false) or place them inline to one another (true)\n\t */\n\tinlineLabel?: boolean;\n\t/**\n\t * Boolean flag to disable the `input`\n\t */\n\tdisabled?: boolean;\n\t/**\n\t * Boolean flag to set the `input` in a read-only state\n\t */\n\treadOnly?: boolean;\n\t/**\n\t * Callback function to trigger whenever the value of the `input` is changed\n\t */\n\tonChange?: (event: SolaceTextAreaChangeEvent) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` loses focus\n\t */\n\tonBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key down event\n\t */\n\tonKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` receives key up event\n\t */\n\tonKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;\n\t/**\n\t * Callback function to trigger whenever the element of the `input` is focused\n\t */\n\tonFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n\t/**\n\t * Custom Width of the component.\n\t */\n\twidth?: string;\n\t/**\n\t * If true, the input will take up the full width of its container.\n\t */\n\tfullWidth?: boolean;\n\t/**\n\t * both: The element displays a mechanism for allowing the user to resize it, which may be resized both horizontally and vertically.\n\t * horizontal: The element displays a mechanism for allowing the user to resize it in the horizontal direction.\n\t * vertical: The element displays a mechanism for allowing the user to resize it in the vertical direction.\n\t */\n\tresizable?: \"both\" | \"horizontal\" | \"vertical\";\n}\n\nfunction SolaceTextArea({\n\tid,\n\tname,\n\tlabel,\n\tvalue,\n\thelperText,\n\tplaceholder,\n\tmaxLength = constants.maxLength,\n\tminRows = 4,\n\tmaxRows = 4,\n\ttitle,\n\tautoFocus = false,\n\thasErrors = false,\n\trequired = false,\n\tinlineLabel = false,\n\tdisabled = false,\n\treadOnly = false,\n\tonChange,\n\tonBlur,\n\tonKeyDown,\n\tonKeyUp,\n\tonFocus,\n\tdataQa,\n\tdataTags,\n\tfullWidth = false,\n\tresizable,\n\twidth\n}: SolaceTextAreaProps) {\n\tconst theme = useTheme();\n\n\tconst handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n\t\tif (onChange) {\n\t\t\tonChange({\n\t\t\t\tname: name,\n\t\t\t\tvalue: event.target.value\n\t\t\t});\n\t\t}\n\t};\n\n\tconst getId = () => {\n\t\tlet generatedId = id ? id : name;\n\t\tif (resizable) {\n\t\t\tgeneratedId = `${generatedId}-resizable-${resizable}`;\n\t\t}\n\t\treturn generatedId;\n\t};\n\n\tconst textField = () => (\n\t\t<TextField\n\t\t\tid={`${getId()}`}\n\t\t\tname={name}\n\t\t\tinputProps={{\n\t\t\t\tmaxLength: maxLength,\n\t\t\t\t\"data-qa\": dataQa,\n\t\t\t\t\"data-tags\": dataTags,\n\t\t\t\treadOnly: readOnly,\n\t\t\t\t\"aria-describedby\": helperText ? `${getId()}-textfield-helper-text` : \"\",\n\t\t\t\t\"aria-labelledby\": label ? `${getId()}-label` : \"\",\n\t\t\t\t\"aria-readonly\": readOnly,\n\t\t\t\trole: \"textbox\",\n\t\t\t\ttitle: title\n\t\t\t}}\n\t\t\ttype=\"text\"\n\t\t\tautoComplete=\"off\"\n\t\t\tautoFocus={autoFocus}\n\t\t\terror={hasErrors}\n\t\t\tminRows={minRows}\n\t\t\tmaxRows={maxRows}\n\t\t\tmultiline={true}\n\t\t\tInputProps={{\n\t\t\t\tsx: { height: theme.spacing(4) },\n\t\t\t\tdisabled: disabled,\n\t\t\t\trequired: required,\n\t\t\t\tclassName: inlineLabel ? \"inline-label\" : \"\"\n\t\t\t}}\n\t\t\tmargin=\"dense\"\n\t\t\tplaceholder={placeholder}\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tonBlur={onBlur}\n\t\t\tonKeyDown={onKeyDown}\n\t\t\tonKeyUp={onKeyUp}\n\t\t\tonFocus={onFocus}\n\t\t\tfullWidth={fullWidth}\n\t\t/>\n\t);\n\n\treturn (\n\t\t<FormChildBase\n\t\t\tid={getId()}\n\t\t\tlabel={label}\n\t\t\thelperText={helperText}\n\t\t\terrorText={hasErrors ? helperText : undefined}\n\t\t\tdisabled={disabled}\n\t\t\treadOnly={readOnly}\n\t\t\trequired={required}\n\t\t\tinlineLabel={inlineLabel}\n\t\t\tsx={{ width }}\n\t\t>\n\t\t\t{textField()}\n\t\t</FormChildBase>\n\t);\n}\n\nexport default SolaceTextArea;\n"]}
|