@mailstep/design-system 0.7.75 → 0.7.76-beta.1

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.7.75",
3
+ "version": "0.7.76-beta.1",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -20,7 +20,7 @@ import styled, { x } from '@xstyled/styled-components';
20
20
  export var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"], ["\n display: flex;\n & > * {\n margin-right: 12px;\n }\n z-index: 2;\n"])));
21
21
  var StyledButton = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"], ["\n display: none;\n\n @media (min-width: 1024px) {\n display: block;\n }\n"])));
22
22
  var ControlButton = function (_a) {
23
- var hide = _a.hide, node = _a.node, label = _a.label, appearance = _a.appearance, variant = _a.variant, disabled = _a.disabled, onClick = _a.onClick, onSelect = _a.onSelect, options = _a.options, hideChevron = _a.hideChevron, iconLeft = _a.iconLeft, buttonProps = _a.buttonProps;
23
+ var hide = _a.hide, node = _a.node, label = _a.label, appearance = _a.appearance, variant = _a.variant, disabled = _a.disabled, onClick = _a.onClick, onSelect = _a.onSelect, options = _a.options, hideChevron = _a.hideChevron, iconLeft = _a.iconLeft;
24
24
  if (hide) {
25
25
  return null;
26
26
  }
@@ -30,7 +30,7 @@ var ControlButton = function (_a) {
30
30
  return (_jsx(DropdownSelect, { label: label || '', appearance: appearance || 'secondary', variant: variant || 'default', options: options, showChevron: !hideChevron, onSelect: onSelect, disabled: disabled }));
31
31
  }
32
32
  else {
33
- return (_jsx(StyledButton, __assign({ type: "button", onClick: onClick, disabled: disabled, variant: variant || 'default', appearance: appearance || 'primary', iconLeft: iconLeft }, buttonProps, { children: label })));
33
+ return (_jsx(StyledButton, { type: "button", onClick: onClick, disabled: disabled, variant: variant || 'default', appearance: appearance || 'primary', iconLeft: iconLeft, children: label }));
34
34
  }
35
35
  };
36
36
  var ExtraControlButtons = function (_a) {
@@ -1,4 +1,4 @@
1
- import { Props as ButtonProps, AppearanceValue, VariantValue } from '../../Elements/Button/types';
1
+ import { AppearanceValue, VariantValue } from '../../Elements/Button/types';
2
2
 
3
3
  export declare const rowClassSymbol: unique symbol;
4
4
  type Option = {
@@ -288,7 +288,6 @@ export type ExtraControlButton = {
288
288
  hideChevron?: boolean;
289
289
  disabled?: boolean;
290
290
  iconLeft?: string | React.ReactNode;
291
- buttonProps?: Omit<ButtonProps, 'children' | 'onClick' | 'disabled' | 'appearance' | 'variant' | 'iconLeft' | 'as'>;
292
291
  };
293
292
  export type Group = {
294
293
  name?: string;
@@ -14,5 +14,5 @@ export var CornerDialog = function (_a) {
14
14
  var _d = statusToColors[intent], fontColor = _d.fontColor, backgroundColor = _d.backgroundColor, fill = _d.fill;
15
15
  if (!isOpen)
16
16
  return null;
17
- return (_jsx(Portal, { children: _jsxs(Container, { "$mounted": isMounted, children: [_jsxs(Status, { background: backgroundColor, children: [_jsx(Icon, { icon: statusToIcon[intent], fill: fill }), _jsx(StatusText, { fontColor: fontColor, children: statusToTitle[intent]() })] }), _jsx(Header, { children: title }), _jsx(CloseBtn, { onClick: onClose, "data-testid": "corner-dialog-close-btn", children: _jsx(Icon, { icon: "close", size: "25px" }) }), _jsx(Wrapper, { children: children })] }) }));
17
+ return (_jsx(Portal, { children: _jsxs(Container, { "$mounted": isMounted, children: [_jsxs(Status, { background: backgroundColor, children: [_jsx(Icon, { icon: statusToIcon[intent], fill: fill }), _jsx(StatusText, { fontColor: fontColor, children: statusToTitle[intent]() })] }), _jsx(Header, { children: title }), _jsx(CloseBtn, { onClick: onClose, children: _jsx(Icon, { icon: "close", size: "25px" }) }), _jsx(Wrapper, { children: children })] }) }));
18
18
  };
@@ -9,7 +9,7 @@ var Tab = function (_a) {
9
9
  var handleOnClick = useCallback(function () {
10
10
  onTabSwitch(value);
11
11
  }, [onTabSwitch, value]);
12
- return (_jsx(StyledTabWrapper, { children: _jsxs(StyledTab, { onClick: !disabled ? handleOnClick : undefined, active: isActive, disabled: disabled, minWidth: minWidth, "data-testid": "tab-".concat(value), children: [icon && (_jsx(StyledImageBox, { children: _jsx(Icon, { icon: icon }) })), _jsx(Text, { children: label }), badgeCount === 0 ||
12
+ return (_jsx(StyledTabWrapper, { children: _jsxs(StyledTab, { onClick: !disabled ? handleOnClick : undefined, active: isActive, disabled: disabled, minWidth: minWidth, children: [icon && (_jsx(StyledImageBox, { children: _jsx(Icon, { icon: icon }) })), _jsx(Text, { children: label }), badgeCount === 0 ||
13
13
  (badgeCount && badgeCount > 0 && (_jsx(RoundedWrap, { children: _jsx(Text, { variant: "medium", children: badgeCount }) })))] }) }));
14
14
  };
15
15
  export var Tabs = function (_a) {
@@ -20,6 +20,4 @@ export type Props = React.HTMLProps<HTMLButtonElement> & {
20
20
  iconStrokeColor?: string;
21
21
  buttonRef?: any;
22
22
  type?: 'button' | 'submit' | 'reset';
23
- } & {
24
- [key: `data-${string}`]: string | undefined;
25
23
  };
@@ -35,6 +35,7 @@ import logoMailstock from './assets/mailstock/mailstock.svg';
35
35
  import logoMailwise from './assets/mailwise/mailwiseLogo.svg';
36
36
  import logoMailwiseSmall from './assets/mailwise/mailwiseLogoSmall.svg';
37
37
  import logoMailwrap from './assets/mailwrap/mailwrapLogo.svg';
38
+ import logoMailwrapSmall from './assets/mailwrap/mailwrapLogoSmall.svg';
38
39
  import warehouseManager2 from './assets/warehouse/manager2.svg';
39
40
  import warehouseManager3 from './assets/warehouse/manager3.svg';
40
41
  import warehouseManager from './assets/warehouse/manager.svg';
@@ -63,7 +64,8 @@ var variantMap = {
63
64
  white: logoMailstepWhite
64
65
  },
65
66
  mailwrap: {
66
- black: logoMailwrap
67
+ black: logoMailwrap,
68
+ s: logoMailwrapSmall
67
69
  },
68
70
  warehouse: {
69
71
  black: warehouseManager,
@@ -0,0 +1,4 @@
1
+ <svg width="33" height="41" viewBox="0 0 33 41" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M24.0764 23.9464V10.9448C24.0764 10.0414 23.9761 8.43501 22.7223 8.43501C20.9157 8.43501 20.7151 10.7942 20.7151 12.1004V23.9464H12.0376V11.0452C12.0376 9.99109 11.9875 8.63465 10.6345 8.63465C8.62731 8.63465 8.67748 10.8444 8.67748 12.3001V23.9464H0V0.501969H8.67748V1.7078C8.67748 2.61131 8.62731 3.51482 8.57714 4.41832C9.93124 1.85836 11.437 0 14.5452 0C17.8576 0 19.5628 2.05917 20.7653 4.87008C21.7683 2.00896 23.323 0 26.584 0C28.0886 0 29.5932 0.552137 30.6977 1.55603C32.5533 3.26388 32.7539 5.52264 32.7539 7.88179V23.9464H24.0764Z" fill="#E4001B"/>
3
+ <path d="M3.60835 31.6587L4.42254 27.9763H6.49503L7.36473 31.7327L8.21593 27.9763H10.825L8.36397 37.0435H6.4025L5.49579 33.3796L4.57057 37.0435H2.62762L0.185043 27.9763H2.64612L3.60835 31.6587ZM11.5072 37.0435V27.9763H14.2829V28.7905C14.7085 28.2724 15.4857 27.7543 16.3924 27.7543V31.1406C15.3006 31.1406 14.2829 31.5107 14.2829 32.769V37.0435H11.5072ZM21.5605 32.3989C21.5605 31.5292 21.2459 30.678 20.6352 30.678C20.0061 30.678 19.71 31.5292 19.71 32.3989C19.71 33.2686 19.9876 34.1198 20.6352 34.1198C21.2459 34.1198 21.5605 33.2686 21.5605 32.3989ZM24.3176 27.9763V37.0435H21.616V36.0072C21.4124 36.5253 21.0053 37.2285 19.9506 37.2285C18.1001 37.2285 17.1934 34.897 17.1934 32.5654C17.1934 30.2154 18.1001 27.8838 19.9506 27.8838C20.8943 27.8838 21.3384 28.3279 21.616 28.9571V27.9763H24.3176ZM25.6768 40.7998V27.9763H28.434V29.0681C28.7485 28.4574 29.1556 27.8468 30.0993 27.8468C31.8758 27.8468 32.764 30.1968 32.764 32.5654C32.764 34.9155 31.8758 37.2655 30.0993 37.2655C28.9891 37.2655 28.6745 36.6549 28.434 36.1923V40.7998H25.6768ZM28.3599 32.6024C28.3599 33.4166 28.6745 34.2308 29.2666 34.2308C29.8588 34.2308 30.1549 33.4166 30.1549 32.6024C30.1549 31.7882 29.8588 30.974 29.2666 30.974C28.6745 30.974 28.3599 31.7882 28.3599 32.6024Z" fill="white"/>
4
+ </svg>
@@ -25,6 +25,7 @@ export declare const MailwiseBlack: Story;
25
25
  export declare const MailwiseS: Story;
26
26
  export declare const MailstockBlack: Story;
27
27
  export declare const MailwrapBlack: Story;
28
+ export declare const MailwrapS: Story;
28
29
  export declare const MailstepBlack: Story;
29
30
  export declare const MailstepWhite: Story;
30
31
  export declare const WarehouseManagerBlack: Story;
@@ -63,6 +63,12 @@ export var MailwrapBlack = {
63
63
  variant: 'black'
64
64
  }
65
65
  };
66
+ export var MailwrapS = {
67
+ args: {
68
+ brand: 'mailwrap',
69
+ variant: 's'
70
+ }
71
+ };
66
72
  export var MailstepBlack = {
67
73
  args: {
68
74
  brand: 'mailstep',