@solace-health/ui 0.9.0 → 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.js CHANGED
@@ -16,7 +16,7 @@ import { IMaskMixin } from 'react-imask';
16
16
  import j5, { getGeocode } from 'use-places-autocomplete';
17
17
  import { useLoadScript } from '@react-google-maps/api';
18
18
 
19
- var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",fail:"#ff0000",gray:"#f3f3f3"},breakpoint:{small:"500px",medium:"800px",large:"1200px"},typography:{family:{body:"Lato, helvetica, sans-serif",heading:"'Mollie Glaston', serif",subHeading:"'Cinzel', sans-serif",script:"'Dancing Script', sans-serif"},weight:{normal:400,medium:500,semiBold:600,bold:700}}},yt={components:{Switch:{handleSize:24,trackHeight:28,trackMinWidth:67},Tabs:{inkBarColor:"#285E50",itemActiveColor:"#285E50",itemSelectedColor:"#285E50",itemHoverColor:"#285E50",titleFontSize:16,colorBorderSecondary:"#AFC8BF"},Segmented:{fontSize:16,borderRadius:4,controlHeight:36,controlHeightSM:30,controlHeightLG:40,itemColor:"#555555",itemActiveBg:"rgba(0, 0, 0, 0)",itemSelectedBg:"#fff",itemHoverBg:"rgba(212, 226, 221, 0.2)",colorBgLayout:"rgb(233, 240, 238)",itemHoverColor:"rgb(85, 85, 85)",itemSelectedColor:"#555555"},Collapse:{headerBg:"rgb(255, 255, 255)",colorBorder:"rgb(175, 200, 191)",colorFillAlter:"rgb(255, 255, 255)",fontSize:18,padding:20,contentPadding:"0px 16px 16px",headerPadding:"25px 16px",borderRadiusLG:10}},token:{colorInfo:"#285E50",colorLink:"#285E50",colorWarning:"#D7A13B",colorError:"#EE2932",colorPrimary:"#285E50",colorPrimaryActive:"#1D4339",fontFamily:"Lato, helvetica, sans-serif",fontSize:16,fontSizeSM:14,fontSizeLG:18,borderRadius:8,borderRadiusLG:20,colorBgMask:"rgba(0, 0, 0, 0.2)"}},xt=({children:e,theme:t={}})=>jsx(ConfigProvider,{theme:{...yt,...t},children:e});var bt=({children:e,theme:t={}})=>jsx(xt,{theme:t,children:e});var Be=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(Be||{});var wt=n.p`
19
+ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",fail:"#ff0000",gray:"#f3f3f3"},breakpoint:{small:"500px",medium:"800px",large:"1200px"},typography:{family:{body:"Lato, helvetica, sans-serif",heading:"'Mollie Glaston', serif",subHeading:"'Cinzel', sans-serif",script:"'Dancing Script', sans-serif"},weight:{normal:400,medium:500,semiBold:600,bold:700}}},yt={components:{Switch:{handleSize:24,trackHeight:28,trackMinWidth:67},Tabs:{inkBarColor:"#285E50",itemActiveColor:"#285E50",itemSelectedColor:"#285E50",itemHoverColor:"#285E50",titleFontSize:16,colorBorderSecondary:"#AFC8BF"},Segmented:{fontSize:16,borderRadius:6,borderRadiusXS:6,controlHeight:36,controlHeightSM:30,controlHeightLG:40,itemColor:"#555555",itemActiveBg:"rgba(0, 0, 0, 0)",itemSelectedBg:"#fff",itemHoverBg:"rgba(212, 226, 221, 0.2)",colorBgLayout:"rgb(233, 240, 238)",itemHoverColor:"rgb(85, 85, 85)",itemSelectedColor:"#555555"},Collapse:{headerBg:"rgb(255, 255, 255)",colorBorder:"rgb(175, 200, 191)",colorFillAlter:"rgb(255, 255, 255)",fontSize:18,padding:20,contentPadding:"0px 16px 16px",headerPadding:"25px 16px",borderRadiusLG:10}},token:{colorInfo:"#285E50",colorLink:"#285E50",colorWarning:"#D7A13B",colorError:"#EE2932",colorPrimary:"#285E50",colorPrimaryActive:"#1D4339",fontFamily:"Lato, helvetica, sans-serif",fontSize:16,fontSizeSM:14,fontSizeLG:18,borderRadius:8,borderRadiusLG:20,colorBgMask:"rgba(0, 0, 0, 0.2)"}},xt=({children:e,theme:t={}})=>jsx(ConfigProvider,{theme:{...yt,...t},children:e});var bt=({children:e,theme:t={}})=>jsx(xt,{theme:t,children:e});var Be=(s=>(s.XL="xl",s.LG="lg",s.MD="md",s.SM="sm",s.XS="xs",s))(Be||{});var wt=n.p`
20
20
  transition: font-size 0.25s;
21
21
  color: ${e=>e.color||"#101010"};
22
22
  font-family: ${({theme:e})=>e.typography.family.body};
@@ -364,12 +364,13 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
364
364
  }
365
365
  .szh-menu__item {
366
366
  cursor: pointer;
367
+ line-height: normal;
367
368
  }
368
369
  .szh-menu__item:focus {
369
370
  outline: none;
370
371
  }
371
372
  .szh-menu__item--hover {
372
- background-color: #E9F0EE;
373
+ background-color: #e9f0ee;
373
374
  }
374
375
  .szh-menu__item--focusable {
375
376
  cursor: default;
@@ -410,6 +411,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
410
411
  display: flex;
411
412
  align-items: center;
412
413
  position: relative;
414
+ line-height: normal;
413
415
  padding: 1rem 1rem;
414
416
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
415
417
  font-weight: 400;
@@ -508,35 +510,34 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
508
510
  .szh-menu--state-opening.szh-menu--dir-left {
509
511
  animation: szh-menu-show-slide-left 0.15s ease-out;
510
512
  }
511
-
513
+
512
514
  .szh-menu--state-closing.szh-menu--dir-left {
513
515
  animation: szh-menu-hide-slide-left 0.15s ease-in forwards;
514
516
  }
515
-
517
+
516
518
  .szh-menu--state-opening.szh-menu--dir-right {
517
519
  animation: szh-menu-show-slide-right 0.15s ease-out;
518
520
  }
519
-
521
+
520
522
  .szh-menu--state-closing.szh-menu--dir-right {
521
523
  animation: szh-menu-hide-slide-right 0.15s ease-in forwards;
522
524
  }
523
-
525
+
524
526
  .szh-menu--state-opening.szh-menu--dir-top {
525
527
  animation: szh-menu-show-slide-top 0.15s ease-out;
526
528
  }
527
-
529
+
528
530
  .szh-menu--state-closing.szh-menu--dir-top {
529
531
  animation: szh-menu-hide-slide-top 0.15s ease-in forwards;
530
532
  }
531
-
533
+
532
534
  .szh-menu--state-opening.szh-menu--dir-bottom {
533
535
  animation: szh-menu-show-slide-bottom 0.15s ease-out;
534
536
  }
535
-
537
+
536
538
  .szh-menu--state-closing.szh-menu--dir-bottom {
537
539
  animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
538
540
  }
539
-
540
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`
541
542
  padding: 0 20px;
542
543
  border-radius: 10px;
@@ -549,10 +550,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
549
550
  align-items: center;
550
551
  box-sizing: border-box;
551
552
  `;var P2=n(J.Container)`
552
- max-width: 110px;
553
+ max-width: 140px;
553
554
  `,V2=n(J.Item)`
554
555
  &.szh-menu__item {
555
- min-width: 115px;
556
+ min-width: 145px;
556
557
  }
557
558
  `;n(J.Divider)`
558
559
  &.szh-menu__divider {