@solace-health/ui 0.6.5 → 0.6.6

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
@@ -147,7 +147,7 @@ var I={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
147
147
  margin: 0;
148
148
  `,x1=({children:e,as:t,length:r=120})=>{let n=((s,l,a="...")=>{let p=s.length>l?a:"";return s.substring(0,l)+p})(e,r);return jsxRuntime.jsx(b1,{as:t,children:n})},B2=x1;var c={Body:H2,Display:P2,Error:U,Header:V2,Truncated:B2};var L1=()=>jsxRuntime.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M6.9231 30.4617C6.9231 26.6381 11.8824 23.5386 18 23.5386C24.1176 23.5386 29.0769 26.6381 29.0769 30.4617",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M18 19.3852C21.8235 19.3852 24.9231 16.2857 24.9231 12.4621C24.9231 8.63863 21.8235 5.53906 18 5.53906C14.1765 5.53906 11.0769 8.63863 11.0769 12.4621C11.0769 16.2857 14.1765 19.3852 18 19.3852Z",stroke:"#E9F0EE",fill:"none",strokeWidth:"2.00107",strokeLinecap:"round",strokeLinejoin:"round"})]}),k1=i__default.default(c.Display)`
149
149
  color: white;
150
- `,S1=({size:e=46,style:t={},src:r="",user:o={profile_image_url:"",first_name:"",last_name:""}})=>r||o.profile_image_url?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,style:{...t},src:r||o.profile_image_url}):o.first_name&&o.last_name?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,gap:0,style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#285E50",color:"white",...t},children:jsxRuntime.jsxs(k1,{size:"xs",children:[o.first_name[0],o.last_name[0]]})}):jsxRuntime.jsx(antd.Avatar,{size:e,gap:2,draggable:!1,style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#285E50",...t},icon:jsxRuntime.jsx(L1,{})}),M1=S1;var J=i__default.default(antd.Button)`
150
+ `,S1=({size:e=46,style:t={},src:r="",user:o={profile_image_url:"",first_name:"",last_name:""}})=>{let n={flex:"none",display:"flex",alignItems:"center",justifyContent:"center",...t};return r||o.profile_image_url?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,style:n,src:r||o.profile_image_url}):o.first_name&&o.last_name?jsxRuntime.jsx(antd.Avatar,{size:e,draggable:!1,gap:0,style:{backgroundColor:"#285E50",color:"white",...n},children:jsxRuntime.jsxs(k1,{size:"xs",children:[o.first_name[0],o.last_name[0]]})}):jsxRuntime.jsx(antd.Avatar,{size:e,gap:2,draggable:!1,style:{backgroundColor:"#285E50",...n},icon:jsxRuntime.jsx(L1,{})})},M1=S1;var J=i__default.default(antd.Button)`
151
151
  height: 50px;
152
152
  margin: 0;
153
153
  width: 100%;
@@ -540,7 +540,7 @@ var I={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
540
540
  }
541
541
  `,oo=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:o=null,value:n,disabled:s=!1})=>{let l=reactHookForm.useFormContext(),[a,p]=react$1.useState(e);return react$1.useEffect(()=>{l&&e&&l.setValue(t,n);},[]),react$1.useEffect(()=>{p(e);},[e]),jsxRuntime.jsxs(jt,{htmlFor:t,children:[jsxRuntime.jsx(eo,{type:"checkbox",checked:a,onClick:h=>{if(s)return;let f=!a;p(f),l&&l.setValue(t,f?h.target.value:null),o&&o(h.target.value);},id:t,name:t,value:n}),jsxRuntime.jsx(to,{style:s?{backgroundColor:"#adadad"}:{},children:jsxRuntime.jsx(c.Body,{color:"#fff",children:a?r.active:r.inactive})})]})},v2=oo;var io=i__default.default.div`
542
542
  display: inline-block;
543
- `,so=({className:e="",children:t,content:r,...o})=>jsxRuntime.jsx(antd.Tooltip,{placement:"topLeft",color:"#E9F0EE",title:r,overlayClassName:e,...o,children:jsxRuntime.jsx(io,{children:t})}),ao=i__default.default(so)`
543
+ `,so=({className:e="",children:t,content:r,...o})=>jsxRuntime.jsx(antd.Tooltip,{placement:"topLeft",color:"#E9F0EE",title:r,arrow:{pointAtCenter:!0},overlayClassName:e,...o,children:jsxRuntime.jsx(io,{children:t})}),ao=i__default.default(so)`
544
544
  max-width: 355px;
545
545
  min-width: 300px;
546
546
  width: 100%;