@solace-health/ui 0.4.11 → 0.5.0

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.mjs CHANGED
@@ -308,7 +308,7 @@ var S2=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(S2||{});var j1
308
308
  .ant-segmented-item-selected {
309
309
  color: white;
310
310
  }
311
- `,ut=({onChange:e=()=>null,options:t=["Upcoming","Past"],size:o="middle",defaultValue:n="",block:i=!0})=>jsx(ConfigProvider,{theme:{components:{Segmented:{itemActiveBg:"#347866",itemSelectedBg:"#347866",borderRadius:7,colorBgLayout:"white",colorTextLabel:"#7F7F7F",colorText:"#7F7F7F",controlHeight:44,controlHeightSM:38,controlHeightLG:48}}},children:jsx(Ct,{block:i,onChange:e,options:t,size:o,defaultValue:n,colorBgLayout:"white"})}),ht=ut;var yt=(t=>(t.LOADING_LISTINGS="loadingListings",t))(yt||{}),I=class{client;constructor(t){this.client=h1.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 kt=({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(vt,{loop:n,animationData:e,play:!0,style:{width:o,height:t},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},St=({height:e,width:t,loop:o,slug:n,contentfulConfig:i})=>{let[s,l]=useState();return useEffect(()=>{new I(i).getLottieFile({slug:n}).then(a=>{l(a);});},[]),s?jsx(kt,{animationData:s,height:e,width:t,loop:o}):null};var Vt=r.div`
311
+ `,ut=({onChange:e=()=>null,options:t=["Upcoming","Past"],size:o="middle",defaultValue:n="",block:i=!0})=>jsx(ConfigProvider,{theme:{components:{Segmented:{itemActiveBg:"#347866",itemSelectedBg:"#347866",borderRadius:7,colorBgLayout:"white",colorTextLabel:"#7F7F7F",colorText:"#7F7F7F",controlHeight:44,controlHeightSM:38,controlHeightLG:48}}},children:jsx(Ct,{block:i,onChange:e,options:t,size:o,defaultValue:n,colorBgLayout:"white"})}),ht=ut;var yt=(t=>(t.LOADING_LISTINGS="loadingListings",t))(yt||{}),I=class{constructor(t){this.client=h1.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 kt=({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(vt,{loop:n,animationData:e,play:!0,style:{width:o,height:t},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},St=({height:e,width:t,loop:o,slug:n,contentfulConfig:i})=>{let[s,l]=useState();return useEffect(()=>{new I(i).getLottieFile({slug:n}).then(a=>{l(a);});},[]),s?jsx(kt,{animationData:s,height:e,width:t,loop:o}):null};var Vt=r.div`
312
312
  align-items: center;
313
313
  background-color: rgba(0, 0, 0, 0.2);
314
314
  bottom: 0;