@solace-health/ui 0.3.18 → 0.3.19

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.js CHANGED
@@ -323,7 +323,7 @@ var C2=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(C2||{});var b1
323
323
  font-weight: 500;
324
324
  line-height: 30px;
325
325
  }
326
- `,M5=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:n=null,value:i})=>{let s=useFormContext(),[l,a]=useState(e);return useEffect(()=>{s&&s.setValue(t,i);},[]),useEffect(()=>{a(e);},[e]),jsxs(w5,{htmlFor:t,children:[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}),jsx(k5,{children:jsx(c.Body,{color:"#fff",children:l?r.active:r.inactive})})]})},p2=M5;var B5=o(c.Body)`
326
+ `,M5=({defaultState:e=!1,name:t,label:r={active:"YES",inactive:"NO"},handleEvent:n=null,value:i})=>{let s=useFormContext(),[l,a]=useState(e);return useEffect(()=>{s&&e&&s.setValue(t,i);},[]),useEffect(()=>{a(e);},[e]),jsxs(w5,{htmlFor:t,children:[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}),jsx(k5,{children:jsx(c.Body,{color:"#fff",children:l?r.active:r.inactive})})]})},p2=M5;var B5=o(c.Body)`
327
327
  margin-bottom: 5px;
328
328
  font-weight: ${({isLabelBold:e})=>e?"bold":"regular"};
329
329
  text-align: start;