@solace-health/ui 0.9.1 → 0.9.2

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 CHANGED
@@ -397,7 +397,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
397
397
  outline: none;
398
398
  }
399
399
  .szh-menu__item--hover {
400
- background-color: #E9F0EE;
400
+ background-color: #e9f0ee;
401
401
  }
402
402
  .szh-menu__item--focusable {
403
403
  cursor: default;
@@ -537,35 +537,34 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
537
537
  .szh-menu--state-opening.szh-menu--dir-left {
538
538
  animation: szh-menu-show-slide-left 0.15s ease-out;
539
539
  }
540
-
540
+
541
541
  .szh-menu--state-closing.szh-menu--dir-left {
542
542
  animation: szh-menu-hide-slide-left 0.15s ease-in forwards;
543
543
  }
544
-
544
+
545
545
  .szh-menu--state-opening.szh-menu--dir-right {
546
546
  animation: szh-menu-show-slide-right 0.15s ease-out;
547
547
  }
548
-
548
+
549
549
  .szh-menu--state-closing.szh-menu--dir-right {
550
550
  animation: szh-menu-hide-slide-right 0.15s ease-in forwards;
551
551
  }
552
-
552
+
553
553
  .szh-menu--state-opening.szh-menu--dir-top {
554
554
  animation: szh-menu-show-slide-top 0.15s ease-out;
555
555
  }
556
-
556
+
557
557
  .szh-menu--state-closing.szh-menu--dir-top {
558
558
  animation: szh-menu-hide-slide-top 0.15s ease-in forwards;
559
559
  }
560
-
560
+
561
561
  .szh-menu--state-opening.szh-menu--dir-bottom {
562
562
  animation: szh-menu-show-slide-bottom 0.15s ease-out;
563
563
  }
564
-
564
+
565
565
  .szh-menu--state-closing.szh-menu--dir-bottom {
566
566
  animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
567
567
  }
568
-
569
568
  `;function ve({isActive:e,color:t="#000"}){let o=web.useSpring(e?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:{...o,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(R.Caret,{direction:"up",color:t})})}var m1=({children:e,cta:t,onItemClick:o=()=>null,onMenuChange:r=()=>null,className:i="",menuProps:s={menuButton:null},caretColor:l="#000"})=>{let a={overflow:"auto",position:"archor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},m=D2.useRef(null),[d,u]=reactMenu.useMenuState({transition:!0}),g=reactMenu.useClick(d.state,u),C=d.state==="open"||d.state==="opening";return D2.useEffect(()=>{r(d.state);},[d.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(M2,{className:`${i} ${C?"menu-open":"menu-closed"}`,ref:m,...g,children:[jsxRuntime.jsx(S2,{children:t}),jsxRuntime.jsx(ve,{isActive:C,color:l}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...d,anchorRef:m,onClose:()=>u(!1),onItemClick:o,onMenuChange:r,...a,...s,children:e})]})})},f1=({label:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:t,children:e}),g1=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:l=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${l} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),u1=({value:e,onChange:t=()=>null,className:o=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:r})=>jsxRuntime.jsx("input",{className:o,ref:r,type:"text",placeholder:"Type to filter",value:e,onChange:t})}),C1=({children:e,className:t=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:t,children:e}),h1=({className:e=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:e}),J={Button:f1,Container:m1,Search:u1,Divider:h1,Header:C1,Item:g1};n__default.default.div`
570
569
  padding: 0 20px;
571
570
  border-radius: 10px;
@@ -578,10 +577,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
578
577
  align-items: center;
579
578
  box-sizing: border-box;
580
579
  `;var P2=n__default.default(J.Container)`
581
- max-width: 135px;
580
+ max-width: 140px;
582
581
  `,V2=n__default.default(J.Item)`
583
582
  &.szh-menu__item {
584
- min-width: 140px;
583
+ min-width: 145px;
585
584
  }
586
585
  `;n__default.default(J.Divider)`
587
586
  &.szh-menu__divider {