@solace-health/ui 0.8.3 → 0.8.5

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
@@ -314,7 +314,6 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
314
314
  font-size: 18px;
315
315
  font-weight: 700;
316
316
  color: #285e50;
317
- align-items: center;
318
317
  gap: 12px;
319
318
 
320
319
  .szh-menu {
@@ -449,7 +448,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
449
448
  padding: 0.2rem 1.5rem;
450
449
  text-transform: uppercase;
451
450
  }
452
- `;function ke({isActive:e}){let t=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...t},children:jsx(z.Caret,{direction:"up"})})}var x1=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:a={menuButton:null},caretColor:l="#285E50"})=>{let s={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0},c=useRef(null),[m,y]=useMenuState({transition:!0}),f=useClick(m.state,y),h=m.state==="open"||m.state==="opening";return useEffect(()=>{r(m.state);},[m.state]),jsx(Fragment,{children:jsxs(z2,{className:`${i} ${h?"menu-open":"menu-closed"}`,ref:c,...f,children:[jsx("div",{children:t}),jsx(ke,{isActive:h}),jsx(ControlledMenu,{...m,anchorRef:c,onClose:()=>y(!1),onItemClick:o,onMenuChange:r,...s,...a,children:e})]})})},b1=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),w1=({label:e,value:t,onClick:o=()=>null,disabled:r=!1,linkTo:i="",className:a=""})=>jsx(MenuItem,{className:a,value:t,onClick:o,href:i,disabled:r,children:e}),v1=({value:e,onChange:t=()=>null,className:o=""})=>jsx(FocusableItem,{children:({ref:r})=>jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),k1=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),L1=({className:e=""})=>jsx(MenuDivider,{className:e}),J={Button:b1,Container:x1,Search:v1,Divider:L1,Header:k1,Item:w1};var z1=keyframes`
451
+ `;function ke({isActive:e}){let t=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...t,display:"flex",alignItems:"center"},children:jsx(z.Caret,{direction:"up"})})}var x1=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:a={menuButton:null},caretColor:l="#285E50"})=>{let s={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0},c=useRef(null),[m,y]=useMenuState({transition:!0}),f=useClick(m.state,y),h=m.state==="open"||m.state==="opening";return useEffect(()=>{r(m.state);},[m.state]),jsx(Fragment,{children:jsxs(z2,{className:`${i} ${h?"menu-open":"menu-closed"}`,ref:c,...f,children:[jsx("div",{children:t}),jsx(ke,{isActive:h}),jsx(ControlledMenu,{...m,anchorRef:c,onClose:()=>y(!1),onItemClick:o,onMenuChange:r,...s,...a,children:e})]})})},b1=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),w1=({label:e,value:t,onClick:o=()=>null,disabled:r=!1,linkTo:i="",className:a=""})=>jsx(MenuItem,{className:a,value:t,onClick:o,href:i,disabled:r,children:e}),v1=({value:e,onChange:t=()=>null,className:o=""})=>jsx(FocusableItem,{children:({ref:r})=>jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),k1=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),L1=({className:e=""})=>jsx(MenuDivider,{className:e}),J={Button:b1,Container:x1,Search:v1,Divider:L1,Header:k1,Item:w1};var z1=keyframes`
453
452
  from {
454
453
  opacity: 0;
455
454
  }