@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.cjs
CHANGED
|
@@ -432,6 +432,14 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
432
432
|
}
|
|
433
433
|
`,o2=({color:e=void 0,size:t="sm"})=>jsxRuntime.jsx(rt,{color:e,size:t,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.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__namespace.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=web.useSpring({from:{opacity:0},to:{opacity:1}});return jsxRuntime.jsx(web.animated.div,{style:i,children:jsxRuntime.jsx(lt__default.default,{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]=q5.useState();return q5.useEffect(()=>{new r1(i).getLottieFile({slug:n}).then(a=>{l(a);});},[]),s?jsxRuntime.jsx(Ct,{animationData:s,height:e,width:t,loop:o}):null};var ut=r__default.default(antd.Modal)`
|
|
434
434
|
border-radius: 20px;
|
|
435
|
+
|
|
436
|
+
@media (min-width: 621px) {
|
|
437
|
+
.ant-modal-body {
|
|
438
|
+
max-height: 80dvh;
|
|
439
|
+
overflow-y: auto;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
435
443
|
@media (max-width: 620px) {
|
|
436
444
|
max-width: 100dvw;
|
|
437
445
|
|
|
@@ -744,6 +752,8 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
744
752
|
`,m8=C8;var f8=r__default.default.div`
|
|
745
753
|
display: flex;
|
|
746
754
|
flex-direction: column;
|
|
755
|
+
font-weight: 700;
|
|
756
|
+
padding: 10px;
|
|
747
757
|
|
|
748
758
|
& div {
|
|
749
759
|
display: flex;
|
|
@@ -766,7 +776,9 @@ var a1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
766
776
|
|
|
767
777
|
transition: all 0.15s ease-in;
|
|
768
778
|
`,u8=r__default.default.div`
|
|
779
|
+
color: #347866;
|
|
769
780
|
width: 32px;
|
|
781
|
+
white-space: nowrap;
|
|
770
782
|
`,h8=r__default.default.div`
|
|
771
783
|
border: 1px solid #afc8bf;
|
|
772
784
|
|