@designcrowd/fe-shared-lib 1.0.17 → 1.0.18

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 (570) hide show
  1. package/.eslintrc.js +35 -35
  2. package/.prettierrc.js +7 -7
  3. package/.storybook/main.ts +39 -39
  4. package/.storybook/preview-head-master.html +4 -4
  5. package/.storybook/preview-head-publish-master.html +4 -4
  6. package/.storybook/preview-head-publish.html +9 -9
  7. package/.storybook/preview-head.html +9 -9
  8. package/.storybook/preview.js +14 -14
  9. package/.storybook-static/css/.keepme +0 -0
  10. package/Dockerfile +41 -41
  11. package/README.md +103 -103
  12. package/buildspec.yml +46 -46
  13. package/dist/css/tailwind-brandCrowd.css +2459 -0
  14. package/dist/css/tailwind-brandPage.css +2147 -0
  15. package/dist/css/tailwind-crazyDomains.css +2459 -0
  16. package/dist/css/tailwind-designCom.css +2459 -0
  17. package/dist/css/tailwind-designCrowd.css +2459 -0
  18. package/index.cjs +16 -16
  19. package/index.js +54 -54
  20. package/npmrc +0 -0
  21. package/package.json +109 -109
  22. package/postcss.config.js +5 -5
  23. package/public/css/.keepme +0 -0
  24. package/src/atoms/components/Button/Button.vue +323 -323
  25. package/src/atoms/components/Button/ButtonVariant.mixin.vue +126 -126
  26. package/src/atoms/components/Button/Buttons.stories.js +778 -778
  27. package/src/atoms/components/Button/ButtonsCrazyDomains.stories.js +117 -117
  28. package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +52 -52
  29. package/src/atoms/components/Button/variants/ButtonFlat.vue +65 -65
  30. package/src/atoms/components/Button/variants/ButtonGray.vue +64 -64
  31. package/src/atoms/components/Button/variants/ButtonInfo.vue +51 -51
  32. package/src/atoms/components/Button/variants/ButtonInfoFilled.vue +63 -63
  33. package/src/atoms/components/Button/variants/ButtonNoBorder.vue +65 -65
  34. package/src/atoms/components/Button/variants/ButtonOutline.vue +62 -62
  35. package/src/atoms/components/Button/variants/ButtonOutlineNoHover.vue +62 -62
  36. package/src/atoms/components/Button/variants/ButtonOutlineSuccess.vue +54 -54
  37. package/src/atoms/components/Button/variants/ButtonPill.vue +52 -52
  38. package/src/atoms/components/Button/variants/ButtonPrimary.vue +69 -69
  39. package/src/atoms/components/Button/variants/ButtonPrimaryWithIcon.vue +68 -68
  40. package/src/atoms/components/Button/variants/ButtonSecondary.vue +51 -51
  41. package/src/atoms/components/Button/variants/ButtonSuccess.vue +55 -55
  42. package/src/atoms/components/Button/variants/ButtonWarning.vue +65 -65
  43. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsOutline.vue +58 -58
  44. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsPrimary.vue +38 -38
  45. package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +562 -562
  46. package/src/atoms/components/ButtonGroup/ButtonGroup.vue +188 -188
  47. package/src/atoms/components/Carousel/Carousel.fixtures.js +35 -35
  48. package/src/atoms/components/Carousel/Carousel.vue +352 -352
  49. package/src/atoms/components/Carousel/carousel.stories.js +261 -261
  50. package/src/atoms/components/Checkbox/Checkbox.mixin.js +57 -57
  51. package/src/atoms/components/Checkbox/Checkbox.stories.js +206 -206
  52. package/src/atoms/components/Checkbox/Checkbox.vue +89 -89
  53. package/src/atoms/components/Checktile/Checktile.stories.js +79 -79
  54. package/src/atoms/components/Checktile/Checktile.vue +73 -73
  55. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.mixin.js +34 -34
  56. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.stories.js +40 -40
  57. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.vue +30 -30
  58. package/src/atoms/components/ColorPicker/ColorPicker.stories.js +89 -89
  59. package/src/atoms/components/ColorPicker/ColorPicker.vue +95 -95
  60. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.stories.js +41 -41
  61. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue +71 -71
  62. package/src/atoms/components/Dropdown/Dropdown.stories.js +140 -140
  63. package/src/atoms/components/Dropdown/Dropdown.vue +108 -108
  64. package/src/atoms/components/Dropdown/DropdownItem.vue +21 -21
  65. package/src/atoms/components/FormControl/FormControl.mixin.js +127 -127
  66. package/src/atoms/components/HelloBar/HelloBar.stories.js +195 -195
  67. package/src/atoms/components/HelloBar/HelloBar.vue +156 -156
  68. package/src/atoms/components/Icon/Icon.stories.js +385 -385
  69. package/src/atoms/components/Icon/Icon.vue +809 -809
  70. package/src/atoms/components/Icon/icons/about.vue +0 -0
  71. package/src/atoms/components/Icon/icons/add-page.vue +6 -6
  72. package/src/atoms/components/Icon/icons/ai.vue +6 -6
  73. package/src/atoms/components/Icon/icons/arrow-down.vue +6 -6
  74. package/src/atoms/components/Icon/icons/arrow-left.vue +7 -7
  75. package/src/atoms/components/Icon/icons/arrow-right.vue +7 -7
  76. package/src/atoms/components/Icon/icons/arrow-top-right.vue +6 -6
  77. package/src/atoms/components/Icon/icons/arrow-up-underline.vue +7 -7
  78. package/src/atoms/components/Icon/icons/arrow-up.vue +7 -7
  79. package/src/atoms/components/Icon/icons/attach.vue +6 -6
  80. package/src/atoms/components/Icon/icons/auth-facebook-white.vue +17 -17
  81. package/src/atoms/components/Icon/icons/auth-facebook.vue +24 -24
  82. package/src/atoms/components/Icon/icons/auth-google.vue +32 -32
  83. package/src/atoms/components/Icon/icons/background.vue +7 -7
  84. package/src/atoms/components/Icon/icons/ban.vue +0 -0
  85. package/src/atoms/components/Icon/icons/banner-centered.vue +6 -6
  86. package/src/atoms/components/Icon/icons/banner-left.vue +6 -6
  87. package/src/atoms/components/Icon/icons/banner.vue +7 -7
  88. package/src/atoms/components/Icon/icons/bc-mast.vue +7 -7
  89. package/src/atoms/components/Icon/icons/brush.vue +6 -6
  90. package/src/atoms/components/Icon/icons/business-card-filled.vue +5 -5
  91. package/src/atoms/components/Icon/icons/business.vue +6 -6
  92. package/src/atoms/components/Icon/icons/button-justified.vue +0 -0
  93. package/src/atoms/components/Icon/icons/button.vue +0 -0
  94. package/src/atoms/components/Icon/icons/buttons/button-arrow-left.vue +0 -0
  95. package/src/atoms/components/Icon/icons/buttons/button-arrow-right.vue +0 -0
  96. package/src/atoms/components/Icon/icons/buttons/button-arrow.vue +0 -0
  97. package/src/atoms/components/Icon/icons/buttons/button-brushstroke-left.vue +0 -0
  98. package/src/atoms/components/Icon/icons/buttons/button-brushstroke-right.vue +0 -0
  99. package/src/atoms/components/Icon/icons/buttons/button-brushstroke.vue +0 -0
  100. package/src/atoms/components/Icon/icons/buttons/button-dashed-oval.vue +0 -0
  101. package/src/atoms/components/Icon/icons/buttons/button-dashed-rectangle.vue +0 -0
  102. package/src/atoms/components/Icon/icons/buttons/button-dashed-rounded.vue +0 -0
  103. package/src/atoms/components/Icon/icons/buttons/button-doubleline-oval.vue +0 -0
  104. package/src/atoms/components/Icon/icons/buttons/button-doubleline-rectangle.vue +0 -0
  105. package/src/atoms/components/Icon/icons/buttons/button-doubleline-rounded.vue +0 -0
  106. package/src/atoms/components/Icon/icons/buttons/button-paper-bottom.vue +0 -0
  107. package/src/atoms/components/Icon/icons/buttons/button-paper-top.vue +0 -0
  108. package/src/atoms/components/Icon/icons/buttons/button-paper.vue +0 -0
  109. package/src/atoms/components/Icon/icons/buttons/button-softshadow-oval.vue +0 -0
  110. package/src/atoms/components/Icon/icons/buttons/button-softshadow-rectangle.vue +0 -0
  111. package/src/atoms/components/Icon/icons/buttons/button-softshadow-rounded.vue +0 -0
  112. package/src/atoms/components/Icon/icons/calendar.vue +5 -5
  113. package/src/atoms/components/Icon/icons/callout-error.vue +6 -6
  114. package/src/atoms/components/Icon/icons/callout-info.vue +6 -6
  115. package/src/atoms/components/Icon/icons/callout-success.vue +8 -8
  116. package/src/atoms/components/Icon/icons/callout-warning.vue +6 -6
  117. package/src/atoms/components/Icon/icons/card.vue +9 -9
  118. package/src/atoms/components/Icon/icons/cart-empty.vue +9 -9
  119. package/src/atoms/components/Icon/icons/check-thin.vue +7 -7
  120. package/src/atoms/components/Icon/icons/check.vue +3 -3
  121. package/src/atoms/components/Icon/icons/chevron-down.vue +7 -7
  122. package/src/atoms/components/Icon/icons/chevron-left.vue +7 -7
  123. package/src/atoms/components/Icon/icons/chevron-right-wide.vue +3 -3
  124. package/src/atoms/components/Icon/icons/chevron-right.vue +3 -3
  125. package/src/atoms/components/Icon/icons/chevron-up.vue +7 -7
  126. package/src/atoms/components/Icon/icons/close.vue +6 -6
  127. package/src/atoms/components/Icon/icons/column-1.vue +0 -0
  128. package/src/atoms/components/Icon/icons/column-2.vue +0 -0
  129. package/src/atoms/components/Icon/icons/column-3.vue +0 -0
  130. package/src/atoms/components/Icon/icons/column-4.vue +0 -0
  131. package/src/atoms/components/Icon/icons/community.vue +5 -5
  132. package/src/atoms/components/Icon/icons/contact-message.vue +10 -10
  133. package/src/atoms/components/Icon/icons/content.vue +7 -7
  134. package/src/atoms/components/Icon/icons/copy.vue +10 -10
  135. package/src/atoms/components/Icon/icons/crazy-domains/filter.vue +6 -6
  136. package/src/atoms/components/Icon/icons/crazy-domains/globe.vue +6 -6
  137. package/src/atoms/components/Icon/icons/crazy-domains/home.vue +6 -6
  138. package/src/atoms/components/Icon/icons/crazy-domains/social-facebook.vue +6 -6
  139. package/src/atoms/components/Icon/icons/crazy-domains/social-google.vue +6 -6
  140. package/src/atoms/components/Icon/icons/crazy-domains/social-instagram.vue +6 -6
  141. package/src/atoms/components/Icon/icons/crazy-domains/social-twitter.vue +6 -6
  142. package/src/atoms/components/Icon/icons/crazy-domains/social-youtube.vue +6 -6
  143. package/src/atoms/components/Icon/icons/crop.vue +6 -6
  144. package/src/atoms/components/Icon/icons/delete.vue +8 -8
  145. package/src/atoms/components/Icon/icons/designs.vue +6 -6
  146. package/src/atoms/components/Icon/icons/desktop.vue +7 -7
  147. package/src/atoms/components/Icon/icons/divider-thick.vue +0 -0
  148. package/src/atoms/components/Icon/icons/divider-thin.vue +0 -0
  149. package/src/atoms/components/Icon/icons/divider.vue +0 -0
  150. package/src/atoms/components/Icon/icons/donate.vue +6 -6
  151. package/src/atoms/components/Icon/icons/download.vue +5 -5
  152. package/src/atoms/components/Icon/icons/duplicate.vue +6 -6
  153. package/src/atoms/components/Icon/icons/edit-line.vue +10 -10
  154. package/src/atoms/components/Icon/icons/edit.vue +6 -6
  155. package/src/atoms/components/Icon/icons/ellipsis.vue +6 -6
  156. package/src/atoms/components/Icon/icons/envelope-email.vue +9 -9
  157. package/src/atoms/components/Icon/icons/error.vue +8 -8
  158. package/src/atoms/components/Icon/icons/eye-crossed.vue +7 -7
  159. package/src/atoms/components/Icon/icons/fees.vue +6 -6
  160. package/src/atoms/components/Icon/icons/filter.vue +7 -7
  161. package/src/atoms/components/Icon/icons/filters.vue +6 -6
  162. package/src/atoms/components/Icon/icons/flag.vue +6 -6
  163. package/src/atoms/components/Icon/icons/flip-horizontal.vue +7 -7
  164. package/src/atoms/components/Icon/icons/flip-vertical.vue +7 -7
  165. package/src/atoms/components/Icon/icons/folder.vue +6 -6
  166. package/src/atoms/components/Icon/icons/footer-centered.vue +7 -7
  167. package/src/atoms/components/Icon/icons/footer-left.vue +7 -7
  168. package/src/atoms/components/Icon/icons/form-message.vue +6 -6
  169. package/src/atoms/components/Icon/icons/form.vue +5 -5
  170. package/src/atoms/components/Icon/icons/fullscreen-exit.vue +5 -5
  171. package/src/atoms/components/Icon/icons/fullscreen.vue +5 -5
  172. package/src/atoms/components/Icon/icons/globe.vue +6 -6
  173. package/src/atoms/components/Icon/icons/godaddy/logo.vue +5 -5
  174. package/src/atoms/components/Icon/icons/hamburger-1.vue +0 -0
  175. package/src/atoms/components/Icon/icons/hamburger-2.vue +0 -0
  176. package/src/atoms/components/Icon/icons/hamburger-3.vue +0 -0
  177. package/src/atoms/components/Icon/icons/hamburger-4.vue +0 -0
  178. package/src/atoms/components/Icon/icons/hamburger.vue +7 -7
  179. package/src/atoms/components/Icon/icons/home.vue +7 -7
  180. package/src/atoms/components/Icon/icons/icon-style-circle-bg.vue +22 -22
  181. package/src/atoms/components/Icon/icons/icon-style-no-bg.vue +16 -16
  182. package/src/atoms/components/Icon/icons/icon-style-square-bg.vue +22 -22
  183. package/src/atoms/components/Icon/icons/image-gallery-carousel.vue +7 -7
  184. package/src/atoms/components/Icon/icons/image-gallery-grid.vue +7 -7
  185. package/src/atoms/components/Icon/icons/image-gallery-masonry.vue +6 -6
  186. package/src/atoms/components/Icon/icons/images-gallery.vue +5 -5
  187. package/src/atoms/components/Icon/icons/images.vue +7 -7
  188. package/src/atoms/components/Icon/icons/info.vue +9 -9
  189. package/src/atoms/components/Icon/icons/jobs.vue +8 -8
  190. package/src/atoms/components/Icon/icons/layer-bring-front.vue +6 -6
  191. package/src/atoms/components/Icon/icons/layer-send-back.vue +6 -6
  192. package/src/atoms/components/Icon/icons/layer.vue +6 -6
  193. package/src/atoms/components/Icon/icons/layout/display-style-about-1.vue +20 -20
  194. package/src/atoms/components/Icon/icons/layout/display-style-about-2.vue +20 -20
  195. package/src/atoms/components/Icon/icons/layout/display-style-about-3.vue +20 -20
  196. package/src/atoms/components/Icon/icons/layout/display-style-about-4.vue +32 -32
  197. package/src/atoms/components/Icon/icons/layout/display-style-about-5.vue +27 -27
  198. package/src/atoms/components/Icon/icons/layout/display-style-about-6.vue +27 -27
  199. package/src/atoms/components/Icon/icons/layout/display-style-banner-1.vue +20 -20
  200. package/src/atoms/components/Icon/icons/layout/display-style-banner-2.vue +20 -20
  201. package/src/atoms/components/Icon/icons/layout/display-style-banner-3.vue +20 -20
  202. package/src/atoms/components/Icon/icons/layout/display-style-banner-4.vue +20 -20
  203. package/src/atoms/components/Icon/icons/layout/display-style-banner-5.vue +20 -20
  204. package/src/atoms/components/Icon/icons/layout/display-style-banner-6.vue +27 -27
  205. package/src/atoms/components/Icon/icons/layout/display-style-banner-7.vue +27 -27
  206. package/src/atoms/components/Icon/icons/layout/display-style-banner-8.vue +20 -20
  207. package/src/atoms/components/Icon/icons/layout/display-style-banner-9.vue +20 -20
  208. package/src/atoms/components/Icon/icons/layout/display-style-contact-1.vue +24 -24
  209. package/src/atoms/components/Icon/icons/layout/display-style-contact-2.vue +24 -24
  210. package/src/atoms/components/Icon/icons/layout/display-style-contact-4.vue +24 -24
  211. package/src/atoms/components/Icon/icons/layout/display-style-contact-5.vue +39 -39
  212. package/src/atoms/components/Icon/icons/layout/display-style-contact-6.vue +39 -39
  213. package/src/atoms/components/Icon/icons/layout/display-style-images-1.vue +0 -0
  214. package/src/atoms/components/Icon/icons/layout/display-style-images-2.vue +0 -0
  215. package/src/atoms/components/Icon/icons/layout/display-style-images-3.vue +0 -0
  216. package/src/atoms/components/Icon/icons/layout/display-style-images-4.vue +0 -0
  217. package/src/atoms/components/Icon/icons/layout/display-style-images-5.vue +0 -0
  218. package/src/atoms/components/Icon/icons/layout/display-style-images-6.vue +0 -0
  219. package/src/atoms/components/Icon/icons/layout/footer/display-style-1.vue +7 -7
  220. package/src/atoms/components/Icon/icons/layout/footer/display-style-2.vue +16 -16
  221. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-1.vue +17 -17
  222. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-2.vue +17 -17
  223. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-1.vue +17 -17
  224. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-2.vue +17 -17
  225. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-3.vue +13 -13
  226. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-4.vue +13 -13
  227. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-5.vue +17 -17
  228. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-6.vue +17 -17
  229. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-1.vue +16 -16
  230. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-2.vue +16 -16
  231. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-3.vue +16 -16
  232. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-1.vue +17 -17
  233. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-2.vue +17 -17
  234. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-3.vue +17 -17
  235. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-4.vue +21 -21
  236. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-1.vue +17 -17
  237. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-2.vue +17 -17
  238. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-1.vue +16 -16
  239. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-2.vue +16 -16
  240. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-3.vue +16 -16
  241. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-normal.vue +7 -7
  242. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-small.vue +7 -7
  243. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-small-text-center-normal.vue +7 -7
  244. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-bottom.vue +11 -11
  245. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-circle.vue +10 -10
  246. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-top.vue +11 -11
  247. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-center-normal.vue +7 -7
  248. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-justify-normal.vue +7 -7
  249. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-left-normal.vue +7 -7
  250. package/src/atoms/components/Icon/icons/layout/layout-icon-left-small-text-left-normal.vue +7 -7
  251. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-center-normal.vue +7 -7
  252. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-justify-normal.vue +7 -7
  253. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-right-normal.vue +7 -7
  254. package/src/atoms/components/Icon/icons/layout/layout-icon-right-small-text-right-normal.vue +7 -7
  255. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-normal.vue +7 -7
  256. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-small.vue +7 -7
  257. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-justify-normal.vue +7 -7
  258. package/src/atoms/components/Icon/icons/layout/layout-icon-top-small-text-center-normal.vue +7 -7
  259. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-1.vue +16 -16
  260. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-2.vue +10 -10
  261. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-3.vue +10 -10
  262. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-4.vue +23 -23
  263. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-1.vue +16 -16
  264. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-2.vue +7 -7
  265. package/src/atoms/components/Icon/icons/letterhead-filled.vue +5 -5
  266. package/src/atoms/components/Icon/icons/link.vue +6 -6
  267. package/src/atoms/components/Icon/icons/location.vue +6 -6
  268. package/src/atoms/components/Icon/icons/lock.vue +6 -6
  269. package/src/atoms/components/Icon/icons/mac-command.vue +7 -7
  270. package/src/atoms/components/Icon/icons/maker/align-center.vue +7 -7
  271. package/src/atoms/components/Icon/icons/maker/align-justify.vue +7 -7
  272. package/src/atoms/components/Icon/icons/maker/align-left.vue +7 -7
  273. package/src/atoms/components/Icon/icons/maker/align-right.vue +7 -7
  274. package/src/atoms/components/Icon/icons/maker/animate.vue +7 -7
  275. package/src/atoms/components/Icon/icons/maker/bold.vue +7 -7
  276. package/src/atoms/components/Icon/icons/maker/custom-landscape.vue +5 -5
  277. package/src/atoms/components/Icon/icons/maker/email-symbol.vue +5 -5
  278. package/src/atoms/components/Icon/icons/maker/email.vue +5 -5
  279. package/src/atoms/components/Icon/icons/maker/eraser.vue +5 -5
  280. package/src/atoms/components/Icon/icons/maker/etsy.vue +5 -5
  281. package/src/atoms/components/Icon/icons/maker/facebook.vue +5 -5
  282. package/src/atoms/components/Icon/icons/maker/favicon.vue +7 -7
  283. package/src/atoms/components/Icon/icons/maker/flyer.vue +7 -7
  284. package/src/atoms/components/Icon/icons/maker/gift-certificate.vue +5 -5
  285. package/src/atoms/components/Icon/icons/maker/globe.vue +5 -5
  286. package/src/atoms/components/Icon/icons/maker/image.vue +7 -7
  287. package/src/atoms/components/Icon/icons/maker/instagram.vue +7 -7
  288. package/src/atoms/components/Icon/icons/maker/invitation.vue +5 -5
  289. package/src/atoms/components/Icon/icons/maker/invoice.vue +5 -5
  290. package/src/atoms/components/Icon/icons/maker/italic.vue +7 -7
  291. package/src/atoms/components/Icon/icons/maker/link.vue +7 -7
  292. package/src/atoms/components/Icon/icons/maker/linkedin.vue +7 -7
  293. package/src/atoms/components/Icon/icons/maker/menu.vue +5 -5
  294. package/src/atoms/components/Icon/icons/maker/pause.vue +5 -5
  295. package/src/atoms/components/Icon/icons/maker/phone.vue +5 -5
  296. package/src/atoms/components/Icon/icons/maker/pinterest.vue +5 -5
  297. package/src/atoms/components/Icon/icons/maker/play.vue +5 -5
  298. package/src/atoms/components/Icon/icons/maker/postcard.vue +5 -5
  299. package/src/atoms/components/Icon/icons/maker/poster.vue +7 -7
  300. package/src/atoms/components/Icon/icons/maker/profile.vue +5 -5
  301. package/src/atoms/components/Icon/icons/maker/qrcode.vue +5 -5
  302. package/src/atoms/components/Icon/icons/maker/snapchat.vue +5 -5
  303. package/src/atoms/components/Icon/icons/maker/soundcloud.vue +7 -7
  304. package/src/atoms/components/Icon/icons/maker/strikethrough.vue +7 -7
  305. package/src/atoms/components/Icon/icons/maker/text.vue +7 -7
  306. package/src/atoms/components/Icon/icons/maker/thankyou-card.vue +5 -5
  307. package/src/atoms/components/Icon/icons/maker/tiktok.vue +5 -5
  308. package/src/atoms/components/Icon/icons/maker/tumblr.vue +5 -5
  309. package/src/atoms/components/Icon/icons/maker/twitch.vue +7 -7
  310. package/src/atoms/components/Icon/icons/maker/twitter.vue +5 -5
  311. package/src/atoms/components/Icon/icons/maker/underline.vue +7 -7
  312. package/src/atoms/components/Icon/icons/maker/uppercase.vue +14 -14
  313. package/src/atoms/components/Icon/icons/maker/video.vue +5 -5
  314. package/src/atoms/components/Icon/icons/maker/whatsapp.vue +7 -7
  315. package/src/atoms/components/Icon/icons/maker/youtube.vue +5 -5
  316. package/src/atoms/components/Icon/icons/maker/zoom.vue +5 -5
  317. package/src/atoms/components/Icon/icons/map.vue +6 -6
  318. package/src/atoms/components/Icon/icons/message.vue +6 -6
  319. package/src/atoms/components/Icon/icons/minus-circle-light.vue +7 -7
  320. package/src/atoms/components/Icon/icons/minus.vue +3 -3
  321. package/src/atoms/components/Icon/icons/mobile.vue +5 -5
  322. package/src/atoms/components/Icon/icons/opacity.vue +6 -6
  323. package/src/atoms/components/Icon/icons/other.vue +7 -7
  324. package/src/atoms/components/Icon/icons/page-buttons.vue +8 -8
  325. package/src/atoms/components/Icon/icons/page-hamburger.vue +9 -9
  326. package/src/atoms/components/Icon/icons/page-tabs.vue +9 -9
  327. package/src/atoms/components/Icon/icons/pages.vue +6 -6
  328. package/src/atoms/components/Icon/icons/palette.vue +6 -6
  329. package/src/atoms/components/Icon/icons/pause.vue +5 -5
  330. package/src/atoms/components/Icon/icons/payment.vue +8 -8
  331. package/src/atoms/components/Icon/icons/payments-featured.vue +6 -6
  332. package/src/atoms/components/Icon/icons/payments-textonly.vue +8 -8
  333. package/src/atoms/components/Icon/icons/payments-thumbnail.vue +9 -9
  334. package/src/atoms/components/Icon/icons/phone.vue +6 -6
  335. package/src/atoms/components/Icon/icons/plus-circle-light.vue +8 -8
  336. package/src/atoms/components/Icon/icons/plus-circle.vue +7 -7
  337. package/src/atoms/components/Icon/icons/plus.vue +3 -3
  338. package/src/atoms/components/Icon/icons/poll.vue +3 -3
  339. package/src/atoms/components/Icon/icons/portfolio.vue +10 -10
  340. package/src/atoms/components/Icon/icons/preview.vue +6 -6
  341. package/src/atoms/components/Icon/icons/printing.vue +6 -6
  342. package/src/atoms/components/Icon/icons/processing.vue +5 -5
  343. package/src/atoms/components/Icon/icons/question.vue +11 -11
  344. package/src/atoms/components/Icon/icons/quote.vue +0 -0
  345. package/src/atoms/components/Icon/icons/ratio-1-1.vue +3 -3
  346. package/src/atoms/components/Icon/icons/ratio-16-9.vue +1 -1
  347. package/src/atoms/components/Icon/icons/ratio-2-3.vue +3 -3
  348. package/src/atoms/components/Icon/icons/ratio-3-2.vue +3 -3
  349. package/src/atoms/components/Icon/icons/ratio-3-4.vue +3 -3
  350. package/src/atoms/components/Icon/icons/ratio-4-3.vue +3 -3
  351. package/src/atoms/components/Icon/icons/ratio-9-16.vue +3 -3
  352. package/src/atoms/components/Icon/icons/ratio-circle.vue +8 -8
  353. package/src/atoms/components/Icon/icons/ratio-original.vue +11 -11
  354. package/src/atoms/components/Icon/icons/redo.vue +6 -6
  355. package/src/atoms/components/Icon/icons/reload.vue +6 -6
  356. package/src/atoms/components/Icon/icons/reorderable.vue +5 -5
  357. package/src/atoms/components/Icon/icons/request-payment.vue +6 -6
  358. package/src/atoms/components/Icon/icons/reset.vue +6 -6
  359. package/src/atoms/components/Icon/icons/search.vue +11 -11
  360. package/src/atoms/components/Icon/icons/secure.vue +7 -7
  361. package/src/atoms/components/Icon/icons/services.vue +7 -7
  362. package/src/atoms/components/Icon/icons/settings.vue +7 -7
  363. package/src/atoms/components/Icon/icons/shape.vue +5 -5
  364. package/src/atoms/components/Icon/icons/share.vue +8 -8
  365. package/src/atoms/components/Icon/icons/shop.vue +5 -5
  366. package/src/atoms/components/Icon/icons/sms.vue +5 -5
  367. package/src/atoms/components/Icon/icons/social-facebook-color.vue +9 -9
  368. package/src/atoms/components/Icon/icons/social-facebook.vue +5 -5
  369. package/src/atoms/components/Icon/icons/social-google.vue +5 -5
  370. package/src/atoms/components/Icon/icons/social-instagram-color.vue +24 -24
  371. package/src/atoms/components/Icon/icons/social-linkedin-color.vue +9 -9
  372. package/src/atoms/components/Icon/icons/social-share.vue +7 -7
  373. package/src/atoms/components/Icon/icons/social-twitter-color.vue +9 -9
  374. package/src/atoms/components/Icon/icons/star-filled.vue +6 -6
  375. package/src/atoms/components/Icon/icons/star-hollow.vue +6 -6
  376. package/src/atoms/components/Icon/icons/styles.vue +5 -5
  377. package/src/atoms/components/Icon/icons/submit.vue +5 -5
  378. package/src/atoms/components/Icon/icons/templates.vue +7 -7
  379. package/src/atoms/components/Icon/icons/testimonial-big-image.vue +0 -0
  380. package/src/atoms/components/Icon/icons/testimonial-centered.vue +0 -0
  381. package/src/atoms/components/Icon/icons/testimonial-columns.vue +0 -0
  382. package/src/atoms/components/Icon/icons/text-image-center.vue +6 -6
  383. package/src/atoms/components/Icon/icons/text-image-justified.vue +7 -7
  384. package/src/atoms/components/Icon/icons/text-image-left.vue +9 -9
  385. package/src/atoms/components/Icon/icons/text-image-only.vue +5 -5
  386. package/src/atoms/components/Icon/icons/text-image-right.vue +9 -9
  387. package/src/atoms/components/Icon/icons/text-image.vue +13 -13
  388. package/src/atoms/components/Icon/icons/time.vue +8 -8
  389. package/src/atoms/components/Icon/icons/tooltip-bottom.vue +5 -5
  390. package/src/atoms/components/Icon/icons/tooltip-left.vue +5 -5
  391. package/src/atoms/components/Icon/icons/tooltip-right.vue +5 -5
  392. package/src/atoms/components/Icon/icons/tooltip-top.vue +5 -5
  393. package/src/atoms/components/Icon/icons/undo.vue +6 -6
  394. package/src/atoms/components/Icon/icons/upgrade-alt.vue +7 -7
  395. package/src/atoms/components/Icon/icons/upgrade.vue +9 -9
  396. package/src/atoms/components/Icon/icons/upload-arrow.vue +5 -5
  397. package/src/atoms/components/Icon/icons/upload.vue +5 -5
  398. package/src/atoms/components/Icon/icons/user-accounts.vue +5 -5
  399. package/src/atoms/components/Icon/icons/volume-muted.vue +5 -5
  400. package/src/atoms/components/Icon/icons/volume.vue +5 -5
  401. package/src/atoms/components/Icon/icons/watchlist-filled.vue +14 -14
  402. package/src/atoms/components/Icon/icons/watchlist-hollow-alt.vue +14 -14
  403. package/src/atoms/components/Icon/icons/watchlist-hollow.vue +6 -6
  404. package/src/atoms/components/Icon/icons/website-filled.vue +5 -5
  405. package/src/atoms/components/Icon/icons/website.vue +6 -6
  406. package/src/atoms/components/Icon/icons/wholesale.vue +6 -6
  407. package/src/atoms/components/Icon/icons/zoom-in.vue +5 -5
  408. package/src/atoms/components/Icon/icons/zoom-out.vue +5 -5
  409. package/src/atoms/components/Icon/icons/zoom.vue +11 -11
  410. package/src/atoms/components/Loader/Loader.vue +15 -15
  411. package/src/atoms/components/Masonry/Masonry.stories.js +48 -48
  412. package/src/atoms/components/Masonry/Masonry.vue +48 -48
  413. package/src/atoms/components/Masonry/fixtures.js +589 -589
  414. package/src/atoms/components/Modal/HashRouteModal.stories.js +68 -68
  415. package/src/atoms/components/Modal/HashRouteModal.vue +120 -120
  416. package/src/atoms/components/Modal/Modal.stories.js +303 -303
  417. package/src/atoms/components/Modal/Modal.vue +258 -258
  418. package/src/atoms/components/Notice/Notice.stories.js +174 -174
  419. package/src/atoms/components/Notice/Notice.vue +71 -71
  420. package/src/atoms/components/NumberStepper/NumberStepper.stories.js +51 -51
  421. package/src/atoms/components/NumberStepper/NumberStepper.vue +298 -298
  422. package/src/atoms/components/Picture/Picture.stories.js +90 -90
  423. package/src/atoms/components/Picture/Picture.vue +84 -84
  424. package/src/atoms/components/Picture/picture.fixtures.js +35 -35
  425. package/src/atoms/components/Pill/Pill.stories.js +20 -20
  426. package/src/atoms/components/Pill/Pill.vue +8 -8
  427. package/src/atoms/components/PillBar/PillBar.fixtures.js +941 -941
  428. package/src/atoms/components/PillBar/PillBar.stories.js +39 -39
  429. package/src/atoms/components/PillBar/PillBar.vue +62 -62
  430. package/src/atoms/components/Price/Price.fixtures.js +25 -25
  431. package/src/atoms/components/Price/Price.stories.js +173 -173
  432. package/src/atoms/components/Price/Price.vue +106 -106
  433. package/src/atoms/components/SearchBar/SearchBar.stories.js +21 -21
  434. package/src/atoms/components/SearchBar/SearchBar.vue +51 -51
  435. package/src/atoms/components/Select/Select.stories.js +142 -142
  436. package/src/atoms/components/Select/Select.vue +594 -594
  437. package/src/atoms/components/Select/pointerMixin.js +99 -99
  438. package/src/atoms/components/Select/selectMixin.js +340 -340
  439. package/src/atoms/components/Slider/Slider.stories.js +0 -0
  440. package/src/atoms/components/Slider/Slider.vue +0 -0
  441. package/src/atoms/components/StarRating/StarRating.stories.js +50 -50
  442. package/src/atoms/components/StarRating/StarRating.vue +84 -84
  443. package/src/atoms/components/TabMenu/TabMenu.stories.js +54 -54
  444. package/src/atoms/components/TabMenu/TabMenu.vue +44 -44
  445. package/src/atoms/components/TextCopyField/TextCopyField.stories.js +68 -68
  446. package/src/atoms/components/TextCopyField/TextCopyField.vue +75 -75
  447. package/src/atoms/components/TextInput/TextInput.stories.js +232 -232
  448. package/src/atoms/components/TextInput/TextInput.vue +156 -156
  449. package/src/atoms/components/Textarea/Textarea.stories.js +209 -209
  450. package/src/atoms/components/Textarea/Textarea.vue +109 -109
  451. package/src/atoms/components/Toggle/Toggle.stories.js +176 -176
  452. package/src/atoms/components/Toggle/Toggle.vue +69 -69
  453. package/src/atoms/components/Tooltip/Tooltip.stories.js +493 -493
  454. package/src/atoms/components/Tooltip/Tooltip.vue +196 -196
  455. package/src/atoms/components/design-com/Icon/Icon.stories.js +82 -82
  456. package/src/atoms/components/design-com/Icon/Icon.vue +157 -157
  457. package/src/atoms/components/design-com/Icon/icons/annotate-heart.vue +0 -0
  458. package/src/atoms/components/design-com/Icon/icons/award.vue +7 -7
  459. package/src/atoms/components/design-com/Icon/icons/bezier-curve.vue +0 -0
  460. package/src/atoms/components/design-com/Icon/icons/bulb.vue +7 -7
  461. package/src/atoms/components/design-com/Icon/icons/card.vue +7 -7
  462. package/src/atoms/components/design-com/Icon/icons/check-circle-light.vue +7 -7
  463. package/src/atoms/components/design-com/Icon/icons/chevron-down.vue +7 -7
  464. package/src/atoms/components/design-com/Icon/icons/chevron-left.vue +7 -7
  465. package/src/atoms/components/design-com/Icon/icons/chevron-right.vue +3 -3
  466. package/src/atoms/components/design-com/Icon/icons/chevron-up.vue +7 -7
  467. package/src/atoms/components/design-com/Icon/icons/diamond.vue +7 -7
  468. package/src/atoms/components/design-com/Icon/icons/download.vue +7 -7
  469. package/src/atoms/components/design-com/Icon/icons/file-empty.vue +7 -7
  470. package/src/atoms/components/design-com/Icon/icons/file.vue +7 -7
  471. package/src/atoms/components/design-com/Icon/icons/filter.vue +7 -7
  472. package/src/atoms/components/design-com/Icon/icons/font.vue +7 -7
  473. package/src/atoms/components/design-com/Icon/icons/headphones.vue +7 -7
  474. package/src/atoms/components/design-com/Icon/icons/heart.vue +7 -7
  475. package/src/atoms/components/design-com/Icon/icons/image.vue +7 -7
  476. package/src/atoms/components/design-com/Icon/icons/logo.vue +7 -7
  477. package/src/atoms/components/design-com/Icon/icons/minus-circle-light.vue +7 -7
  478. package/src/atoms/components/design-com/Icon/icons/palette.vue +0 -0
  479. package/src/atoms/components/design-com/Icon/icons/pen.vue +0 -0
  480. package/src/atoms/components/design-com/Icon/icons/plus-circle-light.vue +8 -8
  481. package/src/atoms/components/design-com/Icon/icons/question-circle-filled.vue +7 -7
  482. package/src/atoms/components/design-com/Icon/icons/search.vue +7 -7
  483. package/src/atoms/components/design-com/Icon/icons/star-filled.vue +6 -6
  484. package/src/atoms/components/design-com/Icon/icons/star-hollow.vue +6 -6
  485. package/src/atoms/components/design-com/Icon/icons/text.vue +0 -0
  486. package/src/atoms/components/design-com/Icon/icons/users.vue +7 -7
  487. package/src/atoms/constants/constants.ts +6 -6
  488. package/src/atoms/mixin/hash-router-mixin.js +68 -68
  489. package/src/atoms/thirdparty-components/VueMasonryWall/VueMasonryWall.vue +280 -280
  490. package/src/atoms/thirdparty-components/VueMasonryWall/maxBy.js +50 -50
  491. package/src/css/tailwind.css +3 -3
  492. package/src/experiences/clients/brand-crowd-api.client.js +104 -104
  493. package/src/experiences/clients/brand-page-api.client.js +30 -30
  494. package/src/experiences/components/AuthFlow/Auth.fixtures.js +4 -4
  495. package/src/experiences/components/AuthFlow/Auth.stories.js +345 -345
  496. package/src/experiences/components/AuthFlow/AuthCrazyDomains.stories.js +60 -60
  497. package/src/experiences/components/AuthFlow/AuthLegal.vue +108 -108
  498. package/src/experiences/components/AuthFlow/AuthModal.vue +39 -39
  499. package/src/experiences/components/AuthFlow/ForgotPassword.vue +210 -210
  500. package/src/experiences/components/AuthFlow/ForgotPasswordModal.vue +68 -68
  501. package/src/experiences/components/AuthFlow/ResetPassword.vue +150 -150
  502. package/src/experiences/components/AuthFlow/ResetPasswordModal.vue +64 -64
  503. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +56 -56
  504. package/src/experiences/components/AuthFlow/SignIn.vue +442 -442
  505. package/src/experiences/components/AuthFlow/SignUp.vue +272 -272
  506. package/src/experiences/components/AuthFlow/SignUpModal.vue +90 -90
  507. package/src/experiences/components/AuthFlow/SocialSignIn.vue +177 -177
  508. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +74 -74
  509. package/src/experiences/components/AuthFlow/SubmissionButton.vue +56 -56
  510. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +91 -91
  511. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +134 -121
  512. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +189 -189
  513. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +46 -45
  514. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +115 -115
  515. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +203 -203
  516. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +0 -0
  517. package/src/experiences/components/PublishBrandPageModal/__fixtures__/data.js +25 -25
  518. package/src/experiences/components/SellDomainNameList/SellDomainNameList.fixtures.js +32 -32
  519. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +145 -145
  520. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +74 -74
  521. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +124 -124
  522. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +205 -205
  523. package/src/experiences/components/SellDomainNameSearch/SellDomainNameSearch.vue +0 -0
  524. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +153 -153
  525. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.stories.js +38 -38
  526. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +184 -184
  527. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.stories.js +40 -40
  528. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +152 -152
  529. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.stories.js +205 -205
  530. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +127 -127
  531. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.stories.js +58 -58
  532. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +278 -278
  533. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.stories.js +37 -37
  534. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +328 -328
  535. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +140 -140
  536. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +467 -467
  537. package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +97 -97
  538. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +69 -69
  539. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +49 -49
  540. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +38 -38
  541. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +91 -91
  542. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +22 -22
  543. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +290 -290
  544. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.stories.js +82 -82
  545. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +201 -201
  546. package/src/experiences/constants/api.js +8 -8
  547. package/src/experiences/constants/error-constants.js +5 -5
  548. package/src/experiences/constants/event-constants.js +18 -18
  549. package/src/experiences/constants/partner-dictionary-constants.js +27 -27
  550. package/src/experiences/constants/rego-source-constants.js +3 -3
  551. package/src/experiences/constants/sell-domain-name-constants.js +4 -4
  552. package/src/experiences/helpers/email-validator.js +5 -5
  553. package/src/experiences/helpers/hex-diff.js +116 -116
  554. package/src/experiences/helpers/tracking.js +5 -5
  555. package/src/experiences/mixins/mediaQueryMixin.js +31 -31
  556. package/src/experiences/mixins/themeMixin.js +22 -22
  557. package/src/themes/base.js +20 -20
  558. package/src/themes/bc.js +95 -95
  559. package/src/themes/bp.js +21 -21
  560. package/src/themes/cd.js +94 -94
  561. package/src/themes/dc.js +84 -84
  562. package/src/themes/dcom.js +106 -106
  563. package/src/themes/themes.js +16 -16
  564. package/src/viewports.js +51 -51
  565. package/storybook-static/favicon.ico +0 -0
  566. package/stylelint.config.js +19 -19
  567. package/tailwind.build.js +83 -83
  568. package/tailwind.config.js +37 -37
  569. package/tailwind.themes.js +59 -59
  570. package/vite.config.ts +37 -37
@@ -1,58 +1,58 @@
1
- import Events from '../../constants/event-constants';
2
- import UploadYourLogoDropzone from './UploadYourLogoDropzone.vue';
3
-
4
- export default {
5
- title: 'Components/UploadYourLogoDropzone',
6
- component: UploadYourLogoDropzone,
7
- };
8
-
9
- export const Sample = () => {
10
- window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
11
- console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
12
- });
13
-
14
- return {
15
- components: {
16
- UploadYourLogoDropzone,
17
- },
18
- template: `
19
- <UploadYourLogoDropzone />
20
- `,
21
- };
22
- };
23
-
24
- export const SampleExternallyInvoked = () => {
25
- window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
26
- console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
27
- });
28
-
29
- return {
30
- components: {
31
- UploadYourLogoDropzone,
32
- },
33
- template: `
34
- <div>
35
- <UploadYourLogoDropzone
36
- :should-open-upload-when-mounted="true" />
37
- </div>
38
- `,
39
- };
40
- };
41
-
42
- export const SampleSearchbar = () => {
43
- window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
44
- console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
45
- });
46
-
47
- return {
48
- components: {
49
- UploadYourLogoDropzone,
50
- },
51
- template: `
52
- <div>
53
- <UploadYourLogoDropzone
54
- :should-use-compact-layout="true" />
55
- </div>
56
- `,
57
- };
58
- };
1
+ import Events from '../../constants/event-constants';
2
+ import UploadYourLogoDropzone from './UploadYourLogoDropzone.vue';
3
+
4
+ export default {
5
+ title: 'Components/UploadYourLogoDropzone',
6
+ component: UploadYourLogoDropzone,
7
+ };
8
+
9
+ export const Sample = () => {
10
+ window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
11
+ console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
12
+ });
13
+
14
+ return {
15
+ components: {
16
+ UploadYourLogoDropzone,
17
+ },
18
+ template: `
19
+ <UploadYourLogoDropzone />
20
+ `,
21
+ };
22
+ };
23
+
24
+ export const SampleExternallyInvoked = () => {
25
+ window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
26
+ console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
27
+ });
28
+
29
+ return {
30
+ components: {
31
+ UploadYourLogoDropzone,
32
+ },
33
+ template: `
34
+ <div>
35
+ <UploadYourLogoDropzone
36
+ :should-open-upload-when-mounted="true" />
37
+ </div>
38
+ `,
39
+ };
40
+ };
41
+
42
+ export const SampleSearchbar = () => {
43
+ window.addEventListener(Events.BeginUploadLogoExperience, (e) => {
44
+ console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
45
+ });
46
+
47
+ return {
48
+ components: {
49
+ UploadYourLogoDropzone,
50
+ },
51
+ template: `
52
+ <div>
53
+ <UploadYourLogoDropzone
54
+ :should-use-compact-layout="true" />
55
+ </div>
56
+ `,
57
+ };
58
+ };
@@ -1,278 +1,278 @@
1
- <template>
2
- <dropzone
3
- :id="`upload-your-logo-dropzone-${_uid}`"
4
- ref="dropzone"
5
- class="c-upload-your-logo tw-group tw-transition-colors tw-duration-200 tw-flex tw-justify-center tw-flex-col tw-cursor-pointer"
6
- :class="{
7
- 'tw-items-center tw-py-8': !shouldUseCompactLayout,
8
- 'tw-w-full tw-bg-grayscale-400 tw-flex tw-items-center tw-justify-center tw-flex-col tw-cursor-pointer': isModal,
9
- 'hover:tw-bg-grayscale-200 tw-bg-white tw-border tw-border-dashed tw-border-secondary-300 tw-rounded': !isModal,
10
- 'md:tw-py-2 md:tw-pr-2 md:tw-items-start': useLandscapeTile,
11
- 'tw-py-4 md:tw-py-2 tw-pr-2 tw-items-start': shouldUseCompactLayout,
12
- }"
13
- :options="options"
14
- :include-styling="false"
15
- :use-custom-slot="true"
16
- data-test-byo-upload-dropzone
17
- @vdropzone-success="onUploadSuccess"
18
- >
19
- <div
20
- class="tw-px-2"
21
- :class="{
22
- 'tw-text-center': !shouldUseCompactLayout,
23
- 'md:tw-flex md:tw-flex-row md:tw-items-center md:tw-text-left md:tw-text-xs md:tw-px-4': useLandscapeTile,
24
- 'md:tw-px-8': smallLayout && !useLandscapeTile,
25
- 'tw-flex tw-flex-row tw-items-center tw-text-left tw-text-xs tw-px-4': shouldUseCompactLayout,
26
- }"
27
- >
28
- <div
29
- class="group-hover:tw-text-info-500 tw-flex tw-items-center tw-justify-center tw-mx-auto"
30
- :class="{
31
- 'tw-w-full tw-mb-2': !shouldUseCompactLayout,
32
- 'tw-text-secondary-500': !isDesignCom,
33
- 'tw-text-secondary-400': isDesignCom,
34
- 'md:tw-mb-0': useLandscapeTile,
35
- 'md:tw-w-10 md:tw-h-10': smallLayout,
36
- 'tw-w-8 tw-h-8': shouldUseCompactLayout,
37
- }"
38
- >
39
- <svg
40
- class="tw-fill-current tw-w-24 tw-h-24 tw-transition-colors tw-duration-200"
41
- viewBox="0 0 100 100"
42
- xmlns="http://www.w3.org/2000/svg"
43
- >
44
- <path
45
- d="M61.393 5c.5922 0 1.1635.261 1.5802.6956l22.3903 23.2608c.373.4133.6365.9565.6365 1.5216v52.7172C86 89.6737 80.6002 95 74.0585 95h-48.117C19.3998 95 14 89.6737 14 83.1952v-66.391C14 10.3262 19.3998 5 25.9415 5zm-2.1736 4.3478H25.9415c-4.1268 0-7.5512 3.3914-7.5512 7.4563v66.391c0 4.0877 3.4466 7.457 7.5512 7.457h48.117c4.1268 0 7.5512-3.3693 7.5512-7.457V32.6087H68.8563c-5.334 0-9.6369-4.2393-9.6369-9.5217V9.348zM67.8124 76C69.0252 76 70 76.8996 70 78c0 1.0998-.9748 2-2.1657 2H32.1657C30.9747 80 30 79.0998 30 78c0-1.1004.9748-2 2.1657-2zM50 35c.6121 0 1.1807.264 1.5965.7037l12.8169 13.8331c.831.8794.7654 2.2652-.1099 3.1009-.4152.396-.9623.5939-1.4873.5939-.59 0-1.1592-.2424-1.5965-.7037l-9.0111-9.743v24.0159c0 1.2093-.9837 2.1992-2.1871 2.1992-1.2028 0-2.1872-.9899-2.1872-2.1992v-24.016l-9.011 9.7431c-.8311.8794-2.2086.9454-3.1274.1098-.8746-.8141-.9402-2.2215-.1092-3.1009l12.8168-13.8331C48.8187 35.264 49.3873 35 50 35zm13.6097-22.326v10.413c0 2.8694 2.349 5.1738 5.2466 5.1738h9.7464L63.6097 12.674z"
46
- fill-rule="nonzero"
47
- />
48
- </svg>
49
- </div>
50
- <div
51
- :class="{
52
- 'md:tw-flex md:tw-flex-col md:tw-ml-2': useLandscapeTile,
53
- 'tw-flex tw-flex-col tw-ml-4 md:tw-ml-2': shouldUseCompactLayout,
54
- }"
55
- >
56
- <p
57
- v-if="!isModal"
58
- class="tw-font-bold tw-text-black tw-text-lg"
59
- :class="{ 'tw-mb-2': !shouldUseCompactLayout, 'md:tw-text-sm md:tw-mb-0': smallLayout, 'tw-text-sm tw-mb-0': shouldUseCompactLayout }"
60
- >
61
- Upload your logo
62
- </p>
63
-
64
- <p
65
- class="tw-text-secondary-600 tw-text-sm"
66
- :class="{
67
- 'tw-mb-0': !isDesignCom,
68
- 'tw-mb-3': isDesignCom,
69
- 'md:tw-hidden': shouldUseCompactLayout
70
- }"
71
- >
72
- Drop your file here or
73
- <span class="tw-text-info-500">click to upload</span>
74
- </p>
75
-
76
- <p
77
- v-if="!smallLayout && !shouldUseCompactLayout"
78
- class="tw-text-sm"
79
- :class="{
80
- 'tw-text-secondary-600': !isDesignCom,
81
- 'tw-text-secondary-400': isDesignCom,
82
- }"
83
- >
84
- We accept PNG, JPG, SVG or EPS files up to 25MB
85
- </p>
86
- </div>
87
- </div>
88
- </dropzone>
89
- </template>
90
-
91
- <script>
92
- import Dropzone from 'dropzone-vue3';
93
- import Events, { TRIGGER_TYPE } from '../../constants/event-constants';
94
- import RegoSource from '../../constants/rego-source-constants';
95
-
96
- const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
97
-
98
- const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
99
- const UNSUPPORTED_FILE_ERROR_MSG = "You can't upload files of this type.";
100
-
101
- export default {
102
- components: {
103
- Dropzone,
104
- },
105
- props: {
106
- isUserAuthenticated: {
107
- type: Boolean,
108
- required: false,
109
- default: true,
110
- },
111
- trackingData: {
112
- type: Object,
113
- required: false,
114
- default: undefined,
115
- },
116
- shouldOpenUploadWhenMounted: {
117
- type: Boolean,
118
- required: false,
119
- default: false,
120
- },
121
- isModal: {
122
- type: Boolean,
123
- required: false,
124
- default: false,
125
- },
126
- useLandscapeTile: {
127
- type: Boolean,
128
- required: false,
129
- default: false,
130
- },
131
- smallLayout: {
132
- type: Boolean,
133
- required: false,
134
- default: false,
135
- },
136
- shouldUseCompactLayout: {
137
- type: Boolean,
138
- default: false,
139
- },
140
- isDesignCom: {
141
- type: Boolean,
142
- required: false,
143
- default: false,
144
- },
145
- assetType: {
146
- type: Number,
147
- default: null,
148
- },
149
- templateTypeFriendlyName: {
150
- type: String,
151
- default: null,
152
- },
153
- },
154
- data() {
155
- const self = this;
156
-
157
- return {
158
- options: {
159
- url: '#',
160
- autoProcessQueue: false,
161
- maxFiles: 1,
162
- uploadMultiple: false,
163
- acceptedFiles: ACCEPTED_MIME_TYPES.join(','),
164
- accept(file) {
165
- const extension = file.name.split('.').pop();
166
-
167
- if (ACCEPTED_FILE_EXTENSIONS.indexOf(extension) < 0) {
168
- self.displayError(UNSUPPORTED_FILE_ERROR_MSG);
169
- return;
170
- }
171
-
172
- const reader = new FileReader();
173
- const dropzone = this;
174
-
175
- reader.addEventListener('loadend', () => {
176
- // eslint-disable-next-line no-param-reassign
177
- file.status = 'success';
178
- dropzone.emit('success', file);
179
- dropzone.emit('complete', file);
180
- });
181
-
182
- reader.readAsText(file);
183
- },
184
- init() {
185
- const dropzone = this;
186
- dropzone.hiddenFileInput.addEventListener('click', (event) => {
187
- if (!self.isUserAuthenticated) {
188
- event.preventDefault();
189
- self.showLoginModal();
190
- }
191
- });
192
- },
193
- },
194
- };
195
- },
196
- mounted() {
197
- if (window) {
198
- if (this.shouldOpenUploadWhenMounted) {
199
- if (this.$refs.dropzone && this.$refs.dropzone?.$refs.dropzoneElement) {
200
- // eslint-disable-next-line no-unused-expressions
201
- this.$refs?.dropzone?.$refs?.dropzoneElement.click();
202
- }
203
- }
204
- }
205
- },
206
- methods: {
207
- pushTrackingData() {
208
- if (this.trackingData) {
209
- window.dataLayer = window.dataLayer || [];
210
- window.dataLayer.push(this.trackingData);
211
- }
212
- },
213
- /**
214
- * @function onUploadSuccess
215
- * @param {file} File
216
- * Fires the event to start the byo logo experience
217
- */
218
- onUploadSuccess(file) {
219
- this.$refs.dropzone.removeAllFiles();
220
- this.pushTrackingData();
221
- if (!this.isUserAuthenticated) {
222
- this.showLoginModal();
223
- return;
224
- }
225
-
226
- this.$emit('on-upload-success', file);
227
- },
228
- showLoginModal() {
229
- this.$refs.dropzone.removeAllFiles();
230
-
231
- this.$emit('on-login-modal-open', RegoSource.UploadUserLogo);
232
-
233
- window.dispatchEvent(
234
- new CustomEvent(Events.ShowLoginModal, {
235
- detail: {
236
- isSave: true,
237
- regoSource: RegoSource.UploadUserLogo,
238
- emailCapturedCallback: this.handleEmailCapturedForLogoUpload,
239
- shouldReloadPageOnSuccess: false,
240
- assetType: this.assetType,
241
- templateTypeName: this.templateTypeFriendlyName,
242
- userTriggered: TRIGGER_TYPE.Automatic,
243
- },
244
- }),
245
- );
246
- },
247
- handleEmailCapturedForLogoUpload() {
248
- this.$emit('logo-dropzone-login-callback');
249
- },
250
- /**
251
- * @function displayError
252
- * @paramm {msg} String
253
- * Displays a custom error message in the Dropzone error region
254
- */
255
- displayError(msg) {
256
- if (this.$refs?.dropzone?.$refs?.dropzoneElement) {
257
- const $errorContainer = this.$refs.dropzone.$refs.dropzoneElement.querySelector('.dz-error-message');
258
- if ($errorContainer) {
259
- $errorContainer.innerText = msg;
260
- }
261
- }
262
- },
263
- },
264
- };
265
- </script>
266
- <style>
267
- .c-upload-your-logo .dz-success-mark,
268
- .c-upload-your-logo .dz-error-mark,
269
- .c-upload-your-logo .dz-details {
270
- display: none;
271
- }
272
-
273
- .c-upload-your-logo .dz-error-message {
274
- color: #f21b3f;
275
- font-size: 0.875rem;
276
- line-height: 1.25rem;
277
- }
278
- </style>
1
+ <template>
2
+ <dropzone
3
+ :id="`upload-your-logo-dropzone-${_uid}`"
4
+ ref="dropzone"
5
+ class="c-upload-your-logo tw-group tw-transition-colors tw-duration-200 tw-flex tw-justify-center tw-flex-col tw-cursor-pointer"
6
+ :class="{
7
+ 'tw-items-center tw-py-8': !shouldUseCompactLayout,
8
+ 'tw-w-full tw-bg-grayscale-400 tw-flex tw-items-center tw-justify-center tw-flex-col tw-cursor-pointer': isModal,
9
+ 'hover:tw-bg-grayscale-200 tw-bg-white tw-border tw-border-dashed tw-border-secondary-300 tw-rounded': !isModal,
10
+ 'md:tw-py-2 md:tw-pr-2 md:tw-items-start': useLandscapeTile,
11
+ 'tw-py-4 md:tw-py-2 tw-pr-2 tw-items-start': shouldUseCompactLayout,
12
+ }"
13
+ :options="options"
14
+ :include-styling="false"
15
+ :use-custom-slot="true"
16
+ data-test-byo-upload-dropzone
17
+ @vdropzone-success="onUploadSuccess"
18
+ >
19
+ <div
20
+ class="tw-px-2"
21
+ :class="{
22
+ 'tw-text-center': !shouldUseCompactLayout,
23
+ 'md:tw-flex md:tw-flex-row md:tw-items-center md:tw-text-left md:tw-text-xs md:tw-px-4': useLandscapeTile,
24
+ 'md:tw-px-8': smallLayout && !useLandscapeTile,
25
+ 'tw-flex tw-flex-row tw-items-center tw-text-left tw-text-xs tw-px-4': shouldUseCompactLayout,
26
+ }"
27
+ >
28
+ <div
29
+ class="group-hover:tw-text-info-500 tw-flex tw-items-center tw-justify-center tw-mx-auto"
30
+ :class="{
31
+ 'tw-w-full tw-mb-2': !shouldUseCompactLayout,
32
+ 'tw-text-secondary-500': !isDesignCom,
33
+ 'tw-text-secondary-400': isDesignCom,
34
+ 'md:tw-mb-0': useLandscapeTile,
35
+ 'md:tw-w-10 md:tw-h-10': smallLayout,
36
+ 'tw-w-8 tw-h-8': shouldUseCompactLayout,
37
+ }"
38
+ >
39
+ <svg
40
+ class="tw-fill-current tw-w-24 tw-h-24 tw-transition-colors tw-duration-200"
41
+ viewBox="0 0 100 100"
42
+ xmlns="http://www.w3.org/2000/svg"
43
+ >
44
+ <path
45
+ d="M61.393 5c.5922 0 1.1635.261 1.5802.6956l22.3903 23.2608c.373.4133.6365.9565.6365 1.5216v52.7172C86 89.6737 80.6002 95 74.0585 95h-48.117C19.3998 95 14 89.6737 14 83.1952v-66.391C14 10.3262 19.3998 5 25.9415 5zm-2.1736 4.3478H25.9415c-4.1268 0-7.5512 3.3914-7.5512 7.4563v66.391c0 4.0877 3.4466 7.457 7.5512 7.457h48.117c4.1268 0 7.5512-3.3693 7.5512-7.457V32.6087H68.8563c-5.334 0-9.6369-4.2393-9.6369-9.5217V9.348zM67.8124 76C69.0252 76 70 76.8996 70 78c0 1.0998-.9748 2-2.1657 2H32.1657C30.9747 80 30 79.0998 30 78c0-1.1004.9748-2 2.1657-2zM50 35c.6121 0 1.1807.264 1.5965.7037l12.8169 13.8331c.831.8794.7654 2.2652-.1099 3.1009-.4152.396-.9623.5939-1.4873.5939-.59 0-1.1592-.2424-1.5965-.7037l-9.0111-9.743v24.0159c0 1.2093-.9837 2.1992-2.1871 2.1992-1.2028 0-2.1872-.9899-2.1872-2.1992v-24.016l-9.011 9.7431c-.8311.8794-2.2086.9454-3.1274.1098-.8746-.8141-.9402-2.2215-.1092-3.1009l12.8168-13.8331C48.8187 35.264 49.3873 35 50 35zm13.6097-22.326v10.413c0 2.8694 2.349 5.1738 5.2466 5.1738h9.7464L63.6097 12.674z"
46
+ fill-rule="nonzero"
47
+ />
48
+ </svg>
49
+ </div>
50
+ <div
51
+ :class="{
52
+ 'md:tw-flex md:tw-flex-col md:tw-ml-2': useLandscapeTile,
53
+ 'tw-flex tw-flex-col tw-ml-4 md:tw-ml-2': shouldUseCompactLayout,
54
+ }"
55
+ >
56
+ <p
57
+ v-if="!isModal"
58
+ class="tw-font-bold tw-text-black tw-text-lg"
59
+ :class="{ 'tw-mb-2': !shouldUseCompactLayout, 'md:tw-text-sm md:tw-mb-0': smallLayout, 'tw-text-sm tw-mb-0': shouldUseCompactLayout }"
60
+ >
61
+ Upload your logo
62
+ </p>
63
+
64
+ <p
65
+ class="tw-text-secondary-600 tw-text-sm"
66
+ :class="{
67
+ 'tw-mb-0': !isDesignCom,
68
+ 'tw-mb-3': isDesignCom,
69
+ 'md:tw-hidden': shouldUseCompactLayout
70
+ }"
71
+ >
72
+ Drop your file here or
73
+ <span class="tw-text-info-500">click to upload</span>
74
+ </p>
75
+
76
+ <p
77
+ v-if="!smallLayout && !shouldUseCompactLayout"
78
+ class="tw-text-sm"
79
+ :class="{
80
+ 'tw-text-secondary-600': !isDesignCom,
81
+ 'tw-text-secondary-400': isDesignCom,
82
+ }"
83
+ >
84
+ We accept PNG, JPG, SVG or EPS files up to 25MB
85
+ </p>
86
+ </div>
87
+ </div>
88
+ </dropzone>
89
+ </template>
90
+
91
+ <script>
92
+ import Dropzone from 'dropzone-vue3';
93
+ import Events, { TRIGGER_TYPE } from '../../constants/event-constants';
94
+ import RegoSource from '../../constants/rego-source-constants';
95
+
96
+ const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
97
+
98
+ const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
99
+ const UNSUPPORTED_FILE_ERROR_MSG = "You can't upload files of this type.";
100
+
101
+ export default {
102
+ components: {
103
+ Dropzone,
104
+ },
105
+ props: {
106
+ isUserAuthenticated: {
107
+ type: Boolean,
108
+ required: false,
109
+ default: true,
110
+ },
111
+ trackingData: {
112
+ type: Object,
113
+ required: false,
114
+ default: undefined,
115
+ },
116
+ shouldOpenUploadWhenMounted: {
117
+ type: Boolean,
118
+ required: false,
119
+ default: false,
120
+ },
121
+ isModal: {
122
+ type: Boolean,
123
+ required: false,
124
+ default: false,
125
+ },
126
+ useLandscapeTile: {
127
+ type: Boolean,
128
+ required: false,
129
+ default: false,
130
+ },
131
+ smallLayout: {
132
+ type: Boolean,
133
+ required: false,
134
+ default: false,
135
+ },
136
+ shouldUseCompactLayout: {
137
+ type: Boolean,
138
+ default: false,
139
+ },
140
+ isDesignCom: {
141
+ type: Boolean,
142
+ required: false,
143
+ default: false,
144
+ },
145
+ assetType: {
146
+ type: Number,
147
+ default: null,
148
+ },
149
+ templateTypeFriendlyName: {
150
+ type: String,
151
+ default: null,
152
+ },
153
+ },
154
+ data() {
155
+ const self = this;
156
+
157
+ return {
158
+ options: {
159
+ url: '#',
160
+ autoProcessQueue: false,
161
+ maxFiles: 1,
162
+ uploadMultiple: false,
163
+ acceptedFiles: ACCEPTED_MIME_TYPES.join(','),
164
+ accept(file) {
165
+ const extension = file.name.split('.').pop();
166
+
167
+ if (ACCEPTED_FILE_EXTENSIONS.indexOf(extension) < 0) {
168
+ self.displayError(UNSUPPORTED_FILE_ERROR_MSG);
169
+ return;
170
+ }
171
+
172
+ const reader = new FileReader();
173
+ const dropzone = this;
174
+
175
+ reader.addEventListener('loadend', () => {
176
+ // eslint-disable-next-line no-param-reassign
177
+ file.status = 'success';
178
+ dropzone.emit('success', file);
179
+ dropzone.emit('complete', file);
180
+ });
181
+
182
+ reader.readAsText(file);
183
+ },
184
+ init() {
185
+ const dropzone = this;
186
+ dropzone.hiddenFileInput.addEventListener('click', (event) => {
187
+ if (!self.isUserAuthenticated) {
188
+ event.preventDefault();
189
+ self.showLoginModal();
190
+ }
191
+ });
192
+ },
193
+ },
194
+ };
195
+ },
196
+ mounted() {
197
+ if (window) {
198
+ if (this.shouldOpenUploadWhenMounted) {
199
+ if (this.$refs.dropzone && this.$refs.dropzone?.$refs.dropzoneElement) {
200
+ // eslint-disable-next-line no-unused-expressions
201
+ this.$refs?.dropzone?.$refs?.dropzoneElement.click();
202
+ }
203
+ }
204
+ }
205
+ },
206
+ methods: {
207
+ pushTrackingData() {
208
+ if (this.trackingData) {
209
+ window.dataLayer = window.dataLayer || [];
210
+ window.dataLayer.push(this.trackingData);
211
+ }
212
+ },
213
+ /**
214
+ * @function onUploadSuccess
215
+ * @param {file} File
216
+ * Fires the event to start the byo logo experience
217
+ */
218
+ onUploadSuccess(file) {
219
+ this.$refs.dropzone.removeAllFiles();
220
+ this.pushTrackingData();
221
+ if (!this.isUserAuthenticated) {
222
+ this.showLoginModal();
223
+ return;
224
+ }
225
+
226
+ this.$emit('on-upload-success', file);
227
+ },
228
+ showLoginModal() {
229
+ this.$refs.dropzone.removeAllFiles();
230
+
231
+ this.$emit('on-login-modal-open', RegoSource.UploadUserLogo);
232
+
233
+ window.dispatchEvent(
234
+ new CustomEvent(Events.ShowLoginModal, {
235
+ detail: {
236
+ isSave: true,
237
+ regoSource: RegoSource.UploadUserLogo,
238
+ emailCapturedCallback: this.handleEmailCapturedForLogoUpload,
239
+ shouldReloadPageOnSuccess: false,
240
+ assetType: this.assetType,
241
+ templateTypeName: this.templateTypeFriendlyName,
242
+ userTriggered: TRIGGER_TYPE.Automatic,
243
+ },
244
+ }),
245
+ );
246
+ },
247
+ handleEmailCapturedForLogoUpload() {
248
+ this.$emit('logo-dropzone-login-callback');
249
+ },
250
+ /**
251
+ * @function displayError
252
+ * @paramm {msg} String
253
+ * Displays a custom error message in the Dropzone error region
254
+ */
255
+ displayError(msg) {
256
+ if (this.$refs?.dropzone?.$refs?.dropzoneElement) {
257
+ const $errorContainer = this.$refs.dropzone.$refs.dropzoneElement.querySelector('.dz-error-message');
258
+ if ($errorContainer) {
259
+ $errorContainer.innerText = msg;
260
+ }
261
+ }
262
+ },
263
+ },
264
+ };
265
+ </script>
266
+ <style>
267
+ .c-upload-your-logo .dz-success-mark,
268
+ .c-upload-your-logo .dz-error-mark,
269
+ .c-upload-your-logo .dz-details {
270
+ display: none;
271
+ }
272
+
273
+ .c-upload-your-logo .dz-error-message {
274
+ color: #f21b3f;
275
+ font-size: 0.875rem;
276
+ line-height: 1.25rem;
277
+ }
278
+ </style>