@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 +1 -1
- package/src/components/Paragraphs/Accordion/index.stories.js +1 -0
- package/src/components/Paragraphs/Breakout/index.stories.js +1 -0
- package/src/components/Paragraphs/BrowseContent/index.stories.js +1 -0
- package/src/components/Paragraphs/Calculator/Constants.js +2 -2
- package/src/components/Paragraphs/Calculator/index.stories.js +1 -0
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +1 -0
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +1 -0
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +1 -0
- package/src/components/Paragraphs/MarketingBanner/index.stories.js +1 -0
- package/src/components/Paragraphs/ProofPoints/index.stories.js +19 -20
- package/src/components/Paragraphs/RelatedInformation/index.stories.js +7 -0
package/package.json
CHANGED
|
@@ -29,9 +29,9 @@ export const barItems = [
|
|
|
29
29
|
|
|
30
30
|
export const cardTitles = {
|
|
31
31
|
weight: {
|
|
32
|
-
heading: 'Pick
|
|
32
|
+
heading: 'Pick an object?',
|
|
33
33
|
subHeading:
|
|
34
|
-
'<p>Pick
|
|
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
|
},
|
|
@@ -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
|
-
|
|
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
|
|
136
|
+
const DefaultProofPoint = (args) => ({
|
|
140
137
|
components: { ProofPoints },
|
|
141
|
-
|
|
142
|
-
|
|
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 (
|
|
158
|
+
if (args.type === 'image') {
|
|
160
159
|
clone.icon = undefined
|
|
161
|
-
} else if (
|
|
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,
|