@solace-health/ui 0.10.308 → 0.10.309

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/index.cjs CHANGED
@@ -251,12 +251,12 @@ Valid keys: `+JSON.stringify(Object.keys(g),null," "));var y1=S1(D,J,A,G,x+"."+
251
251
  `}
252
252
  `,zl=({className:C="",children:e="",size:t="md",allCaps:o=!1,color:r="",...i})=>jsxRuntime.jsx($l,{allCaps:o,className:C,size:t,style:{color:r},...i,children:e}),z4=zl;var Nl=$__default.default.span`
253
253
  margin: 0;
254
- `,Xl=({children:C,as:e,length:t=120})=>{let r=((i,n,a="...")=>{let l=i.length>n?a:"";return i.substring(0,n)+l})(C,t);return jsxRuntime.jsx(Nl,{as:e,children:r})},W4=Xl;var w={Body:G4,Display:$4,Header:z4,Truncated:W4};var Yl=(C,e)=>{switch(C){case"patient":return e?"var(--grey-200, #D9D9D9)":"#D7A13B";case"client":default:return "#285E50"}},P5=$__default.default(antd.Avatar)`
254
+ `,Xl=({children:C,as:e,length:t=120})=>{let r=((i,n,a="...")=>{let l=i.length>n?a:"";return i.substring(0,n)+l})(C,t);return jsxRuntime.jsx(Nl,{as:e,children:r})},W4=Xl;var w={Body:G4,Display:$4,Header:z4,Truncated:W4};var Yl=C=>{switch(C){case"patient":return "#D7A13B";case"client":default:return "#285E50"}},P5=$__default.default(antd.Avatar)`
255
255
  flex: none;
256
256
  display: flex;
257
257
  align-items: center;
258
258
  justify-content: center;
259
- background-color: ${C=>Yl(C.type,C.archived)};
259
+ background-color: ${C=>C.backgroundColor?C.backgroundColor:Yl(C.type)};
260
260
  padding: ${C=>C.hasImage?0:C.size*.2}px;
261
261
  color: #fff;
262
262
  `,X4=$__default.default(w.Display)`
@@ -366,7 +366,7 @@ Valid keys: `+JSON.stringify(Object.keys(g),null," "));var y1=S1(D,J,A,G,x+"."+
366
366
  width: 100%;
367
367
  height: 1px;
368
368
  }
369
- `;var E5=({title:C,children:e})=>jsxRuntime.jsx(antd.Tooltip,{title:C,color:"#E9F0EE",overlayInnerStyle:{color:s.green900,padding:"24px",fontSize:"18px"},children:e}),sp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(K4,{block:!0,type:"primary",loading:e,...o,children:C})}),ap=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(Q4,{block:!0,loading:e,...o,children:C})}),lp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(j4,{block:!0,loading:e,...o,children:C})}),pp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(Y4,{block:!0,type:"text",loading:e,...o,children:C})}),Lp=({children:C,toolTip:e={title:"",color:"black"},color:t="#101010",...o})=>jsxRuntime.jsx(E5,{title:e.title,children:jsxRuntime.jsx(C0,{color:t,type:"link",...o,children:C})}),d1={Primary:sp,Outline:lp,Unstyled:pp,Secondary:ap,Link:Lp};var dp=({size:C=42,color:e="#D7A13B"})=>jsxRuntime.jsxs("svg",{width:C,height:C,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("circle",{cx:"19.6875",cy:"19.6875",r:"19.6875",fill:e}),jsxRuntime.jsx("path",{d:"M19.9981 16.8432C18.2527 16.8432 16.7773 16.2406 15.5721 15.0353C14.3669 13.8301 13.7643 12.3547 13.7643 10.6091C13.7643 8.86356 14.3669 7.38815 15.5721 6.18289C16.7773 4.97763 18.2527 4.375 19.9981 4.375C21.7436 4.375 23.2189 4.97763 24.4241 6.18289C25.6293 7.38815 26.2319 8.86356 26.2319 10.6091C26.2319 12.3547 25.6293 13.8301 24.4241 15.0353C23.2189 16.2406 21.7436 16.8432 19.9981 16.8432ZM7 31.5V28.1177C7 26.9681 7.24316 25.9844 7.72949 25.1664C8.21581 24.3485 8.90109 23.7184 9.78531 23.2763C11.4211 22.4362 13.0791 21.8172 14.7591 21.4193C16.4391 21.0214 18.1855 20.8224 19.9981 20.8224C21.8108 20.8224 23.5571 21.0103 25.2372 21.3862C26.9172 21.762 28.5751 22.392 30.2109 23.2763C31.0952 23.6742 31.7804 24.2932 32.2668 25.1333C32.7531 25.9733 32.9963 26.9681 32.9963 28.1177V31.5H7Z",fill:"white"})]}),fp=({size:C=31})=>jsxRuntime.jsx("svg",{width:C,height:C,viewBox:`0 0 ${C} ${C}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M15.3559 14.2494C13.361 14.2494 11.6748 13.5607 10.2973 12.1832C8.91986 10.8058 8.23113 9.11961 8.23113 7.12469C8.23113 5.12978 8.91986 3.4436 10.2973 2.06616C11.6748 0.688721 13.361 0 15.3559 0C17.3508 0 19.037 0.688721 20.4145 2.06616C21.7919 3.4436 22.4807 5.12978 22.4807 7.12469C22.4807 9.11961 21.7919 10.8058 20.4145 12.1832C19.037 13.5607 17.3508 14.2494 15.3559 14.2494ZM0.5 31V27.1345C0.5 25.8207 0.777916 24.6964 1.33375 23.7616C1.88958 22.8268 2.6728 22.1068 3.68341 21.6015C5.55303 20.6414 7.44791 19.934 9.36806 19.4792C11.2882 19.0244 13.2842 18.7971 15.3559 18.7971C17.4276 18.7971 19.4236 19.0118 21.3437 19.4413C23.2639 19.8708 25.1588 20.5909 27.0284 21.6015C28.039 22.0562 28.8222 22.7637 29.378 23.7237C29.9339 24.6838 30.2118 25.8207 30.2118 27.1345V31H0.5Z",fill:"white"})}),e0=(i=>(i.Client="client",i.Patient="patient",i.Advocate="advocate",i.HybridAdvocate="hybridAdvocate",i.CHWorker="chw",i))(e0||{}),cp=({size:C=45,src:e="",type:t="client",user:o={profile_image_url:"",first_name:"",last_name:""},withToolTip:r=!1,toolTipOnClick:i=()=>null,archived:n=!1,...a})=>{if(t==="patient")return jsxRuntime.jsx(L9,{disabled:!r,content:jsxRuntime.jsxs(p1,{vertical:!0,gap:16,children:[jsxRuntime.jsx(w.Header,{children:"What's this?"}),jsxRuntime.jsx(d1.Unstyled,{onClick:i,style:{padding:0,margin:0},children:jsxRuntime.jsxs(p1,{vertical:!0,gap:4,children:[jsxRuntime.jsx(p1,{children:jsxRuntime.jsx(w.Body,{children:"This gold icon indicates a CHW patient!"})}),jsxRuntime.jsx(p1,{justify:"space-between",children:jsxRuntime.jsx(w.Body,{children:"Learn about the CHW workflow here"})})]})})]}),children:jsxRuntime.jsx(P5,{size:C,draggable:!1,type:t,icon:jsxRuntime.jsx(dp,{size:C,color:n?"var(--grey-200, #D9D9D9)":void 0}),style:{padding:0,overflow:"visible"},archived:n,...a})});let l=e||o.profile_image_url;return l?jsxRuntime.jsx(P5,{size:C,draggable:!1,hasImage:!0,src:l,type:t,...a}):o.first_name&&o.last_name?jsxRuntime.jsx(P5,{size:C,draggable:!1,gap:0,type:t,...a,children:jsxRuntime.jsxs(X4,{size:"xs",children:[o.first_name[0],o.last_name[0]]})}):jsxRuntime.jsx(P5,{size:C,gap:6,draggable:!1,icon:jsxRuntime.jsx(fp,{}),type:t,...a})},mp=cp;var hp=C=>jsxRuntime.jsx(antd.Badge,{...C}),f9=hp;var t0=$__default.default.div`
369
+ `;var E5=({title:C,children:e})=>jsxRuntime.jsx(antd.Tooltip,{title:C,color:"#E9F0EE",overlayInnerStyle:{color:s.green900,padding:"24px",fontSize:"18px"},children:e}),sp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(K4,{block:!0,type:"primary",loading:e,...o,children:C})}),ap=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(Q4,{block:!0,loading:e,...o,children:C})}),lp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(j4,{block:!0,loading:e,...o,children:C})}),pp=({children:C,isSubmitting:e=!1,toolTip:t={title:"",color:"black"},...o})=>jsxRuntime.jsx(E5,{title:t.title,children:jsxRuntime.jsx(Y4,{block:!0,type:"text",loading:e,...o,children:C})}),Lp=({children:C,toolTip:e={title:"",color:"black"},color:t="#101010",...o})=>jsxRuntime.jsx(E5,{title:e.title,children:jsxRuntime.jsx(C0,{color:t,type:"link",...o,children:C})}),d1={Primary:sp,Outline:lp,Unstyled:pp,Secondary:ap,Link:Lp};var dp=({size:C=42,color:e="#D7A13B"})=>jsxRuntime.jsxs("svg",{width:C,height:C,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("circle",{cx:"19.6875",cy:"19.6875",r:"19.6875",fill:e}),jsxRuntime.jsx("path",{d:"M19.9981 16.8432C18.2527 16.8432 16.7773 16.2406 15.5721 15.0353C14.3669 13.8301 13.7643 12.3547 13.7643 10.6091C13.7643 8.86356 14.3669 7.38815 15.5721 6.18289C16.7773 4.97763 18.2527 4.375 19.9981 4.375C21.7436 4.375 23.2189 4.97763 24.4241 6.18289C25.6293 7.38815 26.2319 8.86356 26.2319 10.6091C26.2319 12.3547 25.6293 13.8301 24.4241 15.0353C23.2189 16.2406 21.7436 16.8432 19.9981 16.8432ZM7 31.5V28.1177C7 26.9681 7.24316 25.9844 7.72949 25.1664C8.21581 24.3485 8.90109 23.7184 9.78531 23.2763C11.4211 22.4362 13.0791 21.8172 14.7591 21.4193C16.4391 21.0214 18.1855 20.8224 19.9981 20.8224C21.8108 20.8224 23.5571 21.0103 25.2372 21.3862C26.9172 21.762 28.5751 22.392 30.2109 23.2763C31.0952 23.6742 31.7804 24.2932 32.2668 25.1333C32.7531 25.9733 32.9963 26.9681 32.9963 28.1177V31.5H7Z",fill:"white"})]}),fp=({size:C=31})=>jsxRuntime.jsx("svg",{width:C,height:C,viewBox:`0 0 ${C} ${C}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M15.3559 14.2494C13.361 14.2494 11.6748 13.5607 10.2973 12.1832C8.91986 10.8058 8.23113 9.11961 8.23113 7.12469C8.23113 5.12978 8.91986 3.4436 10.2973 2.06616C11.6748 0.688721 13.361 0 15.3559 0C17.3508 0 19.037 0.688721 20.4145 2.06616C21.7919 3.4436 22.4807 5.12978 22.4807 7.12469C22.4807 9.11961 21.7919 10.8058 20.4145 12.1832C19.037 13.5607 17.3508 14.2494 15.3559 14.2494ZM0.5 31V27.1345C0.5 25.8207 0.777916 24.6964 1.33375 23.7616C1.88958 22.8268 2.6728 22.1068 3.68341 21.6015C5.55303 20.6414 7.44791 19.934 9.36806 19.4792C11.2882 19.0244 13.2842 18.7971 15.3559 18.7971C17.4276 18.7971 19.4236 19.0118 21.3437 19.4413C23.2639 19.8708 25.1588 20.5909 27.0284 21.6015C28.039 22.0562 28.8222 22.7637 29.378 23.7237C29.9339 24.6838 30.2118 25.8207 30.2118 27.1345V31H0.5Z",fill:"white"})}),e0=(i=>(i.Client="client",i.Patient="patient",i.Advocate="advocate",i.HybridAdvocate="hybridAdvocate",i.CHWorker="chw",i))(e0||{}),cp=({size:C=45,src:e="",type:t="client",user:o={profile_image_url:"",first_name:"",last_name:""},withToolTip:r=!1,toolTipOnClick:i=()=>null,archived:n=!1,transferred:a=!1,...l})=>{if(t==="patient"){let L;return a?L="var(--grey-400, #555555)":n&&(L="var(--grey-200, #D9D9D9)"),jsxRuntime.jsx(L9,{disabled:!r,content:jsxRuntime.jsxs(p1,{vertical:!0,gap:16,children:[jsxRuntime.jsx(w.Header,{children:"What's this?"}),jsxRuntime.jsx(d1.Unstyled,{onClick:i,style:{padding:0,margin:0},children:jsxRuntime.jsxs(p1,{vertical:!0,gap:4,children:[jsxRuntime.jsx(p1,{children:jsxRuntime.jsx(w.Body,{children:"This gold icon indicates a CHW patient!"})}),jsxRuntime.jsx(p1,{justify:"space-between",children:jsxRuntime.jsx(w.Body,{children:"Learn about the CHW workflow here"})})]})})]}),children:jsxRuntime.jsx(P5,{size:C,draggable:!1,type:t,icon:jsxRuntime.jsx(dp,{size:C,color:L}),style:{padding:0,overflow:"visible"},backgroundColor:L,...l})})}let p=e||o.profile_image_url;return p?jsxRuntime.jsx(P5,{size:C,draggable:!1,hasImage:!0,src:p,type:t,...l}):o.first_name&&o.last_name?jsxRuntime.jsx(P5,{size:C,draggable:!1,gap:0,type:t,...l,children:jsxRuntime.jsxs(X4,{size:"xs",children:[o.first_name[0],o.last_name[0]]})}):jsxRuntime.jsx(P5,{size:C,gap:6,draggable:!1,icon:jsxRuntime.jsx(fp,{}),type:t,...l})},mp=cp;var hp=C=>jsxRuntime.jsx(antd.Badge,{...C}),f9=hp;var t0=$__default.default.div`
370
370
  position: relative;
371
371
  overflow: hidden;
372
372
  width: 100%;