@lumx/react 3.0.3 → 3.0.4-alpha.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/_internal/ClickAwayProvider.js +37 -232
- package/_internal/ClickAwayProvider.js.map +1 -1
- package/index.d.ts +10 -2
- package/index.js +4031 -4319
- package/index.js.map +1 -1
- package/package.json +28 -34
- package/src/components/alert-dialog/__snapshots__/AlertDialog.test.tsx.snap +23 -23
- package/src/components/autocomplete/Autocomplete.tsx +8 -0
- package/src/components/autocomplete/__snapshots__/Autocomplete.test.tsx.snap +4 -4
- package/src/components/autocomplete/__snapshots__/AutocompleteMultiple.test.tsx.snap +1 -1
- package/src/components/avatar/__snapshots__/Avatar.test.tsx.snap +6 -6
- package/src/components/button/__snapshots__/ButtonRoot.test.tsx.snap +1 -1
- package/src/components/button/index.ts +1 -0
- package/src/components/date-picker/__snapshots__/DatePicker.test.tsx.snap +2 -2
- package/src/components/date-picker/__snapshots__/DatePickerField.test.tsx.snap +2 -2
- package/src/components/dialog/__snapshots__/Dialog.test.tsx.snap +22 -22
- package/src/components/dropdown/Dropdown.tsx +2 -0
- package/src/components/dropdown/__snapshots__/Dropdown.test.tsx.snap +2 -2
- package/src/components/flag/__snapshots__/Flag.test.tsx.snap +1 -1
- package/src/components/flex-box/__snapshots__/FlexBox.test.tsx.snap +31 -31
- package/src/components/heading/Heading.test.tsx +32 -27
- package/src/components/icon/__snapshots__/Icon.test.tsx.snap +2 -2
- package/src/components/image-block/__snapshots__/ImageBlock.test.tsx.snap +1 -1
- package/src/components/index.ts +5 -0
- package/src/components/inline-list/InlineList.tsx +3 -1
- package/src/components/lightbox/__snapshots__/Lightbox.test.tsx.snap +7 -7
- package/src/components/list/__snapshots__/List.test.tsx.snap +13 -13
- package/src/components/notification/__snapshots__/Notification.test.tsx.snap +1 -1
- package/src/components/popover/__snapshots__/Popover.test.tsx.snap +52 -52
- package/src/components/post-block/__snapshots__/PostBlock.test.tsx.snap +4 -4
- package/src/components/progress-tracker/__snapshots__/ProgressTracker.test.tsx.snap +2 -2
- package/src/components/select/__snapshots__/Select.test.tsx.snap +2 -2
- package/src/components/select/__snapshots__/SelectMultiple.test.tsx.snap +6 -6
- package/src/components/skeleton/__snapshots__/SkeletonCircle.test.tsx.snap +1 -1
- package/src/components/skeleton/__snapshots__/SkeletonRectangle.test.tsx.snap +1 -1
- package/src/components/skeleton/__snapshots__/SkeletonTypography.test.tsx.snap +15 -15
- package/src/components/slider/__snapshots__/Slider.test.tsx.snap +4 -4
- package/src/components/slideshow/__snapshots__/Slideshow.test.tsx.snap +10 -10
- package/src/components/table/__snapshots__/Table.test.tsx.snap +1 -1
- package/src/components/text/Text.test.tsx +67 -35
- package/src/components/text/Text.tsx +8 -7
- package/src/components/text-field/TextField.test.tsx +75 -117
- package/src/components/text-field/__snapshots__/TextField.test.tsx.snap +12 -17
- package/src/components/thumbnail/__snapshots__/Thumbnail.test.tsx.snap +6 -6
- package/src/components/tooltip/__snapshots__/Tooltip.test.tsx.snap +6 -6
- package/src/components/user-block/__snapshots__/UserBlock.test.tsx.snap +11 -11
- package/src/stories/generated/Dropdown/Demos.stories.tsx +1 -0
- package/src/testing/utils/commonTestsSuiteRTL.ts +55 -0
- package/src/testing/utils/index.ts +1 -0
- package/src/testing/utils/queries.ts +19 -0
- package/src/utils/focus/getFocusableElements.test.ts +12 -12
- package/types.d.ts +0 -2847
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<Popover> Snapshots and structure should render story 'Alignments' 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
<Portal
|
|
6
6
|
containerInfo={<body />}
|
|
7
7
|
>
|
|
8
8
|
<div
|
|
9
9
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-top-start"
|
|
10
10
|
style={
|
|
11
|
-
|
|
11
|
+
{
|
|
12
12
|
"left": "0",
|
|
13
13
|
"position": "absolute",
|
|
14
14
|
"top": "0",
|
|
@@ -18,12 +18,12 @@ Array [
|
|
|
18
18
|
>
|
|
19
19
|
<ClickAwayProvider
|
|
20
20
|
childrenRefs={
|
|
21
|
-
|
|
22
|
-
"current":
|
|
23
|
-
|
|
21
|
+
{
|
|
22
|
+
"current": [
|
|
23
|
+
{
|
|
24
24
|
"current": null,
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"current": null,
|
|
28
28
|
},
|
|
29
29
|
],
|
|
@@ -40,7 +40,7 @@ Array [
|
|
|
40
40
|
<div
|
|
41
41
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-top-end"
|
|
42
42
|
style={
|
|
43
|
-
|
|
43
|
+
{
|
|
44
44
|
"left": "0",
|
|
45
45
|
"position": "absolute",
|
|
46
46
|
"top": "0",
|
|
@@ -50,12 +50,12 @@ Array [
|
|
|
50
50
|
>
|
|
51
51
|
<ClickAwayProvider
|
|
52
52
|
childrenRefs={
|
|
53
|
-
|
|
54
|
-
"current":
|
|
55
|
-
|
|
53
|
+
{
|
|
54
|
+
"current": [
|
|
55
|
+
{
|
|
56
56
|
"current": null,
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
{
|
|
59
59
|
"current": null,
|
|
60
60
|
},
|
|
61
61
|
],
|
|
@@ -76,7 +76,7 @@ exports[`<Popover> Snapshots and structure should render story 'Auto' 1`] = `
|
|
|
76
76
|
<div
|
|
77
77
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-auto"
|
|
78
78
|
style={
|
|
79
|
-
|
|
79
|
+
{
|
|
80
80
|
"left": "0",
|
|
81
81
|
"position": "absolute",
|
|
82
82
|
"top": "0",
|
|
@@ -86,12 +86,12 @@ exports[`<Popover> Snapshots and structure should render story 'Auto' 1`] = `
|
|
|
86
86
|
>
|
|
87
87
|
<ClickAwayProvider
|
|
88
88
|
childrenRefs={
|
|
89
|
-
|
|
90
|
-
"current":
|
|
91
|
-
|
|
89
|
+
{
|
|
90
|
+
"current": [
|
|
91
|
+
{
|
|
92
92
|
"current": null,
|
|
93
93
|
},
|
|
94
|
-
|
|
94
|
+
{
|
|
95
95
|
"current": null,
|
|
96
96
|
},
|
|
97
97
|
],
|
|
@@ -111,7 +111,7 @@ exports[`<Popover> Snapshots and structure should render story 'Default' 1`] = `
|
|
|
111
111
|
<div
|
|
112
112
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-bottom"
|
|
113
113
|
style={
|
|
114
|
-
|
|
114
|
+
{
|
|
115
115
|
"left": "0",
|
|
116
116
|
"position": "absolute",
|
|
117
117
|
"top": "0",
|
|
@@ -121,12 +121,12 @@ exports[`<Popover> Snapshots and structure should render story 'Default' 1`] = `
|
|
|
121
121
|
>
|
|
122
122
|
<ClickAwayProvider
|
|
123
123
|
childrenRefs={
|
|
124
|
-
|
|
125
|
-
"current":
|
|
126
|
-
|
|
124
|
+
{
|
|
125
|
+
"current": [
|
|
126
|
+
{
|
|
127
127
|
"current": null,
|
|
128
128
|
},
|
|
129
|
-
|
|
129
|
+
{
|
|
130
130
|
"current": null,
|
|
131
131
|
},
|
|
132
132
|
],
|
|
@@ -146,7 +146,7 @@ exports[`<Popover> Snapshots and structure should render story 'MatchingWidth' 1
|
|
|
146
146
|
<div
|
|
147
147
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-bottom-start"
|
|
148
148
|
style={
|
|
149
|
-
|
|
149
|
+
{
|
|
150
150
|
"left": "0",
|
|
151
151
|
"position": "absolute",
|
|
152
152
|
"top": "0",
|
|
@@ -156,12 +156,12 @@ exports[`<Popover> Snapshots and structure should render story 'MatchingWidth' 1
|
|
|
156
156
|
>
|
|
157
157
|
<ClickAwayProvider
|
|
158
158
|
childrenRefs={
|
|
159
|
-
|
|
160
|
-
"current":
|
|
161
|
-
|
|
159
|
+
{
|
|
160
|
+
"current": [
|
|
161
|
+
{
|
|
162
162
|
"current": null,
|
|
163
163
|
},
|
|
164
|
-
|
|
164
|
+
{
|
|
165
165
|
"current": null,
|
|
166
166
|
},
|
|
167
167
|
],
|
|
@@ -181,7 +181,7 @@ exports[`<Popover> Snapshots and structure should render story 'Offset' 1`] = `
|
|
|
181
181
|
<div
|
|
182
182
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-right"
|
|
183
183
|
style={
|
|
184
|
-
|
|
184
|
+
{
|
|
185
185
|
"left": "0",
|
|
186
186
|
"position": "absolute",
|
|
187
187
|
"top": "0",
|
|
@@ -191,12 +191,12 @@ exports[`<Popover> Snapshots and structure should render story 'Offset' 1`] = `
|
|
|
191
191
|
>
|
|
192
192
|
<ClickAwayProvider
|
|
193
193
|
childrenRefs={
|
|
194
|
-
|
|
195
|
-
"current":
|
|
196
|
-
|
|
194
|
+
{
|
|
195
|
+
"current": [
|
|
196
|
+
{
|
|
197
197
|
"current": null,
|
|
198
198
|
},
|
|
199
|
-
|
|
199
|
+
{
|
|
200
200
|
"current": null,
|
|
201
201
|
},
|
|
202
202
|
],
|
|
@@ -210,14 +210,14 @@ exports[`<Popover> Snapshots and structure should render story 'Offset' 1`] = `
|
|
|
210
210
|
`;
|
|
211
211
|
|
|
212
212
|
exports[`<Popover> Snapshots and structure should render story 'Positions' 1`] = `
|
|
213
|
-
|
|
213
|
+
[
|
|
214
214
|
<Portal
|
|
215
215
|
containerInfo={<body />}
|
|
216
216
|
>
|
|
217
217
|
<div
|
|
218
218
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-left"
|
|
219
219
|
style={
|
|
220
|
-
|
|
220
|
+
{
|
|
221
221
|
"left": "0",
|
|
222
222
|
"position": "absolute",
|
|
223
223
|
"top": "0",
|
|
@@ -227,12 +227,12 @@ Array [
|
|
|
227
227
|
>
|
|
228
228
|
<ClickAwayProvider
|
|
229
229
|
childrenRefs={
|
|
230
|
-
|
|
231
|
-
"current":
|
|
232
|
-
|
|
230
|
+
{
|
|
231
|
+
"current": [
|
|
232
|
+
{
|
|
233
233
|
"current": null,
|
|
234
234
|
},
|
|
235
|
-
|
|
235
|
+
{
|
|
236
236
|
"current": null,
|
|
237
237
|
},
|
|
238
238
|
],
|
|
@@ -249,7 +249,7 @@ Array [
|
|
|
249
249
|
<div
|
|
250
250
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-top"
|
|
251
251
|
style={
|
|
252
|
-
|
|
252
|
+
{
|
|
253
253
|
"left": "0",
|
|
254
254
|
"position": "absolute",
|
|
255
255
|
"top": "0",
|
|
@@ -259,12 +259,12 @@ Array [
|
|
|
259
259
|
>
|
|
260
260
|
<ClickAwayProvider
|
|
261
261
|
childrenRefs={
|
|
262
|
-
|
|
263
|
-
"current":
|
|
264
|
-
|
|
262
|
+
{
|
|
263
|
+
"current": [
|
|
264
|
+
{
|
|
265
265
|
"current": null,
|
|
266
266
|
},
|
|
267
|
-
|
|
267
|
+
{
|
|
268
268
|
"current": null,
|
|
269
269
|
},
|
|
270
270
|
],
|
|
@@ -281,7 +281,7 @@ Array [
|
|
|
281
281
|
<div
|
|
282
282
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-bottom"
|
|
283
283
|
style={
|
|
284
|
-
|
|
284
|
+
{
|
|
285
285
|
"left": "0",
|
|
286
286
|
"position": "absolute",
|
|
287
287
|
"top": "0",
|
|
@@ -291,12 +291,12 @@ Array [
|
|
|
291
291
|
>
|
|
292
292
|
<ClickAwayProvider
|
|
293
293
|
childrenRefs={
|
|
294
|
-
|
|
295
|
-
"current":
|
|
296
|
-
|
|
294
|
+
{
|
|
295
|
+
"current": [
|
|
296
|
+
{
|
|
297
297
|
"current": null,
|
|
298
298
|
},
|
|
299
|
-
|
|
299
|
+
{
|
|
300
300
|
"current": null,
|
|
301
301
|
},
|
|
302
302
|
],
|
|
@@ -313,7 +313,7 @@ Array [
|
|
|
313
313
|
<div
|
|
314
314
|
className="lumx-spacing-padding-huge lumx-popover lumx-popover--elevation-3 lumx-popover--position-right"
|
|
315
315
|
style={
|
|
316
|
-
|
|
316
|
+
{
|
|
317
317
|
"left": "0",
|
|
318
318
|
"position": "absolute",
|
|
319
319
|
"top": "0",
|
|
@@ -323,12 +323,12 @@ Array [
|
|
|
323
323
|
>
|
|
324
324
|
<ClickAwayProvider
|
|
325
325
|
childrenRefs={
|
|
326
|
-
|
|
327
|
-
"current":
|
|
328
|
-
|
|
326
|
+
{
|
|
327
|
+
"current": [
|
|
328
|
+
{
|
|
329
329
|
"current": null,
|
|
330
330
|
},
|
|
331
|
-
|
|
331
|
+
{
|
|
332
332
|
"current": null,
|
|
333
333
|
},
|
|
334
334
|
],
|
|
@@ -24,7 +24,7 @@ exports[`<PostBlock> Snapshots and structure should render story 'Default' 1`] =
|
|
|
24
24
|
>
|
|
25
25
|
<UserBlock
|
|
26
26
|
avatarProps={
|
|
27
|
-
|
|
27
|
+
{
|
|
28
28
|
"alt": "Avatar",
|
|
29
29
|
"image": "/demo-assets/avatar2.jpg",
|
|
30
30
|
}
|
|
@@ -49,7 +49,7 @@ exports[`<PostBlock> Snapshots and structure should render story 'Default' 1`] =
|
|
|
49
49
|
<p
|
|
50
50
|
className="lumx-post-block__text"
|
|
51
51
|
dangerouslySetInnerHTML={
|
|
52
|
-
|
|
52
|
+
{
|
|
53
53
|
"__html": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus libero aliquet pharetra luctus. Fusce nisl turpis, posuere ac tellus at, euismod vulputate libero...",
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -59,13 +59,13 @@ exports[`<PostBlock> Snapshots and structure should render story 'Default' 1`] =
|
|
|
59
59
|
>
|
|
60
60
|
<UserBlock
|
|
61
61
|
avatarProps={
|
|
62
|
-
|
|
62
|
+
{
|
|
63
63
|
"alt": "Avatar",
|
|
64
64
|
"image": "/demo-assets/persona.png",
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
fields={
|
|
68
|
-
|
|
68
|
+
[
|
|
69
69
|
"Head of Design",
|
|
70
70
|
"Lyon",
|
|
71
71
|
]
|
|
@@ -21,7 +21,7 @@ exports[`<ProgressTracker> Snapshots and structure should render correctly 1`] =
|
|
|
21
21
|
<div
|
|
22
22
|
className="lumx-progress-tracker__background-bar"
|
|
23
23
|
style={
|
|
24
|
-
|
|
24
|
+
{
|
|
25
25
|
"left": "25%",
|
|
26
26
|
"right": "25%",
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ exports[`<ProgressTracker> Snapshots and structure should render correctly 1`] =
|
|
|
30
30
|
<div
|
|
31
31
|
className="lumx-progress-tracker__foreground-bar"
|
|
32
32
|
style={
|
|
33
|
-
|
|
33
|
+
{
|
|
34
34
|
"left": "25%",
|
|
35
35
|
"right": "25%",
|
|
36
36
|
"transform": "scaleX(0)",
|
|
@@ -6,7 +6,7 @@ exports[`<Select> Snapshots and structure should render correctly 1`] = `
|
|
|
6
6
|
>
|
|
7
7
|
<SelectField
|
|
8
8
|
anchorRef={
|
|
9
|
-
|
|
9
|
+
{
|
|
10
10
|
"current": null,
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -20,7 +20,7 @@ exports[`<Select> Snapshots and structure should render correctly 1`] = `
|
|
|
20
20
|
/>
|
|
21
21
|
<Dropdown
|
|
22
22
|
anchorRef={
|
|
23
|
-
|
|
23
|
+
{
|
|
24
24
|
"current": null,
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -6,7 +6,7 @@ exports[`<SelectMultiple> Snapshots and structure should render chips 1`] = `
|
|
|
6
6
|
>
|
|
7
7
|
<SelectMultipleField
|
|
8
8
|
anchorRef={
|
|
9
|
-
|
|
9
|
+
{
|
|
10
10
|
"current": null,
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -16,12 +16,12 @@ exports[`<SelectMultiple> Snapshots and structure should render chips 1`] = `
|
|
|
16
16
|
selectedChipRender={[Function]}
|
|
17
17
|
selectedValueRender={[Function]}
|
|
18
18
|
theme="light"
|
|
19
|
-
value={
|
|
19
|
+
value={[]}
|
|
20
20
|
variant="chip"
|
|
21
21
|
/>
|
|
22
22
|
<Dropdown
|
|
23
23
|
anchorRef={
|
|
24
|
-
|
|
24
|
+
{
|
|
25
25
|
"current": null,
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -49,7 +49,7 @@ exports[`<SelectMultiple> Snapshots and structure should render defaults 1`] = `
|
|
|
49
49
|
>
|
|
50
50
|
<SelectMultipleField
|
|
51
51
|
anchorRef={
|
|
52
|
-
|
|
52
|
+
{
|
|
53
53
|
"current": null,
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -59,12 +59,12 @@ exports[`<SelectMultiple> Snapshots and structure should render defaults 1`] = `
|
|
|
59
59
|
selectedChipRender={[Function]}
|
|
60
60
|
selectedValueRender={[Function]}
|
|
61
61
|
theme="light"
|
|
62
|
-
value={
|
|
62
|
+
value={[]}
|
|
63
63
|
variant="input"
|
|
64
64
|
/>
|
|
65
65
|
<Dropdown
|
|
66
66
|
anchorRef={
|
|
67
|
-
|
|
67
|
+
{
|
|
68
68
|
"current": null,
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<SkeletonCircle> Snapshots and structure should render story 'Circle' 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
<div
|
|
6
6
|
className="lumx-spacing-margin lumx-skeleton-circle lumx-skeleton-circle--size-xxs lumx-skeleton-circle--theme-light"
|
|
7
7
|
/>,
|
|
@@ -11,7 +11,7 @@ exports[`<SkeletonRectangle> Snapshots and structure should render story 'Loadin
|
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`<SkeletonRectangle> Snapshots and structure should render story 'Rectangle' 1`] = `
|
|
14
|
-
|
|
14
|
+
[
|
|
15
15
|
<div
|
|
16
16
|
className="lumx-spacing-margin lumx-skeleton-rectangle lumx-skeleton-rectangle--height-xxs lumx-skeleton-rectangle--theme-light lumx-skeleton-rectangle--variant-squared lumx-skeleton-rectangle--width-xxs"
|
|
17
17
|
>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<SkeletonTypography> Snapshots and structure should render story 'TextTypography' 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
<div
|
|
6
6
|
className="lumx-spacing-margin-bottom lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-title"
|
|
7
7
|
style={
|
|
8
|
-
|
|
8
|
+
{
|
|
9
9
|
"width": "30%",
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -17,7 +17,7 @@ Array [
|
|
|
17
17
|
<div
|
|
18
18
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1"
|
|
19
19
|
style={
|
|
20
|
-
|
|
20
|
+
{
|
|
21
21
|
"width": undefined,
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -29,7 +29,7 @@ Array [
|
|
|
29
29
|
<div
|
|
30
30
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1"
|
|
31
31
|
style={
|
|
32
|
-
|
|
32
|
+
{
|
|
33
33
|
"width": undefined,
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ Array [
|
|
|
41
41
|
<div
|
|
42
42
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1"
|
|
43
43
|
style={
|
|
44
|
-
|
|
44
|
+
{
|
|
45
45
|
"width": undefined,
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -53,7 +53,7 @@ Array [
|
|
|
53
53
|
<div
|
|
54
54
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1"
|
|
55
55
|
style={
|
|
56
|
-
|
|
56
|
+
{
|
|
57
57
|
"width": "70%",
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -65,7 +65,7 @@ Array [
|
|
|
65
65
|
<div
|
|
66
66
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-primary"
|
|
67
67
|
style={
|
|
68
|
-
|
|
68
|
+
{
|
|
69
69
|
"width": undefined,
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -77,7 +77,7 @@ Array [
|
|
|
77
77
|
<div
|
|
78
78
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-secondary"
|
|
79
79
|
style={
|
|
80
|
-
|
|
80
|
+
{
|
|
81
81
|
"width": undefined,
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -89,7 +89,7 @@ Array [
|
|
|
89
89
|
<div
|
|
90
90
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-blue"
|
|
91
91
|
style={
|
|
92
|
-
|
|
92
|
+
{
|
|
93
93
|
"width": undefined,
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,7 +101,7 @@ Array [
|
|
|
101
101
|
<div
|
|
102
102
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-dark"
|
|
103
103
|
style={
|
|
104
|
-
|
|
104
|
+
{
|
|
105
105
|
"width": undefined,
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -113,7 +113,7 @@ Array [
|
|
|
113
113
|
<div
|
|
114
114
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-green"
|
|
115
115
|
style={
|
|
116
|
-
|
|
116
|
+
{
|
|
117
117
|
"width": undefined,
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -125,7 +125,7 @@ Array [
|
|
|
125
125
|
<div
|
|
126
126
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-yellow"
|
|
127
127
|
style={
|
|
128
|
-
|
|
128
|
+
{
|
|
129
129
|
"width": undefined,
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -137,7 +137,7 @@ Array [
|
|
|
137
137
|
<div
|
|
138
138
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-red"
|
|
139
139
|
style={
|
|
140
|
-
|
|
140
|
+
{
|
|
141
141
|
"width": undefined,
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -149,7 +149,7 @@ Array [
|
|
|
149
149
|
<div
|
|
150
150
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-light"
|
|
151
151
|
style={
|
|
152
|
-
|
|
152
|
+
{
|
|
153
153
|
"width": undefined,
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -161,7 +161,7 @@ Array [
|
|
|
161
161
|
<div
|
|
162
162
|
className="lumx-skeleton-typography lumx-skeleton-typography--theme-light lumx-skeleton-typography--typography-body1 lumx-skeleton-typography--color-grey"
|
|
163
163
|
style={
|
|
164
|
-
|
|
164
|
+
{
|
|
165
165
|
"width": undefined,
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -30,7 +30,7 @@ exports[`<Slider> Snapshots and structure should render story 'DefaultSlider' 1`
|
|
|
30
30
|
<div
|
|
31
31
|
className="lumx-slider__track lumx-slider__track--active"
|
|
32
32
|
style={
|
|
33
|
-
|
|
33
|
+
{
|
|
34
34
|
"width": "50%",
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -41,7 +41,7 @@ exports[`<Slider> Snapshots and structure should render story 'DefaultSlider' 1`
|
|
|
41
41
|
id="slider-uid"
|
|
42
42
|
onKeyDown={[Function]}
|
|
43
43
|
style={
|
|
44
|
-
|
|
44
|
+
{
|
|
45
45
|
"left": "50%",
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -94,7 +94,7 @@ exports[`<Slider> Snapshots and structure should render story 'WithHelperSlider'
|
|
|
94
94
|
<div
|
|
95
95
|
className="lumx-slider__track lumx-slider__track--active"
|
|
96
96
|
style={
|
|
97
|
-
|
|
97
|
+
{
|
|
98
98
|
"width": "50%",
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -105,7 +105,7 @@ exports[`<Slider> Snapshots and structure should render story 'WithHelperSlider'
|
|
|
105
105
|
id="slider-uid"
|
|
106
106
|
onKeyDown={[Function]}
|
|
107
107
|
style={
|
|
108
|
-
|
|
108
|
+
{
|
|
109
109
|
"left": "50%",
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`<Slideshow> Snapshots and structure should render story 'Simple' 1`] = `
|
|
4
|
-
|
|
4
|
+
[
|
|
5
5
|
<Slideshow
|
|
6
6
|
activeIndex={0}
|
|
7
7
|
afterSlides={
|
|
@@ -12,7 +12,7 @@ Array [
|
|
|
12
12
|
activeIndex={0}
|
|
13
13
|
isAutoPlaying={false}
|
|
14
14
|
nextButtonProps={
|
|
15
|
-
|
|
15
|
+
{
|
|
16
16
|
"aria-controls": "slideshow-slides2",
|
|
17
17
|
"label": "Next",
|
|
18
18
|
}
|
|
@@ -23,7 +23,7 @@ Array [
|
|
|
23
23
|
paginationItemProps={[Function]}
|
|
24
24
|
parentRef={null}
|
|
25
25
|
previousButtonProps={
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"aria-controls": "slideshow-slides2",
|
|
28
28
|
"label": "Previous",
|
|
29
29
|
}
|
|
@@ -42,7 +42,7 @@ Array [
|
|
|
42
42
|
slideGroupLabel={[Function]}
|
|
43
43
|
slidesId="slideshow-slides2"
|
|
44
44
|
style={
|
|
45
|
-
|
|
45
|
+
{
|
|
46
46
|
"width": "50%",
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -59,7 +59,7 @@ Array [
|
|
|
59
59
|
image="/demo-assets/landscape1.jpg"
|
|
60
60
|
theme="light"
|
|
61
61
|
thumbnailProps={
|
|
62
|
-
|
|
62
|
+
{
|
|
63
63
|
"aspectRatio": "horizontal",
|
|
64
64
|
"loading": "eager",
|
|
65
65
|
}
|
|
@@ -76,7 +76,7 @@ Array [
|
|
|
76
76
|
image="/demo-assets/landscape1-s200.jpg"
|
|
77
77
|
theme="light"
|
|
78
78
|
thumbnailProps={
|
|
79
|
-
|
|
79
|
+
{
|
|
80
80
|
"aspectRatio": "horizontal",
|
|
81
81
|
"loading": "eager",
|
|
82
82
|
}
|
|
@@ -93,7 +93,7 @@ Array [
|
|
|
93
93
|
image="/demo-assets/landscape2.jpg"
|
|
94
94
|
theme="light"
|
|
95
95
|
thumbnailProps={
|
|
96
|
-
|
|
96
|
+
{
|
|
97
97
|
"aspectRatio": "horizontal",
|
|
98
98
|
"loading": "eager",
|
|
99
99
|
}
|
|
@@ -110,7 +110,7 @@ Array [
|
|
|
110
110
|
image="/demo-assets/landscape3.jpg"
|
|
111
111
|
theme="light"
|
|
112
112
|
thumbnailProps={
|
|
113
|
-
|
|
113
|
+
{
|
|
114
114
|
"aspectRatio": "horizontal",
|
|
115
115
|
"loading": "eager",
|
|
116
116
|
}
|
|
@@ -127,7 +127,7 @@ Array [
|
|
|
127
127
|
image="/demo-assets/portrait1.jpg"
|
|
128
128
|
theme="light"
|
|
129
129
|
thumbnailProps={
|
|
130
|
-
|
|
130
|
+
{
|
|
131
131
|
"aspectRatio": "horizontal",
|
|
132
132
|
"loading": "eager",
|
|
133
133
|
}
|
|
@@ -144,7 +144,7 @@ Array [
|
|
|
144
144
|
image="/demo-assets/portrait1-s200.jpg"
|
|
145
145
|
theme="light"
|
|
146
146
|
thumbnailProps={
|
|
147
|
-
|
|
147
|
+
{
|
|
148
148
|
"aspectRatio": "horizontal",
|
|
149
149
|
"loading": "eager",
|
|
150
150
|
}
|