react-jupiter 5.8.1 → 5.8.3
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/accordion/index.js +3 -3
- package/avatar/index.js +5 -5
- package/avatar/theme.js +3 -3
- package/button/index.js +3 -3
- package/button/theme.js +9 -9
- package/card/card-template/index.js +29 -30
- package/card/card-template/index.test.js +9 -9
- package/card/event-card/event-card-label/index.js +2 -2
- package/card/event-card/index.js +44 -33
- package/card/event-card/index.stories.js +31 -11
- package/card/event-card/index.test.js +11 -11
- package/card/index.js +2 -1
- package/card/organization-card/index.js +2 -2
- package/card/organization-card/index.stories.js +2 -2
- package/card/organization-card/index.test.js +5 -5
- package/card/orgnizer-card/buttons.js +3 -3
- package/card/orgnizer-card/index.js +2 -2
- package/cover/index.js +3 -3
- package/display/index.js +2 -2
- package/file-item/index.js +2 -2
- package/file-item/theme.js +4 -4
- package/form/captcha/index.js +2 -2
- package/form/checkbox/checkbox-option.js +2 -2
- package/form/checkbox/checkbox.js +2 -2
- package/form/checkbox/index.js +2 -1
- package/form/dropdown/index.js +2 -1
- package/form/dropdown/option.js +2 -2
- package/form/dropdown/select.js +2 -2
- package/form/errorMsg.js +2 -2
- package/form/index.js +2 -1
- package/form/radio/index.js +2 -1
- package/form/radio/radio-option.js +2 -2
- package/form/radio/radio.js +2 -2
- package/form/text-input/index.js +2 -2
- package/form/textarea/index.js +2 -2
- package/form/theme.js +5 -5
- package/icon/index.js +5 -5
- package/icon/theme.js +6 -6
- package/icons/index.js +5 -5
- package/icons/theme.js +3 -3
- package/index.js +2 -1
- package/modal/index.js +2 -2
- package/modal/index.style.js +5 -5
- package/modal/theme.js +2 -2
- package/numeric-summery-report/index.js +2 -2
- package/package.json +3 -3
- package/product-menu/index.js +2 -1
- package/product-menu/menu-item.js +2 -2
- package/product-menu/menu.js +10 -3
- package/product-menu/theme.js +2 -2
- package/product-owner/index.js +5 -5
- package/product-properties/index.js +3 -3
- package/progress-bar/index.js +2 -2
- package/responsive/index.js +3 -3
- package/show-date/index.js +4 -4
- package/spacing/index.js +2 -1
- package/spacing/padding/index.js +0 -1
- package/table/actionCell.js +1 -1
- package/table/theme.js +2 -2
- package/tabs/index.js +2 -1
- package/tabs/tabs.js +2 -2
- package/tabs/theme.js +2 -2
- package/themes.js +26 -26
- package/titled-avatar/index.js +2 -2
- package/typography/heading/index.js +27 -27
- package/typography/heading/index.stories.js +2 -2
- package/typography/heading/index.test.js +1 -1
- package/typography/index.js +2 -1
- package/typography/link/index.js +5 -5
- package/typography/link/index.test.js +9 -9
- package/typography/paragraph/index.js +5 -5
- package/typography/paragraph/index.test.js +7 -7
- package/typography/text/index.js +7 -7
- package/typography/text/index.test.js +55 -55
- package/typography/theme.js +2 -2
- package/utils/index.js +2 -1
- package/utils/media-query.js +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var _react=_interopRequireDefault(require("react")),_enzyme=require("enzyme");require("jest-styled-components");var _index=_interopRequireDefault(require("./index")),_test=_interopRequireDefault(require("../../utils/test")),_theme=_interopRequireDefault(require("../theme"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign
|
|
1
|
+
"use strict";var _react=_interopRequireDefault(require("react")),_enzyme=require("enzyme");require("jest-styled-components");var _index=_interopRequireDefault(require("./index")),_test=_interopRequireDefault(require("../../utils/test")),_theme=_interopRequireDefault(require("../theme"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -55,8 +55,8 @@ expect(b.length).toBe(0);
|
|
|
55
55
|
|
|
56
56
|
it("Should render simple Text with span tag",function(){var
|
|
57
57
|
a=setupShallow({
|
|
58
|
-
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647"
|
|
59
|
-
|
|
58
|
+
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647"
|
|
59
|
+
}),
|
|
60
60
|
b=(0,_test.default)(a,"span");
|
|
61
61
|
expect(b.length).toBe(1);
|
|
62
62
|
}),
|
|
@@ -64,8 +64,8 @@ expect(b.length).toBe(1);
|
|
|
64
64
|
it("Should render simple Text with strong tag",function(){var
|
|
65
65
|
a=setupShallow({
|
|
66
66
|
children:"\u062A\u06A9\u0633\u062A \u0627\u0633\u062A\u0631\u0627\u0646\u06AF",
|
|
67
|
-
strong:!0
|
|
68
|
-
|
|
67
|
+
strong:!0
|
|
68
|
+
}),
|
|
69
69
|
b=(0,_test.default)(a,"strong");
|
|
70
70
|
expect(b.length).toBe(1);
|
|
71
71
|
}),
|
|
@@ -73,8 +73,8 @@ expect(b.length).toBe(1);
|
|
|
73
73
|
it("Should render simple Text with em tag",function(){var
|
|
74
74
|
a=setupShallow({
|
|
75
75
|
children:"\u062A\u06A9\u0633\u062A \u06A9\u062C",
|
|
76
|
-
emphasized:!0
|
|
77
|
-
|
|
76
|
+
emphasized:!0
|
|
77
|
+
}),
|
|
78
78
|
b=(0,_test.default)(a,"emphasized");
|
|
79
79
|
expect(b.length).toBe(1);
|
|
80
80
|
}),
|
|
@@ -85,8 +85,8 @@ children:"\u062A\u06A9\u0633\u062A \u0627\u0633\u062A\u0631\u0627\u0646\u06AF",
|
|
|
85
85
|
strong:!0,
|
|
86
86
|
emphasized:!0,
|
|
87
87
|
subScript:!0,
|
|
88
|
-
supScript:!0
|
|
89
|
-
|
|
88
|
+
supScript:!0
|
|
89
|
+
}),
|
|
90
90
|
b=(0,_test.default)(a,"strong");
|
|
91
91
|
expect(b.length).toBe(1);
|
|
92
92
|
}),
|
|
@@ -97,8 +97,8 @@ children:"\u062A\u06A9\u0633\u062A \u0627\u0633\u062A\u0631\u0627\u0646\u06AF",
|
|
|
97
97
|
strong:!0,
|
|
98
98
|
emphasized:!0,
|
|
99
99
|
subScript:!0,
|
|
100
|
-
supScript:!0
|
|
101
|
-
|
|
100
|
+
supScript:!0
|
|
101
|
+
}),
|
|
102
102
|
b=(0,_test.default)(a,"strong");
|
|
103
103
|
expect(b.length).toBe(1);
|
|
104
104
|
}),
|
|
@@ -106,8 +106,8 @@ expect(b.length).toBe(1);
|
|
|
106
106
|
it("Should render subScript text",function(){var
|
|
107
107
|
a=setupShallow({
|
|
108
108
|
children:"\u062A\u06A9\u0633\u062A \u067E\u0627\u06CC\u06CC\u0646\u200C\u0646\u0648\u06CC\u0633",
|
|
109
|
-
subScript:!0
|
|
110
|
-
|
|
109
|
+
subScript:!0
|
|
110
|
+
}),
|
|
111
111
|
b=(0,_test.default)(a,"subScript");
|
|
112
112
|
expect(b.length).toBe(1);
|
|
113
113
|
}),
|
|
@@ -115,8 +115,8 @@ expect(b.length).toBe(1);
|
|
|
115
115
|
it("Should render supScript text",function(){var
|
|
116
116
|
a=setupShallow({
|
|
117
117
|
children:"\u062A\u06A9\u0633\u062A \u0628\u0627\u0644\u0627\u200C\u0646\u0648\u06CC\u0633",
|
|
118
|
-
supScript:!0
|
|
119
|
-
|
|
118
|
+
supScript:!0
|
|
119
|
+
}),
|
|
120
120
|
b=(0,_test.default)(a,"supScript");
|
|
121
121
|
expect(b.length).toBe(1);
|
|
122
122
|
}),
|
|
@@ -125,8 +125,8 @@ it("Should render subScript text when both subScript and supScript prop is true"
|
|
|
125
125
|
a=setupShallow({
|
|
126
126
|
children:"\u062A\u06A9\u0633\u062A \u067E\u0627\u06CC\u06CC\u0646\u200C\u0646\u0648\u06CC\u0633",
|
|
127
127
|
subScript:!0,
|
|
128
|
-
supScript:!0
|
|
129
|
-
|
|
128
|
+
supScript:!0
|
|
129
|
+
}),
|
|
130
130
|
b=(0,_test.default)(a,"subScript"),
|
|
131
131
|
c=(0,_test.default)(a,"supScript");
|
|
132
132
|
expect(b.length).toBe(1),
|
|
@@ -137,8 +137,8 @@ it("Should render a strong text with default color and lineThrough",function(){
|
|
|
137
137
|
var a=setupMount({
|
|
138
138
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
139
139
|
strong:!0,
|
|
140
|
-
lineThrough:!0
|
|
141
|
-
|
|
140
|
+
lineThrough:!0
|
|
141
|
+
});
|
|
142
142
|
expect(a).toHaveStyleRule("color",_theme.default.defaultColor),
|
|
143
143
|
expect(a).toHaveStyleRule("text-decoration","line-through"),
|
|
144
144
|
a.unmount();
|
|
@@ -148,8 +148,8 @@ it("Should render a strong text with red color and underline",function(){
|
|
|
148
148
|
var a=setupMount({
|
|
149
149
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
150
150
|
strong:!0,
|
|
151
|
-
underline:!0
|
|
152
|
-
|
|
151
|
+
underline:!0
|
|
152
|
+
});
|
|
153
153
|
expect(a).toHaveStyleRule("text-decoration","underline"),
|
|
154
154
|
a.unmount();
|
|
155
155
|
}),
|
|
@@ -158,8 +158,8 @@ it("Should render a strong text as label",function(){
|
|
|
158
158
|
var a=setupMount({
|
|
159
159
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
160
160
|
strong:!0,
|
|
161
|
-
label:!0
|
|
162
|
-
|
|
161
|
+
label:!0
|
|
162
|
+
});
|
|
163
163
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.gray400),
|
|
164
164
|
expect(a).toHaveStyleRule("padding","2px 8px"),
|
|
165
165
|
expect(a).toHaveStyleRule("border-radius","2px"),
|
|
@@ -170,8 +170,8 @@ it("Should render a strong text as marked",function(){
|
|
|
170
170
|
var a=setupMount({
|
|
171
171
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
172
172
|
strong:!0,
|
|
173
|
-
marked:!0
|
|
174
|
-
|
|
173
|
+
marked:!0
|
|
174
|
+
});
|
|
175
175
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.blue200),
|
|
176
176
|
a.unmount();
|
|
177
177
|
}),
|
|
@@ -180,8 +180,8 @@ it("Should render a emphasized text with underline",function(){
|
|
|
180
180
|
var a=setupMount({
|
|
181
181
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
182
182
|
emphasized:!0,
|
|
183
|
-
underline:!0
|
|
184
|
-
|
|
183
|
+
underline:!0
|
|
184
|
+
});
|
|
185
185
|
expect(a).toHaveStyleRule("color",_theme.default.defaultColor),
|
|
186
186
|
expect(a).toHaveStyleRule("text-decoration","underline"),
|
|
187
187
|
a.unmount();
|
|
@@ -191,8 +191,8 @@ it("Should render a emphasized text with lineThrough",function(){
|
|
|
191
191
|
var a=setupMount({
|
|
192
192
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
193
193
|
emphasized:!0,
|
|
194
|
-
lineThrough:!0
|
|
195
|
-
|
|
194
|
+
lineThrough:!0
|
|
195
|
+
});
|
|
196
196
|
expect(a).toHaveStyleRule("color",_theme.default.defaultColor),
|
|
197
197
|
expect(a).toHaveStyleRule("text-decoration","line-through"),
|
|
198
198
|
a.unmount();
|
|
@@ -202,8 +202,8 @@ it("Should render a emphasized text with bold weight",function(){
|
|
|
202
202
|
var a=setupMount({
|
|
203
203
|
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647",
|
|
204
204
|
emphasized:!0,
|
|
205
|
-
strong:!0
|
|
206
|
-
|
|
205
|
+
strong:!0
|
|
206
|
+
});
|
|
207
207
|
expect(a).toHaveStyleRule("color",_theme.default.defaultColor),
|
|
208
208
|
expect(a).toHaveStyleRule("font-style","italic"),
|
|
209
209
|
a.unmount();
|
|
@@ -211,8 +211,8 @@ a.unmount();
|
|
|
211
211
|
|
|
212
212
|
it("Should render text with default size and color",function(){
|
|
213
213
|
var a=setupMount({
|
|
214
|
-
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647"
|
|
215
|
-
|
|
214
|
+
children:"\u062A\u06A9\u0633\u062A \u0633\u0627\u062F\u0647"
|
|
215
|
+
});
|
|
216
216
|
expect(a).toHaveStyleRule("font-size","".concat(_theme.default.defaultSize,"px")),
|
|
217
217
|
expect(a).toHaveStyleRule("color",_theme.default.defaultColor),
|
|
218
218
|
a.unmount();
|
|
@@ -221,8 +221,8 @@ a.unmount();
|
|
|
221
221
|
it("Should render simple Text with underline",function(){
|
|
222
222
|
var a=setupMount({
|
|
223
223
|
children:"\u062A\u06A9\u0633\u062A \u0632\u06CC\u0631 \u062E\u0637 \u062F\u0627\u0631",
|
|
224
|
-
underline:!0
|
|
225
|
-
|
|
224
|
+
underline:!0
|
|
225
|
+
});
|
|
226
226
|
expect(a).toHaveStyleRule("text-decoration","underline"),
|
|
227
227
|
a.unmount();
|
|
228
228
|
}),
|
|
@@ -230,8 +230,8 @@ a.unmount();
|
|
|
230
230
|
it("Should render simple Text with line-through",function(){
|
|
231
231
|
var a=setupMount({
|
|
232
232
|
children:"\u062A\u06A9\u0633\u062A \u0631\u0648 \u062E\u0637 \u062F\u0627\u0631",
|
|
233
|
-
lineThrough:!0
|
|
234
|
-
|
|
233
|
+
lineThrough:!0
|
|
234
|
+
});
|
|
235
235
|
expect(a).toHaveStyleRule("text-decoration","line-through"),
|
|
236
236
|
a.unmount();
|
|
237
237
|
}),
|
|
@@ -240,8 +240,8 @@ it("Should render simple Text without any text-decoration style",function(){
|
|
|
240
240
|
var a=setupMount({
|
|
241
241
|
children:"\u062A\u06A9\u0633\u062A \u063A\u06CC\u0631 \u0645\u0639\u0642\u0648\u0644",
|
|
242
242
|
lineThrough:!0,
|
|
243
|
-
underline:!0
|
|
244
|
-
|
|
243
|
+
underline:!0
|
|
244
|
+
});
|
|
245
245
|
expect(a).not.toHaveStyleRule("text-decoration"),
|
|
246
246
|
a.unmount();
|
|
247
247
|
}),
|
|
@@ -251,8 +251,8 @@ var a=setupMount({
|
|
|
251
251
|
children:"\u062A\u06A9\u0633\u062A \u063A\u06CC\u0631 \u0645\u0639\u0642\u0648\u0644",
|
|
252
252
|
emphasized:!0,
|
|
253
253
|
lineThrough:!0,
|
|
254
|
-
underline:!0
|
|
255
|
-
|
|
254
|
+
underline:!0
|
|
255
|
+
});
|
|
256
256
|
expect(a).not.toHaveStyleRule("text-decoration"),
|
|
257
257
|
a.unmount();
|
|
258
258
|
}),
|
|
@@ -261,8 +261,8 @@ it("Should render emphasized Text as label",function(){
|
|
|
261
261
|
var a=setupMount({
|
|
262
262
|
children:"\u062A\u06A9\u0633\u062A \u0644\u06CC\u0628\u0644 \u06A9\u062C",
|
|
263
263
|
emphasized:!0,
|
|
264
|
-
label:!0
|
|
265
|
-
|
|
264
|
+
label:!0
|
|
265
|
+
});
|
|
266
266
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.gray400),
|
|
267
267
|
expect(a).toHaveStyleRule("border-radius","2px"),
|
|
268
268
|
expect(a).toHaveStyleRule("padding","2px 8px"),
|
|
@@ -273,8 +273,8 @@ it("Should render emphasized Text as marked",function(){
|
|
|
273
273
|
var a=setupMount({
|
|
274
274
|
children:"\u062A\u06A9\u0633\u062A \u0645\u0627\u0631\u06A9 \u0634\u062F\u0647 \u06A9\u062C",
|
|
275
275
|
emphasized:!0,
|
|
276
|
-
marked:!0
|
|
277
|
-
|
|
276
|
+
marked:!0
|
|
277
|
+
});
|
|
278
278
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.blue200),
|
|
279
279
|
a.unmount();
|
|
280
280
|
}),
|
|
@@ -282,8 +282,8 @@ a.unmount();
|
|
|
282
282
|
it("Should render simple marked text",function(){
|
|
283
283
|
var a=setupMount({
|
|
284
284
|
children:"\u0645\u0627\u0631\u06A9",
|
|
285
|
-
marked:!0
|
|
286
|
-
|
|
285
|
+
marked:!0
|
|
286
|
+
});
|
|
287
287
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.blue200),
|
|
288
288
|
a.unmount();
|
|
289
289
|
}),
|
|
@@ -291,8 +291,8 @@ a.unmount();
|
|
|
291
291
|
it("Should render simple label text",function(){
|
|
292
292
|
var a=setupMount({
|
|
293
293
|
children:"\u0644\u06CC\u0628\u06CC\u0644",
|
|
294
|
-
label:!0
|
|
295
|
-
|
|
294
|
+
label:!0
|
|
295
|
+
});
|
|
296
296
|
expect(a).toHaveStyleRule("background-color",_theme.default.colors.gray400),
|
|
297
297
|
expect(a).toHaveStyleRule("border-radius","2px"),
|
|
298
298
|
expect(a).toHaveStyleRule("padding","2px 8px"),
|
|
@@ -303,8 +303,8 @@ it("Should render simple text when label and marked props are both true",functio
|
|
|
303
303
|
var a=setupMount({
|
|
304
304
|
children:"\u0644\u06CC\u0628\u06CC\u0644",
|
|
305
305
|
label:!0,
|
|
306
|
-
marked:!0
|
|
307
|
-
|
|
306
|
+
marked:!0
|
|
307
|
+
});
|
|
308
308
|
expect(a).not.toHaveStyleRule("background-color"),
|
|
309
309
|
expect(a).not.toHaveStyleRule("border-radius"),
|
|
310
310
|
expect(a).not.toHaveStyleRule("padding"),
|
|
@@ -315,8 +315,8 @@ it("Should render blue supScript text",function(){
|
|
|
315
315
|
var a=setupMount({
|
|
316
316
|
children:"\u062A\u06A9\u0633\u062A \u0628\u0627\u0644\u0627\u200C\u0646\u0648\u06CC\u0633",
|
|
317
317
|
supScript:!0,
|
|
318
|
-
color:"blue"
|
|
319
|
-
|
|
318
|
+
color:"blue"
|
|
319
|
+
});
|
|
320
320
|
expect(a).toHaveStyleRule("color",_theme.default.colors.blue600),
|
|
321
321
|
a.unmount();
|
|
322
322
|
}),
|
|
@@ -325,8 +325,8 @@ it("Should render blue subScript text",function(){
|
|
|
325
325
|
var a=setupMount({
|
|
326
326
|
children:"\u062A\u06A9\u0633\u062A \u067E\u0627\u06CC\u06CC\u0646 \u0646\u0648\u06CC\u0633",
|
|
327
327
|
subScript:!0,
|
|
328
|
-
color:"blue"
|
|
329
|
-
|
|
328
|
+
color:"blue"
|
|
329
|
+
});
|
|
330
330
|
expect(a).toHaveStyleRule("color",_theme.default.colors.blue600),
|
|
331
331
|
a.unmount();
|
|
332
332
|
});
|
package/typography/theme.js
CHANGED
|
@@ -60,7 +60,7 @@ h6SizeSmallMarginBottom:10,
|
|
|
60
60
|
lineHeightRatio:1.75,
|
|
61
61
|
headingLineHeightRatio:1.68,
|
|
62
62
|
sizes:_themes.default.sizes,
|
|
63
|
-
colors:_themes.default.colors
|
|
64
|
-
|
|
63
|
+
colors:_themes.default.colors
|
|
64
|
+
},_default=
|
|
65
65
|
|
|
66
66
|
typographyTheme;exports.default=_default;
|
package/utils/index.js
CHANGED
package/utils/media-query.js
CHANGED
|
@@ -6,7 +6,7 @@ xl:"".concat(_themes.default.breakpoints.xl,"px"),
|
|
|
6
6
|
lg:"".concat(_themes.default.breakpoints.lg,"px"),
|
|
7
7
|
md:"".concat(_themes.default.breakpoints.md,"px"),
|
|
8
8
|
sm:"".concat(_themes.default.breakpoints.sm,"px"),
|
|
9
|
-
xs:"".concat(_themes.default.breakpoints.xs,"px")
|
|
10
|
-
|
|
9
|
+
xs:"".concat(_themes.default.breakpoints.xs,"px")
|
|
10
|
+
}),_default=
|
|
11
11
|
|
|
12
12
|
mediaQuery;exports.default=_default;
|