@solace-health/ui 0.3.14 → 0.3.16
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 +2 -2
package/dist/index.cjs
CHANGED
|
@@ -348,7 +348,7 @@ var C2=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(C2||{});var b1
|
|
|
348
348
|
font-weight: 500;
|
|
349
349
|
line-height: 30px;
|
|
350
350
|
}
|
|
351
|
-
`,M5=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:n=null,value:i})=>{let s=reactHookForm.useFormContext(),[l,a]=react.useState(e);return react.useEffect(()=>{s&&s.setValue(t,i);},[]),react.useEffect(()=>{a(e);},[e]),jsxRuntime.jsxs(w5,{htmlFor:t,children:[jsxRuntime.jsx(v5,{type:"checkbox",
|
|
351
|
+
`,M5=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:n=null,value:i})=>{let s=reactHookForm.useFormContext(),[l,a]=react.useState(e);return react.useEffect(()=>{s&&s.setValue(t,i);},[]),react.useEffect(()=>{a(e);},[e]),jsxRuntime.jsxs(w5,{htmlFor:t,children:[jsxRuntime.jsx(v5,{type:"checkbox",checked:l,onClick:p=>{a(!l),s&&s.setValue(t,p.target.value),n&&n(p.target.value);},id:t,name:t,value:i}),jsxRuntime.jsx(k5,{children:jsxRuntime.jsx(c.Body,{color:"#fff",children:l?r.active:r.inactive})})]})},p2=M5;var B5=o__default.default(c.Body)`
|
|
352
352
|
margin-bottom: 5px;
|
|
353
353
|
font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
|
|
354
354
|
text-align: start;
|