@scrippsproduct/networks-ui-library 2.0.4 → 2.0.5

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.
Files changed (28) hide show
  1. package/dist/Carousel.module-Nwf_zL9b.mjs +14 -0
  2. package/dist/assets/Carousel.css +1 -1
  3. package/dist/assets/FindUs.css +1 -1
  4. package/dist/assets/LogoListItem.css +1 -1
  5. package/dist/components/AnchorTag/AnchorTag.js +12 -12
  6. package/dist/components/AnchorTag/AnchorTag.test.js +9 -19
  7. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +58 -46
  8. package/dist/components/BCVideoPlayer/BCVideoPlayer.test.js +3 -3
  9. package/dist/components/Carousel/Carousel.js +37 -36
  10. package/dist/components/Carousel/Carousel.test.js +71 -68
  11. package/dist/components/Carousel/CarouselUtils.class.js +104 -97
  12. package/dist/components/Carousel/navigations/Pagination.js +2 -2
  13. package/dist/components/Carousel/navigations/Pagination.test.js +23 -23
  14. package/dist/components/CarouselSlide/CarouselSlide.test.js +58 -57
  15. package/dist/components/FindUs/FindUs.js +119 -90
  16. package/dist/components/GridList/GridList.js +6 -6
  17. package/dist/components/ImageCard/ImageCardCore.js +65 -69
  18. package/dist/components/ImageCard/ImageCardCore.test.js +2 -2
  19. package/dist/components/LogoListItem/LogoListItem.js +13 -13
  20. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +42 -38
  21. package/dist/components/PromotionsRowModule/PromotionsRowModule.test.js +163 -149
  22. package/dist/hooks/useSourcepointPrivacyTrigger.js +4 -4
  23. package/dist/src/components/Carousel/CarouselUtils.class.d.ts +8 -3
  24. package/dist/src/components/Carousel/navigations/Pagination.d.ts +1 -1
  25. package/dist/src/components/PromotionsRowModule/PromotionsRowModule.d.ts +2 -1
  26. package/dist/src/hooks/useSourcepointPrivacyTrigger.d.ts +13 -2
  27. package/package.json +3 -2
  28. package/dist/Carousel.module-BsPaZX5L.mjs +0 -14
@@ -12,8 +12,10 @@ h.mock("./CarouselUtils.class", () => ({
12
12
  }))
13
13
  }));
14
14
  h.mock("../CarouselSlide", () => ({
15
- CarouselSlide: ({ slide: l, index: e }) => /* @__PURE__ */ s("li", { "data-testid": `carousel-slide-${e}`, "data-index": e, children: l.ariaLabel }),
16
- default: ({ slide: l, index: e }) => /* @__PURE__ */ s("li", { "data-testid": `carousel-slide-${e}`, "data-index": e, children: l.ariaLabel })
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ CarouselSlide: ({ slide: l, index: e }) => /* @__PURE__ */ s("li", { "data-index": e, "data-testid": `carousel-slide-${e}`, children: l.ariaLabel }),
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ default: ({ slide: l, index: e }) => /* @__PURE__ */ s("li", { "data-index": e, "data-testid": `carousel-slide-${e}`, children: l.ariaLabel })
17
19
  }));
18
20
  h.mock("react-feather", () => ({
19
21
  ChevronLeft: () => /* @__PURE__ */ s("span", { "data-testid": "chevron-left", children: "Left" }),
@@ -21,6 +23,7 @@ h.mock("react-feather", () => ({
21
23
  }));
22
24
  h.mock("../../utils/helpers", () => ({
23
25
  classes: (l) => l.filter(Boolean).join(" "),
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
27
  chunkArray: (l, e) => {
25
28
  let t = [];
26
29
  for (let d = 0; d <= Math.floor(e.length / l); d++)
@@ -41,23 +44,23 @@ u("Carousel", () => {
41
44
  h.clearAllTimers();
42
45
  }), u("Basic Rendering", () => {
43
46
  r("should render carousel with basic props", () => {
44
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test-carousel", cells: l })), t = e.querySelector('[role="region"]');
47
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test-carousel" })), t = e.querySelector('[role="region"]');
45
48
  o(t).toBeInTheDocument();
46
49
  }), r("should render carousel with correct id", () => {
47
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "my-carousel", cells: l })), t = e.querySelector("#carousel-my-carousel");
50
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "my-carousel" })), t = e.querySelector("#carousel-my-carousel");
48
51
  o(t).toBeInTheDocument();
49
52
  }), r("should render carousel with numeric id", () => {
50
- const { container: e } = a(/* @__PURE__ */ s(n, { id: 123, cells: l })), t = e.querySelector("#carousel-123");
53
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: 123 })), t = e.querySelector("#carousel-123");
51
54
  o(t).toBeInTheDocument();
52
55
  }), r("should render with aria-roledescription", () => {
53
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l })), t = e.querySelector('[aria-roledescription="carousel"]');
56
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" })), t = e.querySelector('[aria-roledescription="carousel"]');
54
57
  o(t).toBeInTheDocument();
55
58
  }), r("should render scroller element", () => {
56
- a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
59
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
57
60
  const e = i.getByRole("group", { name: "Items Scroller" });
58
61
  o(e).toBeInTheDocument();
59
62
  }), r("should render slides", async () => {
60
- a(/* @__PURE__ */ s(n, { id: "test", cells: l })), await c(() => {
63
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" })), await c(() => {
61
64
  const e = i.getAllByTestId(/carousel-slide-/);
62
65
  o(e.length).toBeGreaterThan(0);
63
66
  });
@@ -65,12 +68,12 @@ u("Carousel", () => {
65
68
  }), u("Options - Title", () => {
66
69
  r("should render with aria-label when title is provided", () => {
67
70
  const { container: e } = a(
68
- /* @__PURE__ */ s(n, { id: "test", cells: l, options: { title: "My Carousel" } })
71
+ /* @__PURE__ */ s(n, { cells: l, id: "test", options: { title: "My Carousel" } })
69
72
  ), t = e.querySelector('[aria-label="My Carousel"]');
70
73
  o(t).toBeInTheDocument();
71
74
  }), r("should handle empty title", () => {
72
75
  const { container: e } = a(
73
- /* @__PURE__ */ s(n, { id: "test", cells: l, options: { title: "" } })
76
+ /* @__PURE__ */ s(n, { cells: l, id: "test", options: { title: "" } })
74
77
  ), t = e.querySelector('[role="region"]');
75
78
  o(t).toBeInTheDocument();
76
79
  });
@@ -80,8 +83,8 @@ u("Carousel", () => {
80
83
  /* @__PURE__ */ s(
81
84
  n,
82
85
  {
83
- id: "test",
84
86
  cells: l,
87
+ id: "test",
85
88
  options: { showControls: !0 }
86
89
  }
87
90
  )
@@ -94,8 +97,8 @@ u("Carousel", () => {
94
97
  /* @__PURE__ */ s(
95
98
  n,
96
99
  {
97
- id: "test",
98
100
  cells: l,
101
+ id: "test",
99
102
  options: { showControls: !1 }
100
103
  }
101
104
  )
@@ -107,8 +110,8 @@ u("Carousel", () => {
107
110
  /* @__PURE__ */ s(
108
111
  n,
109
112
  {
110
- id: "test",
111
113
  cells: [l[0]],
114
+ id: "test",
112
115
  options: { showControls: !0, cellsPerSlide: 1 }
113
116
  }
114
117
  )
@@ -120,8 +123,8 @@ u("Carousel", () => {
120
123
  /* @__PURE__ */ s(
121
124
  n,
122
125
  {
123
- id: "test",
124
126
  cells: l,
127
+ id: "test",
125
128
  options: { showControls: !0, controlArrowSize: 64 }
126
129
  }
127
130
  )
@@ -136,8 +139,8 @@ u("Carousel", () => {
136
139
  /* @__PURE__ */ s(
137
140
  n,
138
141
  {
139
- id: "test",
140
142
  cells: l,
143
+ id: "test",
141
144
  options: { showPagination: !0 }
142
145
  }
143
146
  )
@@ -151,8 +154,8 @@ u("Carousel", () => {
151
154
  /* @__PURE__ */ s(
152
155
  n,
153
156
  {
154
- id: "test",
155
157
  cells: l,
158
+ id: "test",
156
159
  options: { showPagination: !1 }
157
160
  }
158
161
  )
@@ -163,8 +166,8 @@ u("Carousel", () => {
163
166
  /* @__PURE__ */ s(
164
167
  n,
165
168
  {
166
- id: "test",
167
169
  cells: [l[0]],
170
+ id: "test",
168
171
  options: { showPagination: !0, cellsPerSlide: 1 }
169
172
  }
170
173
  )
@@ -175,8 +178,8 @@ u("Carousel", () => {
175
178
  /* @__PURE__ */ s(
176
179
  n,
177
180
  {
178
- id: "test",
179
181
  cells: l,
182
+ id: "test",
180
183
  options: { showPagination: !0, cellsPerSlide: 1 }
181
184
  }
182
185
  )
@@ -190,14 +193,14 @@ u("Carousel", () => {
190
193
  /* @__PURE__ */ s(
191
194
  n,
192
195
  {
193
- id: "test",
194
196
  cells: l,
197
+ id: "test",
195
198
  options: { showPagination: !0 }
196
199
  }
197
200
  )
198
201
  );
199
202
  await c(() => {
200
- const t = e.querySelector('.carousel-nav__item[data-current="true"]');
203
+ const t = e.querySelector(".carousel-nav__item[data-current]");
201
204
  o(t).toBeInTheDocument();
202
205
  });
203
206
  });
@@ -207,8 +210,8 @@ u("Carousel", () => {
207
210
  /* @__PURE__ */ s(
208
211
  n,
209
212
  {
210
- id: "test",
211
213
  cells: l,
214
+ id: "test",
212
215
  options: { showScrollbar: !0 }
213
216
  }
214
217
  )
@@ -216,7 +219,7 @@ u("Carousel", () => {
216
219
  const e = i.getByRole("group");
217
220
  o(e).toHaveAttribute("data-scrollbar", "true");
218
221
  }), r("should set scrollbar data attribute to false by default", () => {
219
- a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
222
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
220
223
  const e = i.getByRole("group");
221
224
  o(e).toHaveAttribute("data-scrollbar", "false");
222
225
  });
@@ -226,8 +229,8 @@ u("Carousel", () => {
226
229
  /* @__PURE__ */ s(
227
230
  n,
228
231
  {
229
- id: "test",
230
232
  cells: l,
233
+ id: "test",
231
234
  options: { cellsPerSlide: 2 }
232
235
  }
233
236
  )
@@ -240,8 +243,8 @@ u("Carousel", () => {
240
243
  /* @__PURE__ */ s(
241
244
  n,
242
245
  {
243
- id: "test",
244
246
  cells: l,
247
+ id: "test",
245
248
  options: { cellsPerSlide: 1 }
246
249
  }
247
250
  )
@@ -256,8 +259,8 @@ u("Carousel", () => {
256
259
  /* @__PURE__ */ s(
257
260
  n,
258
261
  {
259
- id: "test",
260
262
  cells: l,
263
+ id: "test",
261
264
  options: { wrapAround: !0, cellsPerSlide: 1 }
262
265
  }
263
266
  )
@@ -270,8 +273,8 @@ u("Carousel", () => {
270
273
  /* @__PURE__ */ s(
271
274
  n,
272
275
  {
273
- id: "test",
274
276
  cells: l,
277
+ id: "test",
275
278
  options: { wrapAround: !1, cellsPerSlide: 1 }
276
279
  }
277
280
  )
@@ -284,8 +287,8 @@ u("Carousel", () => {
284
287
  /* @__PURE__ */ s(
285
288
  n,
286
289
  {
287
- id: "test",
288
290
  cells: [l[0]],
291
+ id: "test",
289
292
  options: { wrapAround: !0, cellsPerSlide: 1 }
290
293
  }
291
294
  )
@@ -300,8 +303,8 @@ u("Carousel", () => {
300
303
  /* @__PURE__ */ s(
301
304
  n,
302
305
  {
303
- id: "test",
304
306
  cells: l,
307
+ id: "test",
305
308
  options: { slideAspectRatio: "16/9" }
306
309
  }
307
310
  )
@@ -312,8 +315,8 @@ u("Carousel", () => {
312
315
  /* @__PURE__ */ s(
313
316
  n,
314
317
  {
315
- id: "test",
316
318
  cells: l,
319
+ id: "test",
317
320
  options: { cellAspectRatio: "1/1" }
318
321
  }
319
322
  )
@@ -324,8 +327,8 @@ u("Carousel", () => {
324
327
  /* @__PURE__ */ s(
325
328
  n,
326
329
  {
327
- id: "test",
328
330
  cells: l,
331
+ id: "test",
329
332
  options: { gutterSize: 15, wrapAround: !0 }
330
333
  }
331
334
  )
@@ -336,8 +339,8 @@ u("Carousel", () => {
336
339
  /* @__PURE__ */ s(
337
340
  n,
338
341
  {
339
- id: "test",
340
342
  cells: l,
343
+ id: "test",
341
344
  options: { slideGap: 2 }
342
345
  }
343
346
  )
@@ -348,8 +351,8 @@ u("Carousel", () => {
348
351
  /* @__PURE__ */ s(
349
352
  n,
350
353
  {
351
- id: "test",
352
354
  cells: l,
355
+ id: "test",
353
356
  options: { controlButtonsOffset: 20 }
354
357
  }
355
358
  )
@@ -359,21 +362,21 @@ u("Carousel", () => {
359
362
  }), u("Keyboard Navigation", () => {
360
363
  r("should handle ArrowRight key press", async () => {
361
364
  const { container: e } = a(
362
- /* @__PURE__ */ s(n, { id: "test", cells: l, options: { showControls: !0 } })
365
+ /* @__PURE__ */ s(n, { cells: l, id: "test", options: { showControls: !0 } })
363
366
  ), t = e.querySelector('[role="region"]');
364
367
  await c(() => {
365
368
  o(t).toBeInTheDocument();
366
369
  }), p.keyDown(t, { key: "ArrowRight" }), o(t).toBeInTheDocument();
367
370
  }), r("should handle ArrowLeft key press", async () => {
368
371
  const { container: e } = a(
369
- /* @__PURE__ */ s(n, { id: "test", cells: l, options: { showControls: !0 } })
372
+ /* @__PURE__ */ s(n, { cells: l, id: "test", options: { showControls: !0 } })
370
373
  ), t = e.querySelector('[role="region"]');
371
374
  await c(() => {
372
375
  o(t).toBeInTheDocument();
373
376
  }), p.keyDown(t, { key: "ArrowLeft" }), o(t).toBeInTheDocument();
374
377
  }), r("should not handle other keys", async () => {
375
378
  const { container: e } = a(
376
- /* @__PURE__ */ s(n, { id: "test", cells: l })
379
+ /* @__PURE__ */ s(n, { cells: l, id: "test" })
377
380
  ), t = e.querySelector('[role="region"]');
378
381
  await c(() => {
379
382
  o(t).toBeInTheDocument();
@@ -385,8 +388,8 @@ u("Carousel", () => {
385
388
  /* @__PURE__ */ s(
386
389
  n,
387
390
  {
388
- id: "test",
389
391
  cells: l,
392
+ id: "test",
390
393
  options: { autoplay: !0 }
391
394
  }
392
395
  )
@@ -398,8 +401,8 @@ u("Carousel", () => {
398
401
  /* @__PURE__ */ s(
399
402
  n,
400
403
  {
401
- id: "test",
402
404
  cells: l,
405
+ id: "test",
403
406
  options: { autoplay: !0 }
404
407
  }
405
408
  )
@@ -411,8 +414,8 @@ u("Carousel", () => {
411
414
  /* @__PURE__ */ s(
412
415
  n,
413
416
  {
414
- id: "test",
415
417
  cells: l,
418
+ id: "test",
416
419
  options: { showControls: !0, autoplay: !0 }
417
420
  }
418
421
  )
@@ -425,8 +428,8 @@ u("Carousel", () => {
425
428
  /* @__PURE__ */ s(
426
429
  n,
427
430
  {
428
- id: "test",
429
431
  cells: l,
432
+ id: "test",
430
433
  options: { showControls: !0, autoplay: !0 }
431
434
  }
432
435
  )
@@ -437,7 +440,7 @@ u("Carousel", () => {
437
440
  });
438
441
  }), u("Touch Events", () => {
439
442
  r("should handle touch start on scroller", () => {
440
- a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
443
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
441
444
  const e = i.getByRole("group");
442
445
  p.touchStart(e), o(e).toBeInTheDocument();
443
446
  });
@@ -447,8 +450,8 @@ u("Carousel", () => {
447
450
  /* @__PURE__ */ s(
448
451
  n,
449
452
  {
450
- id: "test",
451
453
  cells: l,
454
+ id: "test",
452
455
  options: { showControls: !0 }
453
456
  }
454
457
  )
@@ -461,8 +464,8 @@ u("Carousel", () => {
461
464
  /* @__PURE__ */ s(
462
465
  n,
463
466
  {
464
- id: "test",
465
467
  cells: l,
468
+ id: "test",
466
469
  options: { showControls: !0 }
467
470
  }
468
471
  )
@@ -477,8 +480,8 @@ u("Carousel", () => {
477
480
  /* @__PURE__ */ s(
478
481
  n,
479
482
  {
480
- id: "test",
481
483
  cells: l,
484
+ id: "test",
482
485
  options: { showPagination: !0 }
483
486
  }
484
487
  )
@@ -490,41 +493,41 @@ u("Carousel", () => {
490
493
  });
491
494
  }), u("Empty and Edge Cases", () => {
492
495
  r("should handle empty cells array", () => {
493
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: [] })), t = e.querySelector('[role="region"]');
496
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: [], id: "test" })), t = e.querySelector('[role="region"]');
494
497
  o(t).toBeInTheDocument();
495
498
  }), r("should handle single cell", async () => {
496
- a(/* @__PURE__ */ s(n, { id: "test", cells: [l[0]] })), await c(() => {
499
+ a(/* @__PURE__ */ s(n, { cells: [l[0]], id: "test" })), await c(() => {
497
500
  const e = i.getAllByTestId(/carousel-slide-/);
498
501
  o(e.length).toBe(1);
499
502
  });
500
503
  }), r("should handle cells without layout property", async () => {
501
- a(/* @__PURE__ */ s(n, { id: "test", cells: [
504
+ a(/* @__PURE__ */ s(n, { cells: [
502
505
  { id: 1, props: { title: "Cell 1" } },
503
506
  { id: 2, props: { title: "Cell 2" } }
504
- ] })), await c(() => {
507
+ ], id: "test" })), await c(() => {
505
508
  const t = i.getAllByTestId(/carousel-slide-/);
506
509
  o(t.length).toBeGreaterThan(0);
507
510
  });
508
511
  }), r("should handle missing cell id", async () => {
509
- a(/* @__PURE__ */ s(n, { id: "test", cells: [
512
+ a(/* @__PURE__ */ s(n, { cells: [
510
513
  { props: { title: "Cell 1" }, layout: "default" },
511
514
  { props: { title: "Cell 2" }, layout: "default" }
512
- ] })), await c(() => {
515
+ ], id: "test" })), await c(() => {
513
516
  const t = i.getByRole("region");
514
517
  o(t).toBeInTheDocument();
515
518
  });
516
519
  });
517
520
  }), u("Default Options", () => {
518
521
  r("should use default options when not provided", () => {
519
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l })), t = e.querySelector('[role="region"]');
522
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" })), t = e.querySelector('[role="region"]');
520
523
  o(t).toBeInTheDocument();
521
524
  }), r("should merge custom options with defaults", async () => {
522
525
  a(
523
526
  /* @__PURE__ */ s(
524
527
  n,
525
528
  {
526
- id: "test",
527
529
  cells: l,
530
+ id: "test",
528
531
  options: { showControls: !0, slideGap: 3 }
529
532
  }
530
533
  )
@@ -536,18 +539,18 @@ u("Carousel", () => {
536
539
  }), u("Accessibility", () => {
537
540
  r("should have proper ARIA attributes", () => {
538
541
  const { container: e } = a(
539
- /* @__PURE__ */ s(n, { id: "test", cells: l, options: { title: "My Carousel" } })
542
+ /* @__PURE__ */ s(n, { cells: l, id: "test", options: { title: "My Carousel" } })
540
543
  ), t = e.querySelector('[role="region"]');
541
544
  o(t).toHaveAttribute("aria-roledescription", "carousel"), o(t).toHaveAttribute("aria-label", "My Carousel");
542
545
  }), r("should have tabIndex on carousel container", () => {
543
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l })), t = e.querySelector('[role="region"]');
546
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" })), t = e.querySelector('[role="region"]');
544
547
  o(t).toHaveAttribute("tabIndex", "-1");
545
548
  }), r("should have tabIndex on scroller", () => {
546
- a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
549
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
547
550
  const e = i.getByRole("group");
548
551
  o(e).toHaveAttribute("tabIndex", "0");
549
552
  }), r("should have aria-live on scroller", () => {
550
- a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
553
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
551
554
  const e = i.getByRole("group");
552
555
  o(e).toHaveAttribute("aria-live", "polite");
553
556
  }), r("should have proper button labels", async () => {
@@ -555,8 +558,8 @@ u("Carousel", () => {
555
558
  /* @__PURE__ */ s(
556
559
  n,
557
560
  {
558
- id: "test",
559
561
  cells: l,
562
+ id: "test",
560
563
  options: { showControls: !0 }
561
564
  }
562
565
  )
@@ -569,8 +572,8 @@ u("Carousel", () => {
569
572
  /* @__PURE__ */ s(
570
573
  n,
571
574
  {
572
- id: "test",
573
575
  cells: l,
576
+ id: "test",
574
577
  options: { showControls: !0 }
575
578
  }
576
579
  )
@@ -583,8 +586,8 @@ u("Carousel", () => {
583
586
  /* @__PURE__ */ s(
584
587
  n,
585
588
  {
586
- id: "test",
587
589
  cells: l,
590
+ id: "test",
588
591
  options: { showControls: !0 }
589
592
  }
590
593
  )
@@ -598,25 +601,25 @@ u("Carousel", () => {
598
601
  });
599
602
  }), u("Responsive Behavior", () => {
600
603
  r("should render without errors on mount", () => {
601
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
604
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
602
605
  o(e).toBeTruthy();
603
606
  }), r("should handle window resize events", () => {
604
- const { container: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
607
+ const { container: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
605
608
  window.dispatchEvent(new Event("resize"));
606
609
  const t = e.querySelector('[role="region"]');
607
610
  o(t).toBeInTheDocument();
608
611
  });
609
612
  }), u("Cleanup", () => {
610
613
  r("should cleanup on unmount", () => {
611
- const { unmount: e } = a(/* @__PURE__ */ s(n, { id: "test", cells: l }));
614
+ const { unmount: e } = a(/* @__PURE__ */ s(n, { cells: l, id: "test" }));
612
615
  o(() => e()).not.toThrow();
613
616
  }), r("should cleanup with autoplay enabled", () => {
614
617
  const { unmount: e } = a(
615
618
  /* @__PURE__ */ s(
616
619
  n,
617
620
  {
618
- id: "test",
619
621
  cells: l,
622
+ id: "test",
620
623
  options: { autoplay: !0 }
621
624
  }
622
625
  )
@@ -629,8 +632,8 @@ u("Carousel", () => {
629
632
  /* @__PURE__ */ s(
630
633
  n,
631
634
  {
632
- id: "test",
633
635
  cells: l,
636
+ id: "test",
634
637
  options: { variableHeight: !0 }
635
638
  }
636
639
  )
@@ -639,7 +642,7 @@ u("Carousel", () => {
639
642
  o(e.length).toBeGreaterThan(0);
640
643
  });
641
644
  }), r("should default variableHeight to false", async () => {
642
- a(/* @__PURE__ */ s(n, { id: "test", cells: l })), await c(() => {
645
+ a(/* @__PURE__ */ s(n, { cells: l, id: "test" })), await c(() => {
643
646
  const e = i.getAllByTestId(/carousel-slide-/);
644
647
  o(e.length).toBeGreaterThan(0);
645
648
  });
@@ -648,8 +651,8 @@ u("Carousel", () => {
648
651
  r("should handle multiple carousels on the same page", async () => {
649
652
  const { container: e } = a(
650
653
  /* @__PURE__ */ g(m, { children: [
651
- /* @__PURE__ */ s(n, { id: "carousel-1", cells: l }),
652
- /* @__PURE__ */ s(n, { id: "carousel-2", cells: l })
654
+ /* @__PURE__ */ s(n, { cells: l, id: "carousel-1" }),
655
+ /* @__PURE__ */ s(n, { cells: l, id: "carousel-2" })
653
656
  ] })
654
657
  );
655
658
  await c(() => {
@@ -663,8 +666,8 @@ u("Carousel", () => {
663
666
  /* @__PURE__ */ s(
664
667
  n,
665
668
  {
666
- id: "test",
667
669
  cells: l,
670
+ id: "test",
668
671
  options: {
669
672
  showControls: !0,
670
673
  showPagination: !0,
@@ -687,8 +690,8 @@ u("Carousel", () => {
687
690
  /* @__PURE__ */ s(
688
691
  n,
689
692
  {
690
- id: "test",
691
693
  cells: l,
694
+ id: "test",
692
695
  options: {
693
696
  autoplay: !0,
694
697
  autoplayDelay: 2e3,