@mailstep/design-system 0.7.58-beta.0 → 0.7.59-beta.0

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/ui/index.umd.js CHANGED
@@ -2780,7 +2780,7 @@ function print() { __p += __j.call(arguments, '') }
2780
2780
  & + * {
2781
2781
  margin-left: 1em;
2782
2782
  }
2783
- `,I7e=({title:e,isSortable:t,onSetSort:n,sortValue:r})=>{const i=C.useCallback(()=>{const o=r?r=="asc"?"desc":null:"asc";n&&n(o)},[r,n]);return p.jsxs("div",{onClick:t?i:void 0,className:t?"sortable":"",children:[p.jsx(S7e,{children:e}),t&&r==="asc"&&p.jsx(w7e,{width:"16"}),t&&r==="desc"&&p.jsx(x7e,{width:"16"})]})},sB=C.memo(I7e),E7e=Z.div`
2783
+ `,I7e=({title:e,isSortable:t,onSetSort:n,sortValue:r})=>{const[i,o]=C.useState(0),l=C.useCallback(()=>{o(Date.now())},[]),c=C.useCallback(()=>{Date.now()-i<200&&n&&n(r?r==="asc"?"desc":null:"asc"),o(0)},[i,n,r]);return p.jsxs("div",{onMouseDown:t?l:void 0,onMouseUp:t?c:void 0,className:t?"sortable":"",children:[p.jsx(S7e,{children:e}),t&&r==="asc"&&p.jsx(w7e,{width:"16"}),t&&r==="desc"&&p.jsx(x7e,{width:"16"})]})},sB=C.memo(I7e),E7e=Z.div`
2784
2784
  height: 100%;
2785
2785
  width: 7px;
2786
2786
  cursor: col-resize;
@@ -4033,13 +4033,13 @@ function print() { __p += __j.call(arguments, '') }
4033
4033
  align-items: center;
4034
4034
  justify-content: center;
4035
4035
  cursor: ${({disabled:e})=>e?"auto":"pointer"};
4036
- padding: 0 8px 12px;
4036
+ padding: 0 12px 12px;
4037
4037
  transition: 200ms;
4038
4038
  color: ${F.color("gray")};
4039
4039
  font-weight: bold;
4040
4040
  font-size: 14px;
4041
4041
  letter-spacing: 0.03em;
4042
- min-width: 100px;
4042
+ min-width: ${({minWidth:e})=>e?Array.isArray(e)?e[0]:e:"100px"};
4043
4043
 
4044
4044
  & > div {
4045
4045
  display: none;
@@ -4059,7 +4059,7 @@ function print() { __p += __j.call(arguments, '') }
4059
4059
  ${({active:e})=>e?Lj:""};
4060
4060
 
4061
4061
  @media (min-width: 400px) {
4062
- min-width: 120px;
4062
+ min-width: ${({minWidth:e})=>e?Array.isArray(e)?e[1]:e:"120px"};
4063
4063
  }
4064
4064
  `,_xe=Z.div`
4065
4065
  display: flex;
@@ -4080,7 +4080,7 @@ function print() { __p += __j.call(arguments, '') }
4080
4080
  background-color: ${F.color("bgLightGray1")};
4081
4081
  height: 2px;
4082
4082
  }
4083
- `,Zxe=({tabDefinition:e,value:t,isActive:n,onTabSwitch:r})=>{const{icon:i,label:o,badgeCount:l,disabled:c}=e,d=C.useCallback(()=>{r(t)},[r,t]);return p.jsx(zxe,{children:p.jsxs(Gxe,{onClick:c?void 0:d,active:n,disabled:c,children:[i&&p.jsx(Hxe,{children:p.jsx(ht,{icon:i})}),p.jsx(Gg,{children:o}),l===0||l&&l>0&&p.jsx(Wxe,{children:p.jsx(Gg,{variant:"medium",children:l})})]})})},Uxe=({tabsDefinition:e,activeTab:t,onTabSwitch:n,mb:r,mt:i})=>p.jsx(_xe,{$mb:r,$mt:i,children:e.map((o,l)=>p.jsx(Zxe,{value:l,tabDefinition:o,isActive:l===t,onTabSwitch:n},l))}),Yxe=({activeTab:e,value:t,children:n})=>e===t?n:null,Jxe=e=>{const t=e.map(l=>l.default).indexOf(!0),n=t===-1?0:t,[r,i]=C.useState(n),o=C.useCallback(l=>{i(l)},[]);return{activeTab:r,onTabSwitch:o}},Xxe=on(Re.div)`
4083
+ `,Zxe=({tabDefinition:e,value:t,isActive:n,onTabSwitch:r,minWidth:i})=>{const{icon:o,label:l,badgeCount:c,disabled:d}=e,f=C.useCallback(()=>{r(t)},[r,t]);return p.jsx(zxe,{children:p.jsxs(Gxe,{onClick:d?void 0:f,active:n,disabled:d,minWidth:i,children:[o&&p.jsx(Hxe,{children:p.jsx(ht,{icon:o})}),p.jsx(Gg,{children:l}),c===0||c&&c>0&&p.jsx(Wxe,{children:p.jsx(Gg,{variant:"medium",children:c})})]})})},Uxe=({tabsDefinition:e,activeTab:t,onTabSwitch:n,mb:r,mt:i,minTabWidth:o})=>p.jsx(_xe,{$mb:r,$mt:i,children:e.map((l,c)=>p.jsx(Zxe,{value:c,tabDefinition:l,isActive:c===t,minWidth:o,onTabSwitch:n},c))}),Yxe=({activeTab:e,value:t,children:n})=>e===t?n:null,Jxe=e=>{const t=e.map(l=>l.default).indexOf(!0),n=t===-1?0:t,[r,i]=C.useState(n),o=C.useCallback(l=>{i(l)},[]);return{activeTab:r,onTabSwitch:o}},Xxe=on(Re.div)`
4084
4084
  width: calc(100vw - 20px);
4085
4085
  display: flex;
4086
4086
  min-height: 48px;