@mailstep/design-system 0.6.22 → 0.6.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.22",
3
+ "version": "0.6.23",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -12,17 +12,17 @@ var Arrow = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObj
12
12
  return (verticalShift ? 'calc(50% + 70px)' : 'calc(50%)');
13
13
  }, ArrowInnerA, ArrowInnerB, th.color('white'));
14
14
  var StyledDropdownWrap = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n\n ", "\n\n width: fit-content;\n height: fit-content;\n display: block;\n z-index: 1;\n\n ", " {\n display: ", ";\n }\n"], ["\n position: absolute;\n\n ", "\n\n width: fit-content;\n height: fit-content;\n display: block;\n z-index: 1;\n\n ", " {\n display: ", ";\n }\n"])), function (_a) {
15
- var customDropdownPosition = _a.customDropdownPosition, verticalShift = _a.verticalShift;
15
+ var customDropdownPosition = _a.customDropdownPosition;
16
16
  return customDropdownPosition
17
17
  ? customDropdownPosition
18
- : "\n top: 100%;\n left: ".concat(verticalShift ? 'calc(50% - 72px)' : 'calc(50%)', ";\n transform: translate(-50%, 0);\n ");
18
+ : "\n top: 100%;\n right: 0;\n ";
19
19
  }, Arrow, function (_a) {
20
20
  var showArrow = _a.showArrow;
21
21
  return (showArrow ? 'block' : 'none');
22
22
  });
23
23
  var Dropdown = function (_a) {
24
24
  var show = _a.show, className = _a.className, wrapRef = _a.wrapRef, children = _a.children, showArrow = _a.showArrow, verticalShift = _a.verticalShift, customDropdownPosition = _a.customDropdownPosition;
25
- return (_jsx(_Fragment, { children: show && (_jsxs(StyledDropdownWrap, { ref: wrapRef, className: className, showArrow: showArrow, verticalShift: verticalShift, customDropdownPosition: customDropdownPosition, children: [_jsx(Arrow, { verticalShift: verticalShift, children: _jsx(ArrowInnerA, { children: _jsx(ArrowInnerB, {}) }) }), children] })) }));
25
+ return (_jsx(_Fragment, { children: show && (_jsxs(StyledDropdownWrap, { ref: wrapRef, className: className, showArrow: showArrow, customDropdownPosition: customDropdownPosition, children: [_jsx(Arrow, { verticalShift: verticalShift, children: _jsx(ArrowInnerA, { children: _jsx(ArrowInnerB, {}) }) }), children] })) }));
26
26
  };
27
27
  export default Dropdown;
28
28
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import styled, { css } from '@xstyled/styled-components';
7
- var StyledListItem = styled.li(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 10px;\n font-size: 12px;\n color: typoPrimary;\n font-weight: normal;\n\n :hover {\n background-color: bgLightGray1;\n cursor: pointer;\n }\n\n ", ";\n"], ["\n padding: 10px;\n font-size: 12px;\n color: typoPrimary;\n font-weight: normal;\n\n :hover {\n background-color: bgLightGray1;\n cursor: pointer;\n }\n\n ", ";\n"])), function (props) {
7
+ var StyledListItem = styled.li(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 8px 10px;\n font-size: 14px;\n color: typoPrimary;\n font-weight: normal;\n\n :hover {\n background-color: bgLightGray1;\n cursor: pointer;\n }\n\n ", ";\n"], ["\n padding: 8px 10px;\n font-size: 14px;\n color: typoPrimary;\n font-weight: normal;\n\n :hover {\n background-color: bgLightGray1;\n cursor: pointer;\n }\n\n ", ";\n"])), function (props) {
8
8
  return props.hasSeparator && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-top: slim;\n border-color: lightGray2;\n "], ["\n border-top: slim;\n border-color: lightGray2;\n "])));
9
9
  });
10
10
  var IconWrap = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-right: 10px;\n"], ["\n margin-right: 10px;\n"])));
package/ui/index.es.js CHANGED
@@ -17068,12 +17068,10 @@ const jle = Ti(ht.div)`
17068
17068
  position: absolute;
17069
17069
 
17070
17070
  ${({
17071
- customDropdownPosition: e,
17072
- verticalShift: t
17071
+ customDropdownPosition: e
17073
17072
  }) => e || `
17074
17073
  top: 100%;
17075
- left: ${t ? "calc(50% - 72px)" : "calc(50%)"};
17076
- transform: translate(-50%, 0);
17074
+ right: 0;
17077
17075
  `}
17078
17076
 
17079
17077
  width: fit-content;
@@ -17094,7 +17092,7 @@ const jle = Ti(ht.div)`
17094
17092
  showArrow: i,
17095
17093
  verticalShift: o,
17096
17094
  customDropdownPosition: l
17097
- }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: e && /* @__PURE__ */ b.jsxs(due, { ref: r, className: t, showArrow: i, verticalShift: o, customDropdownPosition: l, children: [
17095
+ }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: e && /* @__PURE__ */ b.jsxs(due, { ref: r, className: t, showArrow: i, customDropdownPosition: l, children: [
17098
17096
  /* @__PURE__ */ b.jsx(K_, { verticalShift: o, children: /* @__PURE__ */ b.jsx(Q_, { children: /* @__PURE__ */ b.jsx(q_, {}) }) }),
17099
17097
  n
17100
17098
  ] }) }), fue = Ot`
@@ -45200,8 +45198,8 @@ const USe = (e = {}, t) => cwe(e, (r) => {
45200
45198
  ItemComponent: t,
45201
45199
  onClose: r
45202
45200
  }) => /* @__PURE__ */ b.jsx("ul", { children: e && e.map((n, i) => !n.hidden && /* @__PURE__ */ b.jsx(Swe, { item: n, ItemComponent: t, onClose: r }, i)) }), Owe = ae.li`
45203
- padding: 10px;
45204
- font-size: 12px;
45201
+ padding: 8px 10px;
45202
+ font-size: 14px;
45205
45203
  color: typoPrimary;
45206
45204
  font-weight: normal;
45207
45205
 
package/ui/index.umd.js CHANGED
@@ -1781,10 +1781,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1781
1781
  `,$ue=ae.div`
1782
1782
  position: absolute;
1783
1783
 
1784
- ${({customDropdownPosition:e,verticalShift:t})=>e||`
1784
+ ${({customDropdownPosition:e})=>e||`
1785
1785
  top: 100%;
1786
- left: ${t?"calc(50% - 72px)":"calc(50%)"};
1787
- transform: translate(-50%, 0);
1786
+ right: 0;
1788
1787
  `}
1789
1788
 
1790
1789
  width: fit-content;
@@ -1795,7 +1794,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1795
1794
  ${XD} {
1796
1795
  display: ${({showArrow:e})=>e?"block":"none"};
1797
1796
  }
1798
- `,ece=({show:e,className:t,wrapRef:r,children:n,showArrow:i,verticalShift:o,customDropdownPosition:l})=>b.jsx(b.Fragment,{children:e&&b.jsxs($ue,{ref:r,className:t,showArrow:i,verticalShift:o,customDropdownPosition:l,children:[b.jsx(XD,{verticalShift:o,children:b.jsx(JD,{children:b.jsx(UD,{})})}),n]})}),tce=wt`
1797
+ `,ece=({show:e,className:t,wrapRef:r,children:n,showArrow:i,verticalShift:o,customDropdownPosition:l})=>b.jsx(b.Fragment,{children:e&&b.jsxs($ue,{ref:r,className:t,showArrow:i,customDropdownPosition:l,children:[b.jsx(XD,{verticalShift:o,children:b.jsx(JD,{children:b.jsx(UD,{})})}),n]})}),tce=wt`
1799
1798
  span {
1800
1799
  display: none;
1801
1800
  position: absolute;
@@ -3307,8 +3306,8 @@ Avoid returning a new reference inside your input selector, e.g.
3307
3306
  }
3308
3307
  `}
3309
3308
  `,AAe=({item:e,ItemComponent:t,onClose:r})=>{const{onClick:n,link:i,hasSeparator:o,name:l,autoClose:u}=e,c=vue(),f=i===c.pathname,h=I.useCallback(p=>{n&&(p.preventDefault(),n()),u&&r&&setTimeout(()=>{r()},200)},[u,n,r]);return b.jsx(wAe,{to:i,$isActive:f,onClick:h,$hasSeparator:!!o,"data-cy":l,size:"inherit",children:b.jsx(t,{...e})})},CAe=({items:e,ItemComponent:t,onClose:r})=>b.jsx("ul",{children:e&&e.map((n,i)=>!n.hidden&&b.jsx(AAe,{item:n,ItemComponent:t,onClose:r},i))}),xAe=ae.li`
3310
- padding: 10px;
3311
- font-size: 12px;
3309
+ padding: 8px 10px;
3310
+ font-size: 14px;
3312
3311
  color: typoPrimary;
3313
3312
  font-weight: normal;
3314
3313