@designcrowd/fe-shared-lib 1.0.0 → 1.0.1-6.eng2594

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/index.cjs +16 -16
  14. package/index.js +54 -53
  15. package/npmrc +0 -0
  16. package/package.json +109 -108
  17. package/postcss.config.js +5 -5
  18. package/public/css/.keepme +0 -0
  19. package/src/atoms/components/Button/Button.vue +323 -323
  20. package/src/atoms/components/Button/ButtonVariant.mixin.vue +126 -126
  21. package/src/atoms/components/Button/Buttons.stories.js +778 -778
  22. package/src/atoms/components/Button/ButtonsCrazyDomains.stories.js +117 -117
  23. package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +52 -52
  24. package/src/atoms/components/Button/variants/ButtonFlat.vue +65 -65
  25. package/src/atoms/components/Button/variants/ButtonGray.vue +64 -64
  26. package/src/atoms/components/Button/variants/ButtonInfo.vue +51 -51
  27. package/src/atoms/components/Button/variants/ButtonInfoFilled.vue +63 -63
  28. package/src/atoms/components/Button/variants/ButtonNoBorder.vue +65 -65
  29. package/src/atoms/components/Button/variants/ButtonOutline.vue +62 -62
  30. package/src/atoms/components/Button/variants/ButtonOutlineNoHover.vue +62 -62
  31. package/src/atoms/components/Button/variants/ButtonOutlineSuccess.vue +54 -54
  32. package/src/atoms/components/Button/variants/ButtonPill.vue +52 -52
  33. package/src/atoms/components/Button/variants/ButtonPrimary.vue +69 -69
  34. package/src/atoms/components/Button/variants/ButtonPrimaryWithIcon.vue +68 -68
  35. package/src/atoms/components/Button/variants/ButtonSecondary.vue +51 -51
  36. package/src/atoms/components/Button/variants/ButtonSuccess.vue +55 -55
  37. package/src/atoms/components/Button/variants/ButtonWarning.vue +65 -65
  38. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsOutline.vue +58 -58
  39. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsPrimary.vue +38 -38
  40. package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +562 -562
  41. package/src/atoms/components/ButtonGroup/ButtonGroup.vue +188 -188
  42. package/src/atoms/components/Carousel/Carousel.fixtures.js +35 -35
  43. package/src/atoms/components/Carousel/Carousel.vue +352 -352
  44. package/src/atoms/components/Carousel/carousel.stories.js +261 -261
  45. package/src/atoms/components/Checkbox/Checkbox.mixin.js +57 -57
  46. package/src/atoms/components/Checkbox/Checkbox.stories.js +206 -206
  47. package/src/atoms/components/Checkbox/Checkbox.vue +89 -89
  48. package/src/atoms/components/Checktile/Checktile.stories.js +79 -79
  49. package/src/atoms/components/Checktile/Checktile.vue +73 -73
  50. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.mixin.js +34 -34
  51. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.stories.js +40 -40
  52. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.vue +30 -30
  53. package/src/atoms/components/ColorPicker/ColorPicker.stories.js +89 -89
  54. package/src/atoms/components/ColorPicker/ColorPicker.vue +95 -95
  55. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.stories.js +41 -41
  56. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue +71 -71
  57. package/src/atoms/components/Dropdown/Dropdown.stories.js +140 -135
  58. package/src/atoms/components/Dropdown/Dropdown.vue +108 -91
  59. package/src/atoms/components/Dropdown/DropdownItem.vue +21 -19
  60. package/src/atoms/components/FormControl/FormControl.mixin.js +127 -127
  61. package/src/atoms/components/HelloBar/HelloBar.stories.js +195 -195
  62. package/src/atoms/components/HelloBar/HelloBar.vue +156 -156
  63. package/src/atoms/components/Icon/Icon.stories.js +385 -382
  64. package/src/atoms/components/Icon/Icon.vue +809 -796
  65. package/src/atoms/components/Icon/icons/about.vue +0 -0
  66. package/src/atoms/components/Icon/icons/add-page.vue +6 -6
  67. package/src/atoms/components/Icon/icons/ai.vue +6 -6
  68. package/src/atoms/components/Icon/icons/arrow-down.vue +6 -6
  69. package/src/atoms/components/Icon/icons/arrow-left.vue +7 -7
  70. package/src/atoms/components/Icon/icons/arrow-right.vue +7 -7
  71. package/src/atoms/components/Icon/icons/arrow-top-right.vue +6 -6
  72. package/src/atoms/components/Icon/icons/arrow-up-underline.vue +7 -7
  73. package/src/atoms/components/Icon/icons/arrow-up.vue +7 -7
  74. package/src/atoms/components/Icon/icons/attach.vue +6 -6
  75. package/src/atoms/components/Icon/icons/auth-facebook-white.vue +17 -17
  76. package/src/atoms/components/Icon/icons/auth-facebook.vue +24 -24
  77. package/src/atoms/components/Icon/icons/auth-google.vue +32 -32
  78. package/src/atoms/components/Icon/icons/background.vue +7 -7
  79. package/src/atoms/components/Icon/icons/ban.vue +0 -0
  80. package/src/atoms/components/Icon/icons/banner-centered.vue +6 -6
  81. package/src/atoms/components/Icon/icons/banner-left.vue +6 -6
  82. package/src/atoms/components/Icon/icons/banner.vue +7 -7
  83. package/src/atoms/components/Icon/icons/bc-mast.vue +7 -7
  84. package/src/atoms/components/Icon/icons/brush.vue +6 -6
  85. package/src/atoms/components/Icon/icons/business-card-filled.vue +5 -5
  86. package/src/atoms/components/Icon/icons/business.vue +6 -6
  87. package/src/atoms/components/Icon/icons/button-justified.vue +0 -0
  88. package/src/atoms/components/Icon/icons/button.vue +0 -0
  89. package/src/atoms/components/Icon/icons/buttons/button-arrow-left.vue +0 -0
  90. package/src/atoms/components/Icon/icons/buttons/button-arrow-right.vue +0 -0
  91. package/src/atoms/components/Icon/icons/buttons/button-arrow.vue +0 -0
  92. package/src/atoms/components/Icon/icons/buttons/button-brushstroke-left.vue +0 -0
  93. package/src/atoms/components/Icon/icons/buttons/button-brushstroke-right.vue +0 -0
  94. package/src/atoms/components/Icon/icons/buttons/button-brushstroke.vue +0 -0
  95. package/src/atoms/components/Icon/icons/buttons/button-dashed-oval.vue +0 -0
  96. package/src/atoms/components/Icon/icons/buttons/button-dashed-rectangle.vue +0 -0
  97. package/src/atoms/components/Icon/icons/buttons/button-dashed-rounded.vue +0 -0
  98. package/src/atoms/components/Icon/icons/buttons/button-doubleline-oval.vue +0 -0
  99. package/src/atoms/components/Icon/icons/buttons/button-doubleline-rectangle.vue +0 -0
  100. package/src/atoms/components/Icon/icons/buttons/button-doubleline-rounded.vue +0 -0
  101. package/src/atoms/components/Icon/icons/buttons/button-paper-bottom.vue +0 -0
  102. package/src/atoms/components/Icon/icons/buttons/button-paper-top.vue +0 -0
  103. package/src/atoms/components/Icon/icons/buttons/button-paper.vue +0 -0
  104. package/src/atoms/components/Icon/icons/buttons/button-softshadow-oval.vue +0 -0
  105. package/src/atoms/components/Icon/icons/buttons/button-softshadow-rectangle.vue +0 -0
  106. package/src/atoms/components/Icon/icons/buttons/button-softshadow-rounded.vue +0 -0
  107. package/src/atoms/components/Icon/icons/calendar.vue +5 -5
  108. package/src/atoms/components/Icon/icons/callout-error.vue +6 -6
  109. package/src/atoms/components/Icon/icons/callout-info.vue +6 -6
  110. package/src/atoms/components/Icon/icons/callout-success.vue +8 -8
  111. package/src/atoms/components/Icon/icons/callout-warning.vue +6 -6
  112. package/src/atoms/components/Icon/icons/card.vue +9 -9
  113. package/src/atoms/components/Icon/icons/cart-empty.vue +9 -0
  114. package/src/atoms/components/Icon/icons/check-thin.vue +7 -7
  115. package/src/atoms/components/Icon/icons/check.vue +3 -3
  116. package/src/atoms/components/Icon/icons/chevron-down.vue +7 -7
  117. package/src/atoms/components/Icon/icons/chevron-left.vue +7 -7
  118. package/src/atoms/components/Icon/icons/chevron-right-wide.vue +3 -3
  119. package/src/atoms/components/Icon/icons/chevron-right.vue +3 -3
  120. package/src/atoms/components/Icon/icons/chevron-up.vue +7 -7
  121. package/src/atoms/components/Icon/icons/close.vue +6 -6
  122. package/src/atoms/components/Icon/icons/column-1.vue +0 -0
  123. package/src/atoms/components/Icon/icons/column-2.vue +0 -0
  124. package/src/atoms/components/Icon/icons/column-3.vue +0 -0
  125. package/src/atoms/components/Icon/icons/column-4.vue +0 -0
  126. package/src/atoms/components/Icon/icons/community.vue +5 -5
  127. package/src/atoms/components/Icon/icons/contact-message.vue +10 -10
  128. package/src/atoms/components/Icon/icons/content.vue +7 -7
  129. package/src/atoms/components/Icon/icons/copy.vue +10 -10
  130. package/src/atoms/components/Icon/icons/crazy-domains/filter.vue +6 -6
  131. package/src/atoms/components/Icon/icons/crazy-domains/globe.vue +6 -6
  132. package/src/atoms/components/Icon/icons/crazy-domains/home.vue +6 -6
  133. package/src/atoms/components/Icon/icons/crazy-domains/social-facebook.vue +6 -6
  134. package/src/atoms/components/Icon/icons/crazy-domains/social-google.vue +6 -6
  135. package/src/atoms/components/Icon/icons/crazy-domains/social-instagram.vue +6 -6
  136. package/src/atoms/components/Icon/icons/crazy-domains/social-twitter.vue +6 -6
  137. package/src/atoms/components/Icon/icons/crazy-domains/social-youtube.vue +6 -6
  138. package/src/atoms/components/Icon/icons/crop.vue +6 -6
  139. package/src/atoms/components/Icon/icons/delete.vue +8 -8
  140. package/src/atoms/components/Icon/icons/designs.vue +6 -6
  141. package/src/atoms/components/Icon/icons/desktop.vue +7 -7
  142. package/src/atoms/components/Icon/icons/divider-thick.vue +0 -0
  143. package/src/atoms/components/Icon/icons/divider-thin.vue +0 -0
  144. package/src/atoms/components/Icon/icons/divider.vue +0 -0
  145. package/src/atoms/components/Icon/icons/donate.vue +6 -6
  146. package/src/atoms/components/Icon/icons/download.vue +5 -5
  147. package/src/atoms/components/Icon/icons/duplicate.vue +6 -6
  148. package/src/atoms/components/Icon/icons/edit-line.vue +10 -10
  149. package/src/atoms/components/Icon/icons/edit.vue +6 -6
  150. package/src/atoms/components/Icon/icons/ellipsis.vue +6 -6
  151. package/src/atoms/components/Icon/icons/envelope-email.vue +9 -9
  152. package/src/atoms/components/Icon/icons/error.vue +8 -8
  153. package/src/atoms/components/Icon/icons/eye-crossed.vue +7 -7
  154. package/src/atoms/components/Icon/icons/fees.vue +6 -6
  155. package/src/atoms/components/Icon/icons/filter.vue +7 -7
  156. package/src/atoms/components/Icon/icons/filters.vue +6 -6
  157. package/src/atoms/components/Icon/icons/flag.vue +6 -6
  158. package/src/atoms/components/Icon/icons/flip-horizontal.vue +7 -7
  159. package/src/atoms/components/Icon/icons/flip-vertical.vue +7 -7
  160. package/src/atoms/components/Icon/icons/folder.vue +6 -6
  161. package/src/atoms/components/Icon/icons/footer-centered.vue +7 -7
  162. package/src/atoms/components/Icon/icons/footer-left.vue +7 -7
  163. package/src/atoms/components/Icon/icons/form-message.vue +6 -6
  164. package/src/atoms/components/Icon/icons/form.vue +5 -5
  165. package/src/atoms/components/Icon/icons/fullscreen-exit.vue +5 -5
  166. package/src/atoms/components/Icon/icons/fullscreen.vue +5 -5
  167. package/src/atoms/components/Icon/icons/globe.vue +6 -6
  168. package/src/atoms/components/Icon/icons/godaddy/logo.vue +5 -5
  169. package/src/atoms/components/Icon/icons/hamburger-1.vue +0 -0
  170. package/src/atoms/components/Icon/icons/hamburger-2.vue +0 -0
  171. package/src/atoms/components/Icon/icons/hamburger-3.vue +0 -0
  172. package/src/atoms/components/Icon/icons/hamburger-4.vue +0 -0
  173. package/src/atoms/components/Icon/icons/hamburger.vue +7 -7
  174. package/src/atoms/components/Icon/icons/home.vue +7 -7
  175. package/src/atoms/components/Icon/icons/icon-style-circle-bg.vue +22 -22
  176. package/src/atoms/components/Icon/icons/icon-style-no-bg.vue +16 -16
  177. package/src/atoms/components/Icon/icons/icon-style-square-bg.vue +22 -22
  178. package/src/atoms/components/Icon/icons/image-gallery-carousel.vue +7 -7
  179. package/src/atoms/components/Icon/icons/image-gallery-grid.vue +7 -7
  180. package/src/atoms/components/Icon/icons/image-gallery-masonry.vue +6 -6
  181. package/src/atoms/components/Icon/icons/images-gallery.vue +5 -5
  182. package/src/atoms/components/Icon/icons/images.vue +7 -7
  183. package/src/atoms/components/Icon/icons/info.vue +9 -9
  184. package/src/atoms/components/Icon/icons/jobs.vue +8 -8
  185. package/src/atoms/components/Icon/icons/layer-bring-front.vue +6 -6
  186. package/src/atoms/components/Icon/icons/layer-send-back.vue +6 -6
  187. package/src/atoms/components/Icon/icons/layer.vue +6 -6
  188. package/src/atoms/components/Icon/icons/layout/display-style-about-1.vue +20 -20
  189. package/src/atoms/components/Icon/icons/layout/display-style-about-2.vue +20 -20
  190. package/src/atoms/components/Icon/icons/layout/display-style-about-3.vue +20 -20
  191. package/src/atoms/components/Icon/icons/layout/display-style-about-4.vue +32 -32
  192. package/src/atoms/components/Icon/icons/layout/display-style-about-5.vue +27 -27
  193. package/src/atoms/components/Icon/icons/layout/display-style-about-6.vue +27 -27
  194. package/src/atoms/components/Icon/icons/layout/display-style-banner-1.vue +20 -20
  195. package/src/atoms/components/Icon/icons/layout/display-style-banner-2.vue +20 -20
  196. package/src/atoms/components/Icon/icons/layout/display-style-banner-3.vue +20 -20
  197. package/src/atoms/components/Icon/icons/layout/display-style-banner-4.vue +20 -20
  198. package/src/atoms/components/Icon/icons/layout/display-style-banner-5.vue +20 -20
  199. package/src/atoms/components/Icon/icons/layout/display-style-banner-6.vue +27 -27
  200. package/src/atoms/components/Icon/icons/layout/display-style-banner-7.vue +27 -27
  201. package/src/atoms/components/Icon/icons/layout/display-style-banner-8.vue +20 -20
  202. package/src/atoms/components/Icon/icons/layout/display-style-banner-9.vue +20 -20
  203. package/src/atoms/components/Icon/icons/layout/display-style-contact-1.vue +24 -24
  204. package/src/atoms/components/Icon/icons/layout/display-style-contact-2.vue +24 -24
  205. package/src/atoms/components/Icon/icons/layout/display-style-contact-4.vue +24 -24
  206. package/src/atoms/components/Icon/icons/layout/display-style-contact-5.vue +39 -39
  207. package/src/atoms/components/Icon/icons/layout/display-style-contact-6.vue +39 -39
  208. package/src/atoms/components/Icon/icons/layout/display-style-images-1.vue +0 -0
  209. package/src/atoms/components/Icon/icons/layout/display-style-images-2.vue +0 -0
  210. package/src/atoms/components/Icon/icons/layout/display-style-images-3.vue +0 -0
  211. package/src/atoms/components/Icon/icons/layout/display-style-images-4.vue +0 -0
  212. package/src/atoms/components/Icon/icons/layout/display-style-images-5.vue +0 -0
  213. package/src/atoms/components/Icon/icons/layout/display-style-images-6.vue +0 -0
  214. package/src/atoms/components/Icon/icons/layout/footer/display-style-1.vue +7 -7
  215. package/src/atoms/components/Icon/icons/layout/footer/display-style-2.vue +16 -16
  216. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-1.vue +17 -17
  217. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-2.vue +17 -17
  218. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-1.vue +17 -17
  219. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-2.vue +17 -17
  220. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-3.vue +13 -13
  221. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-4.vue +13 -13
  222. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-5.vue +17 -17
  223. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-6.vue +17 -17
  224. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-1.vue +16 -16
  225. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-2.vue +16 -16
  226. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-3.vue +16 -16
  227. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-1.vue +17 -17
  228. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-2.vue +17 -17
  229. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-3.vue +17 -17
  230. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-4.vue +21 -21
  231. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-1.vue +17 -17
  232. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-2.vue +17 -17
  233. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-1.vue +16 -16
  234. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-2.vue +16 -16
  235. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-3.vue +16 -16
  236. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-normal.vue +7 -7
  237. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-small.vue +7 -7
  238. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-small-text-center-normal.vue +7 -7
  239. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-bottom.vue +11 -11
  240. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-circle.vue +10 -10
  241. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-top.vue +11 -11
  242. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-center-normal.vue +7 -7
  243. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-justify-normal.vue +7 -7
  244. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-left-normal.vue +7 -7
  245. package/src/atoms/components/Icon/icons/layout/layout-icon-left-small-text-left-normal.vue +7 -7
  246. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-center-normal.vue +7 -7
  247. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-justify-normal.vue +7 -7
  248. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-right-normal.vue +7 -7
  249. package/src/atoms/components/Icon/icons/layout/layout-icon-right-small-text-right-normal.vue +7 -7
  250. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-normal.vue +7 -7
  251. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-small.vue +7 -7
  252. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-justify-normal.vue +7 -7
  253. package/src/atoms/components/Icon/icons/layout/layout-icon-top-small-text-center-normal.vue +7 -7
  254. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-1.vue +16 -16
  255. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-2.vue +10 -10
  256. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-3.vue +10 -10
  257. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-4.vue +23 -23
  258. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-1.vue +16 -16
  259. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-2.vue +7 -7
  260. package/src/atoms/components/Icon/icons/letterhead-filled.vue +5 -5
  261. package/src/atoms/components/Icon/icons/link.vue +6 -6
  262. package/src/atoms/components/Icon/icons/location.vue +6 -6
  263. package/src/atoms/components/Icon/icons/lock.vue +6 -6
  264. package/src/atoms/components/Icon/icons/mac-command.vue +7 -7
  265. package/src/atoms/components/Icon/icons/maker/align-center.vue +7 -7
  266. package/src/atoms/components/Icon/icons/maker/align-justify.vue +7 -7
  267. package/src/atoms/components/Icon/icons/maker/align-left.vue +7 -7
  268. package/src/atoms/components/Icon/icons/maker/align-right.vue +7 -7
  269. package/src/atoms/components/Icon/icons/maker/animate.vue +7 -7
  270. package/src/atoms/components/Icon/icons/maker/bold.vue +7 -7
  271. package/src/atoms/components/Icon/icons/maker/custom-landscape.vue +5 -5
  272. package/src/atoms/components/Icon/icons/maker/email-symbol.vue +5 -5
  273. package/src/atoms/components/Icon/icons/maker/email.vue +5 -5
  274. package/src/atoms/components/Icon/icons/maker/eraser.vue +5 -5
  275. package/src/atoms/components/Icon/icons/maker/etsy.vue +5 -5
  276. package/src/atoms/components/Icon/icons/maker/facebook.vue +5 -5
  277. package/src/atoms/components/Icon/icons/maker/favicon.vue +7 -7
  278. package/src/atoms/components/Icon/icons/maker/flyer.vue +7 -7
  279. package/src/atoms/components/Icon/icons/maker/gift-certificate.vue +5 -5
  280. package/src/atoms/components/Icon/icons/maker/globe.vue +5 -5
  281. package/src/atoms/components/Icon/icons/maker/image.vue +7 -7
  282. package/src/atoms/components/Icon/icons/maker/instagram.vue +7 -7
  283. package/src/atoms/components/Icon/icons/maker/invitation.vue +5 -5
  284. package/src/atoms/components/Icon/icons/maker/invoice.vue +5 -5
  285. package/src/atoms/components/Icon/icons/maker/italic.vue +7 -7
  286. package/src/atoms/components/Icon/icons/maker/link.vue +7 -7
  287. package/src/atoms/components/Icon/icons/maker/linkedin.vue +7 -7
  288. package/src/atoms/components/Icon/icons/maker/menu.vue +5 -5
  289. package/src/atoms/components/Icon/icons/maker/pause.vue +5 -5
  290. package/src/atoms/components/Icon/icons/maker/phone.vue +5 -5
  291. package/src/atoms/components/Icon/icons/maker/pinterest.vue +5 -5
  292. package/src/atoms/components/Icon/icons/maker/play.vue +5 -5
  293. package/src/atoms/components/Icon/icons/maker/postcard.vue +5 -5
  294. package/src/atoms/components/Icon/icons/maker/poster.vue +7 -7
  295. package/src/atoms/components/Icon/icons/maker/profile.vue +5 -5
  296. package/src/atoms/components/Icon/icons/maker/qrcode.vue +5 -5
  297. package/src/atoms/components/Icon/icons/maker/snapchat.vue +5 -5
  298. package/src/atoms/components/Icon/icons/maker/soundcloud.vue +7 -7
  299. package/src/atoms/components/Icon/icons/maker/strikethrough.vue +7 -7
  300. package/src/atoms/components/Icon/icons/maker/text.vue +7 -7
  301. package/src/atoms/components/Icon/icons/maker/thankyou-card.vue +5 -5
  302. package/src/atoms/components/Icon/icons/maker/tiktok.vue +5 -5
  303. package/src/atoms/components/Icon/icons/maker/tumblr.vue +5 -5
  304. package/src/atoms/components/Icon/icons/maker/twitch.vue +7 -7
  305. package/src/atoms/components/Icon/icons/maker/twitter.vue +5 -5
  306. package/src/atoms/components/Icon/icons/maker/underline.vue +7 -7
  307. package/src/atoms/components/Icon/icons/maker/uppercase.vue +14 -14
  308. package/src/atoms/components/Icon/icons/maker/video.vue +5 -5
  309. package/src/atoms/components/Icon/icons/maker/whatsapp.vue +7 -7
  310. package/src/atoms/components/Icon/icons/maker/youtube.vue +5 -5
  311. package/src/atoms/components/Icon/icons/maker/zoom.vue +5 -5
  312. package/src/atoms/components/Icon/icons/map.vue +6 -6
  313. package/src/atoms/components/Icon/icons/message.vue +6 -6
  314. package/src/atoms/components/Icon/icons/minus-circle-light.vue +7 -7
  315. package/src/atoms/components/Icon/icons/minus.vue +3 -3
  316. package/src/atoms/components/Icon/icons/mobile.vue +5 -5
  317. package/src/atoms/components/Icon/icons/opacity.vue +6 -6
  318. package/src/atoms/components/Icon/icons/other.vue +7 -7
  319. package/src/atoms/components/Icon/icons/page-buttons.vue +8 -8
  320. package/src/atoms/components/Icon/icons/page-hamburger.vue +9 -9
  321. package/src/atoms/components/Icon/icons/page-tabs.vue +9 -9
  322. package/src/atoms/components/Icon/icons/pages.vue +6 -6
  323. package/src/atoms/components/Icon/icons/palette.vue +6 -6
  324. package/src/atoms/components/Icon/icons/pause.vue +5 -5
  325. package/src/atoms/components/Icon/icons/payment.vue +8 -8
  326. package/src/atoms/components/Icon/icons/payments-featured.vue +6 -6
  327. package/src/atoms/components/Icon/icons/payments-textonly.vue +8 -8
  328. package/src/atoms/components/Icon/icons/payments-thumbnail.vue +9 -9
  329. package/src/atoms/components/Icon/icons/phone.vue +6 -6
  330. package/src/atoms/components/Icon/icons/plus-circle-light.vue +8 -8
  331. package/src/atoms/components/Icon/icons/plus-circle.vue +7 -7
  332. package/src/atoms/components/Icon/icons/plus.vue +3 -3
  333. package/src/atoms/components/Icon/icons/poll.vue +3 -3
  334. package/src/atoms/components/Icon/icons/portfolio.vue +10 -10
  335. package/src/atoms/components/Icon/icons/preview.vue +6 -6
  336. package/src/atoms/components/Icon/icons/printing.vue +6 -6
  337. package/src/atoms/components/Icon/icons/processing.vue +5 -5
  338. package/src/atoms/components/Icon/icons/question.vue +11 -11
  339. package/src/atoms/components/Icon/icons/quote.vue +0 -0
  340. package/src/atoms/components/Icon/icons/ratio-1-1.vue +3 -3
  341. package/src/atoms/components/Icon/icons/ratio-16-9.vue +1 -1
  342. package/src/atoms/components/Icon/icons/ratio-2-3.vue +3 -3
  343. package/src/atoms/components/Icon/icons/ratio-3-2.vue +3 -3
  344. package/src/atoms/components/Icon/icons/ratio-3-4.vue +3 -3
  345. package/src/atoms/components/Icon/icons/ratio-4-3.vue +3 -3
  346. package/src/atoms/components/Icon/icons/ratio-9-16.vue +3 -3
  347. package/src/atoms/components/Icon/icons/ratio-circle.vue +8 -8
  348. package/src/atoms/components/Icon/icons/ratio-original.vue +11 -11
  349. package/src/atoms/components/Icon/icons/redo.vue +6 -6
  350. package/src/atoms/components/Icon/icons/reload.vue +6 -6
  351. package/src/atoms/components/Icon/icons/reorderable.vue +5 -5
  352. package/src/atoms/components/Icon/icons/request-payment.vue +6 -6
  353. package/src/atoms/components/Icon/icons/reset.vue +6 -6
  354. package/src/atoms/components/Icon/icons/search.vue +11 -11
  355. package/src/atoms/components/Icon/icons/secure.vue +7 -7
  356. package/src/atoms/components/Icon/icons/services.vue +7 -7
  357. package/src/atoms/components/Icon/icons/settings.vue +7 -7
  358. package/src/atoms/components/Icon/icons/shape.vue +5 -5
  359. package/src/atoms/components/Icon/icons/share.vue +8 -8
  360. package/src/atoms/components/Icon/icons/shop.vue +5 -5
  361. package/src/atoms/components/Icon/icons/sms.vue +5 -5
  362. package/src/atoms/components/Icon/icons/social-facebook-color.vue +9 -9
  363. package/src/atoms/components/Icon/icons/social-facebook.vue +5 -5
  364. package/src/atoms/components/Icon/icons/social-google.vue +5 -5
  365. package/src/atoms/components/Icon/icons/social-instagram-color.vue +24 -24
  366. package/src/atoms/components/Icon/icons/social-linkedin-color.vue +9 -9
  367. package/src/atoms/components/Icon/icons/social-share.vue +7 -7
  368. package/src/atoms/components/Icon/icons/social-twitter-color.vue +9 -9
  369. package/src/atoms/components/Icon/icons/star-filled.vue +6 -6
  370. package/src/atoms/components/Icon/icons/star-hollow.vue +6 -6
  371. package/src/atoms/components/Icon/icons/styles.vue +5 -5
  372. package/src/atoms/components/Icon/icons/submit.vue +5 -5
  373. package/src/atoms/components/Icon/icons/templates.vue +7 -7
  374. package/src/atoms/components/Icon/icons/testimonial-big-image.vue +0 -0
  375. package/src/atoms/components/Icon/icons/testimonial-centered.vue +0 -0
  376. package/src/atoms/components/Icon/icons/testimonial-columns.vue +0 -0
  377. package/src/atoms/components/Icon/icons/text-image-center.vue +6 -6
  378. package/src/atoms/components/Icon/icons/text-image-justified.vue +7 -7
  379. package/src/atoms/components/Icon/icons/text-image-left.vue +9 -9
  380. package/src/atoms/components/Icon/icons/text-image-only.vue +5 -5
  381. package/src/atoms/components/Icon/icons/text-image-right.vue +9 -9
  382. package/src/atoms/components/Icon/icons/text-image.vue +13 -13
  383. package/src/atoms/components/Icon/icons/time.vue +8 -8
  384. package/src/atoms/components/Icon/icons/tooltip-bottom.vue +5 -5
  385. package/src/atoms/components/Icon/icons/tooltip-left.vue +5 -5
  386. package/src/atoms/components/Icon/icons/tooltip-right.vue +5 -5
  387. package/src/atoms/components/Icon/icons/tooltip-top.vue +5 -5
  388. package/src/atoms/components/Icon/icons/undo.vue +6 -6
  389. package/src/atoms/components/Icon/icons/upgrade-alt.vue +7 -7
  390. package/src/atoms/components/Icon/icons/upgrade.vue +9 -9
  391. package/src/atoms/components/Icon/icons/upload-arrow.vue +5 -6
  392. package/src/atoms/components/Icon/icons/upload.vue +5 -5
  393. package/src/atoms/components/Icon/icons/user-accounts.vue +5 -5
  394. package/src/atoms/components/Icon/icons/volume-muted.vue +5 -5
  395. package/src/atoms/components/Icon/icons/volume.vue +5 -5
  396. package/src/atoms/components/Icon/icons/watchlist-filled.vue +14 -14
  397. package/src/atoms/components/Icon/icons/watchlist-hollow-alt.vue +14 -14
  398. package/src/atoms/components/Icon/icons/watchlist-hollow.vue +6 -6
  399. package/src/atoms/components/Icon/icons/website-filled.vue +5 -5
  400. package/src/atoms/components/Icon/icons/website.vue +6 -6
  401. package/src/atoms/components/Icon/icons/wholesale.vue +6 -6
  402. package/src/atoms/components/Icon/icons/zoom-in.vue +5 -0
  403. package/src/atoms/components/Icon/icons/zoom-out.vue +5 -0
  404. package/src/atoms/components/Icon/icons/zoom.vue +11 -11
  405. package/src/atoms/components/Loader/Loader.vue +15 -15
  406. package/src/atoms/components/Masonry/Masonry.stories.js +48 -48
  407. package/src/atoms/components/Masonry/Masonry.vue +48 -48
  408. package/src/atoms/components/Masonry/fixtures.js +589 -589
  409. package/src/atoms/components/Modal/HashRouteModal.stories.js +68 -68
  410. package/src/atoms/components/Modal/HashRouteModal.vue +120 -120
  411. package/src/atoms/components/Modal/Modal.stories.js +303 -303
  412. package/src/atoms/components/Modal/Modal.vue +258 -234
  413. package/src/atoms/components/Notice/Notice.stories.js +174 -174
  414. package/src/atoms/components/Notice/Notice.vue +71 -71
  415. package/src/atoms/components/NumberStepper/NumberStepper.stories.js +51 -47
  416. package/src/atoms/components/NumberStepper/NumberStepper.vue +298 -282
  417. package/src/atoms/components/Picture/Picture.stories.js +90 -90
  418. package/src/atoms/components/Picture/Picture.vue +84 -84
  419. package/src/atoms/components/Picture/picture.fixtures.js +35 -35
  420. package/src/atoms/components/Pill/Pill.stories.js +20 -20
  421. package/src/atoms/components/Pill/Pill.vue +8 -8
  422. package/src/atoms/components/PillBar/PillBar.fixtures.js +941 -941
  423. package/src/atoms/components/PillBar/PillBar.stories.js +39 -39
  424. package/src/atoms/components/PillBar/PillBar.vue +62 -62
  425. package/src/atoms/components/Price/Price.fixtures.js +25 -25
  426. package/src/atoms/components/Price/Price.stories.js +173 -173
  427. package/src/atoms/components/Price/Price.vue +106 -106
  428. package/src/atoms/components/SearchBar/SearchBar.stories.js +21 -21
  429. package/src/atoms/components/SearchBar/SearchBar.vue +51 -51
  430. package/src/atoms/components/Select/Select.stories.js +142 -142
  431. package/src/atoms/components/Select/Select.vue +594 -594
  432. package/src/atoms/components/Select/pointerMixin.js +99 -99
  433. package/src/atoms/components/Select/selectMixin.js +340 -340
  434. package/src/atoms/components/Slider/Slider.stories.js +7 -1
  435. package/src/atoms/components/Slider/Slider.vue +3 -1
  436. package/src/atoms/components/StarRating/StarRating.stories.js +50 -50
  437. package/src/atoms/components/StarRating/StarRating.vue +84 -84
  438. package/src/atoms/components/TabMenu/TabMenu.stories.js +54 -54
  439. package/src/atoms/components/TabMenu/TabMenu.vue +44 -44
  440. package/src/atoms/components/TextCopyField/TextCopyField.stories.js +68 -68
  441. package/src/atoms/components/TextCopyField/TextCopyField.vue +75 -75
  442. package/src/atoms/components/TextInput/TextInput.stories.js +232 -232
  443. package/src/atoms/components/TextInput/TextInput.vue +156 -156
  444. package/src/atoms/components/Textarea/Textarea.stories.js +209 -209
  445. package/src/atoms/components/Textarea/Textarea.vue +109 -109
  446. package/src/atoms/components/Toggle/Toggle.stories.js +176 -176
  447. package/src/atoms/components/Toggle/Toggle.vue +69 -69
  448. package/src/atoms/components/Tooltip/Tooltip.stories.js +493 -493
  449. package/src/atoms/components/Tooltip/Tooltip.vue +196 -196
  450. package/src/atoms/components/design-com/Icon/Icon.stories.js +82 -82
  451. package/src/atoms/components/design-com/Icon/Icon.vue +157 -150
  452. package/src/atoms/components/design-com/Icon/icons/annotate-heart.vue +0 -0
  453. package/src/atoms/components/design-com/Icon/icons/award.vue +7 -7
  454. package/src/atoms/components/design-com/Icon/icons/bezier-curve.vue +0 -0
  455. package/src/atoms/components/design-com/Icon/icons/bulb.vue +7 -7
  456. package/src/atoms/components/design-com/Icon/icons/card.vue +7 -7
  457. package/src/atoms/components/design-com/Icon/icons/check-circle-light.vue +7 -7
  458. package/src/atoms/components/design-com/Icon/icons/chevron-down.vue +7 -7
  459. package/src/atoms/components/design-com/Icon/icons/chevron-left.vue +7 -7
  460. package/src/atoms/components/design-com/Icon/icons/chevron-right.vue +3 -3
  461. package/src/atoms/components/design-com/Icon/icons/chevron-up.vue +7 -7
  462. package/src/atoms/components/design-com/Icon/icons/diamond.vue +7 -7
  463. package/src/atoms/components/design-com/Icon/icons/download.vue +7 -7
  464. package/src/atoms/components/design-com/Icon/icons/file-empty.vue +7 -7
  465. package/src/atoms/components/design-com/Icon/icons/file.vue +7 -7
  466. package/src/atoms/components/design-com/Icon/icons/filter.vue +7 -7
  467. package/src/atoms/components/design-com/Icon/icons/font.vue +7 -7
  468. package/src/atoms/components/design-com/Icon/icons/headphones.vue +7 -7
  469. package/src/atoms/components/design-com/Icon/icons/heart.vue +7 -7
  470. package/src/atoms/components/design-com/Icon/icons/image.vue +7 -7
  471. package/src/atoms/components/design-com/Icon/icons/logo.vue +7 -7
  472. package/src/atoms/components/design-com/Icon/icons/minus-circle-light.vue +7 -7
  473. package/src/atoms/components/design-com/Icon/icons/palette.vue +0 -0
  474. package/src/atoms/components/design-com/Icon/icons/pen.vue +0 -0
  475. package/src/atoms/components/design-com/Icon/icons/plus-circle-light.vue +8 -8
  476. package/src/atoms/components/design-com/Icon/icons/question-circle-filled.vue +7 -7
  477. package/src/atoms/components/design-com/Icon/icons/search.vue +7 -7
  478. package/src/atoms/components/design-com/Icon/icons/star-filled.vue +6 -6
  479. package/src/atoms/components/design-com/Icon/icons/star-hollow.vue +6 -6
  480. package/src/atoms/components/design-com/Icon/icons/text.vue +0 -0
  481. package/src/atoms/components/design-com/Icon/icons/users.vue +7 -7
  482. package/src/atoms/constants/constants.ts +6 -6
  483. package/src/atoms/mixin/hash-router-mixin.js +68 -68
  484. package/src/atoms/thirdparty-components/VueMasonryWall/VueMasonryWall.vue +280 -280
  485. package/src/atoms/thirdparty-components/VueMasonryWall/maxBy.js +50 -50
  486. package/src/css/tailwind.css +3 -3
  487. package/src/experiences/clients/brand-crowd-api.client.js +104 -104
  488. package/src/experiences/clients/brand-page-api.client.js +30 -30
  489. package/src/experiences/components/AuthFlow/Auth.fixtures.js +4 -4
  490. package/src/experiences/components/AuthFlow/Auth.stories.js +345 -345
  491. package/src/experiences/components/AuthFlow/AuthCrazyDomains.stories.js +60 -60
  492. package/src/experiences/components/AuthFlow/AuthLegal.vue +108 -68
  493. package/src/experiences/components/AuthFlow/AuthModal.vue +39 -39
  494. package/src/experiences/components/AuthFlow/ForgotPassword.vue +210 -198
  495. package/src/experiences/components/AuthFlow/ForgotPasswordModal.vue +68 -62
  496. package/src/experiences/components/AuthFlow/ResetPassword.vue +150 -150
  497. package/src/experiences/components/AuthFlow/ResetPasswordModal.vue +64 -64
  498. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +56 -56
  499. package/src/experiences/components/AuthFlow/SignIn.vue +442 -419
  500. package/src/experiences/components/AuthFlow/SignUp.vue +272 -245
  501. package/src/experiences/components/AuthFlow/SignUpModal.vue +90 -90
  502. package/src/experiences/components/AuthFlow/SocialSignIn.vue +177 -165
  503. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +74 -74
  504. package/src/experiences/components/AuthFlow/SubmissionButton.vue +56 -56
  505. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +91 -91
  506. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +121 -121
  507. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +189 -189
  508. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +45 -45
  509. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +115 -0
  510. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +203 -240
  511. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +87 -17
  512. package/src/experiences/components/PublishBrandPageModal/__fixtures__/data.js +25 -25
  513. package/src/experiences/components/SellDomainNameList/SellDomainNameList.fixtures.js +32 -32
  514. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +145 -145
  515. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +74 -74
  516. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +124 -124
  517. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +205 -163
  518. package/src/experiences/components/SellDomainNameSearch/SellDomainNameSearch.vue +0 -0
  519. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +153 -153
  520. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.stories.js +38 -38
  521. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +184 -184
  522. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.stories.js +40 -40
  523. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +152 -152
  524. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.stories.js +205 -205
  525. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +127 -127
  526. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.stories.js +58 -40
  527. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +278 -266
  528. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.stories.js +37 -37
  529. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +328 -328
  530. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +140 -140
  531. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +467 -467
  532. package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +97 -97
  533. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +69 -69
  534. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +49 -49
  535. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +38 -38
  536. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +91 -91
  537. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +22 -22
  538. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +290 -290
  539. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.stories.js +82 -82
  540. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +201 -201
  541. package/src/experiences/constants/api.js +8 -8
  542. package/src/experiences/constants/error-constants.js +5 -5
  543. package/src/experiences/constants/event-constants.js +18 -18
  544. package/src/experiences/constants/partner-dictionary-constants.js +27 -27
  545. package/src/experiences/constants/rego-source-constants.js +3 -3
  546. package/src/experiences/constants/sell-domain-name-constants.js +4 -4
  547. package/src/experiences/helpers/email-validator.js +5 -5
  548. package/src/experiences/helpers/hex-diff.js +116 -116
  549. package/src/experiences/helpers/tracking.js +5 -5
  550. package/src/experiences/mixins/mediaQueryMixin.js +31 -31
  551. package/src/experiences/mixins/themeMixin.js +22 -22
  552. package/src/themes/base.js +20 -20
  553. package/src/themes/bc.js +95 -95
  554. package/src/themes/bp.js +21 -21
  555. package/src/themes/cd.js +94 -94
  556. package/src/themes/dc.js +84 -84
  557. package/src/themes/dcom.js +106 -106
  558. package/src/themes/themes.js +16 -16
  559. package/src/viewports.js +51 -51
  560. package/storybook-static/favicon.ico +0 -0
  561. package/stylelint.config.js +19 -19
  562. package/tailwind.build.js +83 -83
  563. package/tailwind.config.js +37 -37
  564. package/tailwind.themes.js +59 -59
  565. package/vite.config.ts +37 -37
  566. package/dist/css/tailwind-brandCrowd.css +0 -2419
  567. package/dist/css/tailwind-brandPage.css +0 -2107
  568. package/dist/css/tailwind-crazyDomains.css +0 -2419
  569. package/dist/css/tailwind-designCom.css +0 -2419
  570. package/dist/css/tailwind-designCrowd.css +0 -2419
@@ -1,419 +1,442 @@
1
- <template>
2
- <div :class="{ 'tw-mx-2 sm:tw-mx-8': !isModal }">
3
- <div v-if="helloBar" class="tw-text-left tw-mt-8">
4
- <HelloBar :label="helloBar.label" :description="helloBar.description" :variant="helloBar.variant">
5
- <template #cta>
6
- <Button
7
- v-if="recommendedActionLink"
8
- variant="secondary"
9
- size="small"
10
- label="RESET PASSWORD"
11
- class="tw-hidden sm:tw-inline"
12
- :url="getRedirectToRecommendedActionUrl"
13
- />
14
- <Button
15
- v-if="recommendedActionLink"
16
- variant="secondary"
17
- size="medium"
18
- label="RESET PASSWORD"
19
- :full-width="true"
20
- class="sm:tw-hidden tw-mt-2"
21
- :url="getRedirectToRecommendedActionUrl"
22
- />
23
- </template>
24
- </HelloBar>
25
- </div>
26
- <div
27
- class="lg:tw-flex tw-items-start tw-justify-center"
28
- :class="{ 'tw-px-2 tw-pb-8': isModal, 'tw-py-8': !isModal }"
29
- >
30
- <div
31
- class="lg:tw-max-w-xl tw-flex tw-items-center tw-justify-center tw-flex-col tw-text-center tw-h-auto"
32
- :class="[
33
- formBackgroundClass,
34
- {
35
- 'tw-border tw-border-solid tw-border-grayscale-400': !isModal,
36
- },
37
- ]"
38
- >
39
- <div
40
- class="tw-w-full"
41
- :class="{
42
- 'tw-p-4 md:tw-p-8': !isModal,
43
- }"
44
- >
45
- <h2
46
- v-if="title"
47
- class="tw-text-center tw-text-4xl tw-font-bold"
48
- :class="{
49
- 'tw-mb-6': !description,
50
- 'tw-mb-2': description,
51
- }"
52
- >
53
- {{ title }}
54
- </h2>
55
- <p v-if="description" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0">
56
- {{ description }}
57
- </p>
58
- <div class="tw-flex tw-flex-col">
59
- <div>
60
- <form id="signin" method="post" @submit="validate">
61
- <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
62
- <label for="userName" class="tw-sr-only"> Email </label>
63
- <input
64
- v-model="aUserName"
65
- name="userName"
66
- type="email"
67
- data-test-email-input
68
- aria-required="true"
69
- :aria-invalid="!!userNameError"
70
- autocomplete="email"
71
- placeholder="Email address"
72
- class="email-input tw-mb-3 tw-h-12 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
73
- :class="{ 'tw-border-error-500': !!userNameError }"
74
- />
75
- <p v-if="!!userNameError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
76
- {{ userNameError }}
77
- </p>
78
- <label v-if="capturePassword" for="password" class="tw-sr-only"> Password </label>
79
- <input
80
- v-if="capturePassword"
81
- v-model="password"
82
- name="password"
83
- type="password"
84
- data-test-password-input
85
- aria-required="true"
86
- :aria-invalid="!!passwordError"
87
- autocomplete="current-password"
88
- placeholder="Password"
89
- class="password-input tw-h-12 tw-mb-4 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
90
- :class="{ 'tw-border-error-500': !!passwordError }"
91
- />
92
- <p v-if="capturePassword && !!passwordError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
93
- {{ passwordError }}
94
- </p>
95
- <p v-if="capturePassword" class="tw-w-full tw-text-left tw-mb-4">
96
- <a class="tw-text-info-500 tw-cursor-pointer hover:tw-underline" @click="forgotPasswordClick()">
97
- Forgot Password?
98
- </a>
99
- </p>
100
- <SubmissionButton
101
- data-test-login-button
102
- variant="primary"
103
- size="medium"
104
- :label="submissionButtonLabel"
105
- :label-size="submissionButtonLabelSize"
106
- :is-loading="emailLoading"
107
- :disabled="emailLoading"
108
- >
109
- </SubmissionButton>
110
- </form>
111
- <AuthLegal
112
- :terms-of-use-url="termsOfUseUrl"
113
- :privacy-policy-url="privacyPolicyUrl"
114
- :theme="theme"
115
- :available-themes="availableThemes"
116
- :is-design-com="isDesignCom"
117
- />
118
- </div>
119
-
120
- <div v-if="!!loginWithFacebookUrl || !!loginWithGoogleUrl" class="tw-text-center tw-text-grayscale-600">
121
- <div class="tw-w-full tw-inline-flex tw-items-center tw-mb-4">
122
- <div
123
- class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"
124
- ></div>
125
- <span class="tw-px-4"> or </span>
126
- <div
127
- class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"
128
- ></div>
129
- </div>
130
- </div>
131
- <div>
132
- <SocialSignIn
133
- :login-with-google-url="loginWithGoogleUrl"
134
- :login-with-facebook-url="loginWithFacebookUrl"
135
- :anti-forgery-token="antiForgeryToken"
136
- :pre-facebook-login-hook="preFacebookLoginHook"
137
- :pre-google-login-hook="preGoogleLoginHook"
138
- :disabled="isLoading"
139
- :facebook-loading="facebookLoading"
140
- :google-loading="googleLoading"
141
- />
142
- </div>
143
- </div>
144
- </div>
145
- <div
146
- v-if="isModal === false && !!signUpText && !!signUpUrl"
147
- class="tw-order-last tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
148
- >
149
- <p>
150
- {{ getSignUpText }}
151
- <a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">Sign Up</a>
152
- </p>
153
- </div>
154
- </div>
155
- </div>
156
- </div>
157
- </template>
158
- <script>
159
- import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
160
- import Button from '../../../../src/atoms/components/Button/Button.vue';
161
- import SubmissionButton from './SubmissionButton.vue';
162
- import AuthLegal from './AuthLegal.vue';
163
- import themeMixin from '../../mixins/themeMixin';
164
- import { SIGN_IN } from '../../constants/partner-dictionary-constants';
165
- import isValidEmail from '../../helpers/email-validator';
166
- import SocialSignIn from './SocialSignIn.vue';
167
-
168
- export default {
169
- components: {
170
- HelloBar,
171
- Button,
172
- SocialSignIn,
173
- SubmissionButton,
174
- AuthLegal,
175
- },
176
- mixins: [themeMixin],
177
- props: {
178
- title: {
179
- type: String,
180
- required: false,
181
- default: undefined,
182
- },
183
- description: {
184
- type: String,
185
- required: false,
186
- default: undefined,
187
- },
188
- formBackgroundClass: {
189
- type: String,
190
- required: false,
191
- default: undefined,
192
- },
193
- signUpText: {
194
- type: String,
195
- required: false,
196
- default: undefined,
197
- },
198
- signUpUrl: {
199
- type: String,
200
- required: false,
201
- default: undefined,
202
- },
203
- forgotPasswordUrl: {
204
- type: String,
205
- required: true,
206
- },
207
- loginWithGoogleUrl: {
208
- type: String,
209
- required: false,
210
- default: undefined,
211
- },
212
- loginWithFacebookUrl: {
213
- type: String,
214
- required: false,
215
- default: undefined,
216
- },
217
- termsOfUseUrl: {
218
- type: String,
219
- required: true,
220
- },
221
- privacyPolicyUrl: {
222
- type: String,
223
- required: true,
224
- },
225
- antiForgeryToken: {
226
- type: String,
227
- required: true,
228
- },
229
- helloBar: {
230
- type: Object,
231
- required: false,
232
- default: undefined,
233
- },
234
- recommendedActionLink: {
235
- type: String,
236
- default: undefined,
237
- },
238
- initialUserName: {
239
- type: String,
240
- required: false,
241
- default: undefined,
242
- },
243
- isModal: {
244
- type: Boolean,
245
- required: false,
246
- default: false,
247
- },
248
- capturePassword: {
249
- type: Boolean,
250
- required: false,
251
- default: true,
252
- },
253
- emailLoading: {
254
- type: Boolean,
255
- required: false,
256
- default: false,
257
- },
258
- facebookLoading: {
259
- type: Boolean,
260
- required: false,
261
- default: false,
262
- },
263
- googleLoading: {
264
- type: Boolean,
265
- required: false,
266
- default: false,
267
- },
268
- onForgotPassword: {
269
- type: Function,
270
- required: false,
271
- default: undefined,
272
- },
273
- submissionButtonLabel: {
274
- type: String,
275
- required: false,
276
- default: 'Continue',
277
- },
278
- isDesignCom: {
279
- type: Boolean,
280
- default: false,
281
- },
282
- // hooks
283
- preFacebookLoginHook: {
284
- type: Function,
285
- required: false,
286
- default: undefined,
287
- },
288
- preGoogleLoginHook: {
289
- type: Function,
290
- required: false,
291
- default: undefined,
292
- },
293
- },
294
- data() {
295
- return {
296
- aUserName: this.initialUserName,
297
- password: undefined,
298
- userNameError: undefined,
299
- passwordError: undefined,
300
- };
301
- },
302
- computed: {
303
- isLoading() {
304
- return this.emailLoading || this.facebookLoading || this.googleLoading;
305
- },
306
- submissionButtonLabelLowercase() {
307
- return this.submissionButtonLabel.toLowerCase();
308
- },
309
- getSignUpUrl() {
310
- if (typeof window === 'undefined') {
311
- return null;
312
- }
313
-
314
- const url = new URL(`https://${window.location.host}${this.signUpUrl}`);
315
-
316
- if (this.aUserName) {
317
- url.searchParams.append('initialUserName', this.aUserName);
318
- }
319
- return url;
320
- },
321
- getForgotPasswordUrl() {
322
- if (typeof window === 'undefined') {
323
- return null;
324
- }
325
-
326
- const url = new URL(`https://${window.location.host}${this.forgotPasswordUrl}`);
327
-
328
- if (this.aUserName) {
329
- url.searchParams.append('email', this.aUserName);
330
- }
331
- return url;
332
- },
333
- getRedirectToRecommendedActionUrl() {
334
- const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
335
- if (this.aUserName) {
336
- url.searchParams.append('email', this.aUserName);
337
- }
338
- return url?.toString();
339
- },
340
- submissionButtonLabelSize() {
341
- return this.submissionButtonLabel === 'LOGIN' ? 'smaller' : 'medium';
342
- },
343
- getSignUpText() {
344
- if (this.isPartnerTheme) {
345
- return SIGN_IN.SIGN_UP_TEXT[this.theme];
346
- }
347
- return this.signUpText;
348
- },
349
- },
350
- watch: {
351
- capturePassword() {
352
- this.clearErrorMessages();
353
- },
354
- initialUserName(newValue) {
355
- this.aUserName = newValue;
356
- },
357
- },
358
- methods: {
359
- validate(e) {
360
- this.clearErrorMessages();
361
- if (!this.aUserName || !isValidEmail(this.aUserName)) {
362
- this.userNameError = 'Please enter a valid email address';
363
- e.preventDefault();
364
- return false;
365
- }
366
-
367
- if (this.capturePassword && !this.password) {
368
- this.passwordError = 'Please enter a password';
369
- e.preventDefault();
370
- return false;
371
- }
372
-
373
- if (this.aUserName && this.isModal) {
374
- e.preventDefault();
375
-
376
- if (this.capturePassword && this.password) {
377
- this.$emit('sign-in-request-submitted', this.aUserName, this.password);
378
- } else {
379
- this.$emit('sign-in-request-submitted', this.aUserName);
380
- }
381
-
382
- return true;
383
- }
384
-
385
- if (this.aUserName && this.password) {
386
- return true;
387
- }
388
-
389
- e.preventDefault();
390
- return false;
391
- },
392
- forgotPasswordClick() {
393
- if (this.onForgotPassword) {
394
- this.onForgotPassword(this.aUserName);
395
- return;
396
- }
397
- window.location.href = this.getForgotPasswordUrl;
398
- },
399
- clearErrorMessages() {
400
- this.userNameError = undefined;
401
- this.passwordError = undefined;
402
- },
403
- },
404
- };
405
- </script>
406
- <style scoped>
407
- .email-input {
408
- background-image: url(https://dcstatic.com/images/icons/forms/forms-email-58207f9a5c.svg);
409
- background-position: top 50% left 0.5rem;
410
- }
411
- .password-input {
412
- background-image: url(https://dcstatic.com/images/icons/forms/forms-password-ff538cd5e4.svg);
413
- background-position: top 50% left 0.5rem;
414
- }
415
-
416
- .tw-pl-10-important {
417
- padding-left: 2.5rem !important;
418
- }
419
- </style>
1
+ <template>
2
+ <div :class="{ 'tw-mx-2 sm:tw-mx-8': !isModal }">
3
+ <div v-if="helloBar" class="tw-text-left tw-mt-8">
4
+ <HelloBar :label="helloBar.label" :description="helloBar.description" :variant="helloBar.variant">
5
+ <template #cta>
6
+ <Button
7
+ v-if="recommendedActionLink"
8
+ variant="secondary"
9
+ size="small"
10
+ label="RESET PASSWORD"
11
+ class="tw-hidden sm:tw-inline"
12
+ :url="getRedirectToRecommendedActionUrl"
13
+ />
14
+ <Button
15
+ v-if="recommendedActionLink"
16
+ variant="secondary"
17
+ size="medium"
18
+ label="RESET PASSWORD"
19
+ :full-width="true"
20
+ class="sm:tw-hidden tw-mt-2"
21
+ :url="getRedirectToRecommendedActionUrl"
22
+ />
23
+ </template>
24
+ </HelloBar>
25
+ </div>
26
+ <div
27
+ class="lg:tw-flex tw-items-start tw-justify-center"
28
+ :class="{ 'tw-px-2 tw-pb-8': isModal, 'tw-py-8': !isModal }"
29
+ >
30
+ <div
31
+ class="lg:tw-max-w-xl tw-flex tw-items-center tw-justify-center tw-flex-col tw-text-center tw-h-auto"
32
+ :class="[
33
+ formBackgroundClass,
34
+ {
35
+ 'tw-border tw-border-solid tw-border-grayscale-400': !isModal,
36
+ },
37
+ ]"
38
+ >
39
+ <div
40
+ class="tw-w-full"
41
+ :class="{
42
+ 'tw-p-4 md:tw-p-8': !isModal,
43
+ }"
44
+ >
45
+ <h2
46
+ v-if="title"
47
+ class="tw-text-center tw-text-4xl tw-font-bold"
48
+ :class="{
49
+ 'tw-mb-6': !description,
50
+ 'tw-mb-2': description,
51
+ }"
52
+ >
53
+ {{ title }}
54
+ </h2>
55
+ <p v-if="description" class="tw-text-center tw-mb-6 tw-text-grayscale-600 tw-mt-0">
56
+ {{ description }}
57
+ </p>
58
+ <div class="tw-flex tw-flex-col">
59
+ <div>
60
+ <form id="signin" action="/identity/account/signin" method="post" @submit="validate">
61
+ <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
62
+ <label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
63
+ <input
64
+ v-model="aUserName"
65
+ name="userName"
66
+ type="email"
67
+ data-test-email-input
68
+ aria-required="true"
69
+ :aria-invalid="!!userNameError"
70
+ autocomplete="email"
71
+ :placeholder="emailPlaceholderLabel"
72
+ class="email-input tw-mb-3 tw-h-12 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
73
+ :class="{ 'tw-border-error-500': !!userNameError }"
74
+ />
75
+ <p v-if="!!userNameError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
76
+ {{ userNameError }}
77
+ </p>
78
+ <label v-if="capturePassword" for="password" class="tw-sr-only"> {{ passwordPlaceholderLabel }} </label>
79
+ <input
80
+ v-if="capturePassword"
81
+ v-model="password"
82
+ name="password"
83
+ type="password"
84
+ data-test-password-input
85
+ aria-required="true"
86
+ :aria-invalid="!!passwordError"
87
+ autocomplete="current-password"
88
+ :placeholder="passwordPlaceholderLabel"
89
+ class="password-input tw-h-12 tw-mb-4 tw-bg-no-repeat tw-w-full tw-rounded tw-shadow-inner tw-outline-none tw-py-4 tw-pl-10-important tw-pr-2 tw-text-grayscale-600 tw-border tw-border-grayscale-500 focus:tw-border-grayscale-700"
90
+ :class="{ 'tw-border-error-500': !!passwordError }"
91
+ />
92
+ <p v-if="capturePassword && !!passwordError" class="tw-text-error-500 tw-text-sm tw-text-left tw-mb-4">
93
+ {{ passwordError }}
94
+ </p>
95
+ <p v-if="capturePassword" class="tw-w-full tw-text-left tw-mb-4">
96
+ <a class="tw-text-info-500 tw-cursor-pointer hover:tw-underline" @click="forgotPasswordClick()">
97
+ {{ forgotPasswordLabel }}
98
+ </a>
99
+ </p>
100
+ <SubmissionButton
101
+ data-test-login-button
102
+ variant="primary"
103
+ size="medium"
104
+ :label="submissionButtonLabel"
105
+ :label-size="submissionButtonLabelSize"
106
+ :is-loading="emailLoading"
107
+ :disabled="emailLoading"
108
+ >
109
+ </SubmissionButton>
110
+ </form>
111
+ <AuthLegal
112
+ :terms-of-use-url="termsOfUseUrl"
113
+ :privacy-policy-url="privacyPolicyUrl"
114
+ :theme="theme"
115
+ :available-themes="availableThemes"
116
+ :is-design-com="isDesignCom"
117
+ :terms-and-conditions="termsAndConditions"
118
+ :terms-and-conditions-content-key-path="termsAndConditionsContentKeyPath"
119
+ />
120
+ </div>
121
+
122
+ <div v-if="!!loginWithFacebookUrl || !!loginWithGoogleUrl" class="tw-text-center tw-text-grayscale-600">
123
+ <div class="tw-w-full tw-inline-flex tw-items-center tw-mb-4">
124
+ <div
125
+ class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"
126
+ ></div>
127
+ <span class="tw-px-4"> {{ orLabel }} </span>
128
+ <div
129
+ class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"
130
+ ></div>
131
+ </div>
132
+ </div>
133
+ <div>
134
+ <SocialSignIn
135
+ :login-with-google-url="loginWithGoogleUrl"
136
+ :login-with-facebook-url="loginWithFacebookUrl"
137
+ :anti-forgery-token="antiForgeryToken"
138
+ :pre-facebook-login-hook="preFacebookLoginHook"
139
+ :pre-google-login-hook="preGoogleLoginHook"
140
+ :disabled="isLoading"
141
+ :facebook-loading="facebookLoading"
142
+ :google-loading="googleLoading"
143
+ :login-with-google-label="loginWithGoogleLabel"
144
+ :login-with-facebook-label="loginWithFacebookLabel"
145
+ />
146
+ </div>
147
+ </div>
148
+ </div>
149
+ <div
150
+ v-if="isModal === false && !!signUpText && !!signUpUrl"
151
+ class="tw-order-last tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
152
+ >
153
+ <p>
154
+ {{ getSignUpText }}
155
+ <a :href="signUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
156
+ signUpLabel
157
+ }}</a>
158
+ </p>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </template>
164
+ <script>
165
+ import HelloBar from '../../../atoms/components/HelloBar/HelloBar.vue';
166
+ import Button from '../../../atoms/components/Button/Button.vue';
167
+ import SubmissionButton from './SubmissionButton.vue';
168
+ import AuthLegal from './AuthLegal.vue';
169
+ import themeMixin from '../../mixins/themeMixin';
170
+ import { SIGN_IN } from '../../constants/partner-dictionary-constants';
171
+ import isValidEmail from '../../helpers/email-validator';
172
+ import SocialSignIn from './SocialSignIn.vue';
173
+
174
+ export default {
175
+ components: {
176
+ HelloBar,
177
+ Button,
178
+ SocialSignIn,
179
+ SubmissionButton,
180
+ AuthLegal,
181
+ },
182
+ mixins: [themeMixin],
183
+ props: {
184
+ title: {
185
+ type: String,
186
+ required: false,
187
+ default: undefined,
188
+ },
189
+ description: {
190
+ type: String,
191
+ required: false,
192
+ default: undefined,
193
+ },
194
+ formBackgroundClass: {
195
+ type: String,
196
+ required: false,
197
+ default: undefined,
198
+ },
199
+ signUpText: {
200
+ type: String,
201
+ required: false,
202
+ default: undefined,
203
+ },
204
+ signUpUrl: {
205
+ type: String,
206
+ required: false,
207
+ default: undefined,
208
+ },
209
+ forgotPasswordUrl: {
210
+ type: String,
211
+ required: true,
212
+ },
213
+ loginWithGoogleUrl: {
214
+ type: String,
215
+ required: false,
216
+ default: undefined,
217
+ },
218
+ loginWithFacebookUrl: {
219
+ type: String,
220
+ required: false,
221
+ default: undefined,
222
+ },
223
+ termsOfUseUrl: {
224
+ type: String,
225
+ required: true,
226
+ },
227
+ privacyPolicyUrl: {
228
+ type: String,
229
+ required: true,
230
+ },
231
+ antiForgeryToken: {
232
+ type: String,
233
+ required: true,
234
+ },
235
+ helloBar: {
236
+ type: Object,
237
+ required: false,
238
+ default: undefined,
239
+ },
240
+ recommendedActionLink: {
241
+ type: String,
242
+ default: undefined,
243
+ },
244
+ initialUserName: {
245
+ type: String,
246
+ required: false,
247
+ default: undefined,
248
+ },
249
+ isModal: {
250
+ type: Boolean,
251
+ required: false,
252
+ default: false,
253
+ },
254
+ capturePassword: {
255
+ type: Boolean,
256
+ required: false,
257
+ default: true,
258
+ },
259
+ emailLoading: {
260
+ type: Boolean,
261
+ required: false,
262
+ default: false,
263
+ },
264
+ facebookLoading: {
265
+ type: Boolean,
266
+ required: false,
267
+ default: false,
268
+ },
269
+ googleLoading: {
270
+ type: Boolean,
271
+ required: false,
272
+ default: false,
273
+ },
274
+ onForgotPassword: {
275
+ type: Function,
276
+ required: false,
277
+ default: undefined,
278
+ },
279
+ submissionButtonLabel: {
280
+ type: String,
281
+ required: false,
282
+ default: 'Continue',
283
+ },
284
+ isDesignCom: {
285
+ type: Boolean,
286
+ default: false,
287
+ },
288
+ // hooks
289
+ preFacebookLoginHook: {
290
+ type: Function,
291
+ required: false,
292
+ default: undefined,
293
+ },
294
+ preGoogleLoginHook: {
295
+ type: Function,
296
+ required: false,
297
+ default: undefined,
298
+ },
299
+ termsAndConditions: {
300
+ type: Object,
301
+ required: false,
302
+ default: undefined,
303
+ },
304
+ termsAndConditionsContentKeyPath: {
305
+ type: String,
306
+ required: false,
307
+ default: undefined,
308
+ },
309
+ signInContent: {
310
+ type: Object,
311
+ required: false,
312
+ default: () => {},
313
+ },
314
+ },
315
+ data() {
316
+ return {
317
+ aUserName: this.initialUserName,
318
+ password: undefined,
319
+ userNameError: undefined,
320
+ passwordError: undefined,
321
+ loginWithGoogleLabel: this.signInContent.loginWithGoogleLabel,
322
+ loginWithFacebookLabel: this.signInContent.loginWithFacebookLabel,
323
+ invalidUsernameErrorLabel: this.signInContent.invalidUsernameErrorLabel ?? 'Please enter a valid email address',
324
+ missingPasswordErrorLabel: this.signInContent.missingPasswordErrorLabel ?? 'Please enter a password',
325
+ emailLabel: this.signInContent.emailLabel ?? 'Email',
326
+ emailPlaceholderLabel: this.signInContent.emailPlaceholderLabel ?? 'Email Address',
327
+ passwordPlaceholderLabel: this.signInContent.passwordPlaceholderLabel ?? 'Password',
328
+ forgotPasswordLabel: this.signInContent.forgotPasswordLabel ?? 'Forgot Password?',
329
+ orLabel: this.signInContent.orLabel ?? 'or',
330
+ signUpLabel: this.signInContent.signUpLabel ?? 'Sign Up',
331
+ };
332
+ },
333
+ computed: {
334
+ isLoading() {
335
+ return this.emailLoading || this.facebookLoading || this.googleLoading;
336
+ },
337
+ submissionButtonLabelLowercase() {
338
+ return this.submissionButtonLabel.toLowerCase();
339
+ },
340
+ getForgotPasswordUrl() {
341
+ if (typeof window === 'undefined') {
342
+ return null;
343
+ }
344
+
345
+ const url = new URL(`https://${window.location.host}${this.forgotPasswordUrl}`);
346
+
347
+ if (this.aUserName) {
348
+ url.searchParams.append('email', this.aUserName);
349
+ }
350
+ return url;
351
+ },
352
+ getRedirectToRecommendedActionUrl() {
353
+ if (typeof window === 'undefined') {
354
+ return null;
355
+ }
356
+
357
+ const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
358
+ if (this.aUserName) {
359
+ url.searchParams.append('email', this.aUserName);
360
+ }
361
+ return url?.toString();
362
+ },
363
+ submissionButtonLabelSize() {
364
+ return this.submissionButtonLabel === 'LOGIN' ? 'smaller' : 'medium';
365
+ },
366
+ getSignUpText() {
367
+ if (this.isPartnerTheme) {
368
+ return SIGN_IN.SIGN_UP_TEXT[this.theme];
369
+ }
370
+ return this.signUpText;
371
+ },
372
+ },
373
+ watch: {
374
+ capturePassword() {
375
+ this.clearErrorMessages();
376
+ },
377
+ initialUserName(newValue) {
378
+ this.aUserName = newValue;
379
+ },
380
+ },
381
+ methods: {
382
+ validate(e) {
383
+ this.clearErrorMessages();
384
+ if (!this.aUserName || !isValidEmail(this.aUserName)) {
385
+ this.userNameError = this.invalidUsernameErrorLabel;
386
+ e.preventDefault();
387
+ return false;
388
+ }
389
+
390
+ if (this.capturePassword && !this.password) {
391
+ this.passwordError = this.missingPasswordErrorLabel;
392
+ e.preventDefault();
393
+ return false;
394
+ }
395
+
396
+ if (this.aUserName && this.isModal) {
397
+ e.preventDefault();
398
+
399
+ if (this.capturePassword && this.password) {
400
+ this.$emit('sign-in-request-submitted', this.aUserName, this.password);
401
+ } else {
402
+ this.$emit('sign-in-request-submitted', this.aUserName);
403
+ }
404
+
405
+ return true;
406
+ }
407
+
408
+ if (this.aUserName && this.password) {
409
+ return true;
410
+ }
411
+
412
+ e.preventDefault();
413
+ return false;
414
+ },
415
+ forgotPasswordClick() {
416
+ if (this.onForgotPassword) {
417
+ this.onForgotPassword(this.aUserName);
418
+ return;
419
+ }
420
+ window.location.href = this.getForgotPasswordUrl;
421
+ },
422
+ clearErrorMessages() {
423
+ this.userNameError = undefined;
424
+ this.passwordError = undefined;
425
+ },
426
+ },
427
+ };
428
+ </script>
429
+ <style scoped>
430
+ .email-input {
431
+ background-image: url(https://dcstatic.com/images/icons/forms/forms-email-58207f9a5c.svg);
432
+ background-position: top 50% left 0.5rem;
433
+ }
434
+ .password-input {
435
+ background-image: url(https://dcstatic.com/images/icons/forms/forms-password-ff538cd5e4.svg);
436
+ background-position: top 50% left 0.5rem;
437
+ }
438
+
439
+ .tw-pl-10-important {
440
+ padding-left: 2.5rem !important;
441
+ }
442
+ </style>