@worksafevictoria/wcl7.5 1.10.0 → 1.12.0

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 (44) hide show
  1. package/package.json +1 -1
  2. package/src/assets/styles/generated-icons.scss +46 -46
  3. package/src/components/Common/CardGridItem/card-grid-item-caret.vue +40 -46
  4. package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
  5. package/src/components/Common/CardGridItem/index.vue +153 -115
  6. package/src/components/Containers/Carousel/index.stories.js +6 -4
  7. package/src/components/Containers/Carousel/index.vue +131 -120
  8. package/src/components/Containers/HomepageHeader/index.stories.js +1 -1
  9. package/src/components/Containers/HomepageHeaderNew/index.stories.js +3 -15
  10. package/src/components/Containers/HomepageHeaderNew/index.vue +3 -7
  11. package/src/components/Global/AppFooter/index.vue +29 -19
  12. package/src/components/Global/AppHeader/ModalSearch/index.vue +7 -1
  13. package/src/components/Global/AppHeader/index.stories.js +2 -2
  14. package/src/components/Global/AppHeaderNew/ModalSearch/index.vue +21 -17
  15. package/src/components/Global/AppHeaderNew/includes.scss +4 -2
  16. package/src/components/Global/AppHeaderNew/index.stories.js +2 -2
  17. package/src/components/Global/AppHeaderNew/index.vue +126 -386
  18. package/src/components/Global/AppHeaderNew/mobile.scss +41 -6
  19. package/src/components/Global/AppHeaderNew/styles.scss +57 -45
  20. package/src/components/Global/BackToTop/index.vue +16 -16
  21. package/src/components/Global/ContrastMode/index.stories.js +1 -1
  22. package/src/components/Global/DirectoryFilters/index.vue +24 -18
  23. package/src/components/Global/HeroHeader/index.vue +62 -73
  24. package/src/components/Global/SocialShare/index.vue +114 -129
  25. package/src/components/Global/Strip/index.vue +43 -39
  26. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +22 -24
  27. package/src/components/Paragraphs/Accordion/StepperItem/index.vue +15 -15
  28. package/src/components/Paragraphs/Calculator/CardContainer/index.vue +74 -75
  29. package/src/components/Paragraphs/Calculator/RiskLevel/index.vue +31 -39
  30. package/src/components/Paragraphs/Directory/Asbestos/Records/SingleRecord/index.vue +104 -107
  31. package/src/components/Paragraphs/Directory/Asbestos/Records/index.vue +129 -64
  32. package/src/components/Paragraphs/Directory/HSCP/Records/SingleRecord/index.vue +127 -133
  33. package/src/components/Paragraphs/Directory/HSCP/Records/index.vue +112 -66
  34. package/src/components/Paragraphs/Statistics/index.vue +9 -9
  35. package/src/components/Paragraphs/Tabs/index.vue +4 -4
  36. package/src/components/Paragraphs/TabulatedData/index.vue +27 -20
  37. package/src/components/SubComponents/CtaButton/index.vue +47 -44
  38. package/src/components/SubComponents/Icon/README.md +2 -2
  39. package/src/components/SubComponents/Icon/example.js +1 -0
  40. package/src/components/SubComponents/Icon/index.stories.js +1 -1
  41. package/src/components/SubComponents/Icon/index.vue +47 -47
  42. package/src/components/SubComponents/ResourceGroup/cardbody.vue +18 -16
  43. package/src/components/SubComponents/VideoThumbnail/index.vue +8 -6
  44. package/src/mock/carousel-items.js +46 -81
@@ -1,21 +1,33 @@
1
1
  <template>
2
2
  <div class="card-grid-item">
3
3
  <slot v-if="$slots.beforeCard" name="beforeCard"></slot>
4
- <b-card
4
+ <BCard
5
5
  :id="cardId"
6
6
  no-body
7
- :tag="buttonRole === 'radio' ? 'div' : isSelectable ? 'button' : 'article'"
7
+ :tag="buttonRole === 'radio' ? 'div' : isSelectable ? 'button' : 'div'"
8
8
  class="card-grid-item__card"
9
9
  :class="cardClass"
10
10
  :role="buttonRole"
11
+ :tabindex="
12
+ isSelectable ? 0 : ['button', 'radio'].includes(buttonRole) ? 0 : -1
13
+ "
11
14
  :aria-checked="
12
- buttonRole === 'radio' ? (isSelectable && selected ? 'true' : 'false') : false
15
+ buttonRole === 'radio'
16
+ ? isSelectable && selected
17
+ ? 'true'
18
+ : 'false'
19
+ : undefined
13
20
  "
14
21
  :aria-expanded="
15
- isExpandable ? (isSelectable && selected ? 'true' : 'false') : false
22
+ buttonRole === 'button' && isExpandable
23
+ ? isSelectable && selected
24
+ ? 'true'
25
+ : 'false'
26
+ : undefined
16
27
  "
17
28
  :data-href="link"
18
29
  @click="cardClicked($event)"
30
+ @keydown.enter.space.prevent="cardClicked($event)"
19
31
  @keydown.tab="handleFocus($event)"
20
32
  >
21
33
  <div
@@ -24,8 +36,10 @@
24
36
  :class="[
25
37
  {
26
38
  rtl: rtl,
27
- [`card-grid-item__control-radio`]: isSelectable && buttonRole === 'radio',
28
- [`card-grid-item__selected-radio`]: selected && buttonRole === 'radio',
39
+ [`card-grid-item__control-radio`]:
40
+ isSelectable && buttonRole === 'radio',
41
+ [`card-grid-item__selected-radio`]:
42
+ selected && buttonRole === 'radio',
29
43
  },
30
44
  ]"
31
45
  >
@@ -48,7 +62,7 @@
48
62
  }"
49
63
  >
50
64
  </card-grid-item-icon>
51
- <b-card-body>
65
+ <BCardBody>
52
66
  <div
53
67
  class="card-grid-item__caretContainer"
54
68
  :class="[
@@ -59,7 +73,7 @@
59
73
  },
60
74
  ]"
61
75
  >
62
- <b-card-title
76
+ <BCardTitle
63
77
  v-if="cardHeaderTitle !== null && cardHeaderTitle !== undefined"
64
78
  :tag="headerTag"
65
79
  class="card-grid-item__header"
@@ -92,8 +106,12 @@
92
106
  class="d-inline"
93
107
  >
94
108
  </card-grid-item-icon>
95
- </b-card-title>
96
- <card-grid-item-caret v-if="caretPosition === 'top'" :caret="caret" :rtl="rtl">
109
+ </BCardTitle>
110
+ <card-grid-item-caret
111
+ v-if="caretPosition === 'top'"
112
+ :caret="caret"
113
+ :rtl="rtl"
114
+ >
97
115
  </card-grid-item-caret>
98
116
 
99
117
  <card-grid-item-icon
@@ -117,7 +135,7 @@
117
135
  </card-grid-item-icon>
118
136
  <span v-if="pillText" class="visually-hidden">{{ pillText }}</span>
119
137
  </div>
120
- <b-card-text
138
+ <BCardText
121
139
  v-if="$slots.cardDescription || description"
122
140
  tag="div"
123
141
  class="card-grid-item__body"
@@ -156,9 +174,13 @@
156
174
  :strip-html="stripDescriptionHtml"
157
175
  />
158
176
  </div>
159
- </b-card-text>
160
- </b-card-body>
161
- <div v-if="$slots.cardFooter" class="card-grid-item__footer" :class="{ rtl: rtl }">
177
+ </BCardText>
178
+ </BCardBody>
179
+ <div
180
+ v-if="$slots.cardFooter"
181
+ class="card-grid-item__footer"
182
+ :class="{ rtl: rtl }"
183
+ >
162
184
  <slot name="cardFooter"></slot>
163
185
  </div>
164
186
  <div
@@ -171,21 +193,21 @@
171
193
  <card-grid-item-caret :caret="caret" :rtl="rtl" />
172
194
  <span class="card-bottom-border"></span>
173
195
  </div>
174
- </b-card>
196
+ </BCard>
175
197
  <slot v-if="$slots.afterCard" name="afterCard"></slot>
176
198
  </div>
177
199
  </template>
178
200
 
179
201
  <script>
180
- import CardGridItemIcon from "./card-grid-item-icon.vue";
181
- import CardGridItemCaret from "./card-grid-item-caret.vue";
182
- import RichText from "../../Paragraphs/RichText/index.vue";
183
- import { parseISO } from "date-fns";
184
- import { isAbsoluteUrl, isGovSite } from "../../../../lib/utility";
185
- import { BCard, BCardBody, BCardTitle, BCardText } from "bootstrap-vue-next";
202
+ import CardGridItemIcon from './card-grid-item-icon.vue'
203
+ import CardGridItemCaret from './card-grid-item-caret.vue'
204
+ import RichText from '../../Paragraphs/RichText/index.vue'
205
+ import { parseISO } from 'date-fns'
206
+ import { isAbsoluteUrl, isGovSite } from '../../../../lib/utility'
207
+ import { BCard, BCardBody, BCardTitle, BCardText } from 'bootstrap-vue-next'
186
208
 
187
209
  export default {
188
- name: "CardGridItem",
210
+ name: 'CardGridItem',
189
211
  components: {
190
212
  CardGridItemIcon,
191
213
  CardGridItemCaret,
@@ -198,8 +220,9 @@ export default {
198
220
  props: {
199
221
  backgroundVariant: {
200
222
  type: String,
201
- default: "white",
202
- validator: (value) => ["white", "transparent", "light"].indexOf(value) >= 0,
223
+ default: 'white',
224
+ validator: (value) =>
225
+ ['white', 'transparent', 'light'].indexOf(value) >= 0,
203
226
  },
204
227
  imageSrc: {
205
228
  type: String,
@@ -218,7 +241,7 @@ export default {
218
241
  },
219
242
  descriptionClass: {
220
243
  type: String,
221
- default: "",
244
+ default: '',
222
245
  },
223
246
  glyphSrc: {
224
247
  type: [Object, String],
@@ -230,16 +253,21 @@ export default {
230
253
  },
231
254
  iconSize: {
232
255
  type: String,
233
- default: "small",
234
- validator: (value) => ["xsmall", "small", "medium", "large"].indexOf(value) >= 0,
256
+ default: 'small',
257
+ validator: (value) =>
258
+ ['xsmall', 'small', 'medium', 'large'].indexOf(value) >= 0,
235
259
  },
236
260
  iconPosition: {
237
261
  type: String,
238
- default: "top",
262
+ default: 'top',
239
263
  validator: (value) =>
240
- ["top", "top-left", "top-right", "after-title", "before-description"].indexOf(
241
- value
242
- ) >= 0,
264
+ [
265
+ 'top',
266
+ 'top-left',
267
+ 'top-right',
268
+ 'after-title',
269
+ 'before-description',
270
+ ].indexOf(value) >= 0,
243
271
  },
244
272
  iconIsBordered: {
245
273
  type: Boolean,
@@ -254,13 +282,14 @@ export default {
254
282
  },
255
283
  invertOnSelectBackground: {
256
284
  type: String,
257
- default: "none",
258
- validator: (value) => ["none", "yellow", "black"].indexOf(value) >= 0,
285
+ default: 'none',
286
+ validator: (value) => ['none', 'yellow', 'black'].indexOf(value) >= 0,
259
287
  },
260
288
  borderOnSelectBackground: {
261
289
  type: String,
262
- default: "none",
263
- validator: (value) => ["none", "yellow", "black", "blue"].indexOf(value) >= 0,
290
+ default: 'none',
291
+ validator: (value) =>
292
+ ['none', 'yellow', 'black', 'blue'].indexOf(value) >= 0,
264
293
  },
265
294
  rtl: {
266
295
  type: Boolean,
@@ -268,47 +297,49 @@ export default {
268
297
  },
269
298
  headerSize: {
270
299
  type: String,
271
- default: "custom",
300
+ default: 'custom',
272
301
  validator: (value) =>
273
- ["medium", "large", "extra-large", "extra-2x-large", "custom"].indexOf(value) >=
274
- 0,
302
+ ['medium', 'large', 'extra-large', 'extra-2x-large', 'custom'].indexOf(
303
+ value,
304
+ ) >= 0,
275
305
  },
276
306
  headerTextAlign: {
277
307
  type: String,
278
- default: "left",
279
- validator: (value) => ["left", "center", "right"].indexOf(value) >= 0,
308
+ default: 'left',
309
+ validator: (value) => ['left', 'center', 'right'].indexOf(value) >= 0,
280
310
  },
281
311
  headerTag: {
282
312
  type: String,
283
313
  required: false,
284
- default: "h3",
314
+ default: 'h3',
285
315
  },
286
316
  caret: {
287
317
  type: String,
288
318
  default: undefined,
289
319
  validator: (value) =>
290
- ["down", "up", "right", "left", "external"].indexOf(value) >= 0,
320
+ ['down', 'up', 'right', 'left', 'external'].indexOf(value) >= 0,
291
321
  },
292
322
  caretPosition: {
293
323
  type: String,
294
- default: "top",
295
- validator: (value) => ["top", "bottom", "after-title"].indexOf(value) >= 0,
324
+ default: 'top',
325
+ validator: (value) =>
326
+ ['top', 'bottom', 'after-title'].indexOf(value) >= 0,
296
327
  },
297
328
  cardPadding: {
298
329
  type: String,
299
- default: "none",
330
+ default: 'none',
300
331
  validator: (value) =>
301
- ["none", "xsmall", "small", "medium", "large"].indexOf(value) >= 0,
332
+ ['none', 'xsmall', 'small', 'medium', 'large'].indexOf(value) >= 0,
302
333
  },
303
334
  borderType: {
304
335
  type: String,
305
- default: "none",
336
+ default: 'none',
306
337
  validator: (value) =>
307
- ["none", "thin", "shadow", "thick", "dark"].indexOf(value) >= 0,
338
+ ['none', 'thin', 'shadow', 'thick', 'dark'].indexOf(value) >= 0,
308
339
  },
309
340
  cardTextAlign: {
310
341
  type: String,
311
- default: "left",
342
+ default: 'left',
312
343
  },
313
344
  disableSelect: {
314
345
  type: Boolean,
@@ -316,11 +347,11 @@ export default {
316
347
  },
317
348
  pillText: {
318
349
  type: String,
319
- default: "",
350
+ default: '',
320
351
  },
321
352
  buttonRole: {
322
353
  type: String,
323
- default: "link",
354
+ default: 'link',
324
355
  },
325
356
  isSelected: {
326
357
  type: Boolean,
@@ -358,18 +389,20 @@ export default {
358
389
  return {
359
390
  [`card-grid-item__card--hasIcon`]:
360
391
  (this.imageSrc || this.glyphSrc) &&
361
- (this.iconPosition === "top" || this.iconPosition === "top-left"),
392
+ (this.iconPosition === 'top' || this.iconPosition === 'top-left'),
362
393
  [`card-grid-item__card--selectable`]: this.isSelectable,
363
- [`card-grid-item__card--selected-inverted--` + this.invertOnSelectBackground]:
394
+ [`card-grid-item__card--selected-inverted--` +
395
+ this.invertOnSelectBackground]:
364
396
  this.selected &&
365
397
  this.invertOnSelectBackground &&
366
- this.invertOnSelectBackground !== "none",
367
- [`card-grid-item__card--selected-border--` + this.borderOnSelectBackground]:
398
+ this.invertOnSelectBackground !== 'none',
399
+ [`card-grid-item__card--selected-border--` +
400
+ this.borderOnSelectBackground]:
368
401
  this.selected &&
369
402
  this.borderOnSelectBackground &&
370
- this.borderOnSelectBackground !== "none",
403
+ this.borderOnSelectBackground !== 'none',
371
404
  [`card-grid-item__card--selected-focus`]:
372
- this.selected && this.buttonRole === "radio",
405
+ this.selected && this.buttonRole === 'radio',
373
406
  [`card-grid-item__card--selected-link`]:
374
407
  this.selected && !this.invertOnSelectBackground,
375
408
  [`card-grid-item__card--padding-${this.cardPadding}`]: true,
@@ -377,87 +410,89 @@ export default {
377
410
  [`card-grid-item__card--bg-${this.backgroundVariant}`]: true,
378
411
  [`card-grid-item__card--select-${this.buttonRole}`]: true,
379
412
  [`card-grid-item__card--align-${this.cardTextAlign}`]: true,
380
- };
413
+ }
381
414
  },
382
415
  urlHostname() {
383
- return window.location.protocol + "//" + window.location.host;
416
+ return window.location.protocol + '//' + window.location.host
384
417
  },
385
418
  },
386
419
  mounted() {
387
- this.selected = this.isSelected;
420
+ this.selected = this.isSelected
388
421
  },
389
422
  created() {
390
- this.parentGrid = this.getParentGridItem();
423
+ this.parentGrid = this.getParentGridItem()
391
424
  if (this.parentGrid) {
392
- this.parentGrid.registerChild(this);
393
- this.setCardId();
394
- this.isSelectable = !this.disableSelect && this.parentGrid.isSelectable;
425
+ this.parentGrid.registerChild(this)
426
+ this.setCardId()
427
+ this.isSelectable = !this.disableSelect && this.parentGrid.isSelectable
395
428
  }
396
429
  },
397
430
  beforeDestroy() {
398
431
  if (this.parentGrid) {
399
- this.parentGrid.deregisterChild(this);
432
+ this.parentGrid.deregisterChild(this)
400
433
  }
401
434
  },
402
435
  methods: {
403
436
  cardClicked(ev) {
404
437
  if (this.isSelectable) {
405
- this.parentGrid.cardSelected(this, ev);
438
+ this.parentGrid.cardSelected(this, ev)
406
439
  }
407
440
 
408
441
  if (this.$gtm) {
409
- this.fireGTM();
442
+ this.fireGTM()
410
443
  }
411
444
  },
412
445
  cardTitleClicked(ev) {
413
446
  if (this.isCardTitleSelectable) {
414
- this.parentGrid.cardTitleSelected(this, ev);
447
+ this.parentGrid.cardTitleSelected(this, ev)
415
448
  }
416
449
  },
417
450
  getParentGridItem() {
418
- let counter = 0;
419
- const maxParentDepth = 10;
420
- let currentParent = this.$parent;
421
- let gridParent;
451
+ let counter = 0
452
+ const maxParentDepth = 10
453
+ let currentParent = this.$parent
454
+ let gridParent
422
455
  while (maxParentDepth > counter) {
423
- counter += 1;
456
+ counter += 1
424
457
  if (currentParent && Array.isArray(currentParent.cards)) {
425
- gridParent = currentParent;
426
- break;
458
+ gridParent = currentParent
459
+ break
427
460
  } else if (currentParent) {
428
- currentParent = currentParent.$parent;
461
+ currentParent = currentParent.$parent
429
462
  }
430
463
  }
431
- return gridParent;
464
+ return gridParent
432
465
  },
433
466
  setCardId() {
434
467
  this.cardId = this.parentGrid.cardIdPrefix
435
- ? this.parentGrid.cardIdPrefix + "-" + this.parentGrid.getChildIndex(this)
436
- : undefined;
468
+ ? this.parentGrid.cardIdPrefix +
469
+ '-' +
470
+ this.parentGrid.getChildIndex(this)
471
+ : undefined
437
472
  },
438
473
  setGridMetaData(gridColumnSize, isMobileView, isTabletView) {
439
- this.gridColumnSize = gridColumnSize;
440
- this.isMobileView = isMobileView;
441
- this.isTabletView = isTabletView;
474
+ this.gridColumnSize = gridColumnSize
475
+ this.isMobileView = isMobileView
476
+ this.isTabletView = isTabletView
442
477
  },
443
478
  handleFocus(ev) {
444
- this.parentGrid.handleFocus(ev);
479
+ this.parentGrid.handleFocus(ev)
445
480
  },
446
481
  fireGTM() {
447
- let theEl = this.$slots?.cardDescription;
482
+ let theEl = this.$slots?.cardDescription
448
483
  if (theEl && theEl.length > 0) {
449
484
  var content = {
450
485
  content: this.$diffInDays(
451
- parseISO(theEl[0]?.componentOptions?.propsData?.card?.created)
486
+ parseISO(theEl[0]?.componentOptions?.propsData?.card?.created),
452
487
  ),
453
- };
488
+ }
454
489
  }
455
490
  if (this.$gtm) {
456
491
  // format link
457
- const linkStr = this.link;
458
- let linkURL = linkStr;
492
+ const linkStr = this.link
493
+ let linkURL = linkStr
459
494
  if (linkStr !== false && !linkStr.includes(this.urlHostname)) {
460
- linkURL = this.urlHostname + linkStr;
495
+ linkURL = this.urlHostname + linkStr
461
496
  }
462
497
  // gather attrs
463
498
  let attrs = {
@@ -465,45 +500,46 @@ export default {
465
500
  data: linkURL,
466
501
  ...content,
467
502
  ...this.taxonomies,
468
- };
503
+ }
469
504
  // fire the default event
470
505
  this.$gtm.push({
471
- event: "custom.interaction.tile.click",
506
+ event: 'custom.interaction.tile.click',
472
507
  group: this?.parentGrid?.title,
473
508
  ...attrs,
474
- });
475
- if (this.pillText === "News") {
509
+ })
510
+ if (this.pillText === 'News') {
476
511
  this.$gtm.push({
477
- event: "custom.interaction.news.click",
478
- group: "News",
512
+ event: 'custom.interaction.news.click',
513
+ group: 'News',
479
514
  ...attrs,
480
- });
515
+ })
481
516
  }
482
- if (this.pillText === "Event") {
517
+ if (this.pillText === 'Event') {
483
518
  this.$gtm.push({
484
- event: "custom.interaction.event.click",
485
- group: "Event",
519
+ event: 'custom.interaction.event.click',
520
+ group: 'Event',
486
521
  ...attrs,
487
- });
522
+ })
488
523
  }
489
- if (this.pillText === "Safety alert") {
524
+ if (this.pillText === 'Safety alert') {
490
525
  this.$gtm.push({
491
- event: "custom.interaction.safety.click",
492
- group: "Safety alert",
526
+ event: 'custom.interaction.safety.click',
527
+ group: 'Safety alert',
493
528
  ...attrs,
494
- });
529
+ })
495
530
  }
496
531
  if (
497
532
  (this.link,
498
533
  this.isAbsoluteUrl(this.link) &&
499
- (this.$config ? this.$config.public.caretaker : process.env.CARETAKER) ===
500
- "false")
534
+ (this.$config
535
+ ? this.$config.public.caretaker
536
+ : process.env.CARETAKER) === 'false')
501
537
  ) {
502
538
  this.$gtm.push({
503
- event: "custom.interaction.outboundlink",
539
+ event: 'custom.interaction.outboundlink',
504
540
  category: this.cardHeaderTitle,
505
541
  label: this.link,
506
- });
542
+ })
507
543
  }
508
544
  }
509
545
  // for non gov sites and when caretaker mode is on, analytics is fired from listenersCaretaker.js
@@ -511,21 +547,23 @@ export default {
511
547
  this.link &&
512
548
  this.isAbsoluteUrl(this.link) &&
513
549
  isGovSite(this.link) &&
514
- (this.$config ? this.$config.public.caretaker : process.env.CARETAKER) === "true"
550
+ (this.$config
551
+ ? this.$config.public.caretaker
552
+ : process.env.CARETAKER) === 'true'
515
553
  ) {
516
554
  this.$gtm.push({
517
- event: "custom.interaction.outboundlink",
555
+ event: 'custom.interaction.outboundlink',
518
556
  category: this.cardHeaderTitle,
519
557
  label: this.link,
520
- });
558
+ })
521
559
  }
522
560
  },
523
561
  },
524
- };
562
+ }
525
563
  </script>
526
564
 
527
565
  <style lang="scss" scoped>
528
- @import "../../../includes/scss/all";
566
+ @import '../../../includes/scss/all';
529
567
 
530
568
  .card-grid-item {
531
569
  height: 100%;
@@ -777,7 +815,7 @@ export default {
777
815
  align-items: center;
778
816
  }
779
817
  :deep(.card_item__control-radio span) {
780
- background-image: url("../../../assets/icons/tick.svg");
818
+ background-image: url('../../../assets/icons/tick.svg');
781
819
  background-position: center;
782
820
  background-repeat: no-repeat;
783
821
  filter: invert(1);
@@ -826,7 +864,7 @@ export default {
826
864
  line-height: 80px;
827
865
 
828
866
  @media screen and (max-width: 1199px) and (min-width: 768px) {
829
- @include fp("font-size", 60, 72);
867
+ @include fp('font-size', 60, 72);
830
868
  }
831
869
  }
832
870
 
@@ -2,8 +2,9 @@ import CarouselComponent from './index.vue'
2
2
  import { mockCarouselItems } from '../../../mock/carousel-items'
3
3
 
4
4
  export default {
5
- title: 'Website-Redesign/Carousel',
5
+ title: 'Containers/Carousel',
6
6
  component: CarouselComponent,
7
+ tags: ['autodocs'],
7
8
  data() {
8
9
  return {
9
10
  mockCarouselItems
@@ -11,7 +12,8 @@ export default {
11
12
  },
12
13
  args: {
13
14
  carouselItems: mockCarouselItems,
14
- storybook: true
15
+ storybook: true,
16
+ isParagraph: true,
15
17
  },
16
18
 
17
19
  }
@@ -21,8 +23,8 @@ const DefaultCarousel = (args) => ({
21
23
  setup() {
22
24
  return { args }
23
25
  },
24
- template: `<div style="width: 50%; height: auto;">
25
- <h2>Carousel Component</h2>
26
+ template: `<div>
27
+ <h2 style="padding-left: 50px; padding-bottom: 20px;">Carousel Component</h2>
26
28
  <carousel-component v-bind="args"></carousel-component>
27
29
  </div>`
28
30
  })