@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 +10 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -370,7 +370,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
370
370
|
outline: none;
|
|
371
371
|
}
|
|
372
372
|
.szh-menu__item--hover {
|
|
373
|
-
background-color: #
|
|
373
|
+
background-color: #e9f0ee;
|
|
374
374
|
}
|
|
375
375
|
.szh-menu__item--focusable {
|
|
376
376
|
cursor: default;
|
|
@@ -510,35 +510,34 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
510
510
|
.szh-menu--state-opening.szh-menu--dir-left {
|
|
511
511
|
animation: szh-menu-show-slide-left 0.15s ease-out;
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
|
|
514
514
|
.szh-menu--state-closing.szh-menu--dir-left {
|
|
515
515
|
animation: szh-menu-hide-slide-left 0.15s ease-in forwards;
|
|
516
516
|
}
|
|
517
|
-
|
|
517
|
+
|
|
518
518
|
.szh-menu--state-opening.szh-menu--dir-right {
|
|
519
519
|
animation: szh-menu-show-slide-right 0.15s ease-out;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
|
|
522
522
|
.szh-menu--state-closing.szh-menu--dir-right {
|
|
523
523
|
animation: szh-menu-hide-slide-right 0.15s ease-in forwards;
|
|
524
524
|
}
|
|
525
|
-
|
|
525
|
+
|
|
526
526
|
.szh-menu--state-opening.szh-menu--dir-top {
|
|
527
527
|
animation: szh-menu-show-slide-top 0.15s ease-out;
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
|
|
530
530
|
.szh-menu--state-closing.szh-menu--dir-top {
|
|
531
531
|
animation: szh-menu-hide-slide-top 0.15s ease-in forwards;
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
|
|
534
534
|
.szh-menu--state-opening.szh-menu--dir-bottom {
|
|
535
535
|
animation: szh-menu-show-slide-bottom 0.15s ease-out;
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
|
|
538
538
|
.szh-menu--state-closing.szh-menu--dir-bottom {
|
|
539
539
|
animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
|
|
540
540
|
}
|
|
541
|
-
|
|
542
541
|
`;function ve({isActive:e,color:t="#000"}){let o=useSpring(e?{transform:"rotate(0deg)",config:config.stiff}:{transform:"rotate(180deg)",config:config.stiff});return jsx(animated.div,{style:{...o,display:"flex",alignItems:"center"},children: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=useRef(null),[d,u]=useMenuState({transition:!0}),g=useClick(d.state,u),C=d.state==="open"||d.state==="opening";return useEffect(()=>{r(d.state);},[d.state]),jsx(Fragment,{children:jsxs(M2,{className:`${i} ${C?"menu-open":"menu-closed"}`,ref:m,...g,children:[jsx(S2,{children:t}),jsx(ve,{isActive:C,color:l}),jsx(ControlledMenu,{...d,anchorRef:m,onClose:()=>u(!1),onItemClick:o,onMenuChange:r,...a,...s,children:e})]})})},f1=({label:e,className:t=""})=>jsx(MenuButton,{className:t,children:e}),g1=({label:e,value:t,selected:o=!1,onClick:r=()=>null,disabled:i=!1,linkTo:s="",className:l=""})=>jsx(MenuItem,{className:`${l} ${o?"active":"inactive"}`,value:t,onClick:r,href:s,disabled:i,children:e}),u1=({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})}),C1=({children:e,className:t=""})=>jsx(MenuHeader,{className:t,children:e}),h1=({className:e=""})=>jsx(MenuDivider,{className:e}),J={Button:f1,Container:m1,Search:u1,Divider:h1,Header:C1,Item:g1};n.div`
|
|
543
542
|
padding: 0 20px;
|
|
544
543
|
border-radius: 10px;
|
|
@@ -551,10 +550,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
551
550
|
align-items: center;
|
|
552
551
|
box-sizing: border-box;
|
|
553
552
|
`;var P2=n(J.Container)`
|
|
554
|
-
max-width:
|
|
553
|
+
max-width: 140px;
|
|
555
554
|
`,V2=n(J.Item)`
|
|
556
555
|
&.szh-menu__item {
|
|
557
|
-
min-width:
|
|
556
|
+
min-width: 145px;
|
|
558
557
|
}
|
|
559
558
|
`;n(J.Divider)`
|
|
560
559
|
&.szh-menu__divider {
|