@worksafevictoria/wcl7.5 1.1.0-beta.6 → 1.1.0-beta.8

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.0-beta.6",
3
+ "version": "1.1.0-beta.8",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,7 @@
1
1
  import ScrollSpy from './index.vue'
2
+ import { BCol, BRow, BContainer } from 'bootstrap-vue-next'
2
3
 
3
- const itemList = [
4
+ const englishItemList = [
4
5
  {
5
6
  text: 'Section one heading',
6
7
  id: 'item-1'
@@ -42,30 +43,22 @@ export default {
42
43
  title: 'Paragraphs/ScrollSpy',
43
44
  component: ScrollSpy,
44
45
  argTypes: {
45
- title: {
46
- control: 'text',
47
- defaultValue: 'On this page'
48
- },
49
46
  itemList: {
50
- control: 'array'
51
- },
52
- itemListEnglish: {
53
- control: 'array',
54
- defaultValue: itemList
55
- },
56
- itemListArabic: {
57
- control: 'array',
58
- defaultValue: arabicItemList
59
- },
60
- rtl: {
61
- control: 'boolean',
62
- defaultValue: false
47
+ table: {disable: true}
48
+ }
49
+ },
50
+ args: {
51
+ title: 'On this page',
52
+ itemListEnglish: englishItemList,
53
+ itemListArabic: arabicItemList,
54
+ rtl: false
63
55
  }
64
- }
65
56
  }
66
- const DefaultContent = (args, { argTypes }) => ({
67
- components: { ScrollSpy },
68
- props: Object.keys(argTypes),
57
+ const DefaultContent = (args) => ({
58
+ components: { ScrollSpy, BCol, BRow, BContainer },
59
+ setup() {
60
+ return { args }
61
+ },
69
62
  data() {
70
63
  return {
71
64
  text: `
@@ -79,7 +72,7 @@ const DefaultContent = (args, { argTypes }) => ({
79
72
  ipsum commodo tempor sunt in proident.
80
73
  `,
81
74
  arabicText: `هنالك العديد من الأنواع المتوفرة لنصوص لوريم إيبسوم، ولكن الغالبية تم تعديلها بشكل ما عبر إدخال بعض النوادر أو الكلمات العشوائية إلى النص. إن كنت تريد أن تستخدم نص لوريم إيبسوم ما، عليك أن تتحقق أولاً أن ليس هناك أي كلمات أو عبارات محرجة أو غير لائقة مخبأة في هذا النص. بينما تعمل جميع مولّدات نصوص لوريم إيبسوم على الإنترنت على إعادة تكرار مقاطع من نص لوريم إيبسوم نفسه عدة مرات بما تتطلبه الحاجة، يقوم مولّدنا هذا باستخدام كلمات من قاموس يحوي على أكثر من 200 كلمة لا تينية، مضاف إليها مجموعة من الجمل النموذجية، لتكوين نص لوريم إيبسوم ذو شكل منطقي قريب إلى النص الحقيقي. وبالتالي يكون النص الناتح خالي من التكرار، أو أي كلمات أو عبارات غير لائقة أو ما شابه. وهذا ما يجعله أول مولّد نص لوريم إيبسوم حقيقي على الإنترنت.`,
82
- itemList,
75
+ englishItemList,
83
76
  arabicItemList
84
77
  }
85
78
  },
@@ -126,7 +119,7 @@ const DefaultContent = (args, { argTypes }) => ({
126
119
  </div>
127
120
  </b-col>
128
121
  <b-col cols="4">
129
- <scroll-spy v-bind="$props" :item-list="itemListEnglish" />
122
+ <scroll-spy v-bind="args" :item-list="args.itemListEnglish" />
130
123
  </b-col>
131
124
  </b-row>
132
125
 
@@ -174,11 +167,10 @@ const DefaultContent = (args, { argTypes }) => ({
174
167
  </div>
175
168
  </b-col>
176
169
  <b-col cols="4">
177
- <scroll-spy v-bind="$props" :item-list="arabicItemList" />
170
+ <scroll-spy v-bind="args" :item-list="args.arabicItemList" />
178
171
  </b-col>
179
172
  </b-row>
180
173
  </b-container>`
181
174
  })
182
175
 
183
176
  export const Default = DefaultContent.bind({})
184
- Default.parameters = { controls: { exclude: ['itemList'] } }
@@ -22,10 +22,11 @@
22
22
 
23
23
  <script>
24
24
  import SectionGroup from '../../Containers/SectionGroup/index.vue'
25
+ import { BNavbar, BListGroup, BListGroupItem } from 'bootstrap-vue-next'
25
26
 
26
27
  export default {
27
28
  name: 'ScrollSpy',
28
- components: { SectionGroup },
29
+ components: { SectionGroup, BNavbar, BListGroup, BListGroupItem },
29
30
  props: {
30
31
  title: {
31
32
  type: String,
@@ -107,45 +107,28 @@ export default {
107
107
  title: 'Paragraphs/VideoGrid',
108
108
  component: { VideoGrid, Container, Row, Column },
109
109
  argTypes: {
110
- gridTitle: {
111
- control: 'text',
112
- defaultValue: mockData.title
113
- },
114
110
  titleTag: {
115
111
  control: 'select',
116
- options: ['h2', 'h3'],
117
- defaultValue: 'h2'
118
- },
119
- gridDescription: {
120
- control: 'text',
121
- defaultValue: mockData.description
122
- },
123
- videoList: {
124
- control: 'object',
125
- defaultValue: mockData.videos
126
- },
127
- rtl: {
128
- control: 'boolean',
129
- defaultValue: mockData.rtl
130
- },
131
- threeColumns: {
132
- control: 'boolean',
133
- defaultValue: mockData.threeColumns
134
- },
135
- greyBackground: {
136
- control: 'boolean',
137
- defaultValue: mockData.greyBackground
138
- },
139
- cta: {
140
- control: 'object',
141
- defaultValue: mockData.cta
112
+ options: ['h2', 'h3']
142
113
  }
114
+ },
115
+ args: {
116
+ gridTitle: mockData.title,
117
+ titleTag: 'h2',
118
+ gridDescription: mockData.description,
119
+ videoList: mockData.videos,
120
+ rtl: mockData.rtl,
121
+ threeColumns: mockData.threeColumns,
122
+ greyBackground: mockData.greyBackground,
123
+ cta: mockData.cta
143
124
  }
144
125
  }
145
126
 
146
127
  const YoutubeContent = (args, { argTypes }) => ({
147
128
  components: { VideoGrid, Container, Row, Column },
148
- props: Object.keys(argTypes),
129
+ setup() {
130
+ return { args };
131
+ },
149
132
  data() {
150
133
  return {
151
134
  videos: mockData.videos
@@ -156,7 +139,7 @@ const YoutubeContent = (args, { argTypes }) => ({
156
139
  <row>
157
140
  <column>
158
141
  <video-grid
159
- v-bind="$props"
142
+ v-bind="args"
160
143
  />
161
144
  </column>
162
145
  </row>
@@ -165,3 +148,4 @@ const YoutubeContent = (args, { argTypes }) => ({
165
148
  })
166
149
 
167
150
  export const Youtube = YoutubeContent.bind({})
151
+