@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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ var I={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
121
121
|
margin: 0;
|
|
122
122
|
`,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 jsx(b1,{as:t,children:n})},B2=x1;var c={Body:H2,Display:P2,Error:U,Header:V2,Truncated:B2};var L1=()=>jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[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"}),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(c.Display)`
|
|
123
123
|
color: white;
|
|
124
|
-
`,S1=({size:e=46,style:t={},src:r="",user:o={profile_image_url:"",first_name:"",last_name:""}})=>r||o.profile_image_url?jsx(Avatar,{size:e,draggable:!1,style:
|
|
124
|
+
`,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?jsx(Avatar,{size:e,draggable:!1,style:n,src:r||o.profile_image_url}):o.first_name&&o.last_name?jsx(Avatar,{size:e,draggable:!1,gap:0,style:{backgroundColor:"#285E50",color:"white",...n},children:jsxs(k1,{size:"xs",children:[o.first_name[0],o.last_name[0]]})}):jsx(Avatar,{size:e,gap:2,draggable:!1,style:{backgroundColor:"#285E50",...n},icon:jsx(L1,{})})},M1=S1;var J=i(Button)`
|
|
125
125
|
height: 50px;
|
|
126
126
|
margin: 0;
|
|
127
127
|
width: 100%;
|
|
@@ -514,7 +514,7 @@ var I={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
514
514
|
}
|
|
515
515
|
`,oo=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:o=null,value:n,disabled:s=!1})=>{let l=useFormContext(),[a,p]=useState(e);return useEffect(()=>{l&&e&&l.setValue(t,n);},[]),useEffect(()=>{p(e);},[e]),jsxs(jt,{htmlFor:t,children:[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}),jsx(to,{style:s?{backgroundColor:"#adadad"}:{},children:jsx(c.Body,{color:"#fff",children:a?r.active:r.inactive})})]})},v2=oo;var io=i.div`
|
|
516
516
|
display: inline-block;
|
|
517
|
-
`,so=({className:e="",children:t,content:r,...o})=>jsx(Tooltip,{placement:"topLeft",color:"#E9F0EE",title:r,overlayClassName:e,...o,children:jsx(io,{children:t})}),ao=i(so)`
|
|
517
|
+
`,so=({className:e="",children:t,content:r,...o})=>jsx(Tooltip,{placement:"topLeft",color:"#E9F0EE",title:r,arrow:{pointAtCenter:!0},overlayClassName:e,...o,children:jsx(io,{children:t})}),ao=i(so)`
|
|
518
518
|
max-width: 355px;
|
|
519
519
|
min-width: 300px;
|
|
520
520
|
width: 100%;
|