@solace-health/ui 0.10.195 → 0.10.197

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
@@ -1056,7 +1056,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
1056
1056
  padding: 12px 6px;
1057
1057
  height: 57px;
1058
1058
  border-bottom: 1px solid #000;
1059
- `;var Ur=({label:A,name:C,formOptions:g={},description:E="",previewOnly:B=!1,errorMessage:I=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:t=!0,formStyle:r="MINIMAL",...i})=>{let{control:n,formState:{errors:s}}=reactHookForm.useFormContext(),d=Q==="advocate"?"Advocate":"Client",w=o&&Q==="advocate"||!o&&Q==="client",v=({field:M})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(eg,{previewOnly:B,children:[t&&jsxRuntime.jsx(jA,{}),jsxRuntime.jsx(ng,{...M,...i})]}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(u.Body,{children:A})})]}),z=e?new Date(e).toLocaleDateString():"",V=({field:M})=>jsxRuntime.jsx(og,{children:jsxRuntime.jsxs(tg,{children:[jsxRuntime.jsxs(rg,{children:[jsxRuntime.jsx(Lg,{...M,...i,placeholder:`${d} Signature`,disabled:B||!w,hasError:!!s[C]}),jsxRuntime.jsx($7,{children:`${d}`}),s[C]&&jsxRuntime.jsx(W,{text:I,includeIcon:!1})]}),jsxRuntime.jsxs(ig,{children:[jsxRuntime.jsx(sg,{children:z}),jsxRuntime.jsx($7,{children:"Date"})]})]})});return jsxRuntime.jsxs(Qg,{previewOnly:B,children:[A&&jsxRuntime.jsx(Y,{label:i?`${d} ${A}`:A,required:!0,isLabelBold:!0}),E,jsxRuntime.jsx(reactHookForm.Controller,{render:r==="MINIMAL"?v:V,name:C,rules:g,control:n})]})},ag=Ur;r2__default.default.div`
1059
+ `;var Ur=({label:A,name:C,formOptions:g={},description:E="",previewOnly:B=!1,errorMessage:I=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:t=!0,formStyle:r="MINIMAL",...i})=>{let{control:n,formState:{errors:s}}=reactHookForm.useFormContext(),d=Q==="advocate"?"Advocate":"Client",w=o&&Q==="advocate"||!o&&Q==="client",v=({field:M})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(eg,{previewOnly:B,children:[t&&jsxRuntime.jsx(jA,{}),jsxRuntime.jsx(ng,{...M,...i})]}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(u.Body,{children:A})})]}),z=e?new Date(e).toLocaleDateString():"",V=({field:M})=>jsxRuntime.jsx(og,{children:jsxRuntime.jsxs(tg,{children:[jsxRuntime.jsxs(rg,{children:[jsxRuntime.jsx(Lg,{...M,...i,placeholder:`${d} Signature`,disabled:B||!w,hasError:!!s[C]}),jsxRuntime.jsx($7,{children:`${d}`}),s[C]&&jsxRuntime.jsx(W,{text:I,includeIcon:!1})]}),jsxRuntime.jsxs(ig,{children:[jsxRuntime.jsx(sg,{children:z}),jsxRuntime.jsx($7,{children:"Date"})]})]})});return jsxRuntime.jsxs(Qg,{previewOnly:B,children:[(A||Q)&&jsxRuntime.jsx(Y,{label:i?`${d} ${A}`:A,required:!0,isLabelBold:!0}),E,jsxRuntime.jsx(reactHookForm.Controller,{render:r==="MINIMAL"?v:V,name:C,rules:g,control:n})]})},ag=Ur;r2__default.default.div`
1060
1060
  margin-bottom: 32px;
1061
1061
  `;var lg=r2__default.default.div`
1062
1062
  display: ${A=>A.isColumns?"grid":"flex"};
@@ -1872,7 +1872,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
1872
1872
  justify-content: center;
1873
1873
  gap: 10px;
1874
1874
  max-width: 150px;
1875
- `;var TE=({file:A,display:C="card",handleDownload:g=()=>null,className:E=""})=>{let B=()=>{g(A);};return C==="list"?null:jsxRuntime.jsxs(OE,{className:E,children:[jsxRuntime.jsxs(DE,{children:[jsxRuntime.jsx(J.Image,{}),jsxRuntime.jsx(u.Header,{children:A.name})]}),jsxRuntime.jsxs(jE,{onClick:B,children:[jsxRuntime.jsx(J.DownloadArrow,{}),"Download"]})]})},LL=({files:A,handleDownload:C,className:g=""})=>jsxRuntime.jsx(yE,{className:g,children:A.map(E=>jsxRuntime.jsx(TE,{file:E,handleDownload:C}))}),sL={Group:LL,Display:TE};var fL=({children:A,className:C="",...g})=>jsxRuntime.jsx(antd.Row,{className:C,gutter:[24,24],...g,children:A}),dL=({children:A,className:C="",...g})=>jsxRuntime.jsx(antd.Col,{className:C,...g,children:A}),pL={Row:fL,Col:dL};var cL=(E=>(E.LOADING_LISTINGS="loadingListings",E.LOADING_ACCOUNT="loadingAccount",E.LOADING_LOGO_SUCCESSFUL="logoLoadingSuccessful",E))(cL||{}),M3=class{client;constructor(C){this.client=ZE__namespace.createClient(C);}async getLottieFile({slug:C}){let E=(await this.client.getEntries({content_type:"lottie"})).items.find(B=>B.fields.slug===C);return E?E.fields.lottieFile:(console.warn(`Lottie file not found for slug ${C}`),null)}async getImage(C){let E=(await this.client.getEntries({content_type:"image"})).items.find(B=>B.fields.slug===C);return E?E.fields.image.fields.file.url:null}};var VL=({animationData:A,height:C,width:g,loop:E})=>{let B=web.useSpring({from:{opacity:0},to:{opacity:1}});return jsxRuntime.jsx(web.animated.div,{style:B,children:jsxRuntime.jsx(vL__default.default,{loop:E,animationData:A,play:!0,style:{width:g,height:C},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},RL=({height:A,width:C,loop:g,slug:E,contentfulConfig:B})=>{let[I,Q]=xt.useState();return xt.useEffect(()=>{new M3(B).getLottieFile({slug:E}).then(e=>{Q(e);});},[]),I?jsxRuntime.jsx(VL,{animationData:I,height:A,width:C,loop:g}):null};var WE=r2__default.default.div`
1875
+ `;var TE=({file:A,display:C="card",handleDownload:g=()=>null,className:E=""})=>{let B=()=>{g(A);};return C==="list"?null:jsxRuntime.jsxs(OE,{className:E,children:[jsxRuntime.jsxs(DE,{children:[jsxRuntime.jsx(J.Image,{}),jsxRuntime.jsx(u.Header,{children:A.name})]}),jsxRuntime.jsxs(jE,{onClick:B,children:[jsxRuntime.jsx(J.DownloadArrow,{}),"Download"]})]})},LL=({files:A,handleDownload:C,className:g=""})=>jsxRuntime.jsx(yE,{className:g,children:A.map(E=>jsxRuntime.jsx(TE,{file:E,handleDownload:C}))}),sL={Group:LL,Display:TE};var fL=({children:A,className:C="",...g})=>jsxRuntime.jsx(antd.Row,{className:C,gutter:[24,24],...g,children:A}),dL=({children:A,className:C="",...g})=>jsxRuntime.jsx(antd.Col,{className:C,...g,children:A}),pL={Row:fL,Col:dL};var cL=(B=>(B.LOADING_LISTINGS="loadingListings",B.LOADING_ACCOUNT="loadingAccount",B.LOADING_LOGO_SUCCESSFUL="logoLoadingSuccessful",B.SPARKLE="sparkle",B))(cL||{}),M3=class{client;constructor(C){this.client=ZE__namespace.createClient(C);}async getLottieFile({slug:C}){let E=(await this.client.getEntries({content_type:"lottie"})).items.find(B=>B.fields.slug===C);return E?E.fields.lottieFile:(console.warn(`Lottie file not found for slug ${C}`),null)}async getImage(C){let E=(await this.client.getEntries({content_type:"image"})).items.find(B=>B.fields.slug===C);return E?E.fields.image.fields.file.url:null}};var VL=({animationData:A,height:C,width:g,loop:E})=>{let B=web.useSpring({from:{opacity:0},to:{opacity:1}});return jsxRuntime.jsx(web.animated.div,{style:B,children:jsxRuntime.jsx(vL__default.default,{loop:E,animationData:A,play:!0,style:{width:g,height:C},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})})},RL=({height:A,width:C,loop:g,slug:E,contentfulConfig:B})=>{let[I,Q]=xt.useState();return xt.useEffect(()=>{new M3(B).getLottieFile({slug:E}).then(e=>{Q(e);});},[]),I?jsxRuntime.jsx(VL,{animationData:I,height:A,width:C,loop:g}):null};var WE=r2__default.default.div`
1876
1876
  margin-right: 10px;
1877
1877
  `,GE=`
1878
1878
  .szh-menu {