@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.cjs +13 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var Vo__default = /*#__PURE__*/_interopDefault(Vo);
|
|
|
43
43
|
var x2__namespace = /*#__PURE__*/_interopNamespace(x2);
|
|
44
44
|
var j5__default = /*#__PURE__*/_interopDefault(j5);
|
|
45
45
|
|
|
46
|
-
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:
|
|
46
|
+
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={}})=>jsxRuntime.jsx(antd.ConfigProvider,{theme:{...yt,...t},children:e});var bt=({children:e,theme:t={}})=>jsxRuntime.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__default.default.p`
|
|
47
47
|
transition: font-size 0.25s;
|
|
48
48
|
color: ${e=>e.color||"#101010"};
|
|
49
49
|
font-family: ${({theme:e})=>e.typography.family.body};
|
|
@@ -391,12 +391,13 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
391
391
|
}
|
|
392
392
|
.szh-menu__item {
|
|
393
393
|
cursor: pointer;
|
|
394
|
+
line-height: normal;
|
|
394
395
|
}
|
|
395
396
|
.szh-menu__item:focus {
|
|
396
397
|
outline: none;
|
|
397
398
|
}
|
|
398
399
|
.szh-menu__item--hover {
|
|
399
|
-
background-color: #
|
|
400
|
+
background-color: #e9f0ee;
|
|
400
401
|
}
|
|
401
402
|
.szh-menu__item--focusable {
|
|
402
403
|
cursor: default;
|
|
@@ -437,6 +438,7 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
437
438
|
display: flex;
|
|
438
439
|
align-items: center;
|
|
439
440
|
position: relative;
|
|
441
|
+
line-height: normal;
|
|
440
442
|
padding: 1rem 1rem;
|
|
441
443
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
442
444
|
font-weight: 400;
|
|
@@ -535,35 +537,34 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
535
537
|
.szh-menu--state-opening.szh-menu--dir-left {
|
|
536
538
|
animation: szh-menu-show-slide-left 0.15s ease-out;
|
|
537
539
|
}
|
|
538
|
-
|
|
540
|
+
|
|
539
541
|
.szh-menu--state-closing.szh-menu--dir-left {
|
|
540
542
|
animation: szh-menu-hide-slide-left 0.15s ease-in forwards;
|
|
541
543
|
}
|
|
542
|
-
|
|
544
|
+
|
|
543
545
|
.szh-menu--state-opening.szh-menu--dir-right {
|
|
544
546
|
animation: szh-menu-show-slide-right 0.15s ease-out;
|
|
545
547
|
}
|
|
546
|
-
|
|
548
|
+
|
|
547
549
|
.szh-menu--state-closing.szh-menu--dir-right {
|
|
548
550
|
animation: szh-menu-hide-slide-right 0.15s ease-in forwards;
|
|
549
551
|
}
|
|
550
|
-
|
|
552
|
+
|
|
551
553
|
.szh-menu--state-opening.szh-menu--dir-top {
|
|
552
554
|
animation: szh-menu-show-slide-top 0.15s ease-out;
|
|
553
555
|
}
|
|
554
|
-
|
|
556
|
+
|
|
555
557
|
.szh-menu--state-closing.szh-menu--dir-top {
|
|
556
558
|
animation: szh-menu-hide-slide-top 0.15s ease-in forwards;
|
|
557
559
|
}
|
|
558
|
-
|
|
560
|
+
|
|
559
561
|
.szh-menu--state-opening.szh-menu--dir-bottom {
|
|
560
562
|
animation: szh-menu-show-slide-bottom 0.15s ease-out;
|
|
561
563
|
}
|
|
562
|
-
|
|
564
|
+
|
|
563
565
|
.szh-menu--state-closing.szh-menu--dir-bottom {
|
|
564
566
|
animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;
|
|
565
567
|
}
|
|
566
|
-
|
|
567
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`
|
|
568
569
|
padding: 0 20px;
|
|
569
570
|
border-radius: 10px;
|
|
@@ -576,10 +577,10 @@ var N={colors:{primary:"#1D4339",secondaryGreen:"#285E50",lightGreen:"#BED3CC",f
|
|
|
576
577
|
align-items: center;
|
|
577
578
|
box-sizing: border-box;
|
|
578
579
|
`;var P2=n__default.default(J.Container)`
|
|
579
|
-
max-width:
|
|
580
|
+
max-width: 140px;
|
|
580
581
|
`,V2=n__default.default(J.Item)`
|
|
581
582
|
&.szh-menu__item {
|
|
582
|
-
min-width:
|
|
583
|
+
min-width: 145px;
|
|
583
584
|
}
|
|
584
585
|
`;n__default.default(J.Divider)`
|
|
585
586
|
&.szh-menu__divider {
|