@worksafevictoria/wcl7.5 1.1.10 → 1.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,6 +30,7 @@ const mockAccordionItems = [
30
30
  export default {
31
31
  title: 'Paragraphs/Accordion',
32
32
  component: Accordion,
33
+ tags: ['autodocs'],
33
34
  argTypes: {
34
35
  titleTag: {
35
36
  control: 'select',
@@ -3,6 +3,7 @@ import Breakout from './index.vue'
3
3
  export default {
4
4
  title: 'Paragraphs/Breakout',
5
5
  component: Breakout,
6
+ tags: ['autodocs'],
6
7
  argTypes: {
7
8
  headingTag: {
8
9
  control: 'select',
@@ -5,6 +5,7 @@ const bundleContent = ['news', 'page']
5
5
  export default {
6
6
  title: 'Paragraphs/BrowseContent',
7
7
  component: { BrowseContent },
8
+ tags: ['autodocs'],
8
9
  argTypes: {
9
10
  background: {
10
11
  control: 'select',
@@ -29,9 +29,9 @@ export const barItems = [
29
29
 
30
30
  export const cardTitles = {
31
31
  weight: {
32
- heading: 'Pick a object?',
32
+ heading: 'Pick an object?',
33
33
  subHeading:
34
- '<p>Pick a object from the selections or if you know exactly how heavy the object that is being dropped is, enter the weight in input box below</p>',
34
+ '<p>Pick an object from the selections or if you know exactly how heavy the object that is being dropped is, enter the weight in input box below</p>',
35
35
  selectHeading: 'How heavy is the object?',
36
36
  selectSubHeading: 'Weight in kilograms, max is 500 kg'
37
37
  },
@@ -12,6 +12,7 @@ import {
12
12
  export default {
13
13
  title: 'Paragraphs/Calculator',
14
14
  component: Calculator,
15
+ tags: ['autodocs'],
15
16
  args: {
16
17
  items: barItems,
17
18
  titles: cardTitles,
@@ -4,6 +4,7 @@ import { storyData, storyDataAr } from './../Constants'
4
4
  export default {
5
5
  title: 'Paragraphs/ListGroup',
6
6
  component: ListGroup,
7
+ tags: ['autodocs'],
7
8
  argTypes: {
8
9
  list: {
9
10
  table: {
@@ -4,6 +4,7 @@ import { storyData, storyDataAr } from './Constants'
4
4
  export default {
5
5
  title: 'Paragraphs/ListGroup',
6
6
  component: ListGroup,
7
+ tags: ['autodocs'],
7
8
  argTypes: {
8
9
  list: {
9
10
  table: {
@@ -4,6 +4,7 @@ import { storyData, storyDataAr } from './Constants'
4
4
  export default {
5
5
  title: 'Paragraphs/NavigationCards',
6
6
  component: ListGroup,
7
+ tags: ['autodocs'],
7
8
  argTypes: {
8
9
  list: {
9
10
  table: {
@@ -3,6 +3,7 @@ import MarketingBanner from './index.vue'
3
3
  export default {
4
4
  title: 'Paragraphs/MarketingBanner',
5
5
  component: MarketingBanner,
6
+ tags: ['autodocs'],
6
7
  argTypes: {
7
8
  image: {
8
9
  control: 'text'
@@ -106,40 +106,39 @@ const itemListAr = [
106
106
  export default {
107
107
  title: 'Paragraphs/ProofPoints',
108
108
  component: ProofPoints,
109
+ tags: ['autodocs'],
109
110
  argTypes: {
110
- title: {
111
- control: 'text',
112
- defaultValue: 'Section heading'
113
- },
114
111
  headingTag: {
115
112
  control: 'select',
116
- options: ['h2', 'h3'],
117
- defaultValue: 'h2'
118
- },
119
- rtl: {
120
- control: 'boolean',
121
- defaultValue: false
113
+ options: ['h2', 'h3']
122
114
  },
123
- columns: {
115
+ columns: {
124
116
  control: 'select',
125
- options: [3, 4],
126
- defaultValue: 3
117
+ options: [3, 4]
127
118
  },
128
119
  itemList: {
129
120
  table: { disable: true }
130
121
  },
131
122
  type: {
132
123
  control: 'select',
133
- options: ['default', 'icon', 'image'],
134
- defaultValue: 'icon'
124
+ options: ['default', 'icon', 'image']
135
125
  }
126
+ },
127
+ args: {
128
+ title: 'Section heading',
129
+ headingTag: 'h2',
130
+ rtl: false,
131
+ columns: 3,
132
+ type: 'icon'
136
133
  }
137
134
  }
138
135
 
139
- const DefaultProofPoint = (args, { argTypes }) => ({
136
+ const DefaultProofPoint = (args) => ({
140
137
  components: { ProofPoints },
141
- props: Object.keys(argTypes),
142
- template: `<proof-points v-bind="$props" :item-list="dynamicItemList" />`,
138
+ setup() {
139
+ return { args };
140
+ },
141
+ template: `<proof-points v-bind="args" :item-list="dynamicItemList" />`,
143
142
  data() {
144
143
  return {
145
144
  itemListDefault,
@@ -156,9 +155,9 @@ const DefaultProofPoint = (args, { argTypes }) => ({
156
155
  }
157
156
  return array.map((item) => {
158
157
  const clone = JSON.parse(JSON.stringify(item))
159
- if (this.type === 'image') {
158
+ if (args.type === 'image') {
160
159
  clone.icon = undefined
161
- } else if (this.type === 'icon') {
160
+ } else if (args.type === 'icon') {
162
161
  clone.image = undefined
163
162
  } else {
164
163
  clone.icon = undefined
@@ -4,6 +4,13 @@ import { taxonomyTagsList } from '../../../mock/related-info'
4
4
  export default {
5
5
  title: 'Paragraphs/RelatedInformation',
6
6
  component: RelatedInformation,
7
+ argTypes: {
8
+ goToCollectionPage: {
9
+ table: {
10
+ disable: true
11
+ }
12
+ }
13
+ },
7
14
  args: {
8
15
  showTaxonomies: true,
9
16
  showTaxonomyHeading: true,