@solace-health/ui 0.9.40 → 0.9.41
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -219,7 +219,7 @@ var o1={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",
|
|
|
219
219
|
padding-top: 0;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
`,ze=e=>{let t=reactHookForm.get(e,"isActive",!1),o=web.useSpring(t?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:o,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},Be=({items:e,onChange:t=()=>null})=>{let o=Array.isArray(e)?e:[e];return jsxRuntime.jsx(Ze,{items:o,expandIcon:ze,defaultActiveKey:["1"],onChange:n=>t(n),expandIconPosition:"end"})},_e=Be;var Pe=({value:e=null,onChange:t,startRange:o=null,endRange:r=null,defaultValue:n=L1__default.default(),format:s=null,placeholder:a=null,className:l=null,hasError:m=!1})=>{let[d,c]=s3.useState(!1),g=u=>u?!!(o&&u<L1__default.default(o).endOf("day")||r&&u>L1__default.default(r).endOf("day")):!1,f=m?o1.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:l,placeholder:a,format:s,disabledDate:g,onChange:(u,b)=>{t&&t(b,u);},onFocus:()=>{c(!0);},onBlur:()=>{c(!1);},value:e?L1__default.default(e):n,style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d?o1.colors.secondaryGreen:f,padding:"20px 23px",backgroundColor:"#fff",fontFamily:o1.typography.family.body,fontWeight:o1.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:d?`0 0 0 1px ${o1.colors.secondaryGreen}`:"none"}})},U1=Pe;var Oe=({isOpen:e,onClose:t,children:o,title:r="",placement:n="bottom",headerStyle:s={display:"none"},...a})=>{let l=n==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32};return jsxRuntime.jsx(antd.Drawer,{style:l,headerStyle:s,title:r,placement:n,onClose:t,open:e,contentWrapperStyle:{...l},...a,children:o})},Ae=Oe;var M2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e,fill:"none",strokeMiterlimit:"10",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M8 12H16",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M12 16L12 8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var L2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4824 3.49935V4.8833H19.5883H19.59V4.88688C20.2552 4.88867 20.8581 5.16797 21.2934 5.62093C21.7253 6.07031 21.9948 6.69157 21.9965 7.37907H22V7.38265V20.5007V20.5024H21.9965C21.9948 21.1899 21.7253 21.8148 21.2882 22.2677C20.8546 22.7153 20.2552 22.9946 19.5918 22.9964V23H19.5883H8.92926H8.92753V22.9964C8.26414 22.9946 7.6595 22.7153 7.22415 22.2624C6.79226 21.813 6.52276 21.1917 6.52103 20.5042H6.51758V20.5007V17.5627H4.41168H4.40995V17.5591C3.74657 17.5573 3.14192 17.278 2.70657 16.825C2.27468 16.3757 2.00518 15.7544 2.00346 15.0669H2V15.0633V3.49935V3.49756H2.00346C2.00518 2.80827 2.27641 2.18343 2.71176 1.73226C3.14537 1.28467 3.74484 1.00537 4.40822 1.00358V1H4.41168H15.0707H15.0725V1.00358C15.7376 1.00537 16.3405 1.28467 16.7758 1.73763C17.2077 2.18701 17.4772 2.80827 17.479 3.49577H17.4824V3.49935ZM15.6547 4.8833V3.49935V3.49577H15.6581C15.6581 3.33285 15.5907 3.18245 15.4836 3.07145C15.3783 2.96224 15.2314 2.89242 15.0742 2.89242V2.896H15.0725H4.41341H4.40995V2.89242C4.25274 2.89242 4.10763 2.96224 4.00052 3.07324C3.89514 3.18245 3.82776 3.33464 3.82776 3.49756H3.83122V3.49935V15.0633V15.0669H3.82776C3.82776 15.2298 3.89514 15.3802 4.00225 15.4912C4.10763 15.6004 4.25447 15.6702 4.41168 15.6702V15.6667H4.41341H6.51931V7.38265V7.38086H6.52276C6.52449 6.69157 6.79572 6.06673 7.23106 5.61556C7.66468 5.16797 8.26414 4.88867 8.92753 4.88688V4.8833H8.93098H15.6547ZM20.1705 20.5007V7.38265V7.37907H20.174C20.174 7.21615 20.1066 7.06576 19.9995 6.95475C19.8941 6.84554 19.7473 6.77572 19.59 6.77572V6.7793H19.5883H8.92926H8.9258V6.77572C8.76859 6.77572 8.62348 6.84554 8.51637 6.95654C8.41099 7.06576 8.34361 7.21794 8.34361 7.38086H8.34707V7.38265V20.5007V20.5042H8.34361C8.34361 20.6672 8.41099 20.8175 8.5181 20.9285C8.62348 21.0378 8.77032 21.1076 8.92753 21.1076V21.104H8.92926H19.5883H19.5918V21.1076C19.749 21.1076 19.8941 21.0378 20.0012 20.9268C20.1066 20.8175 20.174 20.6654 20.174 20.5024H20.1705V20.5007Z",fill:e})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_737_13769",children:jsxRuntime.jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var k2=({color:e="#555555",direction:t="left"})=>jsxRuntime.jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${{left:"0deg",up:"90deg",right:"180deg",down:"270deg"}[t]})`},children:jsxRuntime.jsx("path",{d:"M8.33162 2.58137C8.72214 2.19085 8.72214 1.55769 8.33162 1.16716C7.94109 0.776637 7.30793 0.776637 6.91741 1.16716L0.792405 7.29216C0.401881 7.68269 0.401881 8.31585 0.792405 8.70637L6.91741 14.8314C7.30793 15.2219 7.94109 15.2219 8.33162 14.8314C8.72214 14.4409 8.72214 13.8077 8.33162 13.4172L2.91373 7.99927L8.33162 2.58137Z",fill:e})});var S2=()=>jsxRuntime.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{fill:"none",d:"M16.334 3.61865H4.66732C4.20708 3.61865 3.83398 3.99175 3.83398 4.45199V16.1187C3.83398 16.5789 4.20708 16.952 4.66732 16.952H16.334C16.7942 16.952 17.1673 16.5789 17.1673 16.1187V4.45199C17.1673 3.99175 16.7942 3.61865 16.334 3.61865Z",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var V2=i__default.default.div`
|
|
222
|
+
`,ze=e=>{let t=reactHookForm.get(e,"isActive",!1),o=web.useSpring(t?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:o,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},Be=({items:e,onChange:t=()=>null})=>{let o=Array.isArray(e)?e:[e];return jsxRuntime.jsx(Ze,{items:o,expandIcon:ze,defaultActiveKey:["1"],onChange:n=>t(n),expandIconPosition:"end"})},_e=Be;var Pe=({value:e=null,onChange:t,startRange:o=null,endRange:r=null,defaultValue:n=L1__default.default(),format:s=null,placeholder:a=null,className:l=null,hasError:m=!1})=>{let[d,c]=s3.useState(!1),g=u=>u?!!(o&&u<L1__default.default(o).endOf("day")||r&&u>L1__default.default(r).endOf("day")):!1,f=m?o1.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:l,placeholder:a,format:s,disabledDate:g,onChange:(u,b)=>{t&&t(b,u);},onFocus:()=>{c(!0);},onBlur:()=>{c(!1);},value:e?L1__default.default(e):n,style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d?o1.colors.secondaryGreen:f,padding:"20px 23px",backgroundColor:"#fff",fontFamily:o1.typography.family.body,fontWeight:o1.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:d?`0 0 0 1px ${o1.colors.secondaryGreen}`:"none"}})},U1=Pe;var Oe=({isOpen:e,onClose:t,children:o,title:r="",placement:n="bottom",headerStyle:s={display:"none"},...a})=>{let l=n==="bottom"?{borderTopLeftRadius:32,borderTopRightRadius:32}:{borderBottomLeftRadius:32,borderBottomRightRadius:32};return jsxRuntime.jsx(antd.Drawer,{style:l,headerStyle:s,title:r,placement:n,onClose:t,open:e,contentWrapperStyle:{...l},...a,children:o})},Ae=Oe;var M2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:e,fill:"none",strokeMiterlimit:"10",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M8 12H16",stroke:e,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M12 16L12 8",stroke:e,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});var L2=({color:e="#101010"})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{clipPath:"url(#clip0_737_13769)",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4824 3.49935V4.8833H19.5883H19.59V4.88688C20.2552 4.88867 20.8581 5.16797 21.2934 5.62093C21.7253 6.07031 21.9948 6.69157 21.9965 7.37907H22V7.38265V20.5007V20.5024H21.9965C21.9948 21.1899 21.7253 21.8148 21.2882 22.2677C20.8546 22.7153 20.2552 22.9946 19.5918 22.9964V23H19.5883H8.92926H8.92753V22.9964C8.26414 22.9946 7.6595 22.7153 7.22415 22.2624C6.79226 21.813 6.52276 21.1917 6.52103 20.5042H6.51758V20.5007V17.5627H4.41168H4.40995V17.5591C3.74657 17.5573 3.14192 17.278 2.70657 16.825C2.27468 16.3757 2.00518 15.7544 2.00346 15.0669H2V15.0633V3.49935V3.49756H2.00346C2.00518 2.80827 2.27641 2.18343 2.71176 1.73226C3.14537 1.28467 3.74484 1.00537 4.40822 1.00358V1H4.41168H15.0707H15.0725V1.00358C15.7376 1.00537 16.3405 1.28467 16.7758 1.73763C17.2077 2.18701 17.4772 2.80827 17.479 3.49577H17.4824V3.49935ZM15.6547 4.8833V3.49935V3.49577H15.6581C15.6581 3.33285 15.5907 3.18245 15.4836 3.07145C15.3783 2.96224 15.2314 2.89242 15.0742 2.89242V2.896H15.0725H4.41341H4.40995V2.89242C4.25274 2.89242 4.10763 2.96224 4.00052 3.07324C3.89514 3.18245 3.82776 3.33464 3.82776 3.49756H3.83122V3.49935V15.0633V15.0669H3.82776C3.82776 15.2298 3.89514 15.3802 4.00225 15.4912C4.10763 15.6004 4.25447 15.6702 4.41168 15.6702V15.6667H4.41341H6.51931V7.38265V7.38086H6.52276C6.52449 6.69157 6.79572 6.06673 7.23106 5.61556C7.66468 5.16797 8.26414 4.88867 8.92753 4.88688V4.8833H8.93098H15.6547ZM20.1705 20.5007V7.38265V7.37907H20.174C20.174 7.21615 20.1066 7.06576 19.9995 6.95475C19.8941 6.84554 19.7473 6.77572 19.59 6.77572V6.7793H19.5883H8.92926H8.9258V6.77572C8.76859 6.77572 8.62348 6.84554 8.51637 6.95654C8.41099 7.06576 8.34361 7.21794 8.34361 7.38086H8.34707V7.38265V20.5007V20.5042H8.34361C8.34361 20.6672 8.41099 20.8175 8.5181 20.9285C8.62348 21.0378 8.77032 21.1076 8.92753 21.1076V21.104H8.92926H19.5883H19.5918V21.1076C19.749 21.1076 19.8941 21.0378 20.0012 20.9268C20.1066 20.8175 20.174 20.6654 20.174 20.5024H20.1705V20.5007Z",fill:e})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_737_13769",children:jsxRuntime.jsx("rect",{width:"20",height:"22",fill:"white",transform:"translate(2 1)"})})})]});var k2=({color:e="#555555",direction:t="left"})=>jsxRuntime.jsx("svg",{width:"9",height:"16",viewBox:"0 0 9 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${{left:"0deg",up:"90deg",right:"180deg",down:"270deg"}[t]})`},children:jsxRuntime.jsx("path",{d:"M8.33162 2.58137C8.72214 2.19085 8.72214 1.55769 8.33162 1.16716C7.94109 0.776637 7.30793 0.776637 6.91741 1.16716L0.792405 7.29216C0.401881 7.68269 0.401881 8.31585 0.792405 8.70637L6.91741 14.8314C7.30793 15.2219 7.94109 15.2219 8.33162 14.8314C8.72214 14.4409 8.72214 13.8077 8.33162 13.4172L2.91373 7.99927L8.33162 2.58137Z",fill:e})});var S2=()=>jsxRuntime.jsxs("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{d:"M3.83398 6.95215H17.1673",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{fill:"none",d:"M16.334 3.61865H4.66732C4.20708 3.61865 3.83398 3.99175 3.83398 4.45199V16.1187C3.83398 16.5789 4.20708 16.952 4.66732 16.952H16.334C16.7942 16.952 17.1673 16.5789 17.1673 16.1187V4.45199C17.1673 3.99175 16.7942 3.61865 16.334 3.61865Z",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M13.834 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M7.16602 1.95264V3.6193",stroke:"#D7A13B",strokeWidth:"1.33424",strokeLinecap:"round",strokeLinejoin:"round"})]});var V2=i__default.default.div`
|
|
223
223
|
border-radius: 6px;
|
|
224
224
|
border: 1px solid #285e50;
|
|
225
225
|
background: ${({checked:e})=>e?"#285e50":"#fff"};
|