@solace-health/ui 0.9.35 → 0.9.36
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 +21 -17
- 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 +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -363,12 +363,12 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
363
363
|
left: 2px;
|
|
364
364
|
right: 0;
|
|
365
365
|
z-index: -1;
|
|
366
|
-
`,R5=({active:e=!1,color:t="#555555"})=>{let o=web.useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(-2px, -4px)"});return jsxRuntime.jsxs(st,{children:[jsxRuntime.jsx("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("g",{id:"financial-report",children:jsxRuntime.jsx("path",{id:"Vector",d:"M13.5 26.1406H14M13.5 23.1406H14M13.5 20.1406H14M16 26.1406H20M16 23.1406H20.5M21.5 12.1406H24.5M13.5 12.1406H19.5M16 20.1406H19.5M13.5 15.1406H26.5M25 26.1406V26.6406M25 19.6406V20.1406M26.5 21.6406C26.5 20.8121 25.828 20.1406 25 20.1406C24.172 20.1406 23.5 20.8121 23.5 21.6406C23.5 22.4691 24.172 23.1406 25 23.1406C25.828 23.1406 26.5 23.8121 26.5 24.6406C26.5 25.4691 25.828 26.1406 25 26.1406C24.172 26.1406 23.5 25.4691 23.5 24.6406M6.5 27.1406H9.5M11 6.14062H28.5C29.6045 6.14062 30.5 7.03612 30.5 8.14062V31.1406H9.5V8.14062C9.5 7.03612 8.6045 6.14062 7.5 6.14062C6.3955 6.14062 5.5 7.03612 5.5 8.14062V25.1406C5.5 26.2451 4.6045 27.1406 3.5 27.1406C2.3955 27.1406 1.5 26.2451 1.5 25.1406V2.14062H22.5V4.14062",stroke:t,"stroke-linecap":"round","stroke-linejoin":"round"})})}),jsxRuntime.jsx(at,{style:o,children:jsxRuntime.jsxs("svg",{width:"26",height:"30",viewBox:"0 0 26 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M1.49997 28C0.499943 25 -1.00001 4.00004 1.49997 2.00004C3.99995 4.3869e-05 13.9999 0.0454984 17.4999 1.00004C20.9999 1.95459 23.9999 5.00004 24.9999 7.00004C26 9.00004 25.5 16 25.5 18C25.5 20 18.4999 27 16.5 28C14.5 29 2.5 31 1.49997 28Z",fill:"url(#paint0_linear_13770_33952)"}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:"paint0_linear_13770_33952",x1:"1.49994",y1:"2.50004",x2:"20.9999",y2:"24.5",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#AFC8BF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"#DEB260"})]})})]})})]})};var T5=()=>jsxRuntime.jsx("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{id:"Vector",d:"M0 14V12H2V14H0ZM4 14V12H6V14H4ZM8 14V12H10V14H8ZM0 10V8H2V10H0ZM4 10V8H6V10H4ZM8 10V8H10V10H8ZM0 6V4H2V6H0ZM4 6V4H6V6H4ZM8 6V4H10V6H8ZM0 2V0H2V2H0ZM4 2V0H6V2H4ZM8 2V0H10V2H8Z",fill:"black"})});var
|
|
366
|
+
`,R5=({active:e=!1,color:t="#555555"})=>{let o=web.useSpring(e?{opacity:1,transform:"translate(0px, 0px)"}:{opacity:0,transform:"translate(-2px, -4px)"});return jsxRuntime.jsxs(st,{children:[jsxRuntime.jsx("svg",{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("g",{id:"financial-report",children:jsxRuntime.jsx("path",{id:"Vector",d:"M13.5 26.1406H14M13.5 23.1406H14M13.5 20.1406H14M16 26.1406H20M16 23.1406H20.5M21.5 12.1406H24.5M13.5 12.1406H19.5M16 20.1406H19.5M13.5 15.1406H26.5M25 26.1406V26.6406M25 19.6406V20.1406M26.5 21.6406C26.5 20.8121 25.828 20.1406 25 20.1406C24.172 20.1406 23.5 20.8121 23.5 21.6406C23.5 22.4691 24.172 23.1406 25 23.1406C25.828 23.1406 26.5 23.8121 26.5 24.6406C26.5 25.4691 25.828 26.1406 25 26.1406C24.172 26.1406 23.5 25.4691 23.5 24.6406M6.5 27.1406H9.5M11 6.14062H28.5C29.6045 6.14062 30.5 7.03612 30.5 8.14062V31.1406H9.5V8.14062C9.5 7.03612 8.6045 6.14062 7.5 6.14062C6.3955 6.14062 5.5 7.03612 5.5 8.14062V25.1406C5.5 26.2451 4.6045 27.1406 3.5 27.1406C2.3955 27.1406 1.5 26.2451 1.5 25.1406V2.14062H22.5V4.14062",stroke:t,"stroke-linecap":"round","stroke-linejoin":"round"})})}),jsxRuntime.jsx(at,{style:o,children:jsxRuntime.jsxs("svg",{width:"26",height:"30",viewBox:"0 0 26 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M1.49997 28C0.499943 25 -1.00001 4.00004 1.49997 2.00004C3.99995 4.3869e-05 13.9999 0.0454984 17.4999 1.00004C20.9999 1.95459 23.9999 5.00004 24.9999 7.00004C26 9.00004 25.5 16 25.5 18C25.5 20 18.4999 27 16.5 28C14.5 29 2.5 31 1.49997 28Z",fill:"url(#paint0_linear_13770_33952)"}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:"paint0_linear_13770_33952",x1:"1.49994",y1:"2.50004",x2:"20.9999",y2:"24.5",gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:"#AFC8BF"}),jsxRuntime.jsx("stop",{offset:"1",stopColor:"#DEB260"})]})})]})})]})};var T5=()=>jsxRuntime.jsx("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{id:"Vector",d:"M0 14V12H2V14H0ZM4 14V12H6V14H4ZM8 14V12H10V14H8ZM0 10V8H2V10H0ZM4 10V8H6V10H4ZM8 10V8H10V10H8ZM0 6V4H2V6H0ZM4 6V4H6V6H4ZM8 6V4H10V6H8ZM0 2V0H2V2H0ZM4 2V0H6V2H4ZM8 2V0H10V2H8Z",fill:"black"})});var v={AddCircle:v2,Books:s5,Tools:z5,Files:_5,Records:F5,Bank:D5,Copy:M2,Caret:H2,Calendar:k2,CalendarClock:l5,Draggable:T5,Invoice:R5,Celebrate:d5,Checkbox:V2,ErrorExclamation:P2,Form:m5,FramedPainting:f5,House:V5,NoteDocument:n5,CircleExclamation:Z2,Check:B2,Close:H1,DefaultFile:F2,Heart:O2,HeartPulse:A2,IdBadge:I2,Key:u5,LightBulb:G2,LocationPin:U2,Message:x5,MoneyLayered:b5,Permissions:X2,Phone:J2,RatingStar:q2,ReceptionBell:v5,Rose:L5,Sparkles:Q2,Sun:e5,Signature:k1,TaskList:k5,Trash:o5};var pt=i__default.default.span`
|
|
367
367
|
display: flex;
|
|
368
368
|
align-items: center;
|
|
369
369
|
gap: 8px;
|
|
370
370
|
margin-bottom: ${({marginBottom:e})=>e}px;
|
|
371
|
-
`,dt=({children:e=null,text:t="",includeIcon:o=!0,marginBottom:r=0})=>jsxRuntime.jsxs(pt,{marginBottom:r,children:[o&&jsxRuntime.jsx(
|
|
371
|
+
`,dt=({children:e=null,text:t="",includeIcon:o=!0,marginBottom:r=0})=>jsxRuntime.jsxs(pt,{marginBottom:r,children:[o&&jsxRuntime.jsx(v.ErrorExclamation,{}),jsxRuntime.jsx(d.Body,{size:"xs",color:"red",children:e||t})]}),f1=dt;var gt=i__default.default(antd.Tag)`
|
|
372
372
|
font-size: 16px;
|
|
373
373
|
height: 24px;
|
|
374
374
|
padding: 0 10px;
|
|
@@ -715,7 +715,7 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
715
715
|
.szh-menu--state-closing.szh-menu--dir-bottom {
|
|
716
716
|
animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
|
|
717
717
|
}
|
|
718
|
-
`;function a2({isActive:e,color:t="#000"}){let o=web.useSpring(e?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(
|
|
718
|
+
`;function a2({isActive:e,color:t="#000"}){let o=web.useSpring(e?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(v.Caret,{direction:"up",color:t})})}var so=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:n="",menuProps:s={menuButton:null},caretColor:a="#000",borderColor:l="#555555"})=>{let m={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},p=o3.useRef(null),[c,g]=reactMenu.useMenuState({transition:!0}),f=reactMenu.useClick(c.state,g),u=c.state==="open"||c.state==="opening";return o3.useEffect(()=>{r(c.state);},[c.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(J5,{className:`${n} ${u?"menu-open":"menu-closed"}`,ref:p,borderColor:l,...f,children:[jsxRuntime.jsx(K5,{children:t}),jsxRuntime.jsx(a2,{isActive:u,color:a}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...c,anchorRef:p,onClose:()=>g(!1),onItemClick:o,onMenuChange:r,...m,...s,children:e})]})})},ao=({label:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:t,children:e}),lo=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:n=!1,linkTo:s="",className:a=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${a} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:n,children:e}),po=({value:e,onChange:t=()=>null,className:o=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:r})=>jsxRuntime.jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),Co=({children:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:t,children:e}),mo=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),g1={Button:ao,Container:so,Search:po,Divider:mo,Header:Co,Item:lo};i__default.default.div`
|
|
719
719
|
padding: 0 20px;
|
|
720
720
|
border-radius: 10px;
|
|
721
721
|
border: 1px solid #7f7f7f;
|
|
@@ -904,7 +904,7 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
904
904
|
}
|
|
905
905
|
`;i__default.default(d.Body)`
|
|
906
906
|
margin-bottom: 24px;
|
|
907
|
-
`;var Qo=({name:e,label:t=null,details:o=null,type:r="text",options:n={},previewOnly:s=!1,textArea:a=!1,marginBottom:l="24px",isLabelBold:m=!0,format:p=String,errorMessage:c="This field is required",required:g=!1,...f})=>{let{register:u,control:b,
|
|
907
|
+
`;var Qo=({name:e,label:t=null,details:o=null,type:r="text",options:n={},previewOnly:s=!1,textArea:a=!1,marginBottom:l="24px",isLabelBold:m=!0,format:p=String,errorMessage:c="This field is required",required:g=!1,...f})=>{let{register:u,control:b,formState:{errors:w}}=reactHookForm.useFormContext();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[t&&jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[jsxRuntime.jsx(Jo,{size:"lg",isLabelBold:m,children:t}),g&&jsxRuntime.jsx("div",{style:{color:"#DA4D54"},children:"*"})]}),o&&jsxRuntime.jsx(Yo,{children:o}),a?jsxRuntime.jsx("div",{children:s?jsxRuntime.jsx(a3,{...f,...u(e,n),marginBottom:l,error:w?.[e],disabled:!0,style:{backgroundColor:"#EEEEEE",color:"#7F7F7F",borderStyle:"none",marginBottom:24}}):jsxRuntime.jsx(a3,{...f,...u(e,n),marginBottom:l,error:w?.[e]})}):jsxRuntime.jsx("div",{style:{width:"100%"},children:s?jsxRuntime.jsx(s3,{size:"md",...f,disabled:!0,style:{backgroundColor:"#EEEEEE",color:"#7F7F7F",borderStyle:"none",marginBottom:24}}):jsxRuntime.jsxs("div",{style:{marginBottom:w?.[e]?"6px":l,display:"flex",flexDirection:"column",position:"relative"},children:[jsxRuntime.jsx(reactHookForm.Controller,{render:Z=>jsxRuntime.jsx(s3,{...f,unmask:!1,mask:p,name:Z.field.name,onBlur:Z.field.onBlur,defaultValue:n.value||Z.field.value,onAccept:E=>Z.field.onChange({target:{value:E}}),marginBottom:l,type:r,error:w?.[e]}),name:e,rules:n,control:b}),jsxRuntime.jsx(Ko,{children:w?.[e]&&jsxRuntime.jsx(v.ErrorExclamation,{})}),w?.[e]&&jsxRuntime.jsx(f1,{text:c,includeIcon:!1})]})})]})},s1=Qo;var t4=i__default.default.div`
|
|
908
908
|
margin-bottom: 32px;
|
|
909
909
|
`,o4=i__default.default.div`
|
|
910
910
|
display: ${({inline:e})=>e?"flex":"block"};
|
|
@@ -1260,7 +1260,7 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1260
1260
|
left: 0;
|
|
1261
1261
|
`;i__default.default(d.Body)`
|
|
1262
1262
|
margin-bottom: 24px;
|
|
1263
|
-
`;var T4=({label:e="",name:t,details:o="",placeholder:r="",options:n=[],allowInput:s=!1,previewOnly:a=!1,isLabelBold:l=!0,formOptions:m={},onChange:p=()=>null})=>{let c=o3.useRef(),g=reactHookForm.useFormContext();g.register(t,m);let[f,u]=o3.useState(!1),[b,
|
|
1263
|
+
`;var T4=({label:e="",name:t,details:o="",placeholder:r="",options:n=[],allowInput:s=!1,previewOnly:a=!1,isLabelBold:l=!0,formOptions:m={},onChange:p=()=>null})=>{let c=o3.useRef(),g=reactHookForm.useFormContext();g.register(t,m);let[f,u]=o3.useState(!1),[b,w]=o3.useState(""),[Z,E]=o3.useState(n),e1=web.useSpring(f?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});o3.useEffect(()=>{let h=C=>{f&&c.current&&!c.current.contains(C.target)&&u(!1);};return document.addEventListener("mousedown",C=>h(C)),()=>{document.removeEventListener("mousedown",C=>h(C));}},[f]);let t1=n.find(h=>h.value===g.getValues(t))?.label,W=h=>{w(""),g.setValue(t,h.value),g.trigger(t),p&&p(h),u(!1);};o3.useEffect(()=>{if(u(!!b),b){let h=n.filter(C=>C.value.toLowerCase().match(b.toLowerCase()));E(h),g.setValue(t,b);}else E(n);},[b,n.length]);let x=h=>{h.code==="Enter"&&h.preventDefault();};return jsxRuntime.jsxs(E4,{children:[jsxRuntime.jsx(F4,{size:"lg",isLabelBold:l,children:e}),o&&jsxRuntime.jsx(P4,{children:o}),a?jsxRuntime.jsxs(h3,{onClick:()=>u(!f),previewOnly:!0,children:[jsxRuntime.jsx("i",{style:{color:"#7F7F7F"},children:"--Select--"}),jsxRuntime.jsx(v.Caret,{direction:"down",color:"#7F7F7F"})]}):jsxRuntime.jsxs(h3,{onClick:()=>u(!f),children:[t1||jsxRuntime.jsx("i",{children:r}),s&&jsxRuntime.jsx(A4,{onKeyDown:x,value:b,onChange:h=>w(h.target.value),type:"text"}),jsxRuntime.jsx(v.Caret,{direction:f?"up":"down"}),jsxRuntime.jsx(D4,{style:e1,ref:c,children:Z.map(h=>{let{label:C}=h,y=h.label===t1;return jsxRuntime.jsxs(O4,{onClick:()=>W(h),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:C}),jsxRuntime.jsx(R4,{isCurrent:y,children:jsxRuntime.jsx(v.Check,{color:"#fff"})})]},h.value)})})]})]})},x3=T4;var N4=({label:e="Submit",isSubmitting:t=!1,hideWhenInvalid:o=!1,...r})=>{let n=reactHookForm.useFormContext(),{isValid:s}=n.formState,l=web.useSpring((o?s:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsxRuntime.jsx(web.animated.div,{style:l,...r,children:jsxRuntime.jsx(G1.Primary,{htmlType:"submit",isSubmitting:t,...r,children:e})})},b3=N4;var Y4=i__default.default.div`
|
|
1264
1264
|
position: relative;
|
|
1265
1265
|
margin-bottom: 24px;
|
|
1266
1266
|
z-index: 20;
|
|
@@ -1330,7 +1330,7 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1330
1330
|
height: 100%;
|
|
1331
1331
|
`,n8=i__default.default(d.Body)`
|
|
1332
1332
|
margin-bottom: 24px;
|
|
1333
|
-
`,i8=e=>{let t="",o="";e.address_components.forEach(s=>{let a=s.types.some(m=>m==="locality"),l=s.types.some(m=>m==="administrative_area_level_1");a?t=s.short_name:l&&(o=s.short_name);});let r=e.geometry.location.lat(),n=e.geometry.location.lng();return {city:t,state:o,lat:r,long:n}},s8=({handleSelect:e,option:t,value:o})=>{let{description:r}=t,n=r===o,s=r.replace(", USA","");return jsxRuntime.jsx(o8,{isCurrent:n,onClick:()=>e(s),children:jsxRuntime.jsx(d.Body,{size:"lg",children:s})})},a8=({label:e="",details:t="",required:o=!0,previewOnly:r=!1})=>{let n=o3.useRef(),[s,a]=o3.useState(!1),[l,m]=o3.useState(!1),p=reactHookForm.useFormContext();p.register("city",{required:o});let c=web.useSpring(s?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});o3.useEffect(()=>{let x=h=>{s&&n.current&&!n.current.contains(h.target)&&a(!1);};return document.addEventListener("mousedown",h=>x(h)),()=>{document.removeEventListener("mousedown",h=>x(h));}},[s]);let g=p.getValues("city")?`${p.getValues("city")}, ${p.getValues("state")}`:"",{value:f,suggestions:{data:u,loading:b},setValue:
|
|
1333
|
+
`,i8=e=>{let t="",o="";e.address_components.forEach(s=>{let a=s.types.some(m=>m==="locality"),l=s.types.some(m=>m==="administrative_area_level_1");a?t=s.short_name:l&&(o=s.short_name);});let r=e.geometry.location.lat(),n=e.geometry.location.lng();return {city:t,state:o,lat:r,long:n}},s8=({handleSelect:e,option:t,value:o})=>{let{description:r}=t,n=r===o,s=r.replace(", USA","");return jsxRuntime.jsx(o8,{isCurrent:n,onClick:()=>e(s),children:jsxRuntime.jsx(d.Body,{size:"lg",children:s})})},a8=({label:e="",details:t="",required:o=!0,previewOnly:r=!1})=>{let n=o3.useRef(),[s,a]=o3.useState(!1),[l,m]=o3.useState(!1),p=reactHookForm.useFormContext();p.register("city",{required:o});let c=web.useSpring(s?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});o3.useEffect(()=>{let x=h=>{s&&n.current&&!n.current.contains(h.target)&&a(!1);};return document.addEventListener("mousedown",h=>x(h)),()=>{document.removeEventListener("mousedown",h=>x(h));}},[s]);let g=p.getValues("city")?`${p.getValues("city")}, ${p.getValues("state")}`:"",{value:f,suggestions:{data:u,loading:b},setValue:w,clearSuggestions:Z}=X4__default.default({requestOptions:{types:["locality","postal_code"],componentRestrictions:{country:"us"}}});o3.useEffect(()=>{if(b){m(b);return}setTimeout(()=>{m(b);},2e3);},[b]);let E=web.useSpring(l?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),e1=x=>{w(x.target.value),p.setValue("city",null),p.setValue("state",null),p.trigger("city"),x.target.value.length>=3&&a(!0);},t1=x=>{w(x,!1),Z(),!(x.length<=2)&&X4.getGeocode({address:x}).then(h=>{let{city:C,state:y,lat:I1,long:I3}=i8(h[0]);p.setValue("city",C),p.setValue("state",y),p.setValue("lat",I1),p.setValue("long",I3),p.trigger("city");}).catch(h=>console.error(`Google Maps API error: ${h}`));},W=x=>{x.code==="Enter"&&x.preventDefault();};return jsxRuntime.jsxs(Y4,{children:[jsxRuntime.jsx(q4,{size:"lg",children:e}),t&&jsxRuntime.jsx(Q4,{children:t}),r?jsxRuntime.jsx(n8,{size:"md",children:g||"N/A"}):jsxRuntime.jsxs(j4,{children:[jsxRuntime.jsx(r8,{onKeyDown:W,value:f||g,onChange:x=>e1(x),type:"text"}),u.length>0&&jsxRuntime.jsx(e8,{style:c,ref:n,children:u.map(x=>jsxRuntime.jsx(s8,{handleSelect:t1,option:x,value:f},x.description))}),jsxRuntime.jsx(t8,{style:E,children:jsxRuntime.jsx(i2,{size:"sm"})})]})]})},k3=e=>{let{isLoaded:t}=api.useLoadScript({googleMapsApiKey:e.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return t?jsxRuntime.jsx(a8,{...e}):null};var p8=({label:e="",name:t,...o})=>{let{setValue:r}=reactHookForm.useFormContext(),n=i__default.default(d.Body)`
|
|
1334
1334
|
margin-bottom: 5px;
|
|
1335
1335
|
text-align: start;
|
|
1336
1336
|
`,s=i__default.default.div`
|
|
@@ -1419,14 +1419,14 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1419
1419
|
border: 0.766898px solid;
|
|
1420
1420
|
border-color: ${e=>e.isCurrent?"#285E50 !important":"#3f937c"};
|
|
1421
1421
|
background: ${e=>e.isCurrent?"#285E50 !important":"#FFF"};
|
|
1422
|
-
`,v8=({label:e="",name:t,details:o="",options:r=[],previewOnly:n=!1})=>{let s=o3.useRef(),a=reactHookForm.useFormContext(),[l,m]=o3.useState(!1),[p,c]=o3.useState(""),[g,f]=o3.useState(a.getValues(t)||[]),u=o3.useRef({search:p,keywords:g});o3.useEffect(()=>{u.current={search:p,keywords:g};},[p,g]);let[b,
|
|
1422
|
+
`,v8=({label:e="",name:t,details:o="",options:r=[],previewOnly:n=!1})=>{let s=o3.useRef(),a=reactHookForm.useFormContext(),[l,m]=o3.useState(!1),[p,c]=o3.useState(""),[g,f]=o3.useState(a.getValues(t)||[]),u=o3.useRef({search:p,keywords:g});o3.useEffect(()=>{u.current={search:p,keywords:g};},[p,g]);let[b,w]=o3.useState(r),Z=web.useSpring(l?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),E=r.find(C=>C===a.getValues(t)),e1=C=>{let y=[...u.current.keywords,C];c(""),f(y),a.setValue(t,y),m(!1);},t1=C=>C?C.charAt(0).toUpperCase()+C.slice(1).toLowerCase():"",W=()=>{if(!u.current.search)return;let C=t1(u.current.search);e1(C);};o3.useEffect(()=>{let C=y=>{l&&s.current&&!s.current.contains(y.target)&&(W(),m(!1));};return document.addEventListener("mousedown",y=>C(y)),()=>{document.removeEventListener("mousedown",y=>C(y));}},[l]);let x=C=>{C.code==="Enter"&&(W(),C.preventDefault());},h=C=>{let y=g.filter(I1=>I1!==C);f(y),c(""),a.setValue(t,y);};return o3.useEffect(()=>{if(m(!!p),p){let C=r.filter(y=>y.toLowerCase().match(p.toLowerCase()));w(C);}else w(r);},[p]),o3.useEffect(()=>{let C=r.filter(y=>!g.includes(y));w(C);},[g]),jsxRuntime.jsxs(f8,{children:[jsxRuntime.jsx(g8,{size:"lg",children:e}),o&&jsxRuntime.jsx(u8,{children:o}),!n&&jsxRuntime.jsxs(h8,{onClick:()=>m(!l),children:[jsxRuntime.jsx(z3,{}),E,jsxRuntime.jsx(y8,{onKeyDown:x,value:p,onChange:C=>c(C.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(x8,{style:Z,ref:s,children:[b.map(C=>{let y=C===E;return jsxRuntime.jsxs(_3,{onClick:()=>e1(C),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:C}),jsxRuntime.jsx(w8,{isCurrent:y,children:jsxRuntime.jsx(v.Check,{color:"#fff"})})]},C)}),!b.length&&jsxRuntime.jsx(_3,{onClick:()=>W(),children:jsxRuntime.jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[n&&g.length===0&&"N/A",g.map(C=>jsxRuntime.jsxs(b8,{onClick:()=>h(C),children:[C,!n&&jsxRuntime.jsx(H1,{})]},C))]})]})},E3=v8;var H8=({label:e=null,isLabelBold:t=!0,name:o,options:r={},...n})=>{let{control:s,formState:{errors:a}}=reactHookForm.useFormContext(),l=!!a[o],m=i__default.default(d.Body)`
|
|
1423
1423
|
margin-bottom: 5px;
|
|
1424
1424
|
font-weight: ${({isLabelBold:c})=>c?"bold":"regular"};
|
|
1425
1425
|
text-align: start;
|
|
1426
1426
|
`,p=i__default.default.div`
|
|
1427
1427
|
position: relative;
|
|
1428
1428
|
margin-bottom: 24px;
|
|
1429
|
-
`;return jsxRuntime.jsxs(p,{children:[e&&jsxRuntime.jsx(m,{size:"lg",isLabelBold:t,children:e}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:c})=>jsxRuntime.jsx(N1,{...n,...c,hasError:l}),name:o,control:s,...r}),l&&jsxRuntime.jsx(f1,{text:a[o]?.message?.toString(),includeIcon:!1})]})},P3=H8;var
|
|
1429
|
+
`;return jsxRuntime.jsxs(p,{children:[e&&jsxRuntime.jsx(m,{size:"lg",isLabelBold:t,children:e}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:c})=>jsxRuntime.jsx(N1,{...n,...c,hasError:l}),name:o,control:s,...r}),l&&jsxRuntime.jsx(f1,{text:a[o]?.message?.toString(),includeIcon:!1})]})},P3=H8;var _8={Container:d3,Checkbox:E1,CheckboxGroup:l3,DateSelect:P3,TextInput:s1,TimeSelect:V3,Radio:F1,RadioGroup:f3,CardRadioGroup:g3,Select:x3,Signature:m3,Submit:b3,LocationSelect:k3,Keyword:E3,Toggle:d2};var P8=i__default.default(web.animated.div)`
|
|
1430
1430
|
max-height: ${({size:e})=>(e||58)+24}px;
|
|
1431
1431
|
padding: 12px;
|
|
1432
1432
|
display: flex;
|
|
@@ -1440,25 +1440,25 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1440
1440
|
&:hover {
|
|
1441
1441
|
border-radius: 40px;
|
|
1442
1442
|
}
|
|
1443
|
-
`,
|
|
1443
|
+
`,D8=i__default.default(web.animated.div)`
|
|
1444
1444
|
display: flex;
|
|
1445
1445
|
flex-direction: column;
|
|
1446
1446
|
flex-wrap: wrap;
|
|
1447
1447
|
min-width: 180px;
|
|
1448
1448
|
max-width: 180px;
|
|
1449
1449
|
margin-left: 12px;
|
|
1450
|
-
`,
|
|
1450
|
+
`,O8=i__default.default.span`
|
|
1451
1451
|
font-weight: 700;
|
|
1452
1452
|
letter-spacing: 0.157px;
|
|
1453
1453
|
color: #1d4339;
|
|
1454
|
-
`,
|
|
1454
|
+
`,R8=i__default.default.p`
|
|
1455
1455
|
font-size: 10px;
|
|
1456
1456
|
letter-spacing: 0.157px;
|
|
1457
1457
|
text-align: left;
|
|
1458
1458
|
margin: 0;
|
|
1459
1459
|
line-height: 12px;
|
|
1460
1460
|
color: #1d4339;
|
|
1461
|
-
`,
|
|
1461
|
+
`,A8=({contentfulConfig:e,size:t=58})=>{let[o,r]=o3.useState(""),[n,s]=web.useSpring(()=>({from:{width:t+24,backgroundColor:"#fff",color:"#ffffff"}}));o3.useEffect(()=>{new i1(e).getImage("vanta-logo").then(f=>{r(f);});},[]);let[a,l]=web.useSpring(()=>({from:{opacity:0},delay:100})),m=f=>({width:f?198+t:t+24,backgroundColor:f?"#d4e2dd":"#fff"}),p=f=>({opacity:f?1:0}),c=()=>{s(m(!0)),l(p(!0));},g=()=>{s(m(!1)),l(p(!1));};return o?jsxRuntime.jsxs(P8,{style:n,onMouseEnter:c,onMouseLeave:g,size:t,children:[jsxRuntime.jsx("img",{alt:"Vanta Logo",src:o,height:t,width:t}),jsxRuntime.jsxs(D8,{style:a,children:[jsxRuntime.jsx(d.Body,{children:jsxRuntime.jsx(O8,{children:"Guaranteed Security"})}),jsxRuntime.jsx(d.Body,{size:"xs",children:jsxRuntime.jsx(R8,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},T8=A8;function f2({isActive:e,color:t="#000"}){let o=web.useSpring(e?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(v.Caret,{direction:"up",color:t})})}var N8=i__default.default(antd.Menu)`
|
|
1462
1462
|
.ant-menu-submenu {
|
|
1463
1463
|
background-color: #fff;
|
|
1464
1464
|
color: #555555 !important;
|
|
@@ -1498,12 +1498,16 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
1498
1498
|
background-color: #fff !important;
|
|
1499
1499
|
color: #000 !important;
|
|
1500
1500
|
}
|
|
1501
|
-
`,
|
|
1501
|
+
`,U8=({children:e,...t})=>jsxRuntime.jsx(N8,{...t,expandIcon:o=>jsxRuntime.jsx(f2,{isActive:o.isOpen,color:"#555555"}),children:e}),W8=({children:e,...t})=>jsxRuntime.jsx(antd.Menu.Item,{...t,children:e}),X8=e=>jsxRuntime.jsx(antd.Menu.Divider,{...e}),K8=({children:e,...t})=>jsxRuntime.jsx(antd.Menu.SubMenu,{...t,children:e}),J8={Container:U8,MenuDivider:X8,MenuItem:W8,SubMenuContainer:K8};
|
|
1502
1502
|
|
|
1503
1503
|
Object.defineProperty(exports, 'styled', {
|
|
1504
1504
|
enumerable: true,
|
|
1505
1505
|
get: function () { return i__default.default; }
|
|
1506
1506
|
});
|
|
1507
|
+
Object.defineProperty(exports, 'Controller', {
|
|
1508
|
+
enumerable: true,
|
|
1509
|
+
get: function () { return reactHookForm.Controller; }
|
|
1510
|
+
});
|
|
1507
1511
|
Object.defineProperty(exports, 'FormProvider', {
|
|
1508
1512
|
enumerable: true,
|
|
1509
1513
|
get: function () { return reactHookForm.FormProvider; }
|
|
@@ -1528,13 +1532,13 @@ exports.ContentfulLottieFileSlug = wt;
|
|
|
1528
1532
|
exports.DateSelect = N1;
|
|
1529
1533
|
exports.Drawer = Pe;
|
|
1530
1534
|
exports.ErrorTypography = f1;
|
|
1531
|
-
exports.Form =
|
|
1532
|
-
exports.Icons =
|
|
1535
|
+
exports.Form = _8;
|
|
1536
|
+
exports.Icons = v;
|
|
1533
1537
|
exports.LoadingSpinner = i2;
|
|
1534
1538
|
exports.LottieAnimation = Vt;
|
|
1535
1539
|
exports.Menu = g1;
|
|
1536
1540
|
exports.Modal = Ft;
|
|
1537
|
-
exports.NavigationMenu =
|
|
1541
|
+
exports.NavigationMenu = J8;
|
|
1538
1542
|
exports.NumberedProgressSteps = Go;
|
|
1539
1543
|
exports.Pill = ht;
|
|
1540
1544
|
exports.Progress = Ot;
|
|
@@ -1547,6 +1551,6 @@ exports.TimeSelect = p2;
|
|
|
1547
1551
|
exports.Toggle = d2;
|
|
1548
1552
|
exports.Tooltip = zo;
|
|
1549
1553
|
exports.Typography = d;
|
|
1550
|
-
exports.VantaLogo =
|
|
1554
|
+
exports.VantaLogo = T8;
|
|
1551
1555
|
//# sourceMappingURL=out.js.map
|
|
1552
1556
|
//# sourceMappingURL=index.cjs.map
|