@solace-health/ui 0.10.113 → 0.10.114
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 +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1888,12 +1888,6 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1888
1888
|
height: 4rem;
|
|
1889
1889
|
}
|
|
1890
1890
|
|
|
1891
|
-
&:hover {
|
|
1892
|
-
border-color: ${C=>C.selected?"#285E50":"transparent"};
|
|
1893
|
-
background: var(--color-opal-greens-super-light, #f4f8f7);
|
|
1894
|
-
box-shadow: 1.57px 1.57px 15.7px 0px #d4e2dd;
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
1891
|
${C=>C.selected&&`
|
|
1898
1892
|
border-color: var(--colors-borders-border-focused, #285E50);
|
|
1899
1893
|
background: var(--color-opal-greens-lily-white, #E9F0EE);
|
|
@@ -1903,11 +1897,28 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1903
1897
|
position: absolute;
|
|
1904
1898
|
appearance: none;
|
|
1905
1899
|
opacity: 0;
|
|
1900
|
+
width: 100%;
|
|
1901
|
+
height: 100%;
|
|
1902
|
+
z-index: 2;
|
|
1903
|
+
cursor: pointer;
|
|
1904
|
+
|
|
1905
|
+
&:hover + label {
|
|
1906
|
+
border-color: ${C=>C.selected?"#285E50":"transparent"};
|
|
1907
|
+
background: var(--color-opal-greens-super-light, #f4f8f7);
|
|
1908
|
+
box-shadow: 1.57px 1.57px 15.7px 0px #d4e2dd;
|
|
1909
|
+
}
|
|
1906
1910
|
|
|
1907
1911
|
&:focus + label {
|
|
1908
1912
|
border-color: #285e50;
|
|
1909
1913
|
outline: 1px solid #285e50;
|
|
1910
1914
|
}
|
|
1915
|
+
|
|
1916
|
+
&:after {
|
|
1917
|
+
content: "";
|
|
1918
|
+
display: block;
|
|
1919
|
+
width: 100%;
|
|
1920
|
+
height: 100%;
|
|
1921
|
+
}
|
|
1911
1922
|
`,uC=I__default.default.span`
|
|
1912
1923
|
font-family: Lato;
|
|
1913
1924
|
font-size: 1.5rem;
|
|
@@ -1923,7 +1934,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1923
1934
|
display: flex;
|
|
1924
1935
|
flex-flow: column;
|
|
1925
1936
|
gap: var(--spacing-m, 1rem);
|
|
1926
|
-
`;var j3=({option:C,name:e,inline:t,previewOnly:o=!1,hasError:L=!1,formOptions:r={},...n})=>{let{register:i}=reactHookForm.useFormContext();return jsxRuntime.jsxs(nC,{inline:t,children:[jsxRuntime.jsx(iC,{type:"radio",...i(e,r),value:C.value,previewOnly:o,disabled:o,hasError:L,...n}),jsxRuntime.jsx("label",{htmlFor:e,children:jsxRuntime.jsx(v.Body,{children:C.label})})]})},xC=({name:C,label:e,details:t="",options:o=[],inline:L=!1,allowOther:r=!1,previewOnly:n=!1,formOptions:i={},errorMessage:s=void 0,...a})=>{let{formState:{errors:l}}=reactHookForm.useFormContext(),p=!!l?.[C];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(X,{label:e,required:!!i.required,isLabelBold:!0,details:t}),jsxRuntime.jsxs(rC,{inline:L,isColumns:o.length>5,children:[o.map(c=>jsxRuntime.jsx(j3,{option:c,name:C,inline:L,previewOnly:n,formOptions:i,...a,hasError:p},`${C}-${c.value}`)),r&&jsxRuntime.jsxs(sC,{children:[jsxRuntime.jsx(j3,{option:{label:"Other",value:"other"},name:C,inline:L,...a},C),jsxRuntime.jsx(e1,{name:`${C}_other`,...a})]})]}),p&&jsxRuntime.jsx(K,{text:s,includeIcon:!1})]})},Ks=({option:C,name:e,formOptions:t})=>{let{register:o,watch:L,formState:r}=reactHookForm.useFormContext(),n=L(e)===C.value;return jsxRuntime.jsxs(aC,{selected:n,hasError:!!r.errors[e],children:[jsxRuntime.jsxs(lC,{children:[jsxRuntime.jsxs(dC,{selected:n,children:[C.icon||null,C.label]}),jsxRuntime.jsx(pC,{type:"radio",value:C.value,...o(e,t)})]}),jsxRuntime.jsx(fC,{selected:n,children:C.description})]})},yC=({name:C,label:e=null,className:t="",options:o,formOptions:L={},id:r=""})=>jsxRuntime.jsxs(y4,{className:t,id:r,children:[e&&jsxRuntime.jsx(w4,{size:"lg",children:e}),jsxRuntime.jsx("div",{children:o.map(n=>jsxRuntime.jsx(Ks,{option:n,name:C,formOptions:L},`${n.label}-${n.value}`))})]}),js=({option:C,name:e,formOptions:t,onClick:o=void 0})=>{let{register:L,watch:r}=reactHookForm.useFormContext(),n=r(e)===C.value,[i,s]=Fi.useState(!1),a=g5[C.icon];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(gC,{type:"radio",onClick:l=>o?o(l.currentTarget.value):null,value:C.value,...L(e,t)
|
|
1937
|
+
`;var j3=({option:C,name:e,inline:t,previewOnly:o=!1,hasError:L=!1,formOptions:r={},...n})=>{let{register:i}=reactHookForm.useFormContext();return jsxRuntime.jsxs(nC,{inline:t,children:[jsxRuntime.jsx(iC,{type:"radio",...i(e,r),value:C.value,previewOnly:o,disabled:o,hasError:L,...n}),jsxRuntime.jsx("label",{htmlFor:e,children:jsxRuntime.jsx(v.Body,{children:C.label})})]})},xC=({name:C,label:e,details:t="",options:o=[],inline:L=!1,allowOther:r=!1,previewOnly:n=!1,formOptions:i={},errorMessage:s=void 0,...a})=>{let{formState:{errors:l}}=reactHookForm.useFormContext(),p=!!l?.[C];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(X,{label:e,required:!!i.required,isLabelBold:!0,details:t}),jsxRuntime.jsxs(rC,{inline:L,isColumns:o.length>5,children:[o.map(c=>jsxRuntime.jsx(j3,{option:c,name:C,inline:L,previewOnly:n,formOptions:i,...a,hasError:p},`${C}-${c.value}`)),r&&jsxRuntime.jsxs(sC,{children:[jsxRuntime.jsx(j3,{option:{label:"Other",value:"other"},name:C,inline:L,...a},C),jsxRuntime.jsx(e1,{name:`${C}_other`,...a})]})]}),p&&jsxRuntime.jsx(K,{text:s,includeIcon:!1})]})},Ks=({option:C,name:e,formOptions:t})=>{let{register:o,watch:L,formState:r}=reactHookForm.useFormContext(),n=L(e)===C.value;return jsxRuntime.jsxs(aC,{selected:n,hasError:!!r.errors[e],children:[jsxRuntime.jsxs(lC,{children:[jsxRuntime.jsxs(dC,{selected:n,children:[C.icon||null,C.label]}),jsxRuntime.jsx(pC,{type:"radio",value:C.value,...o(e,t)})]}),jsxRuntime.jsx(fC,{selected:n,children:C.description})]})},yC=({name:C,label:e=null,className:t="",options:o,formOptions:L={},id:r=""})=>jsxRuntime.jsxs(y4,{className:t,id:r,children:[e&&jsxRuntime.jsx(w4,{size:"lg",children:e}),jsxRuntime.jsx("div",{children:o.map(n=>jsxRuntime.jsx(Ks,{option:n,name:C,formOptions:L},`${n.label}-${n.value}`))})]}),js=({option:C,name:e,formOptions:t,onClick:o=void 0})=>{let{register:L,watch:r}=reactHookForm.useFormContext(),n=r(e)===C.value,[i,s]=Fi.useState(!1),a=g5[C.icon];return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(gC,{type:"radio",onClick:l=>o?o(l.currentTarget.value):null,value:C.value,...L(e,t),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1)}),jsxRuntime.jsxs(cC,{selected:n,children:[jsxRuntime.jsx(a,{active:n||i}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(uC,{children:C.label}),C?.description&&jsxRuntime.jsx(mC,{children:C.description})]})]})]})},wC=({name:C,label:e=null,className:t="",options:o,onClick:L=void 0,formOptions:r={}})=>jsxRuntime.jsxs(y4,{className:t,children:[e&&jsxRuntime.jsx(w4,{size:"lg",children:e}),jsxRuntime.jsx(hC,{children:o.map(n=>jsxRuntime.jsx(js,{option:n,name:C,onClick:L,formOptions:r},`${n.label}-${n.value}`))})]});var vC=I__default.default.div`
|
|
1927
1938
|
position: relative;
|
|
1928
1939
|
margin-bottom: 24px;
|
|
1929
1940
|
z-index: 40;
|