@solace-health/ui 0.9.8 → 0.9.10
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 +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -405,6 +405,14 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
405
405
|
}
|
|
406
406
|
`,o2=({color:e=void 0,size:t="sm"})=>jsx(rt,{color:e,size:t,children:jsx("div",{className:"loader",children:jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var it=(o=>(o.LOADING_LISTINGS="loadingListings",o.LOADING_ACCOUNT="loadingAccount",o))(it||{}),r1=class{client;constructor(t){this.client=R5.createClient(t);}async getLottieFile({slug:t}){let n=(await this.client.getEntries({content_type:"lottie"})).items.find(i=>i.fields.slug===t);return n?n.fields.lottieFile:(console.warn(`Lottie file not found for slug ${t}`),null)}async getImage(t){let n=(await this.client.getEntries({content_type:"image"})).items.find(i=>i.fields.slug===t);return n?n.fields.image.fields.file.url:null}};var Ct=({animationData:e,height:t,width:o,loop:n})=>{let i=useSpring({from:{opacity:0},to:{opacity:1}});return jsx(animated.div,{style:i,children:jsx(lt,{loop:n,animationData:e,play:!0,style:{width:o,height:t},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},mt=({height:e,width:t,loop:o,slug:n,contentfulConfig:i})=>{let[s,l]=useState();return useEffect(()=>{new r1(i).getLottieFile({slug:n}).then(a=>{l(a);});},[]),s?jsx(Ct,{animationData:s,height:e,width:t,loop:o}):null};var ut=r(Modal)`
|
|
407
407
|
border-radius: 20px;
|
|
408
|
+
|
|
409
|
+
@media (min-width: 621px) {
|
|
410
|
+
.ant-modal-body {
|
|
411
|
+
max-height: 80dvh;
|
|
412
|
+
overflow-y: auto;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
408
416
|
@media (max-width: 620px) {
|
|
409
417
|
max-width: 100dvw;
|
|
410
418
|
|
|
@@ -717,6 +725,8 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
717
725
|
`,m8=C8;var f8=r.div`
|
|
718
726
|
display: flex;
|
|
719
727
|
flex-direction: column;
|
|
728
|
+
font-weight: 700;
|
|
729
|
+
padding: 10px;
|
|
720
730
|
|
|
721
731
|
& div {
|
|
722
732
|
display: flex;
|
|
@@ -739,7 +749,9 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
739
749
|
|
|
740
750
|
transition: all 0.15s ease-in;
|
|
741
751
|
`,u8=r.div`
|
|
752
|
+
color: #347866;
|
|
742
753
|
width: 32px;
|
|
754
|
+
white-space: nowrap;
|
|
743
755
|
`,h8=r.div`
|
|
744
756
|
border: 1px solid #afc8bf;
|
|
745
757
|
|