@worksafevictoria/wcl7.5 1.1.3 → 1.1.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.
package/.storybook/preview.js
CHANGED
package/package.json
CHANGED
|
@@ -19,75 +19,26 @@ const MockVideo = {
|
|
|
19
19
|
export default {
|
|
20
20
|
title: 'Paragraphs/Text + Media',
|
|
21
21
|
component: TextMedia,
|
|
22
|
-
|
|
23
|
-
content:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
titleTag: {
|
|
33
|
-
control: 'text',
|
|
34
|
-
defaultValue: 'h3'
|
|
35
|
-
},
|
|
36
|
-
hasBgColor: {
|
|
37
|
-
control: 'boolean',
|
|
38
|
-
defaultValue: false
|
|
39
|
-
},
|
|
40
|
-
flip: {
|
|
41
|
-
control: 'boolean',
|
|
42
|
-
defaultValue: false
|
|
43
|
-
},
|
|
44
|
-
rtl: {
|
|
45
|
-
control: 'boolean',
|
|
46
|
-
defaultValue: false
|
|
47
|
-
},
|
|
48
|
-
workwell: {
|
|
49
|
-
control: 'boolean',
|
|
50
|
-
defaultValue: false
|
|
51
|
-
},
|
|
52
|
-
video: {
|
|
53
|
-
control: 'object'
|
|
54
|
-
},
|
|
55
|
-
image: {
|
|
56
|
-
control: 'object'
|
|
57
|
-
},
|
|
58
|
-
mediaType: {
|
|
59
|
-
control: 'text'
|
|
60
|
-
},
|
|
61
|
-
storybook: {
|
|
62
|
-
control: 'boolean',
|
|
63
|
-
defaultValue: true
|
|
64
|
-
},
|
|
65
|
-
hideImageMob: {
|
|
66
|
-
control: 'boolean',
|
|
67
|
-
defaultValue: false
|
|
68
|
-
}
|
|
22
|
+
args: {
|
|
23
|
+
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>',
|
|
24
|
+
titleText: 'A sample media item',
|
|
25
|
+
titleTag: 'h3',
|
|
26
|
+
hasBgColor: false,
|
|
27
|
+
flip: false,
|
|
28
|
+
rtl: false,
|
|
29
|
+
workwell: false,
|
|
30
|
+
storybook: true,
|
|
31
|
+
hideImageMob: false
|
|
69
32
|
}
|
|
70
33
|
}
|
|
71
34
|
|
|
72
|
-
const
|
|
73
|
-
components: { TextMedia },
|
|
74
|
-
props: Object.keys(argTypes),
|
|
75
|
-
template: `<text-media v-bind="$props" />`
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
export const TextWithImage = TextWithImageDefault.bind({})
|
|
35
|
+
export const TextWithImage = {}
|
|
79
36
|
TextWithImage.args = {
|
|
80
37
|
mediaType: 'image',
|
|
81
38
|
image: MockImage
|
|
82
39
|
}
|
|
83
40
|
|
|
84
|
-
const
|
|
85
|
-
components: { TextMedia },
|
|
86
|
-
props: Object.keys(argTypes),
|
|
87
|
-
template: `<text-media v-bind="$props" />`
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
export const TextWithVideo = TextWithVideoDefault.bind({})
|
|
41
|
+
export const TextWithVideo = {}
|
|
91
42
|
TextWithVideo.args = {
|
|
92
43
|
mediaType: 'video',
|
|
93
44
|
video: MockVideo
|