@designcrowd/fe-shared-lib 1.0.9 → 1.0.10

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 (515) 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/Dockerfile +41 -41
  10. package/README.md +103 -103
  11. package/buildspec.yml +46 -46
  12. package/index.cjs +16 -16
  13. package/index.js +54 -53
  14. package/package.json +109 -109
  15. package/postcss.config.js +5 -5
  16. package/public/css/tailwind-brandCrowd.css +2368 -0
  17. package/public/css/tailwind-brandPage.css +2056 -0
  18. package/public/css/tailwind-crazyDomains.css +2368 -0
  19. package/public/css/tailwind-designCom.css +2368 -0
  20. package/public/css/tailwind-designCrowd.css +2368 -0
  21. package/src/atoms/components/Button/Button.vue +323 -323
  22. package/src/atoms/components/Button/ButtonVariant.mixin.vue +126 -126
  23. package/src/atoms/components/Button/Buttons.stories.js +778 -778
  24. package/src/atoms/components/Button/ButtonsCrazyDomains.stories.js +117 -117
  25. package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +52 -52
  26. package/src/atoms/components/Button/variants/ButtonFlat.vue +65 -65
  27. package/src/atoms/components/Button/variants/ButtonGray.vue +64 -64
  28. package/src/atoms/components/Button/variants/ButtonInfo.vue +51 -51
  29. package/src/atoms/components/Button/variants/ButtonInfoFilled.vue +63 -63
  30. package/src/atoms/components/Button/variants/ButtonNoBorder.vue +65 -65
  31. package/src/atoms/components/Button/variants/ButtonOutline.vue +62 -62
  32. package/src/atoms/components/Button/variants/ButtonOutlineNoHover.vue +62 -62
  33. package/src/atoms/components/Button/variants/ButtonOutlineSuccess.vue +54 -54
  34. package/src/atoms/components/Button/variants/ButtonPill.vue +52 -52
  35. package/src/atoms/components/Button/variants/ButtonPrimary.vue +69 -69
  36. package/src/atoms/components/Button/variants/ButtonPrimaryWithIcon.vue +68 -68
  37. package/src/atoms/components/Button/variants/ButtonSecondary.vue +51 -51
  38. package/src/atoms/components/Button/variants/ButtonSuccess.vue +55 -55
  39. package/src/atoms/components/Button/variants/ButtonWarning.vue +65 -65
  40. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsOutline.vue +58 -58
  41. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsPrimary.vue +38 -38
  42. package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +562 -562
  43. package/src/atoms/components/ButtonGroup/ButtonGroup.vue +188 -188
  44. package/src/atoms/components/Carousel/Carousel.fixtures.js +35 -35
  45. package/src/atoms/components/Carousel/Carousel.vue +352 -352
  46. package/src/atoms/components/Carousel/carousel.stories.js +261 -261
  47. package/src/atoms/components/Checkbox/Checkbox.mixin.js +57 -57
  48. package/src/atoms/components/Checkbox/Checkbox.stories.js +206 -206
  49. package/src/atoms/components/Checkbox/Checkbox.vue +89 -89
  50. package/src/atoms/components/Checktile/Checktile.stories.js +79 -79
  51. package/src/atoms/components/Checktile/Checktile.vue +73 -73
  52. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.mixin.js +34 -34
  53. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.stories.js +40 -40
  54. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.vue +30 -30
  55. package/src/atoms/components/ColorPicker/ColorPicker.stories.js +89 -89
  56. package/src/atoms/components/ColorPicker/ColorPicker.vue +95 -95
  57. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.stories.js +41 -41
  58. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue +71 -71
  59. package/src/atoms/components/Dropdown/Dropdown.stories.js +140 -140
  60. package/src/atoms/components/Dropdown/Dropdown.vue +108 -108
  61. package/src/atoms/components/Dropdown/DropdownItem.vue +21 -21
  62. package/src/atoms/components/FormControl/FormControl.mixin.js +127 -127
  63. package/src/atoms/components/HelloBar/HelloBar.stories.js +195 -195
  64. package/src/atoms/components/HelloBar/HelloBar.vue +156 -156
  65. package/src/atoms/components/Icon/Icon.stories.js +385 -385
  66. package/src/atoms/components/Icon/Icon.vue +802 -802
  67. package/src/atoms/components/Icon/icons/add-page.vue +6 -6
  68. package/src/atoms/components/Icon/icons/ai.vue +6 -6
  69. package/src/atoms/components/Icon/icons/arrow-down.vue +6 -6
  70. package/src/atoms/components/Icon/icons/arrow-left.vue +7 -7
  71. package/src/atoms/components/Icon/icons/arrow-right.vue +7 -7
  72. package/src/atoms/components/Icon/icons/arrow-top-right.vue +6 -6
  73. package/src/atoms/components/Icon/icons/arrow-up-underline.vue +7 -7
  74. package/src/atoms/components/Icon/icons/arrow-up.vue +7 -7
  75. package/src/atoms/components/Icon/icons/attach.vue +6 -6
  76. package/src/atoms/components/Icon/icons/auth-facebook-white.vue +17 -17
  77. package/src/atoms/components/Icon/icons/auth-facebook.vue +24 -24
  78. package/src/atoms/components/Icon/icons/auth-google.vue +32 -32
  79. package/src/atoms/components/Icon/icons/background.vue +7 -7
  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/calendar.vue +5 -5
  88. package/src/atoms/components/Icon/icons/callout-error.vue +6 -6
  89. package/src/atoms/components/Icon/icons/callout-info.vue +6 -6
  90. package/src/atoms/components/Icon/icons/callout-success.vue +8 -8
  91. package/src/atoms/components/Icon/icons/callout-warning.vue +6 -6
  92. package/src/atoms/components/Icon/icons/card.vue +9 -9
  93. package/src/atoms/components/Icon/icons/cart-empty.vue +9 -9
  94. package/src/atoms/components/Icon/icons/check-thin.vue +7 -7
  95. package/src/atoms/components/Icon/icons/check.vue +3 -3
  96. package/src/atoms/components/Icon/icons/chevron-down.vue +7 -7
  97. package/src/atoms/components/Icon/icons/chevron-left.vue +7 -7
  98. package/src/atoms/components/Icon/icons/chevron-right-wide.vue +3 -3
  99. package/src/atoms/components/Icon/icons/chevron-right.vue +3 -3
  100. package/src/atoms/components/Icon/icons/chevron-up.vue +7 -7
  101. package/src/atoms/components/Icon/icons/close.vue +6 -6
  102. package/src/atoms/components/Icon/icons/community.vue +5 -5
  103. package/src/atoms/components/Icon/icons/contact-message.vue +10 -10
  104. package/src/atoms/components/Icon/icons/content.vue +7 -7
  105. package/src/atoms/components/Icon/icons/copy.vue +10 -10
  106. package/src/atoms/components/Icon/icons/crazy-domains/filter.vue +6 -6
  107. package/src/atoms/components/Icon/icons/crazy-domains/globe.vue +6 -6
  108. package/src/atoms/components/Icon/icons/crazy-domains/home.vue +6 -6
  109. package/src/atoms/components/Icon/icons/crazy-domains/social-facebook.vue +6 -6
  110. package/src/atoms/components/Icon/icons/crazy-domains/social-google.vue +6 -6
  111. package/src/atoms/components/Icon/icons/crazy-domains/social-instagram.vue +6 -6
  112. package/src/atoms/components/Icon/icons/crazy-domains/social-twitter.vue +6 -6
  113. package/src/atoms/components/Icon/icons/crazy-domains/social-youtube.vue +6 -6
  114. package/src/atoms/components/Icon/icons/crop.vue +6 -6
  115. package/src/atoms/components/Icon/icons/delete.vue +8 -8
  116. package/src/atoms/components/Icon/icons/designs.vue +6 -6
  117. package/src/atoms/components/Icon/icons/desktop.vue +7 -7
  118. package/src/atoms/components/Icon/icons/donate.vue +6 -6
  119. package/src/atoms/components/Icon/icons/download.vue +5 -5
  120. package/src/atoms/components/Icon/icons/duplicate.vue +6 -6
  121. package/src/atoms/components/Icon/icons/edit-line.vue +10 -10
  122. package/src/atoms/components/Icon/icons/edit.vue +6 -6
  123. package/src/atoms/components/Icon/icons/ellipsis.vue +6 -6
  124. package/src/atoms/components/Icon/icons/envelope-email.vue +9 -9
  125. package/src/atoms/components/Icon/icons/error.vue +8 -8
  126. package/src/atoms/components/Icon/icons/eye-crossed.vue +7 -7
  127. package/src/atoms/components/Icon/icons/fees.vue +6 -6
  128. package/src/atoms/components/Icon/icons/filter.vue +7 -7
  129. package/src/atoms/components/Icon/icons/filters.vue +6 -6
  130. package/src/atoms/components/Icon/icons/flag.vue +6 -6
  131. package/src/atoms/components/Icon/icons/flip-horizontal.vue +7 -7
  132. package/src/atoms/components/Icon/icons/flip-vertical.vue +7 -7
  133. package/src/atoms/components/Icon/icons/folder.vue +6 -6
  134. package/src/atoms/components/Icon/icons/footer-centered.vue +7 -7
  135. package/src/atoms/components/Icon/icons/footer-left.vue +7 -7
  136. package/src/atoms/components/Icon/icons/form-message.vue +6 -6
  137. package/src/atoms/components/Icon/icons/form.vue +5 -5
  138. package/src/atoms/components/Icon/icons/fullscreen-exit.vue +5 -5
  139. package/src/atoms/components/Icon/icons/fullscreen.vue +5 -5
  140. package/src/atoms/components/Icon/icons/globe.vue +6 -6
  141. package/src/atoms/components/Icon/icons/godaddy/logo.vue +5 -5
  142. package/src/atoms/components/Icon/icons/hamburger.vue +7 -7
  143. package/src/atoms/components/Icon/icons/home.vue +7 -7
  144. package/src/atoms/components/Icon/icons/icon-style-circle-bg.vue +22 -22
  145. package/src/atoms/components/Icon/icons/icon-style-no-bg.vue +16 -16
  146. package/src/atoms/components/Icon/icons/icon-style-square-bg.vue +22 -22
  147. package/src/atoms/components/Icon/icons/image-gallery-carousel.vue +7 -7
  148. package/src/atoms/components/Icon/icons/image-gallery-grid.vue +7 -7
  149. package/src/atoms/components/Icon/icons/image-gallery-masonry.vue +6 -6
  150. package/src/atoms/components/Icon/icons/images-gallery.vue +5 -5
  151. package/src/atoms/components/Icon/icons/images.vue +7 -7
  152. package/src/atoms/components/Icon/icons/info.vue +9 -9
  153. package/src/atoms/components/Icon/icons/jobs.vue +8 -8
  154. package/src/atoms/components/Icon/icons/layer-bring-front.vue +6 -6
  155. package/src/atoms/components/Icon/icons/layer-send-back.vue +6 -6
  156. package/src/atoms/components/Icon/icons/layer.vue +6 -6
  157. package/src/atoms/components/Icon/icons/layout/display-style-about-1.vue +20 -20
  158. package/src/atoms/components/Icon/icons/layout/display-style-about-2.vue +20 -20
  159. package/src/atoms/components/Icon/icons/layout/display-style-about-3.vue +20 -20
  160. package/src/atoms/components/Icon/icons/layout/display-style-about-4.vue +32 -32
  161. package/src/atoms/components/Icon/icons/layout/display-style-about-5.vue +27 -27
  162. package/src/atoms/components/Icon/icons/layout/display-style-about-6.vue +27 -27
  163. package/src/atoms/components/Icon/icons/layout/display-style-banner-1.vue +20 -20
  164. package/src/atoms/components/Icon/icons/layout/display-style-banner-2.vue +20 -20
  165. package/src/atoms/components/Icon/icons/layout/display-style-banner-3.vue +20 -20
  166. package/src/atoms/components/Icon/icons/layout/display-style-banner-4.vue +20 -20
  167. package/src/atoms/components/Icon/icons/layout/display-style-banner-5.vue +20 -20
  168. package/src/atoms/components/Icon/icons/layout/display-style-banner-6.vue +27 -27
  169. package/src/atoms/components/Icon/icons/layout/display-style-banner-7.vue +27 -27
  170. package/src/atoms/components/Icon/icons/layout/display-style-banner-8.vue +20 -20
  171. package/src/atoms/components/Icon/icons/layout/display-style-banner-9.vue +20 -20
  172. package/src/atoms/components/Icon/icons/layout/display-style-contact-1.vue +24 -24
  173. package/src/atoms/components/Icon/icons/layout/display-style-contact-2.vue +24 -24
  174. package/src/atoms/components/Icon/icons/layout/display-style-contact-4.vue +24 -24
  175. package/src/atoms/components/Icon/icons/layout/display-style-contact-5.vue +39 -39
  176. package/src/atoms/components/Icon/icons/layout/display-style-contact-6.vue +39 -39
  177. package/src/atoms/components/Icon/icons/layout/footer/display-style-1.vue +7 -7
  178. package/src/atoms/components/Icon/icons/layout/footer/display-style-2.vue +16 -16
  179. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-1.vue +17 -17
  180. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-2.vue +17 -17
  181. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-1.vue +17 -17
  182. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-2.vue +17 -17
  183. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-3.vue +13 -13
  184. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-4.vue +13 -13
  185. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-5.vue +17 -17
  186. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-6.vue +17 -17
  187. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-1.vue +16 -16
  188. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-2.vue +16 -16
  189. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-3.vue +16 -16
  190. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-1.vue +17 -17
  191. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-2.vue +17 -17
  192. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-3.vue +17 -17
  193. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-4.vue +21 -21
  194. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-1.vue +17 -17
  195. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-2.vue +17 -17
  196. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-1.vue +16 -16
  197. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-2.vue +16 -16
  198. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-3.vue +16 -16
  199. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-normal.vue +7 -7
  200. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-small.vue +7 -7
  201. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-small-text-center-normal.vue +7 -7
  202. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-bottom.vue +11 -11
  203. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-circle.vue +10 -10
  204. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-top.vue +11 -11
  205. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-center-normal.vue +7 -7
  206. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-justify-normal.vue +7 -7
  207. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-left-normal.vue +7 -7
  208. package/src/atoms/components/Icon/icons/layout/layout-icon-left-small-text-left-normal.vue +7 -7
  209. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-center-normal.vue +7 -7
  210. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-justify-normal.vue +7 -7
  211. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-right-normal.vue +7 -7
  212. package/src/atoms/components/Icon/icons/layout/layout-icon-right-small-text-right-normal.vue +7 -7
  213. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-normal.vue +7 -7
  214. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-small.vue +7 -7
  215. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-justify-normal.vue +7 -7
  216. package/src/atoms/components/Icon/icons/layout/layout-icon-top-small-text-center-normal.vue +7 -7
  217. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-1.vue +16 -16
  218. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-2.vue +10 -10
  219. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-3.vue +10 -10
  220. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-4.vue +23 -23
  221. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-1.vue +16 -16
  222. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-2.vue +7 -7
  223. package/src/atoms/components/Icon/icons/letterhead-filled.vue +5 -5
  224. package/src/atoms/components/Icon/icons/link.vue +6 -6
  225. package/src/atoms/components/Icon/icons/location.vue +6 -6
  226. package/src/atoms/components/Icon/icons/lock.vue +6 -6
  227. package/src/atoms/components/Icon/icons/mac-command.vue +7 -7
  228. package/src/atoms/components/Icon/icons/maker/align-center.vue +7 -7
  229. package/src/atoms/components/Icon/icons/maker/align-justify.vue +7 -7
  230. package/src/atoms/components/Icon/icons/maker/align-left.vue +7 -7
  231. package/src/atoms/components/Icon/icons/maker/align-right.vue +7 -7
  232. package/src/atoms/components/Icon/icons/maker/animate.vue +7 -7
  233. package/src/atoms/components/Icon/icons/maker/bold.vue +7 -7
  234. package/src/atoms/components/Icon/icons/maker/custom-landscape.vue +5 -5
  235. package/src/atoms/components/Icon/icons/maker/email-symbol.vue +5 -5
  236. package/src/atoms/components/Icon/icons/maker/email.vue +5 -5
  237. package/src/atoms/components/Icon/icons/maker/eraser.vue +5 -5
  238. package/src/atoms/components/Icon/icons/maker/etsy.vue +5 -5
  239. package/src/atoms/components/Icon/icons/maker/facebook.vue +5 -5
  240. package/src/atoms/components/Icon/icons/maker/favicon.vue +7 -7
  241. package/src/atoms/components/Icon/icons/maker/flyer.vue +7 -7
  242. package/src/atoms/components/Icon/icons/maker/gift-certificate.vue +5 -5
  243. package/src/atoms/components/Icon/icons/maker/globe.vue +5 -5
  244. package/src/atoms/components/Icon/icons/maker/image.vue +7 -7
  245. package/src/atoms/components/Icon/icons/maker/instagram.vue +7 -7
  246. package/src/atoms/components/Icon/icons/maker/invitation.vue +5 -5
  247. package/src/atoms/components/Icon/icons/maker/invoice.vue +5 -5
  248. package/src/atoms/components/Icon/icons/maker/italic.vue +7 -7
  249. package/src/atoms/components/Icon/icons/maker/link.vue +7 -7
  250. package/src/atoms/components/Icon/icons/maker/linkedin.vue +7 -7
  251. package/src/atoms/components/Icon/icons/maker/menu.vue +5 -5
  252. package/src/atoms/components/Icon/icons/maker/pause.vue +5 -5
  253. package/src/atoms/components/Icon/icons/maker/phone.vue +5 -5
  254. package/src/atoms/components/Icon/icons/maker/pinterest.vue +5 -5
  255. package/src/atoms/components/Icon/icons/maker/play.vue +5 -5
  256. package/src/atoms/components/Icon/icons/maker/postcard.vue +5 -5
  257. package/src/atoms/components/Icon/icons/maker/poster.vue +7 -7
  258. package/src/atoms/components/Icon/icons/maker/profile.vue +5 -5
  259. package/src/atoms/components/Icon/icons/maker/qrcode.vue +5 -5
  260. package/src/atoms/components/Icon/icons/maker/snapchat.vue +5 -5
  261. package/src/atoms/components/Icon/icons/maker/soundcloud.vue +7 -7
  262. package/src/atoms/components/Icon/icons/maker/strikethrough.vue +7 -7
  263. package/src/atoms/components/Icon/icons/maker/text.vue +7 -7
  264. package/src/atoms/components/Icon/icons/maker/thankyou-card.vue +5 -5
  265. package/src/atoms/components/Icon/icons/maker/tiktok.vue +5 -5
  266. package/src/atoms/components/Icon/icons/maker/tumblr.vue +5 -5
  267. package/src/atoms/components/Icon/icons/maker/twitch.vue +7 -7
  268. package/src/atoms/components/Icon/icons/maker/twitter.vue +5 -5
  269. package/src/atoms/components/Icon/icons/maker/underline.vue +7 -7
  270. package/src/atoms/components/Icon/icons/maker/uppercase.vue +14 -14
  271. package/src/atoms/components/Icon/icons/maker/video.vue +5 -5
  272. package/src/atoms/components/Icon/icons/maker/whatsapp.vue +7 -7
  273. package/src/atoms/components/Icon/icons/maker/youtube.vue +5 -5
  274. package/src/atoms/components/Icon/icons/maker/zoom.vue +5 -5
  275. package/src/atoms/components/Icon/icons/map.vue +6 -6
  276. package/src/atoms/components/Icon/icons/message.vue +6 -6
  277. package/src/atoms/components/Icon/icons/minus-circle-light.vue +7 -7
  278. package/src/atoms/components/Icon/icons/minus.vue +3 -3
  279. package/src/atoms/components/Icon/icons/mobile.vue +5 -5
  280. package/src/atoms/components/Icon/icons/opacity.vue +6 -6
  281. package/src/atoms/components/Icon/icons/other.vue +7 -7
  282. package/src/atoms/components/Icon/icons/page-buttons.vue +8 -8
  283. package/src/atoms/components/Icon/icons/page-hamburger.vue +9 -9
  284. package/src/atoms/components/Icon/icons/page-tabs.vue +9 -9
  285. package/src/atoms/components/Icon/icons/pages.vue +6 -6
  286. package/src/atoms/components/Icon/icons/palette.vue +6 -6
  287. package/src/atoms/components/Icon/icons/pause.vue +5 -5
  288. package/src/atoms/components/Icon/icons/payment.vue +8 -8
  289. package/src/atoms/components/Icon/icons/payments-featured.vue +6 -6
  290. package/src/atoms/components/Icon/icons/payments-textonly.vue +8 -8
  291. package/src/atoms/components/Icon/icons/payments-thumbnail.vue +9 -9
  292. package/src/atoms/components/Icon/icons/phone.vue +6 -6
  293. package/src/atoms/components/Icon/icons/plus-circle-light.vue +8 -8
  294. package/src/atoms/components/Icon/icons/plus-circle.vue +7 -7
  295. package/src/atoms/components/Icon/icons/plus.vue +3 -3
  296. package/src/atoms/components/Icon/icons/poll.vue +3 -3
  297. package/src/atoms/components/Icon/icons/portfolio.vue +10 -10
  298. package/src/atoms/components/Icon/icons/preview.vue +6 -6
  299. package/src/atoms/components/Icon/icons/printing.vue +6 -6
  300. package/src/atoms/components/Icon/icons/processing.vue +5 -5
  301. package/src/atoms/components/Icon/icons/question.vue +11 -11
  302. package/src/atoms/components/Icon/icons/ratio-1-1.vue +3 -3
  303. package/src/atoms/components/Icon/icons/ratio-16-9.vue +1 -1
  304. package/src/atoms/components/Icon/icons/ratio-2-3.vue +3 -3
  305. package/src/atoms/components/Icon/icons/ratio-3-2.vue +3 -3
  306. package/src/atoms/components/Icon/icons/ratio-3-4.vue +3 -3
  307. package/src/atoms/components/Icon/icons/ratio-4-3.vue +3 -3
  308. package/src/atoms/components/Icon/icons/ratio-9-16.vue +3 -3
  309. package/src/atoms/components/Icon/icons/ratio-circle.vue +8 -8
  310. package/src/atoms/components/Icon/icons/ratio-original.vue +11 -11
  311. package/src/atoms/components/Icon/icons/redo.vue +6 -6
  312. package/src/atoms/components/Icon/icons/reload.vue +6 -6
  313. package/src/atoms/components/Icon/icons/reorderable.vue +5 -5
  314. package/src/atoms/components/Icon/icons/request-payment.vue +6 -6
  315. package/src/atoms/components/Icon/icons/reset.vue +6 -6
  316. package/src/atoms/components/Icon/icons/search.vue +11 -11
  317. package/src/atoms/components/Icon/icons/secure.vue +7 -7
  318. package/src/atoms/components/Icon/icons/services.vue +7 -7
  319. package/src/atoms/components/Icon/icons/settings.vue +7 -7
  320. package/src/atoms/components/Icon/icons/shape.vue +5 -5
  321. package/src/atoms/components/Icon/icons/share.vue +8 -8
  322. package/src/atoms/components/Icon/icons/shop.vue +5 -5
  323. package/src/atoms/components/Icon/icons/sms.vue +5 -5
  324. package/src/atoms/components/Icon/icons/social-facebook-color.vue +9 -9
  325. package/src/atoms/components/Icon/icons/social-facebook.vue +5 -5
  326. package/src/atoms/components/Icon/icons/social-google.vue +5 -5
  327. package/src/atoms/components/Icon/icons/social-instagram-color.vue +24 -24
  328. package/src/atoms/components/Icon/icons/social-linkedin-color.vue +9 -9
  329. package/src/atoms/components/Icon/icons/social-share.vue +7 -7
  330. package/src/atoms/components/Icon/icons/social-twitter-color.vue +9 -9
  331. package/src/atoms/components/Icon/icons/star-filled.vue +6 -6
  332. package/src/atoms/components/Icon/icons/star-hollow.vue +6 -6
  333. package/src/atoms/components/Icon/icons/styles.vue +5 -5
  334. package/src/atoms/components/Icon/icons/submit.vue +5 -5
  335. package/src/atoms/components/Icon/icons/templates.vue +7 -7
  336. package/src/atoms/components/Icon/icons/text-image-center.vue +6 -6
  337. package/src/atoms/components/Icon/icons/text-image-justified.vue +7 -7
  338. package/src/atoms/components/Icon/icons/text-image-left.vue +9 -9
  339. package/src/atoms/components/Icon/icons/text-image-only.vue +5 -5
  340. package/src/atoms/components/Icon/icons/text-image-right.vue +9 -9
  341. package/src/atoms/components/Icon/icons/text-image.vue +13 -13
  342. package/src/atoms/components/Icon/icons/time.vue +8 -8
  343. package/src/atoms/components/Icon/icons/tooltip-bottom.vue +5 -5
  344. package/src/atoms/components/Icon/icons/tooltip-left.vue +5 -5
  345. package/src/atoms/components/Icon/icons/tooltip-right.vue +5 -5
  346. package/src/atoms/components/Icon/icons/tooltip-top.vue +5 -5
  347. package/src/atoms/components/Icon/icons/undo.vue +6 -6
  348. package/src/atoms/components/Icon/icons/upgrade-alt.vue +7 -7
  349. package/src/atoms/components/Icon/icons/upgrade.vue +9 -9
  350. package/src/atoms/components/Icon/icons/upload-arrow.vue +5 -5
  351. package/src/atoms/components/Icon/icons/upload.vue +5 -5
  352. package/src/atoms/components/Icon/icons/user-accounts.vue +5 -5
  353. package/src/atoms/components/Icon/icons/volume-muted.vue +5 -5
  354. package/src/atoms/components/Icon/icons/volume.vue +5 -5
  355. package/src/atoms/components/Icon/icons/watchlist-filled.vue +14 -14
  356. package/src/atoms/components/Icon/icons/watchlist-hollow-alt.vue +14 -14
  357. package/src/atoms/components/Icon/icons/watchlist-hollow.vue +6 -6
  358. package/src/atoms/components/Icon/icons/website-filled.vue +5 -5
  359. package/src/atoms/components/Icon/icons/website.vue +6 -6
  360. package/src/atoms/components/Icon/icons/wholesale.vue +6 -6
  361. package/src/atoms/components/Icon/icons/zoom-in.vue +5 -5
  362. package/src/atoms/components/Icon/icons/zoom-out.vue +5 -5
  363. package/src/atoms/components/Icon/icons/zoom.vue +11 -11
  364. package/src/atoms/components/Loader/Loader.vue +15 -15
  365. package/src/atoms/components/Masonry/Masonry.stories.js +48 -48
  366. package/src/atoms/components/Masonry/Masonry.vue +48 -48
  367. package/src/atoms/components/Masonry/fixtures.js +589 -589
  368. package/src/atoms/components/Modal/HashRouteModal.stories.js +68 -68
  369. package/src/atoms/components/Modal/HashRouteModal.vue +120 -120
  370. package/src/atoms/components/Modal/Modal.stories.js +303 -303
  371. package/src/atoms/components/Modal/Modal.vue +246 -246
  372. package/src/atoms/components/Notice/Notice.stories.js +174 -174
  373. package/src/atoms/components/Notice/Notice.vue +71 -71
  374. package/src/atoms/components/NumberStepper/NumberStepper.stories.js +51 -51
  375. package/src/atoms/components/NumberStepper/NumberStepper.vue +298 -298
  376. package/src/atoms/components/Picture/Picture.stories.js +90 -90
  377. package/src/atoms/components/Picture/Picture.vue +84 -84
  378. package/src/atoms/components/Picture/picture.fixtures.js +35 -35
  379. package/src/atoms/components/Pill/Pill.stories.js +20 -20
  380. package/src/atoms/components/Pill/Pill.vue +8 -8
  381. package/src/atoms/components/PillBar/PillBar.fixtures.js +941 -941
  382. package/src/atoms/components/PillBar/PillBar.stories.js +39 -39
  383. package/src/atoms/components/PillBar/PillBar.vue +62 -62
  384. package/src/atoms/components/Price/Price.fixtures.js +25 -25
  385. package/src/atoms/components/Price/Price.stories.js +173 -173
  386. package/src/atoms/components/Price/Price.vue +106 -106
  387. package/src/atoms/components/SearchBar/SearchBar.stories.js +21 -21
  388. package/src/atoms/components/SearchBar/SearchBar.vue +51 -51
  389. package/src/atoms/components/Select/Select.stories.js +142 -142
  390. package/src/atoms/components/Select/Select.vue +594 -594
  391. package/src/atoms/components/Select/pointerMixin.js +99 -99
  392. package/src/atoms/components/Select/selectMixin.js +340 -340
  393. package/src/atoms/components/StarRating/StarRating.stories.js +50 -50
  394. package/src/atoms/components/StarRating/StarRating.vue +84 -84
  395. package/src/atoms/components/TabMenu/TabMenu.stories.js +54 -54
  396. package/src/atoms/components/TabMenu/TabMenu.vue +44 -44
  397. package/src/atoms/components/TextCopyField/TextCopyField.stories.js +68 -68
  398. package/src/atoms/components/TextCopyField/TextCopyField.vue +75 -75
  399. package/src/atoms/components/TextInput/TextInput.stories.js +232 -232
  400. package/src/atoms/components/TextInput/TextInput.vue +156 -156
  401. package/src/atoms/components/Textarea/Textarea.stories.js +209 -209
  402. package/src/atoms/components/Textarea/Textarea.vue +109 -109
  403. package/src/atoms/components/Toggle/Toggle.stories.js +176 -176
  404. package/src/atoms/components/Toggle/Toggle.vue +69 -69
  405. package/src/atoms/components/Tooltip/Tooltip.stories.js +493 -493
  406. package/src/atoms/components/Tooltip/Tooltip.vue +196 -196
  407. package/src/atoms/components/design-com/Icon/Icon.stories.js +82 -82
  408. package/src/atoms/components/design-com/Icon/Icon.vue +150 -150
  409. package/src/atoms/components/design-com/Icon/icons/award.vue +7 -7
  410. package/src/atoms/components/design-com/Icon/icons/bulb.vue +7 -7
  411. package/src/atoms/components/design-com/Icon/icons/card.vue +7 -7
  412. package/src/atoms/components/design-com/Icon/icons/check-circle-light.vue +7 -7
  413. package/src/atoms/components/design-com/Icon/icons/chevron-down.vue +7 -7
  414. package/src/atoms/components/design-com/Icon/icons/chevron-left.vue +7 -7
  415. package/src/atoms/components/design-com/Icon/icons/chevron-right.vue +3 -3
  416. package/src/atoms/components/design-com/Icon/icons/chevron-up.vue +7 -7
  417. package/src/atoms/components/design-com/Icon/icons/diamond.vue +7 -7
  418. package/src/atoms/components/design-com/Icon/icons/download.vue +7 -7
  419. package/src/atoms/components/design-com/Icon/icons/file-empty.vue +7 -7
  420. package/src/atoms/components/design-com/Icon/icons/file.vue +7 -7
  421. package/src/atoms/components/design-com/Icon/icons/filter.vue +7 -7
  422. package/src/atoms/components/design-com/Icon/icons/font.vue +7 -7
  423. package/src/atoms/components/design-com/Icon/icons/headphones.vue +7 -7
  424. package/src/atoms/components/design-com/Icon/icons/heart.vue +7 -7
  425. package/src/atoms/components/design-com/Icon/icons/image.vue +7 -7
  426. package/src/atoms/components/design-com/Icon/icons/logo.vue +7 -7
  427. package/src/atoms/components/design-com/Icon/icons/minus-circle-light.vue +7 -7
  428. package/src/atoms/components/design-com/Icon/icons/plus-circle-light.vue +8 -8
  429. package/src/atoms/components/design-com/Icon/icons/question-circle-filled.vue +7 -7
  430. package/src/atoms/components/design-com/Icon/icons/search.vue +7 -7
  431. package/src/atoms/components/design-com/Icon/icons/star-filled.vue +6 -6
  432. package/src/atoms/components/design-com/Icon/icons/star-hollow.vue +6 -6
  433. package/src/atoms/components/design-com/Icon/icons/users.vue +7 -7
  434. package/src/atoms/constants/constants.ts +6 -6
  435. package/src/atoms/mixin/hash-router-mixin.js +68 -68
  436. package/src/atoms/thirdparty-components/VueMasonryWall/VueMasonryWall.vue +280 -280
  437. package/src/atoms/thirdparty-components/VueMasonryWall/maxBy.js +50 -50
  438. package/src/css/tailwind.css +3 -3
  439. package/src/experiences/clients/brand-crowd-api.client.js +104 -104
  440. package/src/experiences/clients/brand-page-api.client.js +30 -30
  441. package/src/experiences/components/AuthFlow/Auth.fixtures.js +4 -4
  442. package/src/experiences/components/AuthFlow/Auth.stories.js +345 -345
  443. package/src/experiences/components/AuthFlow/AuthCrazyDomains.stories.js +60 -60
  444. package/src/experiences/components/AuthFlow/AuthLegal.vue +108 -108
  445. package/src/experiences/components/AuthFlow/AuthModal.vue +39 -39
  446. package/src/experiences/components/AuthFlow/ForgotPassword.vue +210 -210
  447. package/src/experiences/components/AuthFlow/ForgotPasswordModal.vue +68 -68
  448. package/src/experiences/components/AuthFlow/ResetPassword.vue +150 -150
  449. package/src/experiences/components/AuthFlow/ResetPasswordModal.vue +64 -64
  450. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +56 -56
  451. package/src/experiences/components/AuthFlow/SignIn.vue +442 -442
  452. package/src/experiences/components/AuthFlow/SignUp.vue +272 -272
  453. package/src/experiences/components/AuthFlow/SignUpModal.vue +90 -90
  454. package/src/experiences/components/AuthFlow/SocialSignIn.vue +177 -177
  455. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +74 -74
  456. package/src/experiences/components/AuthFlow/SubmissionButton.vue +56 -56
  457. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +91 -91
  458. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +121 -121
  459. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +189 -189
  460. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +45 -45
  461. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +115 -0
  462. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +203 -240
  463. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +86 -16
  464. package/src/experiences/components/PublishBrandPageModal/__fixtures__/data.js +25 -25
  465. package/src/experiences/components/SellDomainNameList/SellDomainNameList.fixtures.js +32 -32
  466. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +145 -145
  467. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +74 -74
  468. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +124 -124
  469. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +163 -163
  470. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +153 -153
  471. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.stories.js +38 -38
  472. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +184 -184
  473. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.stories.js +40 -40
  474. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +152 -152
  475. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.stories.js +205 -205
  476. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +127 -127
  477. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.stories.js +40 -40
  478. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +266 -266
  479. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.stories.js +37 -37
  480. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +328 -328
  481. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +140 -140
  482. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +467 -467
  483. package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +97 -97
  484. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +69 -69
  485. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +49 -49
  486. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +38 -38
  487. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +91 -91
  488. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +22 -22
  489. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +290 -290
  490. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.stories.js +82 -82
  491. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +201 -201
  492. package/src/experiences/constants/api.js +8 -8
  493. package/src/experiences/constants/error-constants.js +5 -5
  494. package/src/experiences/constants/event-constants.js +18 -18
  495. package/src/experiences/constants/partner-dictionary-constants.js +27 -27
  496. package/src/experiences/constants/rego-source-constants.js +3 -3
  497. package/src/experiences/constants/sell-domain-name-constants.js +4 -4
  498. package/src/experiences/helpers/email-validator.js +5 -5
  499. package/src/experiences/helpers/hex-diff.js +116 -116
  500. package/src/experiences/helpers/tracking.js +5 -5
  501. package/src/experiences/mixins/mediaQueryMixin.js +31 -31
  502. package/src/experiences/mixins/themeMixin.js +22 -22
  503. package/src/themes/base.js +20 -20
  504. package/src/themes/bc.js +95 -95
  505. package/src/themes/bp.js +21 -21
  506. package/src/themes/cd.js +94 -94
  507. package/src/themes/dc.js +84 -84
  508. package/src/themes/dcom.js +106 -106
  509. package/src/themes/themes.js +16 -16
  510. package/src/viewports.js +51 -51
  511. package/stylelint.config.js +19 -19
  512. package/tailwind.build.js +83 -83
  513. package/tailwind.config.js +37 -37
  514. package/tailwind.themes.js +59 -59
  515. package/vite.config.ts +37 -37
@@ -1,323 +1,323 @@
1
- <template>
2
- <div :class="[{ 'tw-w-full': fullWidth }, containerClasses]">
3
- <component
4
- :is="`button-${theme || 'brandCrowd'}-${variant}`"
5
- v-bind="dataAttribute ? { [dataAttribute]: '' } : {}"
6
- data-scl-button
7
- :attrs="attrs"
8
- :size="size"
9
- :classes="classes"
10
- :disabled="disabled"
11
- :is-busy="isBusy"
12
- :download="download"
13
- :icon="icon"
14
- :icon-view-box="iconViewBox"
15
- :url="url"
16
- :full-width="fullWidth"
17
- :full-height="fullHeight"
18
- :rounded="rounded"
19
- :rounded-left="roundedLeft"
20
- :rounded-right="roundedRight"
21
- :on-click="onClick"
22
- :target="target"
23
- :active="active"
24
- :white="white"
25
- :type="type"
26
- >
27
- <div v-if="iconTop" class="tw-mb-1 tw-flex tw-w-full tw-flex-col tw-items-center">
28
- <Icon :name="iconTop" :size="iconTopSize" :color="iconColor" />
29
- </div>
30
- <span
31
- class="tw-w-full tw-flex"
32
- :class="{
33
- 'tw-justify-center': justify === 'center',
34
- 'tw-justify-between': justify === 'between',
35
- }"
36
- >
37
- <span
38
- class="tw-inline-flex tw-items-center"
39
- :class="{
40
- 'tw-opacity-50': greyOutLeft === true,
41
- }"
42
- >
43
- <Icon v-if="iconOnly" class="tw-flex tw-items-center" :name="icon" :size="iconSize" :color="iconColor" />
44
- <Icon
45
- v-if="iconLeft && !iconOnly"
46
- class="tw-mr-2 tw-flex tw-items-center"
47
- :name="iconLeft"
48
- :size="iconLeftSize"
49
- :color="iconColor"
50
- />
51
- <span
52
- v-if="isBusy"
53
- :class="{
54
- 'tw-my-auto tw-w-4 tw-h-4': true,
55
- 'tw-mr-2': isBusyLabel,
56
- }"
57
- >
58
- <Icon class="tw-animate-spin tw-w-4 tw-h-4" name="processing" />
59
- </span>
60
- <span v-if="!isBusy && !iconOnly && showLabel" class="tw-my-auto tw-text-center">{{ label }}</span>
61
- <span v-if="isBusy && isBusyLabel" class="tw-my-auto tw-text-center">{{ isBusyLabel }}</span>
62
- </span>
63
- <Icon
64
- v-if="iconRight && !iconOnly"
65
- class="tw-ml-2 tw-flex tw-items-center"
66
- :name="iconRight"
67
- :size="iconRightSize"
68
- :color="iconColor"
69
- />
70
- </span>
71
- </component>
72
- </div>
73
- </template>
74
-
75
- <script>
76
- import ButtonOutline from './variants/ButtonOutline.vue';
77
- import ButtonPrimary from './variants/ButtonPrimary.vue';
78
- import ButtonWarning from './variants/ButtonWarning.vue';
79
- import ButtonSecondary from './variants/ButtonSecondary.vue';
80
- import ButtonInfoFilled from './variants/ButtonInfoFilled.vue';
81
- import ButtonGray from './variants/ButtonGray.vue';
82
- import ButtonPrimaryWithIcon from './variants/ButtonPrimaryWithIcon.vue';
83
- import ButtonSuccess from './variants/ButtonSuccess.vue';
84
- import ButtonOutlineSuccess from './variants/ButtonOutlineSuccess.vue';
85
- import ButtonNoHover from './variants/ButtonOutlineNoHover.vue';
86
-
87
- import ButtonInfo from './variants/ButtonInfo.vue';
88
- import ButtonCrazyDomainsPrimary from './variants/crazy-domains/ButtonCrazyDomainsPrimary.vue';
89
- import ButtonCrazyDomainsOutline from './variants/crazy-domains/ButtonCrazyDomainsOutline.vue';
90
- import ButtonNoBorder from './variants/ButtonNoBorder.vue';
91
- import ButtonFlat from './variants/ButtonFlat.vue';
92
- import ButtonPill from './variants/ButtonPill.vue';
93
- import ButtonDarkModePill from './variants/ButtonDarkModePill.vue';
94
- import Icon from '../Icon/Icon.vue';
95
-
96
- export default {
97
- name: 'Button',
98
- components: {
99
- 'button-crazyDomains-primary': ButtonCrazyDomainsPrimary,
100
- 'button-crazyDomains-outline': ButtonCrazyDomainsOutline,
101
- 'button-crazyDomains-secondary': ButtonSecondary,
102
- 'button-crazyDomains-primary-with-icon': ButtonPrimaryWithIcon,
103
- 'button-crazyDomains-success': ButtonSuccess,
104
- 'button-crazyDomains-info': ButtonInfo,
105
- 'button-crazyDomains-gray': ButtonGray,
106
- 'button-crazyDomains-no-border': ButtonNoBorder,
107
- 'button-crazyDomains-flat': ButtonFlat,
108
- 'button-crazyDomains-pill': ButtonPill,
109
-
110
- 'button-brandCrowd-primary': ButtonPrimary,
111
- 'button-brandCrowd-warning': ButtonWarning,
112
- 'button-brandCrowd-info-filled': ButtonInfoFilled,
113
- 'button-brandCrowd-outline': ButtonOutline,
114
- 'button-brandCrowd-secondary': ButtonSecondary,
115
- 'button-brandCrowd-primary-with-icon': ButtonPrimaryWithIcon,
116
- 'button-brandCrowd-success': ButtonSuccess,
117
- 'button-brandCrowd-outline-success': ButtonOutlineSuccess,
118
- 'button-brandCrowd-outline-no-hover': ButtonNoHover,
119
- 'button-brandCrowd-info': ButtonInfo,
120
- 'button-brandCrowd-gray': ButtonGray,
121
- 'button-brandCrowd-no-border': ButtonNoBorder,
122
- 'button-brandCrowd-flat': ButtonFlat,
123
- 'button-brandCrowd-pill': ButtonPill,
124
- 'button-brandCrowd-dark-mode-pill': ButtonDarkModePill,
125
-
126
- Icon,
127
- },
128
- props: {
129
- attrs: {
130
- type: Object,
131
- required: false,
132
- default: () => {},
133
- },
134
- label: {
135
- type: String,
136
- required: false,
137
- default: undefined,
138
- },
139
- url: {
140
- type: String,
141
- required: false,
142
- default: null,
143
- },
144
- theme: {
145
- type: String,
146
- required: false,
147
- default: null,
148
- },
149
- variant: {
150
- type: String,
151
- required: false,
152
- default: null, // options: success, primary, outline
153
- },
154
- size: {
155
- type: String,
156
- required: false,
157
- default: null, // options: small, small-wide, small-medium, medium || null, large
158
- },
159
- iconSize: {
160
- type: String,
161
- required: false,
162
- default: 'xs',
163
- },
164
- icon: {
165
- type: String,
166
- required: false,
167
- default: null, // options: any icon name from the Icon.vue component eg. chevron-right
168
- },
169
- iconViewBox: {
170
- type: String,
171
- required: false,
172
- default: null, // used for a custom icon viewbox when using the primary-with-icon variant
173
- },
174
- iconLeft: {
175
- type: String,
176
- required: false,
177
- default: undefined,
178
- },
179
- iconLeftSize: {
180
- type: String,
181
- required: false,
182
- default: 'xs',
183
- },
184
- iconRight: {
185
- type: String,
186
- required: false,
187
- default: undefined,
188
- },
189
- iconRightSize: {
190
- type: String,
191
- required: false,
192
- default: 'xs',
193
- },
194
- iconTop: {
195
- type: String,
196
- required: false,
197
- default: undefined,
198
- },
199
- iconTopSize: {
200
- type: String,
201
- required: false,
202
- default: 'xs',
203
- },
204
- iconColor: {
205
- type: String,
206
- required: false,
207
- default: undefined,
208
- },
209
- fullWidth: {
210
- type: Boolean,
211
- required: false,
212
- default: false,
213
- },
214
- fullHeight: {
215
- type: Boolean,
216
- required: false,
217
- default: false,
218
- },
219
- classes: {
220
- type: [String, Object],
221
- required: false,
222
- default: '',
223
- },
224
- containerClasses: {
225
- type: String,
226
- required: false,
227
- default: '',
228
- },
229
- greyOutLeft: {
230
- type: Boolean,
231
- required: false,
232
- default: false,
233
- },
234
- white: {
235
- type: Boolean,
236
- required: false,
237
- default: false,
238
- },
239
- rounded: {
240
- type: Boolean,
241
- required: false,
242
- default: true,
243
- },
244
- roundedLeft: {
245
- type: Boolean,
246
- required: false,
247
- default: false,
248
- },
249
- roundedRight: {
250
- type: Boolean,
251
- required: false,
252
- default: false,
253
- },
254
- disabled: {
255
- type: Boolean,
256
- required: false,
257
- default: false,
258
- },
259
- isBusy: {
260
- type: Boolean,
261
- required: false,
262
- default: false,
263
- },
264
- isBusyLabel: {
265
- type: String,
266
- required: false,
267
- default: undefined,
268
- },
269
- download: {
270
- type: String,
271
- required: false,
272
- default: undefined,
273
- },
274
- active: {
275
- type: Boolean,
276
- required: false,
277
- default: false,
278
- },
279
- target: {
280
- type: String,
281
- required: false,
282
- default: '_self',
283
- },
284
- justify: {
285
- type: String,
286
- required: false,
287
- default: 'center',
288
- },
289
- type: {
290
- type: String,
291
- required: false,
292
- default: undefined,
293
- },
294
- showLabel: {
295
- type: Boolean,
296
- required: false,
297
- default: true,
298
- },
299
- dataAttribute: {
300
- type: String,
301
- default: undefined,
302
- },
303
- },
304
- data() {
305
- return {
306
- themeCrazyDomains: 'crazyDomains',
307
- };
308
- },
309
- computed: {
310
- iconOnly() {
311
- return !this.label && this.icon;
312
- },
313
- },
314
- methods: {
315
- onClick(e) {
316
- this.$emit('on-click', e);
317
- },
318
- isNotThemedAndIsVariant(variant) {
319
- return !this.theme && this.variant === variant;
320
- },
321
- },
322
- };
323
- </script>
1
+ <template>
2
+ <div :class="[{ 'tw-w-full': fullWidth }, containerClasses]">
3
+ <component
4
+ :is="`button-${theme || 'brandCrowd'}-${variant}`"
5
+ v-bind="dataAttribute ? { [dataAttribute]: '' } : {}"
6
+ data-scl-button
7
+ :attrs="attrs"
8
+ :size="size"
9
+ :classes="classes"
10
+ :disabled="disabled"
11
+ :is-busy="isBusy"
12
+ :download="download"
13
+ :icon="icon"
14
+ :icon-view-box="iconViewBox"
15
+ :url="url"
16
+ :full-width="fullWidth"
17
+ :full-height="fullHeight"
18
+ :rounded="rounded"
19
+ :rounded-left="roundedLeft"
20
+ :rounded-right="roundedRight"
21
+ :on-click="onClick"
22
+ :target="target"
23
+ :active="active"
24
+ :white="white"
25
+ :type="type"
26
+ >
27
+ <div v-if="iconTop" class="tw-mb-1 tw-flex tw-w-full tw-flex-col tw-items-center">
28
+ <Icon :name="iconTop" :size="iconTopSize" :color="iconColor" />
29
+ </div>
30
+ <span
31
+ class="tw-w-full tw-flex"
32
+ :class="{
33
+ 'tw-justify-center': justify === 'center',
34
+ 'tw-justify-between': justify === 'between',
35
+ }"
36
+ >
37
+ <span
38
+ class="tw-inline-flex tw-items-center"
39
+ :class="{
40
+ 'tw-opacity-50': greyOutLeft === true,
41
+ }"
42
+ >
43
+ <Icon v-if="iconOnly" class="tw-flex tw-items-center" :name="icon" :size="iconSize" :color="iconColor" />
44
+ <Icon
45
+ v-if="iconLeft && !iconOnly"
46
+ class="tw-mr-2 tw-flex tw-items-center"
47
+ :name="iconLeft"
48
+ :size="iconLeftSize"
49
+ :color="iconColor"
50
+ />
51
+ <span
52
+ v-if="isBusy"
53
+ :class="{
54
+ 'tw-my-auto tw-w-4 tw-h-4': true,
55
+ 'tw-mr-2': isBusyLabel,
56
+ }"
57
+ >
58
+ <Icon class="tw-animate-spin tw-w-4 tw-h-4" name="processing" />
59
+ </span>
60
+ <span v-if="!isBusy && !iconOnly && showLabel" class="tw-my-auto tw-text-center">{{ label }}</span>
61
+ <span v-if="isBusy && isBusyLabel" class="tw-my-auto tw-text-center">{{ isBusyLabel }}</span>
62
+ </span>
63
+ <Icon
64
+ v-if="iconRight && !iconOnly"
65
+ class="tw-ml-2 tw-flex tw-items-center"
66
+ :name="iconRight"
67
+ :size="iconRightSize"
68
+ :color="iconColor"
69
+ />
70
+ </span>
71
+ </component>
72
+ </div>
73
+ </template>
74
+
75
+ <script>
76
+ import ButtonOutline from './variants/ButtonOutline.vue';
77
+ import ButtonPrimary from './variants/ButtonPrimary.vue';
78
+ import ButtonWarning from './variants/ButtonWarning.vue';
79
+ import ButtonSecondary from './variants/ButtonSecondary.vue';
80
+ import ButtonInfoFilled from './variants/ButtonInfoFilled.vue';
81
+ import ButtonGray from './variants/ButtonGray.vue';
82
+ import ButtonPrimaryWithIcon from './variants/ButtonPrimaryWithIcon.vue';
83
+ import ButtonSuccess from './variants/ButtonSuccess.vue';
84
+ import ButtonOutlineSuccess from './variants/ButtonOutlineSuccess.vue';
85
+ import ButtonNoHover from './variants/ButtonOutlineNoHover.vue';
86
+
87
+ import ButtonInfo from './variants/ButtonInfo.vue';
88
+ import ButtonCrazyDomainsPrimary from './variants/crazy-domains/ButtonCrazyDomainsPrimary.vue';
89
+ import ButtonCrazyDomainsOutline from './variants/crazy-domains/ButtonCrazyDomainsOutline.vue';
90
+ import ButtonNoBorder from './variants/ButtonNoBorder.vue';
91
+ import ButtonFlat from './variants/ButtonFlat.vue';
92
+ import ButtonPill from './variants/ButtonPill.vue';
93
+ import ButtonDarkModePill from './variants/ButtonDarkModePill.vue';
94
+ import Icon from '../Icon/Icon.vue';
95
+
96
+ export default {
97
+ name: 'Button',
98
+ components: {
99
+ 'button-crazyDomains-primary': ButtonCrazyDomainsPrimary,
100
+ 'button-crazyDomains-outline': ButtonCrazyDomainsOutline,
101
+ 'button-crazyDomains-secondary': ButtonSecondary,
102
+ 'button-crazyDomains-primary-with-icon': ButtonPrimaryWithIcon,
103
+ 'button-crazyDomains-success': ButtonSuccess,
104
+ 'button-crazyDomains-info': ButtonInfo,
105
+ 'button-crazyDomains-gray': ButtonGray,
106
+ 'button-crazyDomains-no-border': ButtonNoBorder,
107
+ 'button-crazyDomains-flat': ButtonFlat,
108
+ 'button-crazyDomains-pill': ButtonPill,
109
+
110
+ 'button-brandCrowd-primary': ButtonPrimary,
111
+ 'button-brandCrowd-warning': ButtonWarning,
112
+ 'button-brandCrowd-info-filled': ButtonInfoFilled,
113
+ 'button-brandCrowd-outline': ButtonOutline,
114
+ 'button-brandCrowd-secondary': ButtonSecondary,
115
+ 'button-brandCrowd-primary-with-icon': ButtonPrimaryWithIcon,
116
+ 'button-brandCrowd-success': ButtonSuccess,
117
+ 'button-brandCrowd-outline-success': ButtonOutlineSuccess,
118
+ 'button-brandCrowd-outline-no-hover': ButtonNoHover,
119
+ 'button-brandCrowd-info': ButtonInfo,
120
+ 'button-brandCrowd-gray': ButtonGray,
121
+ 'button-brandCrowd-no-border': ButtonNoBorder,
122
+ 'button-brandCrowd-flat': ButtonFlat,
123
+ 'button-brandCrowd-pill': ButtonPill,
124
+ 'button-brandCrowd-dark-mode-pill': ButtonDarkModePill,
125
+
126
+ Icon,
127
+ },
128
+ props: {
129
+ attrs: {
130
+ type: Object,
131
+ required: false,
132
+ default: () => {},
133
+ },
134
+ label: {
135
+ type: String,
136
+ required: false,
137
+ default: undefined,
138
+ },
139
+ url: {
140
+ type: String,
141
+ required: false,
142
+ default: null,
143
+ },
144
+ theme: {
145
+ type: String,
146
+ required: false,
147
+ default: null,
148
+ },
149
+ variant: {
150
+ type: String,
151
+ required: false,
152
+ default: null, // options: success, primary, outline
153
+ },
154
+ size: {
155
+ type: String,
156
+ required: false,
157
+ default: null, // options: small, small-wide, small-medium, medium || null, large
158
+ },
159
+ iconSize: {
160
+ type: String,
161
+ required: false,
162
+ default: 'xs',
163
+ },
164
+ icon: {
165
+ type: String,
166
+ required: false,
167
+ default: null, // options: any icon name from the Icon.vue component eg. chevron-right
168
+ },
169
+ iconViewBox: {
170
+ type: String,
171
+ required: false,
172
+ default: null, // used for a custom icon viewbox when using the primary-with-icon variant
173
+ },
174
+ iconLeft: {
175
+ type: String,
176
+ required: false,
177
+ default: undefined,
178
+ },
179
+ iconLeftSize: {
180
+ type: String,
181
+ required: false,
182
+ default: 'xs',
183
+ },
184
+ iconRight: {
185
+ type: String,
186
+ required: false,
187
+ default: undefined,
188
+ },
189
+ iconRightSize: {
190
+ type: String,
191
+ required: false,
192
+ default: 'xs',
193
+ },
194
+ iconTop: {
195
+ type: String,
196
+ required: false,
197
+ default: undefined,
198
+ },
199
+ iconTopSize: {
200
+ type: String,
201
+ required: false,
202
+ default: 'xs',
203
+ },
204
+ iconColor: {
205
+ type: String,
206
+ required: false,
207
+ default: undefined,
208
+ },
209
+ fullWidth: {
210
+ type: Boolean,
211
+ required: false,
212
+ default: false,
213
+ },
214
+ fullHeight: {
215
+ type: Boolean,
216
+ required: false,
217
+ default: false,
218
+ },
219
+ classes: {
220
+ type: [String, Object],
221
+ required: false,
222
+ default: '',
223
+ },
224
+ containerClasses: {
225
+ type: String,
226
+ required: false,
227
+ default: '',
228
+ },
229
+ greyOutLeft: {
230
+ type: Boolean,
231
+ required: false,
232
+ default: false,
233
+ },
234
+ white: {
235
+ type: Boolean,
236
+ required: false,
237
+ default: false,
238
+ },
239
+ rounded: {
240
+ type: Boolean,
241
+ required: false,
242
+ default: true,
243
+ },
244
+ roundedLeft: {
245
+ type: Boolean,
246
+ required: false,
247
+ default: false,
248
+ },
249
+ roundedRight: {
250
+ type: Boolean,
251
+ required: false,
252
+ default: false,
253
+ },
254
+ disabled: {
255
+ type: Boolean,
256
+ required: false,
257
+ default: false,
258
+ },
259
+ isBusy: {
260
+ type: Boolean,
261
+ required: false,
262
+ default: false,
263
+ },
264
+ isBusyLabel: {
265
+ type: String,
266
+ required: false,
267
+ default: undefined,
268
+ },
269
+ download: {
270
+ type: String,
271
+ required: false,
272
+ default: undefined,
273
+ },
274
+ active: {
275
+ type: Boolean,
276
+ required: false,
277
+ default: false,
278
+ },
279
+ target: {
280
+ type: String,
281
+ required: false,
282
+ default: '_self',
283
+ },
284
+ justify: {
285
+ type: String,
286
+ required: false,
287
+ default: 'center',
288
+ },
289
+ type: {
290
+ type: String,
291
+ required: false,
292
+ default: undefined,
293
+ },
294
+ showLabel: {
295
+ type: Boolean,
296
+ required: false,
297
+ default: true,
298
+ },
299
+ dataAttribute: {
300
+ type: String,
301
+ default: undefined,
302
+ },
303
+ },
304
+ data() {
305
+ return {
306
+ themeCrazyDomains: 'crazyDomains',
307
+ };
308
+ },
309
+ computed: {
310
+ iconOnly() {
311
+ return !this.label && this.icon;
312
+ },
313
+ },
314
+ methods: {
315
+ onClick(e) {
316
+ this.$emit('on-click', e);
317
+ },
318
+ isNotThemedAndIsVariant(variant) {
319
+ return !this.theme && this.variant === variant;
320
+ },
321
+ },
322
+ };
323
+ </script>