@designcrowd/fe-shared-lib 1.3.9-test-1 → 1.4.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 (139) hide show
  1. package/dist/css/tailwind-brandCrowd.css +80 -3
  2. package/dist/css/tailwind-brandPage.css +76 -3
  3. package/dist/css/tailwind-crazyDomains.css +80 -3
  4. package/dist/css/tailwind-designCom.css +80 -3
  5. package/dist/css/tailwind-designCrowd.css +80 -3
  6. package/package.json +3 -2
  7. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -1
  8. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +1 -1
  9. package/.storybook-static/assets/Auth-CV5AmoX8.css +0 -1
  10. package/.storybook-static/assets/Auth.stories-CX3sjxh5.js +0 -490
  11. package/.storybook-static/assets/AuthCrazyDomains.stories-Didj_VFa.js +0 -73
  12. package/.storybook-static/assets/Button-5UzSGUF6.css +0 -1
  13. package/.storybook-static/assets/Button-DtVlr_q3.js +0 -1
  14. package/.storybook-static/assets/ButtonGroup-Dfr7bNL2.css +0 -1
  15. package/.storybook-static/assets/ButtonGroup.stories-4EQk-ktb.js +0 -503
  16. package/.storybook-static/assets/ButtonPrimary-Bu6bXb_c.css +0 -1
  17. package/.storybook-static/assets/ButtonPrimary-DG9wNod9.js +0 -1
  18. package/.storybook-static/assets/Buttons.stories-B_KpeCzt.js +0 -761
  19. package/.storybook-static/assets/ButtonsCrazyDomains.stories-oZtahAmR.js +0 -199
  20. package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +0 -1
  21. package/.storybook-static/assets/Checkbox.stories-C67RL0ut.js +0 -203
  22. package/.storybook-static/assets/Checktile.stories-DN2wfzd6.js +0 -88
  23. package/.storybook-static/assets/CollapsiblePanel.stories-BkzrqfVG.js +0 -39
  24. package/.storybook-static/assets/ColorPicker.stories-85BQwpyF.js +0 -73
  25. package/.storybook-static/assets/CopyToClipboardText.stories-Csh5nVRs.js +0 -32
  26. package/.storybook-static/assets/Dropdown.stories-NNlxNopk.js +0 -159
  27. package/.storybook-static/assets/DropdownItem-CDX_V6Mi.js +0 -1
  28. package/.storybook-static/assets/DropdownItem-CLNmWtKh.css +0 -1
  29. package/.storybook-static/assets/FormControl.mixin-_gXRExB7.js +0 -1
  30. package/.storybook-static/assets/HashRouteModal.stories-Dy1_nLTJ.js +0 -64
  31. package/.storybook-static/assets/HelloBar-z54fob0q.js +0 -1
  32. package/.storybook-static/assets/HelloBar.stories-ClJ9_KRK.js +0 -342
  33. package/.storybook-static/assets/Icon-8mZGP41G.js +0 -144
  34. package/.storybook-static/assets/Icon.stories-BcXMvpuh.js +0 -126
  35. package/.storybook-static/assets/Icon.stories-D6ECVMta.js +0 -751
  36. package/.storybook-static/assets/Loader-D61Ki9P1.js +0 -1
  37. package/.storybook-static/assets/LogoBusinessBrandColours-B1_8hw0H.js +0 -1
  38. package/.storybook-static/assets/LogoBusinessBrandColours-DEFhAyxR.css +0 -1
  39. package/.storybook-static/assets/LogoBusinessBrandColours.stories-CIWe9ndn.js +0 -36
  40. package/.storybook-static/assets/Masonry-C2MNiGg0.css +0 -1
  41. package/.storybook-static/assets/Masonry.stories-CDT8kZCv.js +0 -71
  42. package/.storybook-static/assets/Modal-BQrpXSGA.js +0 -1
  43. package/.storybook-static/assets/Modal-BvVMN71n.css +0 -1
  44. package/.storybook-static/assets/Modal.stories-BycF7YL6.js +0 -345
  45. package/.storybook-static/assets/Notice.stories-BufkrC1b.js +0 -222
  46. package/.storybook-static/assets/NumberStepper-Blffv09R.css +0 -1
  47. package/.storybook-static/assets/NumberStepper.stories-6_y_lEgC.js +0 -64
  48. package/.storybook-static/assets/PaymentConfigList-wI1eTv5x.css +0 -1
  49. package/.storybook-static/assets/PaymentConfigList.stories-BlzzKrzz.js +0 -126
  50. package/.storybook-static/assets/Picture-Cq76CaoK.js +0 -1
  51. package/.storybook-static/assets/Picture.stories-BDqRm9_g.js +0 -119
  52. package/.storybook-static/assets/Pill-BsMeJhV9.js +0 -1
  53. package/.storybook-static/assets/Pill.stories-DUvzbtnS.js +0 -18
  54. package/.storybook-static/assets/PillBar-os4mJV3M.css +0 -1
  55. package/.storybook-static/assets/PillBar.stories-BUMLXBij.js +0 -41
  56. package/.storybook-static/assets/Price-DKOwLeD0.js +0 -1
  57. package/.storybook-static/assets/Price.stories-DlqrNUWI.js +0 -221
  58. package/.storybook-static/assets/PublishBrandPageModal-CLU8-If3.css +0 -1
  59. package/.storybook-static/assets/PublishBrandPageModal.stories-Dqobvq-n.js +0 -273
  60. package/.storybook-static/assets/SearchBar.stories-_wPX3-Rl.js +0 -12
  61. package/.storybook-static/assets/Select-Dw-zvSUg.css +0 -1
  62. package/.storybook-static/assets/Select.stories-BWINGxdY.js +0 -108
  63. package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +0 -1
  64. package/.storybook-static/assets/SellDomainNameListModal-ByK_ak0A.js +0 -1
  65. package/.storybook-static/assets/SellDomainNameListModal-CdfyEX1a.css +0 -1
  66. package/.storybook-static/assets/SellDomainNameListModal.stories-DrL8w2AY.js +0 -71
  67. package/.storybook-static/assets/SellDomainNameListSearchResult-1WuAKfzI.css +0 -1
  68. package/.storybook-static/assets/SellDomainNameListSearchResult-By0IpIM_.js +0 -1
  69. package/.storybook-static/assets/SellDomainNameSearchWithResults-BttjI4PH.js +0 -1
  70. package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-Dm1Q8Cza.js +0 -37
  71. package/.storybook-static/assets/SellDomainNameWidget.stories-CKoz3WnZ.js +0 -36
  72. package/.storybook-static/assets/SignIn-DNYeJu86.css +0 -1
  73. package/.storybook-static/assets/SignIn-Dt8OJr0J.js +0 -1
  74. package/.storybook-static/assets/Slider-Cog2FFdj.css +0 -1
  75. package/.storybook-static/assets/Slider.stories-08DN2SFB.js +0 -141
  76. package/.storybook-static/assets/StarRating-BtKh7pzm.css +0 -1
  77. package/.storybook-static/assets/StarRating.stories-BEIj9ufA.js +0 -45
  78. package/.storybook-static/assets/TabMenu.stories-D9f0pyZI.js +0 -47
  79. package/.storybook-static/assets/TextCopyField-B04vTGbG.js +0 -1
  80. package/.storybook-static/assets/TextCopyField.stories-KD0WUWzA.js +0 -47
  81. package/.storybook-static/assets/TextInput-JK1M0hv6.js +0 -1
  82. package/.storybook-static/assets/TextInput.stories-BO0eQqBY.js +0 -233
  83. package/.storybook-static/assets/Textarea.stories-Bcn4sCkV.js +0 -207
  84. package/.storybook-static/assets/Toggle.stories-CuTFLoNh.js +0 -161
  85. package/.storybook-static/assets/Tooltip-DcSbUh5f.js +0 -1
  86. package/.storybook-static/assets/Tooltip-DyXIgFQH.css +0 -1
  87. package/.storybook-static/assets/Tooltip.stories-B0I_PBGG.js +0 -953
  88. package/.storybook-static/assets/UploadYourLogoApplication-EyTEQx-x.css +0 -9
  89. package/.storybook-static/assets/UploadYourLogoApplication.stories-Dixp1ynI.js +0 -194
  90. package/.storybook-static/assets/UploadYourLogoDropzone-DQqACf-e.css +0 -1
  91. package/.storybook-static/assets/UploadYourLogoDropzone-DouZtNvi.js +0 -24
  92. package/.storybook-static/assets/UploadYourLogoDropzone.stories-BHYeu4gz.js +0 -55
  93. package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-D1KR63O4.js +0 -79
  94. package/.storybook-static/assets/_commonjsHelpers-D6-XlEtG.js +0 -1
  95. package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
  96. package/.storybook-static/assets/api-lSJGRrF2.js +0 -1
  97. package/.storybook-static/assets/axe-nGVJxRof.js +0 -30
  98. package/.storybook-static/assets/brand-crowd-api.client-DiPM1Wo-.js +0 -1
  99. package/.storybook-static/assets/bundled-translations-BZ57czTo.js +0 -1
  100. package/.storybook-static/assets/bundled-translations.de-DE-DXggTXB2.js +0 -1
  101. package/.storybook-static/assets/bundled-translations.es-ES-DtMmvicd.js +0 -1
  102. package/.storybook-static/assets/bundled-translations.fr-FR-BrQqbieG.js +0 -1
  103. package/.storybook-static/assets/bundled-translations.pt-PT-CpiWEAtr.js +0 -1
  104. package/.storybook-static/assets/carousel-CMMZ5MZ-.css +0 -1
  105. package/.storybook-static/assets/carousel.stories-o3eu2Qyc.js +0 -374
  106. package/.storybook-static/assets/event-constants-CMO9VQVu.js +0 -1
  107. package/.storybook-static/assets/iframe-C86bI_2U.js +0 -1126
  108. package/.storybook-static/assets/index-Bw-gCGc_.js +0 -6
  109. package/.storybook-static/assets/index-DhkYCT1V.js +0 -29
  110. package/.storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  111. package/.storybook-static/assets/tracking-ATsLLehC.js +0 -1
  112. package/.storybook-static/css/tailwind-brandCrowd.css +0 -2404
  113. package/.storybook-static/css/tailwind-brandPage.css +0 -2088
  114. package/.storybook-static/css/tailwind-crazyDomains.css +0 -2404
  115. package/.storybook-static/css/tailwind-designCom.css +0 -2404
  116. package/.storybook-static/css/tailwind-designCrowd.css +0 -2404
  117. package/.storybook-static/favicon.svg +0 -1
  118. package/.storybook-static/iframe.html +0 -694
  119. package/.storybook-static/index.html +0 -156
  120. package/.storybook-static/index.json +0 -1
  121. package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  122. package/.storybook-static/nunito-sans-bold.woff2 +0 -0
  123. package/.storybook-static/nunito-sans-italic.woff2 +0 -0
  124. package/.storybook-static/nunito-sans-regular.woff2 +0 -0
  125. package/.storybook-static/project.json +0 -1
  126. package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +0 -5
  127. package/.storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
  128. package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -188
  129. package/.storybook-static/sb-addons/themes-3/manager-bundle.js +0 -3
  130. package/.storybook-static/sb-common-assets/favicon.svg +0 -1
  131. package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  132. package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  133. package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  134. package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  135. package/.storybook-static/sb-manager/globals-module-info.js +0 -797
  136. package/.storybook-static/sb-manager/globals-runtime.js +0 -72062
  137. package/.storybook-static/sb-manager/globals.js +0 -34
  138. package/.storybook-static/sb-manager/runtime.js +0 -13002
  139. package/src/atoms/components/vuecropper.js +0 -370
@@ -1,370 +0,0 @@
1
- import { h } from 'vue';
2
- import Cropper from 'cropperjs';
3
-
4
- const previewPropType = typeof window === 'undefined' ? [String, Array] : [String, Array, Element, NodeList];
5
-
6
- export default {
7
- render() {
8
- const crossorigin = this.crossorigin || undefined;
9
-
10
- return h('div', { style: this.containerStyle }, [
11
- h('img', {
12
- ref: 'img',
13
- src: this.src,
14
- alt: this.alt || 'image',
15
- style: [{ 'max-width': '100%' }, this.imgStyle],
16
- crossorigin,
17
- }),
18
- ]);
19
- },
20
- props: {
21
- // Library props
22
- containerStyle: Object,
23
- src: {
24
- type: String,
25
- default: '',
26
- },
27
- alt: String,
28
- imgStyle: Object,
29
-
30
- // CropperJS props
31
- viewMode: Number,
32
- dragMode: String,
33
- initialAspectRatio: Number,
34
- aspectRatio: Number,
35
- data: Object,
36
- preview: previewPropType,
37
- responsive: {
38
- type: Boolean,
39
- default: true,
40
- },
41
- restore: {
42
- type: Boolean,
43
- default: true,
44
- },
45
- checkCrossOrigin: {
46
- type: Boolean,
47
- default: true,
48
- },
49
- checkOrientation: {
50
- type: Boolean,
51
- default: true,
52
- },
53
- crossorigin: {
54
- type: String,
55
- },
56
- modal: {
57
- type: Boolean,
58
- default: true,
59
- },
60
- guides: {
61
- type: Boolean,
62
- default: true,
63
- },
64
- center: {
65
- type: Boolean,
66
- default: true,
67
- },
68
- highlight: {
69
- type: Boolean,
70
- default: true,
71
- },
72
- background: {
73
- type: Boolean,
74
- default: true,
75
- },
76
- autoCrop: {
77
- type: Boolean,
78
- default: true,
79
- },
80
- autoCropArea: Number,
81
- movable: {
82
- type: Boolean,
83
- default: true,
84
- },
85
- rotatable: {
86
- type: Boolean,
87
- default: true,
88
- },
89
- scalable: {
90
- type: Boolean,
91
- default: true,
92
- },
93
- zoomable: {
94
- type: Boolean,
95
- default: true,
96
- },
97
- zoomOnTouch: {
98
- type: Boolean,
99
- default: true,
100
- },
101
- zoomOnWheel: {
102
- type: Boolean,
103
- default: true,
104
- },
105
- wheelZoomRatio: Number,
106
- cropBoxMovable: {
107
- type: Boolean,
108
- default: true,
109
- },
110
- cropBoxResizable: {
111
- type: Boolean,
112
- default: true,
113
- },
114
- toggleDragModeOnDblclick: {
115
- type: Boolean,
116
- default: true,
117
- },
118
-
119
- // Size limitation
120
- minCanvasWidth: Number,
121
- minCanvasHeight: Number,
122
- minCropBoxWidth: Number,
123
- minCropBoxHeight: Number,
124
- minContainerWidth: Number,
125
- minContainerHeight: Number,
126
-
127
- // callbacks
128
- ready: Function,
129
- cropstart: Function,
130
- cropmove: Function,
131
- cropend: Function,
132
- crop: Function,
133
- zoom: Function,
134
- },
135
- mounted() {
136
- const { containerStyle, src, alt, imgStyle, ...data } = this.$options.props;
137
- const props = {};
138
-
139
- // eslint-disable-next-line no-restricted-syntax
140
- for (const key in data) {
141
- if (this[key] !== undefined) {
142
- props[key] = this[key];
143
- }
144
- }
145
-
146
- this.cropper = new Cropper(this.$refs.img, props);
147
- },
148
- methods: {
149
- // Reset the image and crop box to their initial states
150
- reset() {
151
- return this.cropper.reset();
152
- },
153
-
154
- // Clear the crop box
155
- clear() {
156
- return this.cropper.clear();
157
- },
158
-
159
- // Init crop box manually
160
- initCrop() {
161
- return this.cropper.crop();
162
- },
163
-
164
- /**
165
- * Replace the image's src and rebuild the cropper
166
- * @param {string} url - The new URL.
167
- * @param {boolean} [onlyColorChanged] - Indicate if the new image only changed color.
168
- * @returns {Object} this
169
- */
170
- replace(url, onlyColorChanged = false) {
171
- return this.cropper.replace(url, onlyColorChanged);
172
- },
173
-
174
- // Enable (unfreeze) the cropper
175
- enable() {
176
- return this.cropper.enable();
177
- },
178
-
179
- // Disable (freeze) the cropper
180
- disable() {
181
- return this.cropper.disable();
182
- },
183
-
184
- // Destroy the cropper and remove the instance from the image
185
- destroy() {
186
- return this.cropper.destroy();
187
- },
188
-
189
- /**
190
- * Move the canvas with relative offsets
191
- * @param {number} offsetX - The relative offset distance on the x-axis.
192
- * @param {number} offsetY - The relative offset distance on the y-axis.
193
- * @returns {Object} this
194
- */
195
- move(offsetX, offsetY) {
196
- return this.cropper.move(offsetX, offsetY);
197
- },
198
-
199
- /**
200
- * Move the canvas to an absolute point
201
- * @param {number} x - The x-axis coordinate.
202
- * @param {number} [y=x] - The y-axis coordinate.
203
- * @returns {Object} this
204
- */
205
- moveTo(x, y = x) {
206
- return this.cropper.moveTo(x, y);
207
- },
208
-
209
- /**
210
- * Zoom the canvas with a relative ratio
211
- * @param {number} ratio - The target ratio.
212
- * @param {Event} _originalEvent - The original event if any.
213
- * @returns {Object} this
214
- */
215
- relativeZoom(ratio, _originalEvent) {
216
- return this.cropper.zoom(ratio, _originalEvent);
217
- },
218
-
219
- /**
220
- * Zoom the canvas to an absolute ratio
221
- * @param {number} ratio - The target ratio.
222
- * @param {Event} _originalEvent - The original event if any.
223
- * @returns {Object} this
224
- */
225
- zoomTo(ratio, _originalEvent) {
226
- return this.cropper.zoomTo(ratio, _originalEvent);
227
- },
228
-
229
- /**
230
- * Rotate the canvas with a relative degree
231
- * @param {number} degree - The rotate degree.
232
- * @returns {Object} this
233
- */
234
- rotate(degree) {
235
- return this.cropper.rotate(degree);
236
- },
237
-
238
- /**
239
- * Rotate the canvas to an absolute degree
240
- * @param {number} degree - The rotate degree.
241
- * @returns {Object} this
242
- */
243
- rotateTo(degree) {
244
- return this.cropper.rotateTo(degree);
245
- },
246
-
247
- /**
248
- * Scale the image on the x-axis.
249
- * @param {number} scaleX - The scale ratio on the x-axis.
250
- * @returns {Object} this
251
- */
252
- scaleX(scaleX) {
253
- return this.cropper.scaleX(scaleX);
254
- },
255
-
256
- /**
257
- * Scale the image on the y-axis.
258
- * @param {number} scaleY - The scale ratio on the y-axis.
259
- * @returns {Object} this
260
- */
261
- scaleY(scaleY) {
262
- return this.cropper.scaleY(scaleY);
263
- },
264
-
265
- /**
266
- * Scale the image
267
- * @param {number} scaleX - The scale ratio on the x-axis.
268
- * @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
269
- * @returns {Object} this
270
- */
271
- scale(scaleX, scaleY = scaleX) {
272
- return this.cropper.scale(scaleX, scaleY);
273
- },
274
-
275
- /**
276
- * Get the cropped area position and size data (base on the original image)
277
- * @param {boolean} [rounded=false] - Indicate if round the data values or not.
278
- * @returns {Object} The result cropped data.
279
- */
280
- getData(rounded = false) {
281
- return this.cropper.getData(rounded);
282
- },
283
-
284
- /**
285
- * Set the cropped area position and size with new data
286
- * @param {Object} data - The new data.
287
- * @returns {Object} this
288
- */
289
- setData(data) {
290
- return this.cropper.setData(data);
291
- },
292
-
293
- /**
294
- * Get the container size data.
295
- * @returns {Object} The result container data.
296
- */
297
- getContainerData() {
298
- return this.cropper.getContainerData();
299
- },
300
-
301
- /**
302
- * Get the image position and size data.
303
- * @returns {Object} The result image data.
304
- */
305
- getImageData() {
306
- return this.cropper.getImageData();
307
- },
308
-
309
- /**
310
- * Get the canvas position and size data.
311
- * @returns {Object} The result canvas data.
312
- */
313
- getCanvasData() {
314
- return this.cropper.getCanvasData();
315
- },
316
-
317
- /**
318
- * Set the canvas position and size with new data.
319
- * @param {Object} data - The new canvas data.
320
- * @returns {Object} this
321
- */
322
- setCanvasData(data) {
323
- return this.cropper.setCanvasData(data);
324
- },
325
-
326
- /**
327
- * Get the crop box position and size data.
328
- * @returns {Object} The result crop box data.
329
- */
330
- getCropBoxData() {
331
- return this.cropper.getCropBoxData();
332
- },
333
-
334
- /**
335
- * Set the crop box position and size with new data.
336
- * @param {Object} data - The new crop box data.
337
- * @returns {Object} this
338
- */
339
- setCropBoxData(data) {
340
- return this.cropper.setCropBoxData(data);
341
- },
342
-
343
- /**
344
- * Get a canvas drawn the cropped image.
345
- * @param {Object} [options={}] - The config options.
346
- * @returns {HTMLCanvasElement} - The result canvas.
347
- */
348
- getCroppedCanvas(options = {}) {
349
- return this.cropper.getCroppedCanvas(options);
350
- },
351
-
352
- /**
353
- * Change the aspect ratio of the crop box.
354
- * @param {number} aspectRatio - The new aspect ratio.
355
- * @returns {Object} this
356
- */
357
- setAspectRatio(aspectRatio) {
358
- return this.cropper.setAspectRatio(aspectRatio);
359
- },
360
-
361
- /**
362
- * Change the drag mode.
363
- * @param {string} mode - The new drag mode.
364
- * @returns {Object} this
365
- */
366
- setDragMode(mode) {
367
- return this.cropper.setDragMode(mode);
368
- },
369
- },
370
- };