@mailstep/design-system 0.6.58-beta.0.2 → 0.6.58

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.58-beta.0.2",
3
+ "version": "0.6.58",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -1,3 +1,3 @@
1
- import type { LogoProps } from './types';
1
+ import { LogoProps } from './types';
2
2
  declare const Logo: ({ brand, variant, size, width, height, ...rest }: LogoProps) => JSX.Element | null;
3
3
  export default Logo;
@@ -25,51 +25,43 @@ var __rest = (this && this.__rest) || function (s, e) {
25
25
  return t;
26
26
  };
27
27
  import { jsx as _jsx } from "react/jsx-runtime";
28
+ import styled from '@xstyled/styled-components';
29
+ import logoWhiteImage from './assets/mailship/logo_white.png';
28
30
  import logoBlackImage from './assets/mailship/logo_black.png';
29
31
  import logoMImage from './assets/mailship/logo_m.png';
30
- import logoWhiteImage from './assets/mailship/logo_white.png';
31
32
  import logoSvg from './assets/mailship/mailship-logo.svg';
32
33
  import logoMailstepBlack from './assets/mailstep/mailstep_black.svg';
33
34
  import logoMailstepWhite from './assets/mailstep/mailstep_white.svg';
34
- 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 warehouseManager2 from './assets/warehouse/manager2.svg';
39
- import warehouseManager3 from './assets/warehouse/manager3.svg';
40
- import warehouseManager from './assets/warehouse/manager.svg';
41
- import styled from '@xstyled/styled-components';
38
+ import logoMailstock from './assets/mailstock/mailstock.svg';
42
39
  var defaultSizes = {
43
40
  small: '30px',
44
41
  medium: '46px',
45
- big: '61px' // cca 200px width on full logo
42
+ big: '61px', // cca 200px width on full logo
46
43
  };
47
44
  var variantMap = {
48
45
  mailship: {
49
46
  white: logoWhiteImage,
50
47
  black: logoBlackImage,
51
48
  m: logoMImage,
52
- s: logoSvg
49
+ s: logoSvg,
53
50
  },
54
51
  mailwise: {
55
52
  black: logoMailwise,
56
- s: logoMailwiseSmall
53
+ s: logoMailwiseSmall,
57
54
  },
58
55
  mailstock: {
59
- black: logoMailstock
56
+ black: logoMailstock,
60
57
  },
61
58
  mailstep: {
62
59
  black: logoMailstepBlack,
63
- white: logoMailstepWhite
60
+ white: logoMailstepWhite,
64
61
  },
65
62
  mailwrap: {
66
- black: logoMailwrap
63
+ black: logoMailwrap,
67
64
  },
68
- warehouse: {
69
- black: warehouseManager,
70
- m: warehouseManager2,
71
- s: warehouseManager3
72
- }
73
65
  };
74
66
  var StyledImage = styled.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n"], ["\n width: ", ";\n height: ", ";\n"])), function (_a) {
75
67
  var width = _a.width;
@@ -81,7 +73,7 @@ var StyledImage = styled.img(templateObject_1 || (templateObject_1 = __makeTempl
81
73
  var Logo = function (_a) {
82
74
  var _b = _a.brand, brand = _b === void 0 ? 'mailship' : _b, variant = _a.variant, size = _a.size, width = _a.width, height = _a.height, rest = __rest(_a, ["brand", "variant", "size", "width", "height"]);
83
75
  var variants = variantMap[brand];
84
- var logo = variants === null || variants === void 0 ? void 0 : variants[variant];
76
+ var logo = variants[variant];
85
77
  if (!logo) {
86
78
  console.warn('No variant for this logo exists.');
87
79
  return null;
@@ -27,9 +27,6 @@ export declare const MailstockBlack: Story;
27
27
  export declare const MailwrapBlack: Story;
28
28
  export declare const MailstepBlack: Story;
29
29
  export declare const MailstepWhite: Story;
30
- export declare const WarehouseManagerBlack: Story;
31
- export declare const WarehouseManagerM: Story;
32
- export declare const WarehouseManagerS: Story;
33
30
  export declare const SizeSmall: Story;
34
31
  export declare const SizeMedium: Story;
35
32
  export declare const SizeBig: Story;
@@ -7,124 +7,106 @@ var meta = {
7
7
  default: 'darkGray',
8
8
  values: [
9
9
  { name: 'darkGray', value: '#333' },
10
- { name: 'lightGray', value: '#eee' }
11
- ]
12
- }
10
+ { name: 'lightGray', value: '#eee' },
11
+ ],
12
+ },
13
13
  },
14
14
  tags: ['autodocs'],
15
- argTypes: {}
15
+ argTypes: {},
16
16
  };
17
17
  export default meta;
18
18
  export var MailshipBlack = {
19
19
  args: {
20
20
  variant: 'black',
21
- brand: 'mailship'
22
- }
21
+ brand: 'mailship',
22
+ },
23
23
  };
24
24
  export var MailshipWhite = {
25
25
  args: {
26
26
  brand: 'mailship',
27
- variant: 'white'
28
- }
27
+ variant: 'white',
28
+ },
29
29
  };
30
30
  export var MailshipM = {
31
31
  args: {
32
32
  brand: 'mailship',
33
- variant: 'm'
34
- }
33
+ variant: 'm',
34
+ },
35
35
  };
36
36
  export var MailshipS = {
37
37
  args: {
38
38
  brand: 'mailship',
39
- variant: 's'
40
- }
39
+ variant: 's',
40
+ },
41
41
  };
42
42
  export var MailwiseBlack = {
43
43
  args: {
44
44
  brand: 'mailwise',
45
- variant: 'black'
46
- }
45
+ variant: 'black',
46
+ },
47
47
  };
48
48
  export var MailwiseS = {
49
49
  args: {
50
50
  brand: 'mailwise',
51
- variant: 's'
52
- }
51
+ variant: 's',
52
+ },
53
53
  };
54
54
  export var MailstockBlack = {
55
55
  args: {
56
56
  brand: 'mailstock',
57
- variant: 'black'
58
- }
57
+ variant: 'black',
58
+ },
59
59
  };
60
60
  export var MailwrapBlack = {
61
61
  args: {
62
62
  brand: 'mailwrap',
63
- variant: 'black'
64
- }
63
+ variant: 'black',
64
+ },
65
65
  };
66
66
  export var MailstepBlack = {
67
67
  args: {
68
68
  brand: 'mailstep',
69
- variant: 'black'
70
- }
69
+ variant: 'black',
70
+ },
71
71
  };
72
72
  export var MailstepWhite = {
73
73
  args: {
74
74
  brand: 'mailstep',
75
- variant: 'white'
76
- }
77
- };
78
- export var WarehouseManagerBlack = {
79
- args: {
80
- brand: 'warehouse',
81
- variant: 'black'
82
- }
83
- };
84
- export var WarehouseManagerM = {
85
- args: {
86
- brand: 'warehouse',
87
- variant: 'm'
88
- }
89
- };
90
- export var WarehouseManagerS = {
91
- args: {
92
- brand: 'warehouse',
93
- variant: 's'
94
- }
75
+ variant: 'white',
76
+ },
95
77
  };
96
78
  export var SizeSmall = {
97
79
  args: {
98
80
  variant: 'black',
99
81
  brand: 'mailship',
100
- size: 'small'
101
- }
82
+ size: 'small',
83
+ },
102
84
  };
103
85
  export var SizeMedium = {
104
86
  args: {
105
87
  variant: 'black',
106
88
  brand: 'mailship',
107
- size: 'medium'
108
- }
89
+ size: 'medium',
90
+ },
109
91
  };
110
92
  export var SizeBig = {
111
93
  args: {
112
94
  variant: 'black',
113
95
  brand: 'mailship',
114
- size: 'big'
115
- }
96
+ size: 'big',
97
+ },
116
98
  };
117
99
  export var SizeCustomWidth = {
118
100
  args: {
119
101
  variant: 'black',
120
102
  brand: 'mailship',
121
- width: '400px'
122
- }
103
+ width: '400px',
104
+ },
123
105
  };
124
106
  export var SizeCustomHeight = {
125
107
  args: {
126
108
  variant: 'black',
127
109
  brand: 'mailship',
128
- height: '200px'
129
- }
110
+ height: '200px',
111
+ },
130
112
  };
@@ -1,4 +1,4 @@
1
- export type Brand = 'mailship' | 'mailwise' | 'mailstock' | 'mailstep' | 'mailwrap' | 'warehouse';
1
+ export type Brand = 'mailship' | 'mailwise' | 'mailstock' | 'mailstep' | 'mailwrap';
2
2
  export type Variant = 'white' | 'black' | 'm' | 's';
3
3
  export type Size = 'small' | 'medium' | 'big' | undefined;
4
4
  export type LogoProps = {