@wonderflow/react-components 12.6.0 → 12.8.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 (31) hide show
  1. package/dist/components/card/card.module.css +1 -1
  2. package/dist/components/product-card/product-card.stories.js +1 -1
  3. package/dist/components/split-button/split-button.stories.d.ts +1 -1
  4. package/dist/components/tab/tab.stories.d.ts +1 -0
  5. package/dist/components/tab/tab.stories.d.ts.map +1 -1
  6. package/dist/components/tab/tab.stories.js +39 -2
  7. package/dist/components/table/mocked-data.d.ts +233 -0
  8. package/dist/components/table/mocked-data.d.ts.map +1 -0
  9. package/dist/components/table/mocked-data.js +923 -0
  10. package/dist/components/table/table.stories.d.ts.map +1 -1
  11. package/dist/components/table/table.stories.js +4 -915
  12. package/dist/examples/charts/mock-data/channels.d.ts +45 -0
  13. package/dist/examples/charts/mock-data/channels.d.ts.map +1 -0
  14. package/dist/examples/charts/mock-data/channels.js +393 -0
  15. package/dist/examples/charts/mock-data/feedbackCount.d.ts +28 -0
  16. package/dist/examples/charts/mock-data/feedbackCount.d.ts.map +1 -0
  17. package/dist/examples/charts/mock-data/feedbackCount.js +283 -0
  18. package/dist/examples/charts/mock-data/index.d.ts +4 -0
  19. package/dist/examples/charts/mock-data/index.d.ts.map +1 -0
  20. package/dist/examples/charts/mock-data/index.js +18 -0
  21. package/dist/examples/charts/mock-data/prosCons.d.ts +7 -0
  22. package/dist/examples/charts/mock-data/prosCons.d.ts.map +1 -0
  23. package/dist/examples/charts/mock-data/prosCons.js +83 -0
  24. package/dist/examples/charts/storybook/cartesian-base.stories.d.ts +10 -0
  25. package/dist/examples/charts/storybook/cartesian-base.stories.d.ts.map +1 -0
  26. package/dist/examples/charts/storybook/cartesian-base.stories.js +114 -0
  27. package/dist/examples/charts/storybook/line-chart.stories.d.ts +19 -0
  28. package/dist/examples/charts/storybook/line-chart.stories.d.ts.map +1 -0
  29. package/dist/examples/charts/storybook/line-chart.stories.js +233 -0
  30. package/dist/examples/charts/storybook/sb-charts.module.css +1 -0
  31. package/package.json +24 -4
@@ -0,0 +1,45 @@
1
+ export declare const channels: {
2
+ channel: string;
3
+ '1 star': number;
4
+ '2 stars': number;
5
+ '3 stars': number;
6
+ '4 stars': number;
7
+ '5 stars': number;
8
+ }[];
9
+ export declare const channelsB: {
10
+ channel: string;
11
+ '1 star': {
12
+ value: number;
13
+ percentage: number;
14
+ };
15
+ '2 stars': {
16
+ value: number;
17
+ percentage: number;
18
+ };
19
+ '3 stars': {
20
+ value: number;
21
+ percentage: number;
22
+ };
23
+ '4 stars': {
24
+ value: number;
25
+ percentage: number;
26
+ };
27
+ '5 stars': {
28
+ value: number;
29
+ percentage: number;
30
+ };
31
+ overlay: {
32
+ value: number;
33
+ percentage: number;
34
+ };
35
+ }[];
36
+ export declare const nestedChannels: {
37
+ name: string;
38
+ values: {
39
+ value: number;
40
+ valueInfo: number;
41
+ label: string;
42
+ label2: number;
43
+ }[];
44
+ }[];
45
+ //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../src/examples/charts/mock-data/channels.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,QAAQ;;;;;;;GAyJpB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CrB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;GAgL1B,CAAC"}
@@ -0,0 +1,393 @@
1
+ /*
2
+ * Copyright 2023 Wonderflow Design Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export const channels = [
17
+ {
18
+ channel: 'amazon.ca',
19
+ '1 star': 159,
20
+ '2 stars': 51,
21
+ '3 stars': 66,
22
+ '4 stars': 157,
23
+ '5 stars': 1500,
24
+ },
25
+ {
26
+ channel: 'amazon.co.uk',
27
+ '1 star': 33,
28
+ '2 stars': 8,
29
+ '3 stars': 18,
30
+ '4 stars': 18,
31
+ '5 stars': 241,
32
+ },
33
+ {
34
+ channel: 'amazon.com',
35
+ '1 star': 679,
36
+ '2 stars': 284,
37
+ '3 stars': 370,
38
+ '4 stars': 866,
39
+ '5 stars': 8302,
40
+ },
41
+ {
42
+ channel: 'amazon.com.au',
43
+ '1 star': 0,
44
+ '2 stars': 0,
45
+ '3 stars': 1,
46
+ '4 stars': 0,
47
+ '5 stars': 3,
48
+ },
49
+ {
50
+ channel: 'amazon.de',
51
+ '1 star': 21,
52
+ '2 stars': 6,
53
+ '3 stars': 11,
54
+ '4 stars': 12,
55
+ '5 stars': 86,
56
+ },
57
+ {
58
+ channel: 'amazon.es',
59
+ '1 star': 0,
60
+ '2 stars': 0,
61
+ '3 stars': 0,
62
+ '4 stars': 0,
63
+ '5 stars': 6,
64
+ },
65
+ {
66
+ channel: 'amazon.fr',
67
+ '1 star': 18,
68
+ '2 stars': 3,
69
+ '3 stars': 9,
70
+ '4 stars': 10,
71
+ '5 stars': 78,
72
+ },
73
+ {
74
+ channel: 'amazon.in',
75
+ '1 star': 16,
76
+ '2 stars': 4,
77
+ '3 stars': 9,
78
+ '4 stars': 7,
79
+ '5 stars': 66,
80
+ },
81
+ {
82
+ channel: 'amazon.it',
83
+ '1 star': 22,
84
+ '2 stars': 4,
85
+ '3 stars': 9,
86
+ '4 stars': 11,
87
+ '5 stars': 98,
88
+ },
89
+ {
90
+ channel: 'amazon.nl',
91
+ '1 star': 4,
92
+ '2 stars': 0,
93
+ '3 stars': 1,
94
+ '4 stars': 3,
95
+ '5 stars': 23,
96
+ },
97
+ {
98
+ channel: 'bedbathandbeyond.com',
99
+ '1 star': 421,
100
+ '2 stars': 236,
101
+ '3 stars': 529,
102
+ '4 stars': 3217,
103
+ '5 stars': 35541,
104
+ },
105
+ {
106
+ channel: 'bestbuy.ca',
107
+ '1 star': 388,
108
+ '2 stars': 242,
109
+ '3 stars': 562,
110
+ '4 stars': 3548,
111
+ '5 stars': 38635,
112
+ },
113
+ {
114
+ channel: 'canadiantire.ca',
115
+ '1 star': 311,
116
+ '2 stars': 193,
117
+ '3 stars': 468,
118
+ '4 stars': 3108,
119
+ '5 stars': 34484,
120
+ },
121
+ {
122
+ channel: 'darty.com',
123
+ '1 star': 0,
124
+ '2 stars': 0,
125
+ '3 stars': 0,
126
+ '4 stars': 0,
127
+ '5 stars': 5,
128
+ },
129
+ {
130
+ channel: 'myer.com.au',
131
+ '1 star': 286,
132
+ '2 stars': 181,
133
+ '3 stars': 452,
134
+ '4 stars': 2984,
135
+ '5 stars': 33501,
136
+ },
137
+ {
138
+ channel: 'otto.de',
139
+ '1 star': 19,
140
+ '2 stars': 18,
141
+ '3 stars': 56,
142
+ '4 stars': 56,
143
+ '5 stars': 184,
144
+ },
145
+ {
146
+ channel: 'productreview.com.au',
147
+ '1 star': 19,
148
+ '2 stars': 13,
149
+ '3 stars': 9,
150
+ '4 stars': 20,
151
+ '5 stars': 130,
152
+ },
153
+ {
154
+ channel: 'target.com',
155
+ '1 star': 349,
156
+ '2 stars': 206,
157
+ '3 stars': 484,
158
+ '4 stars': 3264,
159
+ '5 stars': 36357,
160
+ },
161
+ {
162
+ channel: 'wayfair.com',
163
+ '1 star': 128,
164
+ '2 stars': 64,
165
+ '3 stars': 120,
166
+ '4 stars': 588,
167
+ '5 stars': 7663,
168
+ },
169
+ ];
170
+ export const channelsB = [
171
+ {
172
+ channel: 'bestbuy.ca',
173
+ '1 star': { value: 388, percentage: 10 },
174
+ '2 stars': { value: 242, percentage: 8 },
175
+ '3 stars': { value: 562, percentage: 12 },
176
+ '4 stars': { value: 3548, percentage: 21 },
177
+ '5 stars': { value: 3863, percentage: 87 },
178
+ overlay: { value: 3.8, percentage: 7 },
179
+ },
180
+ {
181
+ channel: 'amazon.com',
182
+ '1 star': { value: 339, percentage: 10 },
183
+ '2 stars': { value: 208, percentage: 10 },
184
+ '3 stars': { value: 418, percentage: 24 },
185
+ '4 stars': { value: 3218, percentage: 18 },
186
+ '5 stars': { value: 3637, percentage: 67 },
187
+ overlay: { value: 3.6, percentage: 6 },
188
+ },
189
+ {
190
+ channel: 'bedbathandbeyond.com',
191
+ '1 star': { value: 421, percentage: 13 },
192
+ '2 stars': { value: 234, percentage: 2 },
193
+ '3 stars': { value: 529, percentage: 0 },
194
+ '4 stars': { value: 3216, percentage: 28 },
195
+ '5 stars': { value: 3541, percentage: 76 },
196
+ overlay: { value: 1, percentage: 3 },
197
+ },
198
+ {
199
+ channel: 'canadiant.ca',
200
+ '1 star': { value: 310, percentage: 1 },
201
+ '2 stars': { value: 193, percentage: 0 },
202
+ '3 stars': { value: 468, percentage: 2 },
203
+ '4 stars': { value: 3109, percentage: 41 },
204
+ '5 stars': { value: 3444, percentage: 54 },
205
+ overlay: { value: 3.4, percentage: 5 },
206
+ },
207
+ {
208
+ channel: 'myer.max.au',
209
+ '1 star': { value: 286, percentage: 2 },
210
+ '2 stars': { value: 181, percentage: 0 },
211
+ '3 stars': { value: 511, percentage: 4 },
212
+ '4 stars': { value: 2912, percentage: 5 },
213
+ '5 stars': { value: 3086, percentage: 12 },
214
+ overlay: { value: 1.8, percentage: 1 },
215
+ },
216
+ ];
217
+ export const nestedChannels = [
218
+ {
219
+ name: 'bestbuy.ca',
220
+ values: [
221
+ {
222
+ value: 388,
223
+ valueInfo: 0,
224
+ label: 'bestbuy.ca',
225
+ label2: 1,
226
+ },
227
+ {
228
+ value: 242,
229
+ valueInfo: 0,
230
+ label: 'bestbuy.ca',
231
+ label2: 2,
232
+ },
233
+ {
234
+ value: 562,
235
+ valueInfo: 0,
236
+ label: 'bestbuy.ca',
237
+ label2: 3,
238
+ },
239
+ {
240
+ value: 3548,
241
+ valueInfo: 2,
242
+ label: 'bestbuy.ca',
243
+ label2: 4,
244
+ },
245
+ {
246
+ value: 38635,
247
+ valueInfo: 17,
248
+ label: 'bestbuy.ca',
249
+ label2: 5,
250
+ },
251
+ ],
252
+ },
253
+ {
254
+ name: 'target.com',
255
+ values: [
256
+ {
257
+ value: 349,
258
+ valueInfo: 0,
259
+ label: 'target.com',
260
+ label2: 1,
261
+ },
262
+ {
263
+ value: 206,
264
+ valueInfo: 0,
265
+ label: 'target.com',
266
+ label2: 2,
267
+ },
268
+ {
269
+ value: 484,
270
+ valueInfo: 0,
271
+ label: 'target.com',
272
+ label2: 3,
273
+ },
274
+ {
275
+ value: 3264,
276
+ valueInfo: 1,
277
+ label: 'target.com',
278
+ label2: 4,
279
+ },
280
+ {
281
+ value: 36357,
282
+ valueInfo: 16,
283
+ label: 'target.com',
284
+ label2: 5,
285
+ },
286
+ ],
287
+ },
288
+ {
289
+ name: 'bedbathandbeyond.com',
290
+ values: [
291
+ {
292
+ value: 421,
293
+ valueInfo: 0,
294
+ label: 'bedbathandbeyond.com',
295
+ label2: 1,
296
+ },
297
+ {
298
+ value: 236,
299
+ valueInfo: 0,
300
+ label: 'bedbathandbeyond.com',
301
+ label2: 2,
302
+ },
303
+ {
304
+ value: 529,
305
+ valueInfo: 0,
306
+ label: 'bedbathandbeyond.com',
307
+ label2: 3,
308
+ },
309
+ {
310
+ value: 3217,
311
+ valueInfo: 1,
312
+ label: 'bedbathandbeyond.com',
313
+ label2: 4,
314
+ },
315
+ {
316
+ value: 35541,
317
+ valueInfo: 16,
318
+ label: 'bedbathandbeyond.com',
319
+ label2: 5,
320
+ },
321
+ ],
322
+ },
323
+ {
324
+ name: 'canadiantire.ca',
325
+ values: [
326
+ {
327
+ value: 311,
328
+ valueInfo: 0,
329
+ label: 'canadiantire.ca',
330
+ label2: 1,
331
+ },
332
+ {
333
+ value: 193,
334
+ valueInfo: 0,
335
+ label: 'canadiantire.ca',
336
+ label2: 2,
337
+ },
338
+ {
339
+ value: 468,
340
+ valueInfo: 0,
341
+ label: 'canadiantire.ca',
342
+ label2: 3,
343
+ },
344
+ {
345
+ value: 3108,
346
+ valueInfo: 1,
347
+ label: 'canadiantire.ca',
348
+ label2: 4,
349
+ },
350
+ {
351
+ value: 34484,
352
+ valueInfo: 16,
353
+ label: 'canadiantire.ca',
354
+ label2: 5,
355
+ },
356
+ ],
357
+ },
358
+ {
359
+ name: 'myer.com.au',
360
+ values: [
361
+ {
362
+ value: 286,
363
+ valueInfo: 0,
364
+ label: 'myer.com.au',
365
+ label2: 1,
366
+ },
367
+ {
368
+ value: 181,
369
+ valueInfo: 0,
370
+ label: 'myer.com.au',
371
+ label2: 2,
372
+ },
373
+ {
374
+ value: 452,
375
+ valueInfo: 0,
376
+ label: 'myer.com.au',
377
+ label2: 3,
378
+ },
379
+ {
380
+ value: 2984,
381
+ valueInfo: 1,
382
+ label: 'myer.com.au',
383
+ label2: 4,
384
+ },
385
+ {
386
+ value: 33501,
387
+ valueInfo: 15,
388
+ label: 'myer.com.au',
389
+ label2: 5,
390
+ },
391
+ ],
392
+ },
393
+ ];
@@ -0,0 +1,28 @@
1
+ export declare const feedbackCount: {
2
+ date: string;
3
+ overlay: number;
4
+ 'feedback count': number;
5
+ extraData: null;
6
+ }[];
7
+ export declare const feedbackCountGaps: ({
8
+ date: string;
9
+ overlay: number;
10
+ 'feedback count': number;
11
+ extraData: null;
12
+ } | {
13
+ date: string;
14
+ overlay: number;
15
+ 'feedback count': null;
16
+ extraData: null;
17
+ } | {
18
+ date: string;
19
+ overlay: null;
20
+ 'feedback count': null;
21
+ extraData: null;
22
+ } | {
23
+ date: string;
24
+ overlay: null;
25
+ 'feedback count': number;
26
+ extraData: null;
27
+ })[];
28
+ //# sourceMappingURL=feedbackCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedbackCount.d.ts","sourceRoot":"","sources":["../../../../src/examples/charts/mock-data/feedbackCount.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,aAAa;;;;;GAqIzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;IAqI7B,CAAC"}