@occmundial/occ-atomic 2.0.0-beta.3 → 2.0.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/build/Button/Button.js +4 -1
- package/build/Button/Loading.js +1 -8
- package/build/Button/__snapshots__/Button.test.js.snap +3 -11
- package/build/Text/Text.js +429 -112
- package/build/Text/Text.test.js +5 -5
- package/build/Text/__snapshots__/Text.test.js.snap +144 -86
- package/build/Text/styles.js +165 -81
- package/build/Toaster/__snapshots__/Toaster.test.js.snap +1 -1
- package/package.json +1 -1
package/build/Text/Text.test.js
CHANGED
@@ -31,20 +31,20 @@ describe("Text", function () {
|
|
31
31
|
hero: true,
|
32
32
|
classes: classes
|
33
33
|
}, "Text"));
|
34
|
-
expect(wrapper.find('.
|
34
|
+
expect(wrapper.find('.h1').length).toBe(1);
|
35
35
|
});
|
36
36
|
it('has a default color style', function () {
|
37
37
|
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Text["default"], {
|
38
38
|
classes: classes
|
39
39
|
}, "Text"));
|
40
|
-
expect(wrapper.find('.
|
40
|
+
expect(wrapper.find('.corpPrimary').length).toBe(1);
|
41
41
|
});
|
42
42
|
it('has the correct color style', function () {
|
43
43
|
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Text["default"], {
|
44
44
|
primary: true,
|
45
45
|
classes: classes
|
46
46
|
}, "Text"));
|
47
|
-
expect(wrapper.find('.
|
47
|
+
expect(wrapper.find('.indigoPrimary').length).toBe(1);
|
48
48
|
});
|
49
49
|
it('has the correct align style', function () {
|
50
50
|
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Text["default"], {
|
@@ -59,8 +59,8 @@ describe("Text", function () {
|
|
59
59
|
bottomLarge: true,
|
60
60
|
classes: classes
|
61
61
|
}, "Text"));
|
62
|
-
expect(wrapper.find('.
|
63
|
-
expect(wrapper.find('.
|
62
|
+
expect(wrapper.find('.top2').length).toBe(1);
|
63
|
+
expect(wrapper.find('.bottom8').length).toBe(1);
|
64
64
|
});
|
65
65
|
it('has the correct html tag', function () {
|
66
66
|
var wrapper = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_Text["default"], {
|
@@ -4,116 +4,153 @@ exports[`Text matches the snapshot 1`] = `ShallowWrapper {}`;
|
|
4
4
|
|
5
5
|
exports[`Text styles matches the snapshot 1`] = `
|
6
6
|
Object {
|
7
|
-
"
|
8
|
-
"
|
7
|
+
"bodyLarge": Object {
|
8
|
+
"font": "300 18px/1.5 'OccText', sans-serif",
|
9
9
|
},
|
10
|
-
"
|
11
|
-
"
|
10
|
+
"bodyLargeStrong": Object {
|
11
|
+
"font": "400 18px/1.5 'OccText', sans-serif",
|
12
12
|
},
|
13
|
-
"
|
14
|
-
"
|
13
|
+
"bodyRegular": Object {
|
14
|
+
"font": "300 16px/1.5 'OccText', sans-serif",
|
15
15
|
},
|
16
|
-
"
|
17
|
-
"
|
16
|
+
"bodyRegularStrong": Object {
|
17
|
+
"font": "400 16px/1.5 'OccText', sans-serif",
|
18
18
|
},
|
19
|
-
"
|
20
|
-
"
|
19
|
+
"bodySmall": Object {
|
20
|
+
"font": "300 14px/1.5 'OccText', sans-serif",
|
21
21
|
},
|
22
|
-
"
|
23
|
-
"
|
22
|
+
"bodySmallStrong": Object {
|
23
|
+
"font": "400 14px/1.5 'OccText', sans-serif",
|
24
24
|
},
|
25
|
-
"
|
26
|
-
"
|
25
|
+
"bodyXLarge": Object {
|
26
|
+
"font": "300 20px/1.5 'OccText', sans-serif",
|
27
|
+
},
|
28
|
+
"bodyXSmall": Object {
|
29
|
+
"font": "300 12px/1.5 'OccText', sans-serif",
|
30
|
+
},
|
31
|
+
"bottom0": Object {
|
32
|
+
"marginBottom": "2px",
|
33
|
+
},
|
34
|
+
"bottom1": Object {
|
35
|
+
"marginBottom": "4px",
|
36
|
+
},
|
37
|
+
"bottom10": Object {
|
38
|
+
"marginBottom": "80px",
|
39
|
+
},
|
40
|
+
"bottom11": Object {
|
41
|
+
"marginBottom": "120px",
|
42
|
+
},
|
43
|
+
"bottom12": Object {
|
44
|
+
"marginBottom": "160px",
|
45
|
+
},
|
46
|
+
"bottom2": Object {
|
47
|
+
"marginBottom": "8px",
|
48
|
+
},
|
49
|
+
"bottom3": Object {
|
50
|
+
"marginBottom": "12px",
|
51
|
+
},
|
52
|
+
"bottom4": Object {
|
53
|
+
"marginBottom": "16px",
|
54
|
+
},
|
55
|
+
"bottom5": Object {
|
56
|
+
"marginBottom": "24px",
|
57
|
+
},
|
58
|
+
"bottom6": Object {
|
59
|
+
"marginBottom": "32px",
|
60
|
+
},
|
61
|
+
"bottom7": Object {
|
62
|
+
"marginBottom": "40px",
|
63
|
+
},
|
64
|
+
"bottom8": Object {
|
65
|
+
"marginBottom": "48px",
|
66
|
+
},
|
67
|
+
"bottom9": Object {
|
68
|
+
"marginBottom": "64px",
|
27
69
|
},
|
28
70
|
"center": Object {
|
29
71
|
"textAlign": "center",
|
30
72
|
},
|
73
|
+
"corpDisabled": Object {
|
74
|
+
"color": "#878A9F",
|
75
|
+
},
|
76
|
+
"corpPrimary": Object {
|
77
|
+
"color": "#080D39",
|
78
|
+
},
|
79
|
+
"corpSecondary": Object {
|
80
|
+
"color": "#5A5D7B",
|
81
|
+
},
|
31
82
|
"disabled": Object {
|
32
83
|
"color": "#dddddd",
|
33
84
|
},
|
85
|
+
"display": Object {
|
86
|
+
"@media screen and (min-width:768px)": Object {
|
87
|
+
"font": "400 72px/1.1 'OccText', sans-serif",
|
88
|
+
"letterSpacing": "-0.02em",
|
89
|
+
},
|
90
|
+
"font": "400 48px/1.1 'OccText', sans-serif",
|
91
|
+
"letterSpacing": "-0.02em",
|
92
|
+
},
|
34
93
|
"error": Object {
|
35
|
-
"color": "#
|
94
|
+
"color": "#8b1313",
|
36
95
|
},
|
37
|
-
"
|
38
|
-
"
|
39
|
-
|
96
|
+
"h1": Object {
|
97
|
+
"@media screen and (min-width:768px)": Object {
|
98
|
+
"font": "400 48px/1.1 'OccText', sans-serif",
|
99
|
+
"letterSpacing": "-0.02em",
|
100
|
+
},
|
101
|
+
"font": "400 32px/1.1 'OccText', sans-serif",
|
102
|
+
"letterSpacing": "-0.02em",
|
40
103
|
},
|
41
|
-
"
|
42
|
-
"
|
43
|
-
|
44
|
-
|
104
|
+
"h2": Object {
|
105
|
+
"@media screen and (min-width:768px)": Object {
|
106
|
+
"font": "400 40px/1.1 'OccText', sans-serif",
|
107
|
+
},
|
108
|
+
"font": "400 28px/1.1 'OccText', sans-serif",
|
45
109
|
},
|
46
|
-
"
|
110
|
+
"h3": Object {
|
47
111
|
"@media screen and (min-width:768px)": Object {
|
48
|
-
"
|
112
|
+
"font": "400 28px/1.1 'OccText', sans-serif",
|
49
113
|
},
|
50
|
-
"
|
51
|
-
"fontWeight": 400,
|
52
|
-
"lineHeight": 1.1,
|
114
|
+
"font": "400 24px/1.1 'OccText', sans-serif",
|
53
115
|
},
|
54
|
-
"
|
116
|
+
"h4": Object {
|
55
117
|
"@media screen and (min-width:768px)": Object {
|
56
|
-
"
|
57
|
-
"letterSpacing": -0.96,
|
118
|
+
"font": "400 24px/1.1 'OccText', sans-serif",
|
58
119
|
},
|
59
|
-
"
|
60
|
-
|
61
|
-
|
62
|
-
"
|
120
|
+
"font": "400 20px/1.1 'OccText', sans-serif",
|
121
|
+
},
|
122
|
+
"h5": Object {
|
123
|
+
"font": "400 18px/1.1 'OccText', sans-serif",
|
124
|
+
},
|
125
|
+
"indigoPrimary": Object {
|
126
|
+
"color": "#083CAE",
|
63
127
|
},
|
64
|
-
"
|
65
|
-
"color": "#
|
128
|
+
"indigoSecondary": Object {
|
129
|
+
"color": "#486EC3",
|
66
130
|
},
|
67
131
|
"info": Object {
|
68
132
|
"color": "#5736ab",
|
69
133
|
},
|
70
|
-
"large": Object {
|
71
|
-
"fontSize": 18,
|
72
|
-
"lineHeight": 1.5,
|
73
|
-
},
|
74
134
|
"left": Object {
|
75
135
|
"textAlign": "left",
|
76
136
|
},
|
77
137
|
"link": Object {
|
78
138
|
"color": "#0946CB",
|
79
139
|
},
|
80
|
-
"
|
81
|
-
"color": "#
|
82
|
-
},
|
83
|
-
"micro": Object {
|
84
|
-
"fontSize": 12,
|
85
|
-
"lineHeight": 1.5,
|
86
|
-
},
|
87
|
-
"midEmphasis": Object {
|
88
|
-
"color": "#777777",
|
89
|
-
},
|
90
|
-
"primary": Object {
|
91
|
-
"color": "#083cae",
|
140
|
+
"pinkPrimary": Object {
|
141
|
+
"color": "#D32E58",
|
92
142
|
},
|
93
143
|
"right": Object {
|
94
144
|
"textAlign": "right",
|
95
145
|
},
|
96
|
-
"secondary": Object {
|
97
|
-
"color": "#f13465",
|
98
|
-
},
|
99
|
-
"small": Object {
|
100
|
-
"fontSize": 14,
|
101
|
-
"lineHeight": 1.5,
|
102
|
-
},
|
103
|
-
"standard": Object {
|
104
|
-
"fontSize": 16,
|
105
|
-
"lineHeight": 1.5,
|
106
|
-
},
|
107
146
|
"strong": Object {
|
108
147
|
"fontWeight": 400,
|
109
148
|
},
|
110
|
-
"subheading": Object {
|
111
|
-
"fontSize": 18,
|
112
|
-
"fontWeight": 400,
|
113
|
-
"lineHeight": 1.1,
|
114
|
-
},
|
115
149
|
"success": Object {
|
116
|
-
"color": "#
|
150
|
+
"color": "#16542e",
|
151
|
+
},
|
152
|
+
"tag": Object {
|
153
|
+
"font": "400 10px/1.5 'OccText', sans-serif",
|
117
154
|
},
|
118
155
|
"text": Object {
|
119
156
|
"fontFamily": "'OccText', sans-serif",
|
@@ -125,32 +162,53 @@ Object {
|
|
125
162
|
"titleCase": Object {
|
126
163
|
"textTransform": "capitalize",
|
127
164
|
},
|
128
|
-
"
|
129
|
-
"marginTop":
|
165
|
+
"top0": Object {
|
166
|
+
"marginTop": "2px",
|
167
|
+
},
|
168
|
+
"top1": Object {
|
169
|
+
"marginTop": "4px",
|
170
|
+
},
|
171
|
+
"top10": Object {
|
172
|
+
"marginTop": "80px",
|
130
173
|
},
|
131
|
-
"
|
132
|
-
"marginTop":
|
174
|
+
"top11": Object {
|
175
|
+
"marginTop": "120px",
|
133
176
|
},
|
134
|
-
"
|
135
|
-
"marginTop":
|
177
|
+
"top12": Object {
|
178
|
+
"marginTop": "160px",
|
136
179
|
},
|
137
|
-
"
|
138
|
-
"marginTop":
|
180
|
+
"top2": Object {
|
181
|
+
"marginTop": "8px",
|
139
182
|
},
|
140
|
-
"
|
141
|
-
"marginTop":
|
183
|
+
"top3": Object {
|
184
|
+
"marginTop": "12px",
|
142
185
|
},
|
143
|
-
"
|
144
|
-
"marginTop":
|
186
|
+
"top4": Object {
|
187
|
+
"marginTop": "16px",
|
145
188
|
},
|
146
|
-
"
|
147
|
-
"marginTop":
|
189
|
+
"top5": Object {
|
190
|
+
"marginTop": "24px",
|
191
|
+
},
|
192
|
+
"top6": Object {
|
193
|
+
"marginTop": "32px",
|
194
|
+
},
|
195
|
+
"top7": Object {
|
196
|
+
"marginTop": "40px",
|
197
|
+
},
|
198
|
+
"top8": Object {
|
199
|
+
"marginTop": "48px",
|
200
|
+
},
|
201
|
+
"top9": Object {
|
202
|
+
"marginTop": "64px",
|
148
203
|
},
|
149
204
|
"warning": Object {
|
150
|
-
"color": "#
|
205
|
+
"color": "#664a0e",
|
206
|
+
},
|
207
|
+
"whitePrimary": Object {
|
208
|
+
"color": "#fff",
|
151
209
|
},
|
152
|
-
"
|
153
|
-
"color": "
|
210
|
+
"whiteSecondary": Object {
|
211
|
+
"color": "rgba(255,255,255,0.7)",
|
154
212
|
},
|
155
213
|
}
|
156
214
|
`;
|
package/build/Text/styles.js
CHANGED
@@ -11,12 +11,41 @@ var _fonts = _interopRequireDefault(require("../subatomic/fonts"));
|
|
11
11
|
|
12
12
|
var _grid = _interopRequireDefault(require("../subatomic/grid"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _fonts2 = _interopRequireDefault(require("../tokens/fonts.json"));
|
15
|
+
|
16
|
+
var _colors2 = _interopRequireDefault(require("../tokens/colors.json"));
|
17
|
+
|
18
|
+
var _spacing = _interopRequireDefault(require("../tokens/spacing.json"));
|
15
19
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
17
21
|
|
18
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
19
23
|
|
24
|
+
var display = _fonts2["default"]['display-display-clean'];
|
25
|
+
var displayM = _fonts2["default"]['mobile-display-clean-m'];
|
26
|
+
var h1 = _fonts2["default"]['heading-h1'];
|
27
|
+
var h1M = _fonts2["default"]['mobile-h1-m'];
|
28
|
+
var h2 = _fonts2["default"]['heading-h2'];
|
29
|
+
var h2M = _fonts2["default"]['mobile-h2-m'];
|
30
|
+
var h3 = _fonts2["default"]['heading-h3'];
|
31
|
+
var h3M = _fonts2["default"]['mobile-h3-m'];
|
32
|
+
var h4 = _fonts2["default"]['heading-h4'];
|
33
|
+
var h4M = _fonts2["default"]['mobile-h4-m'];
|
34
|
+
var h5 = _fonts2["default"]['heading-h5'];
|
35
|
+
var tag = _fonts2["default"]['heading-tag'];
|
36
|
+
var bodyXLarge = _fonts2["default"]['body-x-large'];
|
37
|
+
var bodyLargeStrong = _fonts2["default"]['body-large-strong'];
|
38
|
+
var bodyLarge = _fonts2["default"]['body-large'];
|
39
|
+
var bodyRegularStrong = _fonts2["default"]['body-regular-strong'];
|
40
|
+
var bodyRegular = _fonts2["default"]['body-regular'];
|
41
|
+
var bodySmallStrong = _fonts2["default"]['body-small-strong'];
|
42
|
+
var bodySmall = _fonts2["default"]['body-small'];
|
43
|
+
var bodyXSmall = _fonts2["default"]['body-x-small'];
|
44
|
+
|
45
|
+
var parseFontValue = function parseFontValue(font) {
|
46
|
+
return "".concat(font.fontWeight, " ").concat(font.fontSize, "/").concat(font.lineHeight, " ").concat(_fonts["default"].body);
|
47
|
+
};
|
48
|
+
|
20
49
|
var _default = {
|
21
50
|
text: {
|
22
51
|
letterSpacing: 0,
|
@@ -26,71 +55,87 @@ var _default = {
|
|
26
55
|
margin: 0
|
27
56
|
},
|
28
57
|
// Sizes
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
fontWeight: 400,
|
33
|
-
letterSpacing: -0.64
|
58
|
+
display: _defineProperty({
|
59
|
+
font: parseFontValue(displayM),
|
60
|
+
letterSpacing: displayM.letterSpacing
|
34
61
|
}, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
|
35
|
-
|
36
|
-
|
62
|
+
letterSpacing: display.letterSpacing,
|
63
|
+
font: parseFontValue(display)
|
37
64
|
}),
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
fontWeight: 400
|
65
|
+
h1: _defineProperty({
|
66
|
+
font: parseFontValue(h1M),
|
67
|
+
letterSpacing: h1M.letterSpacing
|
42
68
|
}, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
|
43
|
-
|
69
|
+
font: parseFontValue(h1),
|
70
|
+
letterSpacing: h1.letterSpacing
|
44
71
|
}),
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
72
|
+
h2: _defineProperty({
|
73
|
+
font: parseFontValue(h2M)
|
74
|
+
}, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
|
75
|
+
font: parseFontValue(h2)
|
76
|
+
}),
|
77
|
+
h3: _defineProperty({
|
78
|
+
font: parseFontValue(h3M)
|
79
|
+
}, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
|
80
|
+
font: parseFontValue(h3)
|
81
|
+
}),
|
82
|
+
h4: _defineProperty({
|
83
|
+
font: parseFontValue(h4M)
|
84
|
+
}, "@media screen and (min-width:".concat(_grid["default"].sm, "px)"), {
|
85
|
+
font: parseFontValue(h4)
|
86
|
+
}),
|
87
|
+
h5: {
|
88
|
+
font: parseFontValue(h5)
|
49
89
|
},
|
50
|
-
|
51
|
-
|
52
|
-
lineHeight: 1.1,
|
53
|
-
fontWeight: 400
|
90
|
+
tag: {
|
91
|
+
font: parseFontValue(tag)
|
54
92
|
},
|
55
|
-
|
56
|
-
|
57
|
-
lineHeight: 1.5
|
93
|
+
bodyXLarge: {
|
94
|
+
font: parseFontValue(bodyXLarge)
|
58
95
|
},
|
59
|
-
|
60
|
-
|
61
|
-
lineHeight: 1.5
|
96
|
+
bodyLargeStrong: {
|
97
|
+
font: parseFontValue(bodyLargeStrong)
|
62
98
|
},
|
63
|
-
|
64
|
-
|
65
|
-
lineHeight: 1.5
|
99
|
+
bodyLarge: {
|
100
|
+
font: parseFontValue(bodyLarge)
|
66
101
|
},
|
67
|
-
|
68
|
-
|
69
|
-
lineHeight: 1.5
|
102
|
+
bodyRegularStrong: {
|
103
|
+
font: parseFontValue(bodyRegularStrong)
|
70
104
|
},
|
71
|
-
|
72
|
-
|
73
|
-
|
105
|
+
bodyRegular: {
|
106
|
+
font: parseFontValue(bodyRegular)
|
107
|
+
},
|
108
|
+
bodySmallStrong: {
|
109
|
+
font: parseFontValue(bodySmallStrong)
|
110
|
+
},
|
111
|
+
bodySmall: {
|
112
|
+
font: parseFontValue(bodySmall)
|
113
|
+
},
|
114
|
+
bodyXSmall: {
|
115
|
+
font: parseFontValue(bodyXSmall)
|
74
116
|
},
|
75
117
|
// Weight
|
76
118
|
strong: {
|
77
119
|
fontWeight: 400
|
78
120
|
},
|
79
121
|
// Colors
|
80
|
-
|
81
|
-
color:
|
122
|
+
indigoPrimary: {
|
123
|
+
color: _colors2["default"].text.indigo.primary
|
82
124
|
},
|
83
|
-
|
84
|
-
color:
|
125
|
+
indigoSecondary: {
|
126
|
+
color: _colors2["default"].text.indigo.secondary
|
85
127
|
},
|
86
|
-
|
87
|
-
color:
|
128
|
+
pinkPrimary: {
|
129
|
+
color: _colors2["default"].text.pink.primary
|
88
130
|
},
|
89
|
-
|
90
|
-
color:
|
131
|
+
success: {
|
132
|
+
color: _colors2["default"].text.success
|
91
133
|
},
|
92
134
|
warning: {
|
93
|
-
color:
|
135
|
+
color: _colors2["default"].text.warning
|
136
|
+
},
|
137
|
+
error: {
|
138
|
+
color: _colors2["default"].text.error
|
94
139
|
},
|
95
140
|
info: {
|
96
141
|
color: _colors["default"].infoText
|
@@ -98,21 +143,24 @@ var _default = {
|
|
98
143
|
disabled: {
|
99
144
|
color: _colors["default"].inkLightest
|
100
145
|
},
|
101
|
-
|
102
|
-
color:
|
146
|
+
whiteSecondary: {
|
147
|
+
color: _colors2["default"].text.white.secondary
|
148
|
+
},
|
149
|
+
whitePrimary: {
|
150
|
+
color: _colors2["default"].text.white.primary
|
103
151
|
},
|
104
152
|
link: {
|
105
153
|
color: _colors["default"].textLink
|
106
154
|
},
|
107
155
|
// Emphasis
|
108
|
-
|
109
|
-
color:
|
156
|
+
corpPrimary: {
|
157
|
+
color: _colors2["default"].text.corp.primary
|
110
158
|
},
|
111
|
-
|
112
|
-
color:
|
159
|
+
corpSecondary: {
|
160
|
+
color: _colors2["default"].text.corp.secondary
|
113
161
|
},
|
114
|
-
|
115
|
-
color:
|
162
|
+
corpDisabled: {
|
163
|
+
color: _colors2["default"].text.corp.disabled
|
116
164
|
},
|
117
165
|
// Align
|
118
166
|
left: {
|
@@ -125,47 +173,83 @@ var _default = {
|
|
125
173
|
textAlign: 'right'
|
126
174
|
},
|
127
175
|
// Spacing
|
128
|
-
|
129
|
-
marginTop: _spacing["default"]
|
176
|
+
top0: {
|
177
|
+
marginTop: _spacing["default"]['size-0']
|
178
|
+
},
|
179
|
+
top1: {
|
180
|
+
marginTop: _spacing["default"]['size-1']
|
181
|
+
},
|
182
|
+
top2: {
|
183
|
+
marginTop: _spacing["default"]['size-2']
|
184
|
+
},
|
185
|
+
top3: {
|
186
|
+
marginTop: _spacing["default"]['size-3']
|
187
|
+
},
|
188
|
+
top4: {
|
189
|
+
marginTop: _spacing["default"]['size-4']
|
190
|
+
},
|
191
|
+
top5: {
|
192
|
+
marginTop: _spacing["default"]['size-5']
|
193
|
+
},
|
194
|
+
top6: {
|
195
|
+
marginTop: _spacing["default"]['size-6']
|
196
|
+
},
|
197
|
+
top7: {
|
198
|
+
marginTop: _spacing["default"]['size-7']
|
199
|
+
},
|
200
|
+
top8: {
|
201
|
+
marginTop: _spacing["default"]['size-8']
|
202
|
+
},
|
203
|
+
top9: {
|
204
|
+
marginTop: _spacing["default"]['size-9']
|
205
|
+
},
|
206
|
+
top10: {
|
207
|
+
marginTop: _spacing["default"]['size-10']
|
208
|
+
},
|
209
|
+
top11: {
|
210
|
+
marginTop: _spacing["default"]['size-11']
|
211
|
+
},
|
212
|
+
top12: {
|
213
|
+
marginTop: _spacing["default"]['size-12']
|
130
214
|
},
|
131
|
-
|
132
|
-
|
215
|
+
bottom0: {
|
216
|
+
marginBottom: _spacing["default"]['size-0']
|
133
217
|
},
|
134
|
-
|
135
|
-
|
218
|
+
bottom1: {
|
219
|
+
marginBottom: _spacing["default"]['size-1']
|
136
220
|
},
|
137
|
-
|
138
|
-
|
221
|
+
bottom2: {
|
222
|
+
marginBottom: _spacing["default"]['size-2']
|
139
223
|
},
|
140
|
-
|
141
|
-
|
224
|
+
bottom3: {
|
225
|
+
marginBottom: _spacing["default"]['size-3']
|
142
226
|
},
|
143
|
-
|
144
|
-
|
227
|
+
bottom4: {
|
228
|
+
marginBottom: _spacing["default"]['size-4']
|
145
229
|
},
|
146
|
-
|
147
|
-
|
230
|
+
bottom5: {
|
231
|
+
marginBottom: _spacing["default"]['size-5']
|
148
232
|
},
|
149
|
-
|
150
|
-
marginBottom: _spacing["default"]
|
233
|
+
bottom6: {
|
234
|
+
marginBottom: _spacing["default"]['size-6']
|
151
235
|
},
|
152
|
-
|
153
|
-
marginBottom: _spacing["default"]
|
236
|
+
bottom7: {
|
237
|
+
marginBottom: _spacing["default"]['size-7']
|
154
238
|
},
|
155
|
-
|
156
|
-
marginBottom: _spacing["default"]
|
239
|
+
bottom8: {
|
240
|
+
marginBottom: _spacing["default"]['size-8']
|
157
241
|
},
|
158
|
-
|
159
|
-
marginBottom: _spacing["default"]
|
242
|
+
bottom9: {
|
243
|
+
marginBottom: _spacing["default"]['size-9']
|
160
244
|
},
|
161
|
-
|
162
|
-
marginBottom: _spacing["default"]
|
245
|
+
bottom10: {
|
246
|
+
marginBottom: _spacing["default"]['size-10']
|
163
247
|
},
|
164
|
-
|
165
|
-
marginBottom: _spacing["default"]
|
248
|
+
bottom11: {
|
249
|
+
marginBottom: _spacing["default"]['size-11']
|
166
250
|
},
|
167
|
-
|
168
|
-
marginBottom: _spacing["default"]
|
251
|
+
bottom12: {
|
252
|
+
marginBottom: _spacing["default"]['size-12']
|
169
253
|
},
|
170
254
|
titleCase: {
|
171
255
|
textTransform: 'capitalize'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
|
-
exports[`Toaster launches a toast 1`] = `"<div class=\\"container\\"><div class=\\"Toast-toast-0-1-1 Toast-success-0-1-3\\"><div class=\\"Flexbox-flex-0-1-12 Toast-content-0-1-7\\"><div class=\\"Flexbox-flex-0-1-12 Flexbox-acenter-0-1-29\\"><div class=\\"\\" style=\\"flex: 1;\\"><p class=\\"Text-text-0-1-44 Text-
|
3
|
+
exports[`Toaster launches a toast 1`] = `"<div class=\\"container\\"><div class=\\"Toast-toast-0-1-1 Toast-success-0-1-3\\"><div class=\\"Flexbox-flex-0-1-12 Toast-content-0-1-7\\"><div class=\\"Flexbox-flex-0-1-12 Flexbox-acenter-0-1-29\\"><div class=\\"\\" style=\\"flex: 1;\\"><p class=\\"Text-text-0-1-44 Text-h5-0-1-50 Text-whitePrimary-0-1-70\\">Title</p></div></div></div></div></div>"`;
|
4
4
|
|
5
5
|
exports[`Toaster matches the snapshot 1`] = `"<div class=\\"container\\"></div>"`;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@occmundial/occ-atomic",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.5",
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
6
6
|
"main": "build/index.js",
|