@designcrowd/fe-shared-lib 1.1.6-rte-ast-16.1 → 1.1.6

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 (525) 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 -54
  14. package/package.json +110 -110
  15. package/postcss.config.js +5 -5
  16. package/src/atoms/components/Button/Button.vue +323 -336
  17. package/src/atoms/components/Button/ButtonVariant.mixin.vue +126 -126
  18. package/src/atoms/components/Button/Buttons.stories.js +778 -778
  19. package/src/atoms/components/Button/ButtonsCrazyDomains.stories.js +117 -117
  20. package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +52 -52
  21. package/src/atoms/components/Button/variants/ButtonFlat.vue +65 -65
  22. package/src/atoms/components/Button/variants/ButtonGray.vue +64 -64
  23. package/src/atoms/components/Button/variants/ButtonInfo.vue +51 -51
  24. package/src/atoms/components/Button/variants/ButtonInfoFilled.vue +63 -63
  25. package/src/atoms/components/Button/variants/ButtonNoBorder.vue +65 -65
  26. package/src/atoms/components/Button/variants/ButtonOutline.vue +62 -62
  27. package/src/atoms/components/Button/variants/ButtonOutlineNoHover.vue +62 -62
  28. package/src/atoms/components/Button/variants/ButtonOutlineSuccess.vue +54 -54
  29. package/src/atoms/components/Button/variants/ButtonPill.vue +52 -52
  30. package/src/atoms/components/Button/variants/ButtonPrimary.vue +69 -69
  31. package/src/atoms/components/Button/variants/ButtonPrimaryWithIcon.vue +68 -68
  32. package/src/atoms/components/Button/variants/ButtonSecondary.vue +51 -51
  33. package/src/atoms/components/Button/variants/ButtonSuccess.vue +55 -55
  34. package/src/atoms/components/Button/variants/ButtonWarning.vue +65 -65
  35. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsOutline.vue +58 -58
  36. package/src/atoms/components/Button/variants/crazy-domains/ButtonCrazyDomainsPrimary.vue +38 -38
  37. package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +562 -574
  38. package/src/atoms/components/ButtonGroup/ButtonGroup.vue +188 -188
  39. package/src/atoms/components/Carousel/Carousel.fixtures.js +35 -35
  40. package/src/atoms/components/Carousel/Carousel.vue +352 -352
  41. package/src/atoms/components/Carousel/carousel.stories.js +261 -261
  42. package/src/atoms/components/Checkbox/Checkbox.mixin.js +57 -57
  43. package/src/atoms/components/Checkbox/Checkbox.stories.js +206 -206
  44. package/src/atoms/components/Checkbox/Checkbox.vue +89 -89
  45. package/src/atoms/components/Checktile/Checktile.stories.js +79 -79
  46. package/src/atoms/components/Checktile/Checktile.vue +73 -73
  47. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.mixin.js +34 -34
  48. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.stories.js +40 -40
  49. package/src/atoms/components/CollapsiblePanel/CollapsiblePanel.vue +30 -30
  50. package/src/atoms/components/ColorPicker/ColorPicker.stories.js +89 -89
  51. package/src/atoms/components/ColorPicker/ColorPicker.vue +95 -95
  52. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.stories.js +41 -41
  53. package/src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue +71 -71
  54. package/src/atoms/components/Dropdown/Dropdown.stories.js +140 -140
  55. package/src/atoms/components/Dropdown/Dropdown.vue +108 -118
  56. package/src/atoms/components/Dropdown/DropdownItem.vue +21 -33
  57. package/src/atoms/components/FormControl/FormControl.mixin.js +127 -127
  58. package/src/atoms/components/HelloBar/HelloBar.stories.js +195 -195
  59. package/src/atoms/components/HelloBar/HelloBar.vue +156 -156
  60. package/src/atoms/components/Icon/Icon.stories.js +390 -390
  61. package/src/atoms/components/Icon/Icon.vue +819 -825
  62. package/src/atoms/components/Icon/icons/add-page.vue +6 -6
  63. package/src/atoms/components/Icon/icons/ai.vue +6 -6
  64. package/src/atoms/components/Icon/icons/arrow-down.vue +6 -6
  65. package/src/atoms/components/Icon/icons/arrow-left.vue +7 -7
  66. package/src/atoms/components/Icon/icons/arrow-right.vue +7 -7
  67. package/src/atoms/components/Icon/icons/arrow-top-right.vue +6 -6
  68. package/src/atoms/components/Icon/icons/arrow-up-underline.vue +7 -7
  69. package/src/atoms/components/Icon/icons/arrow-up.vue +7 -7
  70. package/src/atoms/components/Icon/icons/attach.vue +6 -6
  71. package/src/atoms/components/Icon/icons/auth-facebook-white.vue +17 -17
  72. package/src/atoms/components/Icon/icons/auth-facebook.vue +24 -24
  73. package/src/atoms/components/Icon/icons/auth-google.vue +32 -32
  74. package/src/atoms/components/Icon/icons/background.vue +7 -7
  75. package/src/atoms/components/Icon/icons/banner-centered.vue +6 -6
  76. package/src/atoms/components/Icon/icons/banner-left.vue +6 -6
  77. package/src/atoms/components/Icon/icons/banner.vue +7 -7
  78. package/src/atoms/components/Icon/icons/bc-mast.vue +7 -7
  79. package/src/atoms/components/Icon/icons/brush.vue +6 -6
  80. package/src/atoms/components/Icon/icons/business-card-filled.vue +5 -5
  81. package/src/atoms/components/Icon/icons/business.vue +6 -6
  82. package/src/atoms/components/Icon/icons/calendar.vue +5 -5
  83. package/src/atoms/components/Icon/icons/callout-error.vue +6 -6
  84. package/src/atoms/components/Icon/icons/callout-info.vue +6 -6
  85. package/src/atoms/components/Icon/icons/callout-success.vue +8 -8
  86. package/src/atoms/components/Icon/icons/callout-warning.vue +6 -6
  87. package/src/atoms/components/Icon/icons/cap.vue +22 -22
  88. package/src/atoms/components/Icon/icons/card.vue +9 -9
  89. package/src/atoms/components/Icon/icons/cart-empty.vue +9 -9
  90. package/src/atoms/components/Icon/icons/check-thin.vue +7 -7
  91. package/src/atoms/components/Icon/icons/check.vue +3 -3
  92. package/src/atoms/components/Icon/icons/chevron-down.vue +7 -7
  93. package/src/atoms/components/Icon/icons/chevron-left.vue +7 -7
  94. package/src/atoms/components/Icon/icons/chevron-right-wide.vue +3 -3
  95. package/src/atoms/components/Icon/icons/chevron-right.vue +3 -3
  96. package/src/atoms/components/Icon/icons/chevron-up.vue +7 -7
  97. package/src/atoms/components/Icon/icons/close.vue +6 -6
  98. package/src/atoms/components/Icon/icons/community.vue +5 -5
  99. package/src/atoms/components/Icon/icons/contact-message.vue +10 -10
  100. package/src/atoms/components/Icon/icons/content.vue +7 -7
  101. package/src/atoms/components/Icon/icons/copy.vue +10 -10
  102. package/src/atoms/components/Icon/icons/crazy-domains/filter.vue +6 -6
  103. package/src/atoms/components/Icon/icons/crazy-domains/globe.vue +6 -6
  104. package/src/atoms/components/Icon/icons/crazy-domains/home.vue +6 -6
  105. package/src/atoms/components/Icon/icons/crazy-domains/social-facebook.vue +6 -6
  106. package/src/atoms/components/Icon/icons/crazy-domains/social-google.vue +6 -6
  107. package/src/atoms/components/Icon/icons/crazy-domains/social-instagram.vue +6 -6
  108. package/src/atoms/components/Icon/icons/crazy-domains/social-twitter.vue +6 -6
  109. package/src/atoms/components/Icon/icons/crazy-domains/social-youtube.vue +6 -6
  110. package/src/atoms/components/Icon/icons/crop.vue +6 -6
  111. package/src/atoms/components/Icon/icons/delete.vue +8 -8
  112. package/src/atoms/components/Icon/icons/designs.vue +6 -6
  113. package/src/atoms/components/Icon/icons/desktop.vue +7 -7
  114. package/src/atoms/components/Icon/icons/donate.vue +6 -6
  115. package/src/atoms/components/Icon/icons/download.vue +5 -5
  116. package/src/atoms/components/Icon/icons/duplicate.vue +6 -6
  117. package/src/atoms/components/Icon/icons/edit-line.vue +10 -10
  118. package/src/atoms/components/Icon/icons/edit.vue +6 -6
  119. package/src/atoms/components/Icon/icons/ellipsis.vue +6 -6
  120. package/src/atoms/components/Icon/icons/envelope-email.vue +9 -9
  121. package/src/atoms/components/Icon/icons/error.vue +8 -8
  122. package/src/atoms/components/Icon/icons/eye-crossed.vue +7 -7
  123. package/src/atoms/components/Icon/icons/fees.vue +6 -6
  124. package/src/atoms/components/Icon/icons/filter.vue +7 -7
  125. package/src/atoms/components/Icon/icons/filters.vue +6 -6
  126. package/src/atoms/components/Icon/icons/flag.vue +6 -6
  127. package/src/atoms/components/Icon/icons/flip-horizontal.vue +7 -7
  128. package/src/atoms/components/Icon/icons/flip-vertical.vue +7 -7
  129. package/src/atoms/components/Icon/icons/folder.vue +6 -6
  130. package/src/atoms/components/Icon/icons/footer-centered.vue +7 -7
  131. package/src/atoms/components/Icon/icons/footer-left.vue +7 -7
  132. package/src/atoms/components/Icon/icons/form-message.vue +6 -6
  133. package/src/atoms/components/Icon/icons/form.vue +5 -5
  134. package/src/atoms/components/Icon/icons/fullscreen-exit.vue +5 -5
  135. package/src/atoms/components/Icon/icons/fullscreen.vue +5 -5
  136. package/src/atoms/components/Icon/icons/globe.vue +6 -6
  137. package/src/atoms/components/Icon/icons/godaddy/logo.vue +5 -5
  138. package/src/atoms/components/Icon/icons/hamburger.vue +7 -7
  139. package/src/atoms/components/Icon/icons/home.vue +7 -7
  140. package/src/atoms/components/Icon/icons/icon-style-circle-bg.vue +22 -22
  141. package/src/atoms/components/Icon/icons/icon-style-no-bg.vue +16 -16
  142. package/src/atoms/components/Icon/icons/icon-style-square-bg.vue +22 -22
  143. package/src/atoms/components/Icon/icons/image-gallery-carousel.vue +7 -7
  144. package/src/atoms/components/Icon/icons/image-gallery-grid.vue +7 -7
  145. package/src/atoms/components/Icon/icons/image-gallery-masonry.vue +6 -6
  146. package/src/atoms/components/Icon/icons/images-gallery.vue +5 -5
  147. package/src/atoms/components/Icon/icons/images.vue +7 -7
  148. package/src/atoms/components/Icon/icons/info.vue +9 -9
  149. package/src/atoms/components/Icon/icons/jobs.vue +8 -8
  150. package/src/atoms/components/Icon/icons/layer-bring-front.vue +6 -6
  151. package/src/atoms/components/Icon/icons/layer-send-back.vue +6 -6
  152. package/src/atoms/components/Icon/icons/layer.vue +6 -6
  153. package/src/atoms/components/Icon/icons/layout/display-style-about-1.vue +20 -20
  154. package/src/atoms/components/Icon/icons/layout/display-style-about-2.vue +20 -20
  155. package/src/atoms/components/Icon/icons/layout/display-style-about-3.vue +20 -20
  156. package/src/atoms/components/Icon/icons/layout/display-style-about-4.vue +32 -32
  157. package/src/atoms/components/Icon/icons/layout/display-style-about-5.vue +27 -27
  158. package/src/atoms/components/Icon/icons/layout/display-style-about-6.vue +27 -27
  159. package/src/atoms/components/Icon/icons/layout/display-style-banner-1.vue +20 -20
  160. package/src/atoms/components/Icon/icons/layout/display-style-banner-2.vue +20 -20
  161. package/src/atoms/components/Icon/icons/layout/display-style-banner-3.vue +20 -20
  162. package/src/atoms/components/Icon/icons/layout/display-style-banner-4.vue +20 -20
  163. package/src/atoms/components/Icon/icons/layout/display-style-banner-5.vue +20 -20
  164. package/src/atoms/components/Icon/icons/layout/display-style-banner-6.vue +27 -27
  165. package/src/atoms/components/Icon/icons/layout/display-style-banner-7.vue +27 -27
  166. package/src/atoms/components/Icon/icons/layout/display-style-banner-8.vue +20 -20
  167. package/src/atoms/components/Icon/icons/layout/display-style-banner-9.vue +20 -20
  168. package/src/atoms/components/Icon/icons/layout/display-style-contact-1.vue +24 -24
  169. package/src/atoms/components/Icon/icons/layout/display-style-contact-2.vue +24 -24
  170. package/src/atoms/components/Icon/icons/layout/display-style-contact-4.vue +24 -24
  171. package/src/atoms/components/Icon/icons/layout/display-style-contact-5.vue +39 -39
  172. package/src/atoms/components/Icon/icons/layout/display-style-contact-6.vue +39 -39
  173. package/src/atoms/components/Icon/icons/layout/footer/display-style-1.vue +7 -7
  174. package/src/atoms/components/Icon/icons/layout/footer/display-style-2.vue +16 -16
  175. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-1.vue +17 -17
  176. package/src/atoms/components/Icon/icons/layout/header/desktop-hamburger-display-style-2.vue +17 -17
  177. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-1.vue +17 -17
  178. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-2.vue +17 -17
  179. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-3.vue +13 -13
  180. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-4.vue +13 -13
  181. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-5.vue +17 -17
  182. package/src/atoms/components/Icon/icons/layout/header/desktop-tab-display-style-6.vue +17 -17
  183. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-1.vue +16 -16
  184. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-2.vue +16 -16
  185. package/src/atoms/components/Icon/icons/layout/header/hamburger-display-style-no-logo-3.vue +16 -16
  186. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-1.vue +17 -17
  187. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-2.vue +17 -17
  188. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-3.vue +17 -17
  189. package/src/atoms/components/Icon/icons/layout/header/mobile-hamburger-display-style-4.vue +21 -21
  190. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-1.vue +17 -17
  191. package/src/atoms/components/Icon/icons/layout/header/mobile-tab-display-style-2.vue +17 -17
  192. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-1.vue +16 -16
  193. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-2.vue +16 -16
  194. package/src/atoms/components/Icon/icons/layout/header/tab-display-style-no-logo-3.vue +16 -16
  195. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-normal.vue +7 -7
  196. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-normal-text-center-small.vue +7 -7
  197. package/src/atoms/components/Icon/icons/layout/layout-icon-bottom-small-text-center-normal.vue +7 -7
  198. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-bottom.vue +11 -11
  199. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-circle.vue +10 -10
  200. package/src/atoms/components/Icon/icons/layout/layout-icon-center-normal-curved-text-top.vue +11 -11
  201. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-center-normal.vue +7 -7
  202. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-justify-normal.vue +7 -7
  203. package/src/atoms/components/Icon/icons/layout/layout-icon-left-normal-text-left-normal.vue +7 -7
  204. package/src/atoms/components/Icon/icons/layout/layout-icon-left-small-text-left-normal.vue +7 -7
  205. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-center-normal.vue +7 -7
  206. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-justify-normal.vue +7 -7
  207. package/src/atoms/components/Icon/icons/layout/layout-icon-right-normal-text-right-normal.vue +7 -7
  208. package/src/atoms/components/Icon/icons/layout/layout-icon-right-small-text-right-normal.vue +7 -7
  209. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-normal.vue +7 -7
  210. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-center-small.vue +7 -7
  211. package/src/atoms/components/Icon/icons/layout/layout-icon-top-normal-text-justify-normal.vue +7 -7
  212. package/src/atoms/components/Icon/icons/layout/layout-icon-top-small-text-center-normal.vue +7 -7
  213. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-1.vue +16 -16
  214. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-2.vue +10 -10
  215. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-3.vue +10 -10
  216. package/src/atoms/components/Icon/icons/layout/nav/hamburger/display-style-4.vue +23 -23
  217. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-1.vue +16 -16
  218. package/src/atoms/components/Icon/icons/layout/nav/tab/display-style-2.vue +7 -7
  219. package/src/atoms/components/Icon/icons/letterhead-filled.vue +5 -5
  220. package/src/atoms/components/Icon/icons/link.vue +6 -6
  221. package/src/atoms/components/Icon/icons/location.vue +6 -6
  222. package/src/atoms/components/Icon/icons/lock.vue +6 -6
  223. package/src/atoms/components/Icon/icons/mac-command.vue +7 -7
  224. package/src/atoms/components/Icon/icons/maker/align-center.vue +7 -7
  225. package/src/atoms/components/Icon/icons/maker/align-justify.vue +7 -7
  226. package/src/atoms/components/Icon/icons/maker/align-left.vue +7 -7
  227. package/src/atoms/components/Icon/icons/maker/align-right.vue +7 -7
  228. package/src/atoms/components/Icon/icons/maker/animate.vue +7 -7
  229. package/src/atoms/components/Icon/icons/maker/bold.vue +7 -7
  230. package/src/atoms/components/Icon/icons/maker/custom-landscape.vue +5 -5
  231. package/src/atoms/components/Icon/icons/maker/email-symbol.vue +5 -5
  232. package/src/atoms/components/Icon/icons/maker/email.vue +5 -5
  233. package/src/atoms/components/Icon/icons/maker/eraser.vue +5 -5
  234. package/src/atoms/components/Icon/icons/maker/etsy.vue +5 -5
  235. package/src/atoms/components/Icon/icons/maker/facebook.vue +5 -5
  236. package/src/atoms/components/Icon/icons/maker/favicon.vue +7 -7
  237. package/src/atoms/components/Icon/icons/maker/flyer.vue +7 -7
  238. package/src/atoms/components/Icon/icons/maker/gift-certificate.vue +5 -5
  239. package/src/atoms/components/Icon/icons/maker/globe.vue +5 -5
  240. package/src/atoms/components/Icon/icons/maker/image.vue +7 -7
  241. package/src/atoms/components/Icon/icons/maker/instagram.vue +7 -7
  242. package/src/atoms/components/Icon/icons/maker/invitation.vue +5 -5
  243. package/src/atoms/components/Icon/icons/maker/invoice.vue +5 -5
  244. package/src/atoms/components/Icon/icons/maker/italic.vue +7 -7
  245. package/src/atoms/components/Icon/icons/maker/link.vue +7 -7
  246. package/src/atoms/components/Icon/icons/maker/linkedin.vue +7 -7
  247. package/src/atoms/components/Icon/icons/maker/menu.vue +5 -5
  248. package/src/atoms/components/Icon/icons/maker/pause.vue +5 -5
  249. package/src/atoms/components/Icon/icons/maker/phone.vue +5 -5
  250. package/src/atoms/components/Icon/icons/maker/pinterest.vue +5 -5
  251. package/src/atoms/components/Icon/icons/maker/play.vue +5 -5
  252. package/src/atoms/components/Icon/icons/maker/postcard.vue +5 -5
  253. package/src/atoms/components/Icon/icons/maker/poster.vue +7 -7
  254. package/src/atoms/components/Icon/icons/maker/profile.vue +5 -5
  255. package/src/atoms/components/Icon/icons/maker/qrcode.vue +5 -5
  256. package/src/atoms/components/Icon/icons/maker/snapchat.vue +5 -5
  257. package/src/atoms/components/Icon/icons/maker/soundcloud.vue +7 -7
  258. package/src/atoms/components/Icon/icons/maker/strikethrough.vue +7 -7
  259. package/src/atoms/components/Icon/icons/maker/t-shirt.vue +32 -32
  260. package/src/atoms/components/Icon/icons/maker/text.vue +7 -7
  261. package/src/atoms/components/Icon/icons/maker/thankyou-card.vue +5 -5
  262. package/src/atoms/components/Icon/icons/maker/tiktok.vue +5 -5
  263. package/src/atoms/components/Icon/icons/maker/tumblr.vue +5 -5
  264. package/src/atoms/components/Icon/icons/maker/twitch.vue +7 -7
  265. package/src/atoms/components/Icon/icons/maker/twitter.vue +5 -5
  266. package/src/atoms/components/Icon/icons/maker/underline.vue +7 -7
  267. package/src/atoms/components/Icon/icons/maker/uppercase.vue +14 -14
  268. package/src/atoms/components/Icon/icons/maker/video.vue +5 -5
  269. package/src/atoms/components/Icon/icons/maker/whatsapp.vue +7 -7
  270. package/src/atoms/components/Icon/icons/maker/youtube.vue +5 -5
  271. package/src/atoms/components/Icon/icons/maker/zoom.vue +5 -5
  272. package/src/atoms/components/Icon/icons/map.vue +6 -6
  273. package/src/atoms/components/Icon/icons/message.vue +6 -6
  274. package/src/atoms/components/Icon/icons/minus-circle-light.vue +7 -7
  275. package/src/atoms/components/Icon/icons/minus.vue +3 -3
  276. package/src/atoms/components/Icon/icons/mobile.vue +5 -5
  277. package/src/atoms/components/Icon/icons/mug.vue +29 -29
  278. package/src/atoms/components/Icon/icons/opacity.vue +6 -6
  279. package/src/atoms/components/Icon/icons/other.vue +7 -7
  280. package/src/atoms/components/Icon/icons/page-buttons.vue +8 -8
  281. package/src/atoms/components/Icon/icons/page-hamburger.vue +9 -9
  282. package/src/atoms/components/Icon/icons/page-tabs.vue +9 -9
  283. package/src/atoms/components/Icon/icons/pages.vue +6 -6
  284. package/src/atoms/components/Icon/icons/palette.vue +6 -6
  285. package/src/atoms/components/Icon/icons/pause.vue +5 -5
  286. package/src/atoms/components/Icon/icons/payment.vue +8 -8
  287. package/src/atoms/components/Icon/icons/payments-featured.vue +6 -6
  288. package/src/atoms/components/Icon/icons/payments-textonly.vue +8 -8
  289. package/src/atoms/components/Icon/icons/payments-thumbnail.vue +9 -9
  290. package/src/atoms/components/Icon/icons/phone.vue +6 -6
  291. package/src/atoms/components/Icon/icons/plus-circle-light.vue +8 -8
  292. package/src/atoms/components/Icon/icons/plus-circle.vue +7 -7
  293. package/src/atoms/components/Icon/icons/plus.vue +3 -3
  294. package/src/atoms/components/Icon/icons/poll.vue +3 -3
  295. package/src/atoms/components/Icon/icons/portfolio.vue +10 -10
  296. package/src/atoms/components/Icon/icons/preview.vue +6 -6
  297. package/src/atoms/components/Icon/icons/printing.vue +6 -6
  298. package/src/atoms/components/Icon/icons/processing.vue +5 -5
  299. package/src/atoms/components/Icon/icons/question.vue +11 -11
  300. package/src/atoms/components/Icon/icons/ratio-1-1.vue +3 -3
  301. package/src/atoms/components/Icon/icons/ratio-16-9.vue +1 -1
  302. package/src/atoms/components/Icon/icons/ratio-2-3.vue +3 -3
  303. package/src/atoms/components/Icon/icons/ratio-3-2.vue +3 -3
  304. package/src/atoms/components/Icon/icons/ratio-3-4.vue +3 -3
  305. package/src/atoms/components/Icon/icons/ratio-4-3.vue +3 -3
  306. package/src/atoms/components/Icon/icons/ratio-9-16.vue +3 -3
  307. package/src/atoms/components/Icon/icons/ratio-circle.vue +8 -8
  308. package/src/atoms/components/Icon/icons/ratio-original.vue +11 -11
  309. package/src/atoms/components/Icon/icons/redo.vue +6 -6
  310. package/src/atoms/components/Icon/icons/reload.vue +6 -6
  311. package/src/atoms/components/Icon/icons/reorderable.vue +5 -5
  312. package/src/atoms/components/Icon/icons/request-payment.vue +6 -6
  313. package/src/atoms/components/Icon/icons/reset.vue +6 -6
  314. package/src/atoms/components/Icon/icons/search.vue +11 -11
  315. package/src/atoms/components/Icon/icons/secure.vue +7 -7
  316. package/src/atoms/components/Icon/icons/services.vue +7 -7
  317. package/src/atoms/components/Icon/icons/settings.vue +7 -7
  318. package/src/atoms/components/Icon/icons/shape.vue +5 -5
  319. package/src/atoms/components/Icon/icons/share.vue +8 -8
  320. package/src/atoms/components/Icon/icons/shop.vue +5 -5
  321. package/src/atoms/components/Icon/icons/sms.vue +5 -5
  322. package/src/atoms/components/Icon/icons/social-facebook-color.vue +9 -9
  323. package/src/atoms/components/Icon/icons/social-facebook.vue +5 -5
  324. package/src/atoms/components/Icon/icons/social-google.vue +5 -5
  325. package/src/atoms/components/Icon/icons/social-instagram-color.vue +24 -24
  326. package/src/atoms/components/Icon/icons/social-linkedin-color.vue +9 -9
  327. package/src/atoms/components/Icon/icons/social-share.vue +7 -7
  328. package/src/atoms/components/Icon/icons/social-twitter-color.vue +9 -9
  329. package/src/atoms/components/Icon/icons/star-filled.vue +6 -6
  330. package/src/atoms/components/Icon/icons/star-hollow.vue +6 -6
  331. package/src/atoms/components/Icon/icons/sticker.vue +28 -28
  332. package/src/atoms/components/Icon/icons/styles.vue +5 -5
  333. package/src/atoms/components/Icon/icons/submit.vue +5 -5
  334. package/src/atoms/components/Icon/icons/templates.vue +7 -7
  335. package/src/atoms/components/Icon/icons/text-image-center.vue +6 -6
  336. package/src/atoms/components/Icon/icons/text-image-justified.vue +7 -7
  337. package/src/atoms/components/Icon/icons/text-image-left.vue +9 -9
  338. package/src/atoms/components/Icon/icons/text-image-only.vue +5 -5
  339. package/src/atoms/components/Icon/icons/text-image-right.vue +9 -9
  340. package/src/atoms/components/Icon/icons/text-image.vue +13 -13
  341. package/src/atoms/components/Icon/icons/time.vue +8 -8
  342. package/src/atoms/components/Icon/icons/tooltip-bottom.vue +5 -5
  343. package/src/atoms/components/Icon/icons/tooltip-left.vue +5 -5
  344. package/src/atoms/components/Icon/icons/tooltip-right.vue +5 -5
  345. package/src/atoms/components/Icon/icons/tooltip-top.vue +5 -5
  346. package/src/atoms/components/Icon/icons/undo.vue +6 -6
  347. package/src/atoms/components/Icon/icons/upgrade-alt.vue +7 -7
  348. package/src/atoms/components/Icon/icons/upgrade.vue +9 -9
  349. package/src/atoms/components/Icon/icons/upload-arrow.vue +5 -5
  350. package/src/atoms/components/Icon/icons/upload.vue +5 -5
  351. package/src/atoms/components/Icon/icons/user-accounts.vue +5 -5
  352. package/src/atoms/components/Icon/icons/user-headset.vue +50 -50
  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 +258 -258
  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 -55
  375. package/src/atoms/components/NumberStepper/NumberStepper.vue +298 -340
  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/Slider/Slider.stories.js +2 -2
  394. package/src/atoms/components/Slider/Slider.vue +6 -44
  395. package/src/atoms/components/StarRating/StarRating.stories.js +50 -50
  396. package/src/atoms/components/StarRating/StarRating.vue +84 -84
  397. package/src/atoms/components/TabMenu/TabMenu.stories.js +54 -54
  398. package/src/atoms/components/TabMenu/TabMenu.vue +44 -44
  399. package/src/atoms/components/TextCopyField/TextCopyField.stories.js +68 -68
  400. package/src/atoms/components/TextCopyField/TextCopyField.vue +75 -75
  401. package/src/atoms/components/TextInput/TextInput.stories.js +232 -232
  402. package/src/atoms/components/TextInput/TextInput.vue +156 -156
  403. package/src/atoms/components/Textarea/Textarea.stories.js +209 -209
  404. package/src/atoms/components/Textarea/Textarea.vue +109 -109
  405. package/src/atoms/components/Toggle/Toggle.stories.js +176 -176
  406. package/src/atoms/components/Toggle/Toggle.vue +69 -69
  407. package/src/atoms/components/Tooltip/Tooltip.stories.js +493 -493
  408. package/src/atoms/components/Tooltip/Tooltip.vue +196 -196
  409. package/src/atoms/components/design-com/Icon/Icon.stories.js +82 -82
  410. package/src/atoms/components/design-com/Icon/Icon.vue +157 -157
  411. package/src/atoms/components/design-com/Icon/icons/award.vue +7 -7
  412. package/src/atoms/components/design-com/Icon/icons/bulb.vue +7 -7
  413. package/src/atoms/components/design-com/Icon/icons/card.vue +7 -7
  414. package/src/atoms/components/design-com/Icon/icons/check-circle-light.vue +7 -7
  415. package/src/atoms/components/design-com/Icon/icons/chevron-down.vue +7 -7
  416. package/src/atoms/components/design-com/Icon/icons/chevron-left.vue +7 -7
  417. package/src/atoms/components/design-com/Icon/icons/chevron-right.vue +3 -3
  418. package/src/atoms/components/design-com/Icon/icons/chevron-up.vue +7 -7
  419. package/src/atoms/components/design-com/Icon/icons/diamond.vue +7 -7
  420. package/src/atoms/components/design-com/Icon/icons/download.vue +7 -7
  421. package/src/atoms/components/design-com/Icon/icons/file-empty.vue +7 -7
  422. package/src/atoms/components/design-com/Icon/icons/file.vue +7 -7
  423. package/src/atoms/components/design-com/Icon/icons/filter.vue +7 -7
  424. package/src/atoms/components/design-com/Icon/icons/font.vue +7 -7
  425. package/src/atoms/components/design-com/Icon/icons/headphones.vue +7 -7
  426. package/src/atoms/components/design-com/Icon/icons/heart.vue +7 -7
  427. package/src/atoms/components/design-com/Icon/icons/image.vue +7 -7
  428. package/src/atoms/components/design-com/Icon/icons/logo.vue +7 -7
  429. package/src/atoms/components/design-com/Icon/icons/minus-circle-light.vue +7 -7
  430. package/src/atoms/components/design-com/Icon/icons/plus-circle-light.vue +8 -8
  431. package/src/atoms/components/design-com/Icon/icons/question-circle-filled.vue +7 -7
  432. package/src/atoms/components/design-com/Icon/icons/search.vue +7 -7
  433. package/src/atoms/components/design-com/Icon/icons/star-filled.vue +6 -6
  434. package/src/atoms/components/design-com/Icon/icons/star-hollow.vue +6 -6
  435. package/src/atoms/components/design-com/Icon/icons/users.vue +7 -7
  436. package/src/atoms/constants/constants.ts +6 -6
  437. package/src/atoms/mixin/hash-router-mixin.js +68 -68
  438. package/src/atoms/thirdparty-components/VueMasonryWall/VueMasonryWall.vue +280 -280
  439. package/src/atoms/thirdparty-components/VueMasonryWall/maxBy.js +50 -50
  440. package/src/css/tailwind.css +3 -3
  441. package/src/experiences/clients/brand-crowd-api.client.js +104 -104
  442. package/src/experiences/clients/brand-page-api.client.js +47 -47
  443. package/src/experiences/components/AuthFlow/Auth.fixtures.js +4 -4
  444. package/src/experiences/components/AuthFlow/Auth.stories.js +345 -345
  445. package/src/experiences/components/AuthFlow/AuthCrazyDomains.stories.js +60 -60
  446. package/src/experiences/components/AuthFlow/AuthLegal.vue +108 -108
  447. package/src/experiences/components/AuthFlow/AuthModal.vue +39 -39
  448. package/src/experiences/components/AuthFlow/ForgotPassword.vue +210 -210
  449. package/src/experiences/components/AuthFlow/ForgotPasswordModal.vue +68 -68
  450. package/src/experiences/components/AuthFlow/ResetPassword.vue +150 -150
  451. package/src/experiences/components/AuthFlow/ResetPasswordModal.vue +64 -64
  452. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +56 -56
  453. package/src/experiences/components/AuthFlow/SignIn.vue +442 -442
  454. package/src/experiences/components/AuthFlow/SignUp.vue +272 -272
  455. package/src/experiences/components/AuthFlow/SignUpModal.vue +90 -90
  456. package/src/experiences/components/AuthFlow/SocialSignIn.vue +177 -177
  457. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +74 -74
  458. package/src/experiences/components/AuthFlow/SubmissionButton.vue +56 -56
  459. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +97 -97
  460. package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +106 -106
  461. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +134 -134
  462. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +189 -189
  463. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +133 -133
  464. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue +115 -115
  465. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +203 -203
  466. package/src/experiences/components/PublishBrandPageModal/__fixtures__/data.js +25 -25
  467. package/src/experiences/components/SellDomainNameList/SellDomainNameList.fixtures.js +32 -32
  468. package/src/experiences/components/SellDomainNameList/SellDomainNameList.vue +145 -145
  469. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.stories.js +74 -74
  470. package/src/experiences/components/SellDomainNameListModal/SellDomainNameListModal.vue +124 -124
  471. package/src/experiences/components/SellDomainNameModalApplication/SellDomainNameModalApplication.vue +205 -205
  472. package/src/experiences/components/SellDomainNameSearchResult/SellDomainNameListSearchResult.vue +153 -153
  473. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.stories.js +38 -38
  474. package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +184 -184
  475. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.stories.js +40 -40
  476. package/src/experiences/components/SellDomainNameWidget/SellDomainNameWidget.vue +152 -152
  477. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.stories.js +205 -205
  478. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +127 -127
  479. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.stories.js +58 -58
  480. package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +278 -278
  481. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.stories.js +37 -37
  482. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +328 -328
  483. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +140 -140
  484. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +467 -467
  485. package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +97 -97
  486. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +69 -69
  487. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +49 -49
  488. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +38 -38
  489. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +91 -91
  490. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadingLoader.vue +22 -22
  491. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +290 -290
  492. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.stories.js +82 -82
  493. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +201 -201
  494. package/src/experiences/constants/api.js +8 -8
  495. package/src/experiences/constants/error-constants.js +5 -5
  496. package/src/experiences/constants/event-constants.js +18 -18
  497. package/src/experiences/constants/partner-dictionary-constants.js +27 -27
  498. package/src/experiences/constants/rego-source-constants.js +3 -3
  499. package/src/experiences/constants/sell-domain-name-constants.js +4 -4
  500. package/src/experiences/helpers/email-validator.js +5 -5
  501. package/src/experiences/helpers/hex-diff.js +116 -116
  502. package/src/experiences/helpers/tracking.js +5 -5
  503. package/src/experiences/mixins/mediaQueryMixin.js +31 -31
  504. package/src/experiences/mixins/themeMixin.js +22 -22
  505. package/src/themes/base.js +20 -20
  506. package/src/themes/bc.js +95 -95
  507. package/src/themes/bp.js +21 -21
  508. package/src/themes/cd.js +94 -94
  509. package/src/themes/dc.js +84 -84
  510. package/src/themes/dcom.js +106 -106
  511. package/src/themes/themes.js +16 -16
  512. package/src/viewports.js +51 -51
  513. package/stylelint.config.js +19 -19
  514. package/tailwind.build.js +83 -83
  515. package/tailwind.config.js +37 -37
  516. package/tailwind.themes.js +59 -59
  517. package/vite.config.ts +37 -37
  518. package/public/css/tailwind-brandCrowd.css +0 -2382
  519. package/public/css/tailwind-brandPage.css +0 -2070
  520. package/public/css/tailwind-crazyDomains.css +0 -2382
  521. package/public/css/tailwind-designCom.css +0 -2382
  522. package/public/css/tailwind-designCrowd.css +0 -2382
  523. package/src/atoms/components/Icon/icons/maker/spacing.vue +0 -18
  524. package/src/atoms/components/Icon/icons/maker/text-background-color.vue +0 -12
  525. package/src/atoms/components/Icon/icons/maker/text-color.vue +0 -14
package/.eslintrc.js CHANGED
@@ -1,35 +1,35 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- browser: true,
5
- },
6
- extends: ['plugin:vue/recommended', '@vue/airbnb', '@vue/prettier', 'plugin:storybook/recommended'],
7
- parser: 'vue-eslint-parser',
8
- plugins: ['prettier', '@typescript-eslint'],
9
- parserOptions: {
10
- parser: '@typescript-eslint/parser',
11
- ecmaVersion: 2020,
12
- sourceType: 'module',
13
- },
14
- rules: {
15
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
17
- 'import/no-extraneous-dependencies': [
18
- 'error',
19
- {
20
- devDependencies: true,
21
- },
22
- ],
23
- 'vue/no-template-target-blank': 'off',
24
- 'vuejs-accessibility/form-control-has-label': 'off',
25
- 'vue/html-button-has-type': 'off',
26
- 'vue/no-reserved-component-names': 'off',
27
- 'vuejs-accessibility/click-events-have-key-events': 'off',
28
- },
29
- overrides: [
30
- {
31
- files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.test.{j,t}s?(x)'],
32
- env: {},
33
- },
34
- ],
35
- };
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ browser: true,
5
+ },
6
+ extends: ['plugin:vue/recommended', '@vue/airbnb', '@vue/prettier', 'plugin:storybook/recommended'],
7
+ parser: 'vue-eslint-parser',
8
+ plugins: ['prettier', '@typescript-eslint'],
9
+ parserOptions: {
10
+ parser: '@typescript-eslint/parser',
11
+ ecmaVersion: 2020,
12
+ sourceType: 'module',
13
+ },
14
+ rules: {
15
+ 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
17
+ 'import/no-extraneous-dependencies': [
18
+ 'error',
19
+ {
20
+ devDependencies: true,
21
+ },
22
+ ],
23
+ 'vue/no-template-target-blank': 'off',
24
+ 'vuejs-accessibility/form-control-has-label': 'off',
25
+ 'vue/html-button-has-type': 'off',
26
+ 'vue/no-reserved-component-names': 'off',
27
+ 'vuejs-accessibility/click-events-have-key-events': 'off',
28
+ },
29
+ overrides: [
30
+ {
31
+ files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.test.{j,t}s?(x)'],
32
+ env: {},
33
+ },
34
+ ],
35
+ };
package/.prettierrc.js CHANGED
@@ -1,7 +1,7 @@
1
- module.exports = {
2
- singleQuote: true,
3
- trailingComma: 'all',
4
- arrowParens: 'always',
5
- endOfLine: 'auto',
6
- printWidth: 120,
7
- };
1
+ module.exports = {
2
+ singleQuote: true,
3
+ trailingComma: 'all',
4
+ arrowParens: 'always',
5
+ endOfLine: 'auto',
6
+ printWidth: 120,
7
+ };
@@ -1,39 +1,39 @@
1
- import { mergeConfig } from 'vite';
2
-
3
- module.exports = {
4
- stories: ['../src/**/components/**/*.stories.@(js|jsx|ts|tsx)'],
5
- addons: [
6
- '@storybook/addon-a11y',
7
- '@storybook/addon-actions',
8
- '@storybook/addon-controls',
9
- '@storybook/addon-essentials',
10
- '@storybook/addon-links',
11
- {
12
- name: '@storybook/addon-themes',
13
- options: {
14
- postCss: true,
15
- },
16
- },
17
- ],
18
- framework: {
19
- name: '@storybook/vue3-vite',
20
- options: {},
21
- },
22
- staticDirs: ['../public'],
23
- docs: {
24
- autodocs: true,
25
- },
26
- async viteFinal(config, options) {
27
- const configExtension = {
28
- optimizeDeps: {
29
- include: ['deepmerge'],
30
- },
31
- build: {
32
- commonjsOptions: {
33
- include: [/node_modules/],
34
- },
35
- },
36
- };
37
- return mergeConfig(config, configExtension);
38
- },
39
- };
1
+ import { mergeConfig } from 'vite';
2
+
3
+ module.exports = {
4
+ stories: ['../src/**/components/**/*.stories.@(js|jsx|ts|tsx)'],
5
+ addons: [
6
+ '@storybook/addon-a11y',
7
+ '@storybook/addon-actions',
8
+ '@storybook/addon-controls',
9
+ '@storybook/addon-essentials',
10
+ '@storybook/addon-links',
11
+ {
12
+ name: '@storybook/addon-themes',
13
+ options: {
14
+ postCss: true,
15
+ },
16
+ },
17
+ ],
18
+ framework: {
19
+ name: '@storybook/vue3-vite',
20
+ options: {},
21
+ },
22
+ staticDirs: ['../public'],
23
+ docs: {
24
+ autodocs: true,
25
+ },
26
+ async viteFinal(config, options) {
27
+ const configExtension = {
28
+ optimizeDeps: {
29
+ include: ['deepmerge'],
30
+ },
31
+ build: {
32
+ commonjsOptions: {
33
+ include: [/node_modules/],
34
+ },
35
+ },
36
+ };
37
+ return mergeConfig(config, configExtension);
38
+ },
39
+ };
@@ -1,4 +1,4 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
- />
1
+ <link
2
+ rel="stylesheet"
3
+ href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
+ />
@@ -1,4 +1,4 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
- />
1
+ <link
2
+ rel="stylesheet"
3
+ href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
+ />
@@ -1,10 +1,10 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
- />
5
-
6
- <link rel="stylesheet" href="css/tailwind-brandCrowd.css">
7
- <link rel="stylesheet" href="css/tailwind-brandPage.css">
8
- <link rel="stylesheet" href="css/tailwind-crazyDomains.css">
9
- <link rel="stylesheet" href="css/tailwind-designCom.css">
1
+ <link
2
+ rel="stylesheet"
3
+ href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
+ />
5
+
6
+ <link rel="stylesheet" href="css/tailwind-brandCrowd.css">
7
+ <link rel="stylesheet" href="css/tailwind-brandPage.css">
8
+ <link rel="stylesheet" href="css/tailwind-crazyDomains.css">
9
+ <link rel="stylesheet" href="css/tailwind-designCom.css">
10
10
  <link rel="stylesheet" href="css/tailwind-designCrowd.css">
@@ -1,10 +1,10 @@
1
- <link
2
- rel="stylesheet"
3
- href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
- />
5
-
6
- <link rel="stylesheet" href="css/tailwind-brandCrowd.css">
7
- <link rel="stylesheet" href="css/tailwind-brandPage.css">
8
- <link rel="stylesheet" href="css/tailwind-crazyDomains.css">
9
- <link rel="stylesheet" href="css/tailwind-designCom.css">
1
+ <link
2
+ rel="stylesheet"
3
+ href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap"
4
+ />
5
+
6
+ <link rel="stylesheet" href="css/tailwind-brandCrowd.css">
7
+ <link rel="stylesheet" href="css/tailwind-brandPage.css">
8
+ <link rel="stylesheet" href="css/tailwind-crazyDomains.css">
9
+ <link rel="stylesheet" href="css/tailwind-designCom.css">
10
10
  <link rel="stylesheet" href="css/tailwind-designCrowd.css">
@@ -1,14 +1,14 @@
1
- import { withThemeByClassName } from '@storybook/addon-themes';
2
-
3
- export const decorators = [
4
- withThemeByClassName({
5
- themes: {
6
- designCom: 'theme-designCom',
7
- brandCrowd: 'theme-brandCrowd',
8
- crazyDomain: 'theme-crazyDomains',
9
- designCrowd: 'theme-designCrowd',
10
- brandPage: 'theme-brandPage',
11
- },
12
- defaultTheme: 'brandCrowd',
13
- }),
14
- ];
1
+ import { withThemeByClassName } from '@storybook/addon-themes';
2
+
3
+ export const decorators = [
4
+ withThemeByClassName({
5
+ themes: {
6
+ designCom: 'theme-designCom',
7
+ brandCrowd: 'theme-brandCrowd',
8
+ crazyDomain: 'theme-crazyDomains',
9
+ designCrowd: 'theme-designCrowd',
10
+ brandPage: 'theme-brandPage',
11
+ },
12
+ defaultTheme: 'brandCrowd',
13
+ }),
14
+ ];
package/Dockerfile CHANGED
@@ -1,41 +1,41 @@
1
- FROM node:20.11.0-slim
2
-
3
- RUN npm i -g npm@10.7.0
4
-
5
- RUN apt-get update \
6
- && apt-get install -qq build-essential python3
7
-
8
- WORKDIR /app
9
-
10
- # First we copy only the things needed by gulp to preload the resources
11
- COPY package.json .
12
- COPY package-lock.json .
13
-
14
- # Import the token to access private npm packages
15
- COPY npmrc .
16
-
17
- # Copy the npmrc and rename it to .npmrc -- reason being if its present in the repository with the '.' then npm tries to use it.. ¯\_(ツ)_/¯
18
- RUN mv npmrc .npmrc
19
-
20
- ARG NPM_TOKEN
21
- RUN echo $NPM_TOKEN
22
-
23
- RUN npm i
24
-
25
- COPY . .
26
-
27
- COPY .npmignore ./
28
-
29
- RUN mkdir artifacts
30
- RUN npm publish || touch artifacts/npm_publish_failed
31
- RUN cp package.json artifacts/
32
-
33
- ENTRYPOINT ["/bin/echo", "Nothing to do."]
34
-
35
- # Publish to NPM:
36
- #
37
- # Windows
38
- # docker build . --build-arg NPM_TOKEN=%NPM_TOKEN%
39
- #
40
- # Linux
41
- # docker build . --build-arg NPM_TOKEN=$NPM_TOKEN
1
+ FROM node:20.11.0-slim
2
+
3
+ RUN npm i -g npm@10.7.0
4
+
5
+ RUN apt-get update \
6
+ && apt-get install -qq build-essential python3
7
+
8
+ WORKDIR /app
9
+
10
+ # First we copy only the things needed by gulp to preload the resources
11
+ COPY package.json .
12
+ COPY package-lock.json .
13
+
14
+ # Import the token to access private npm packages
15
+ COPY npmrc .
16
+
17
+ # Copy the npmrc and rename it to .npmrc -- reason being if its present in the repository with the '.' then npm tries to use it.. ¯\_(ツ)_/¯
18
+ RUN mv npmrc .npmrc
19
+
20
+ ARG NPM_TOKEN
21
+ RUN echo $NPM_TOKEN
22
+
23
+ RUN npm i
24
+
25
+ COPY . .
26
+
27
+ COPY .npmignore ./
28
+
29
+ RUN mkdir artifacts
30
+ RUN npm publish || touch artifacts/npm_publish_failed
31
+ RUN cp package.json artifacts/
32
+
33
+ ENTRYPOINT ["/bin/echo", "Nothing to do."]
34
+
35
+ # Publish to NPM:
36
+ #
37
+ # Windows
38
+ # docker build . --build-arg NPM_TOKEN=%NPM_TOKEN%
39
+ #
40
+ # Linux
41
+ # docker build . --build-arg NPM_TOKEN=$NPM_TOKEN
package/README.md CHANGED
@@ -1,103 +1,103 @@
1
- # fe-shared-lib
2
-
3
- ## Contents
4
-
5
- - [Start](#start)
6
- - [Local Development](#local-development)
7
- - [Testing in a UAT](#testing-uat)
8
- - [Storybook](#storybook)
9
-
10
- ```
11
- npm install
12
- ```
13
-
14
- ### Start
15
-
16
- This command will build all of the necessary Tailwind files for each theme and setup the configuration for Storybook. Once complete, Storybook will open and you can preview the shared components.
17
-
18
- ```
19
- npm start
20
- ```
21
-
22
- <a id="local-development"></a>
23
-
24
- ### Local Development
25
-
26
- To edit the design system locally whilst being using in a consumer you need to run `npm link` in this directory and then `npm link @designcrowd/fe-shared-lib` in the consumer.
27
-
28
- <a id="testing-uat"></a>
29
-
30
- ### Testing in a UAT
31
-
32
- If you want to have an experimental version of your change, like have it in a uat env without publishing it to prod:
33
-
34
- 1. Update package.json with `"version": "[current]-[short description of your work]"`
35
- 2. Run npm i
36
- 3. run `docker build . --build-arg NPM_TOKEN=$NPM_TOKEN` in the project directory (make sure you have $NPM_TOKEN properly set in your local env)
37
- 4. Update package reference in the consumer to the version you have just built
38
-
39
- ### If you are making changes to components used into the BrandPage Tab in BC.NET
40
-
41
- 1. Get latest app.maker source code.
42
- 2. Update its reference to `@designcrowd/fe-shared-lib` with the one you just built
43
- 3. Bump its version (app.maker version)
44
- 4. Run `npm run docker:publish:bp`
45
- 5. IN BC.Net Update reference of `@designcrowd/library.brand-page` to use the version you just set in the app.maker
46
-
47
- <a id="storybook"></a>
48
-
49
- ### Storybook
50
-
51
- Storybook is published with each new commit to `master` and can be found here:
52
-
53
- https://brandcrowd-storybook.s3.amazonaws.com/fe-shared-lib/live/index.html
54
-
55
-
56
-
57
-
58
- # atoms (formerly shared-component-library)
59
-
60
- This flow chart describes the workflow for the shared component library.
61
- https://app.diagrams.net/#G1TtCW8-zgVQz7bacsfQpqL5ZYCzeCGnXu
62
-
63
-
64
- ## Project setup
65
-
66
- ```
67
- npm i
68
- ```
69
-
70
- ### Start
71
-
72
- This command will build all necessary Tailwind files for each theme and set up the configuration for Storybook. Once complete, Storybook will open and you can preview the shared components.
73
-
74
- ```
75
- npm start
76
- ```
77
-
78
- ### Local Development
79
-
80
- ### Storybook
81
-
82
- Update Storybook: `npx storybook@latest upgrade`
83
-
84
- Writing stories:
85
-
86
- * Storybook Vue 3 docs: https://storybook.js.org/docs/get-started/vue3-vite
87
- * Official examples: https://github.com/storybookjs/storybook/blob/next/test-storybooks/portable-stories-kitchen-sink/vue3/stories/Button.stories.ts
88
-
89
-
90
-
91
- # DesignCrowd Tailwind Configuration
92
- The purpose of the `themes` directory is to build up a library of themes for our different products in a single place. These themes are then exported and consumed into each product using a local Tailwind CSS setup specific to that product. This provides us with a consistent approach for our colours, fonts, spacing etc whilst also being able to control the Tailwind CSS styles across all of our products.
93
-
94
- TODO This repository is published as an NPM package and it's themes and helper functions are exposed in the `index.js` file.
95
-
96
- ## Adding new configuration styles
97
- New configuration styles can be added to the `themes/base.js` file which will be shared by all child themes. If you want to add a new option only in a specific theme, then edit the `themes/xx.js` file. The format for the theme files follows the structure of the `tailwind.config.js` file. https://tailwindcss.com/docs/configuration
98
-
99
- ## Adding new themes
100
- New themes can be added by creating a new xx.js file in the themes folder. Once the new theme has been configured, it will need to be made exportable in the `index.js` file.
101
-
102
- ## Versioning
103
- Ensure to bump the version number in `package.json` followed by running `npm i` before each commit. And then run `npm run docker:publish` to publish the version to NPM.
1
+ # fe-shared-lib
2
+
3
+ ## Contents
4
+
5
+ - [Start](#start)
6
+ - [Local Development](#local-development)
7
+ - [Testing in a UAT](#testing-uat)
8
+ - [Storybook](#storybook)
9
+
10
+ ```
11
+ npm install
12
+ ```
13
+
14
+ ### Start
15
+
16
+ This command will build all of the necessary Tailwind files for each theme and setup the configuration for Storybook. Once complete, Storybook will open and you can preview the shared components.
17
+
18
+ ```
19
+ npm start
20
+ ```
21
+
22
+ <a id="local-development"></a>
23
+
24
+ ### Local Development
25
+
26
+ To edit the design system locally whilst being using in a consumer you need to run `npm link` in this directory and then `npm link @designcrowd/fe-shared-lib` in the consumer.
27
+
28
+ <a id="testing-uat"></a>
29
+
30
+ ### Testing in a UAT
31
+
32
+ If you want to have an experimental version of your change, like have it in a uat env without publishing it to prod:
33
+
34
+ 1. Update package.json with `"version": "[current]-[short description of your work]"`
35
+ 2. Run npm i
36
+ 3. run `docker build . --build-arg NPM_TOKEN=$NPM_TOKEN` in the project directory (make sure you have $NPM_TOKEN properly set in your local env)
37
+ 4. Update package reference in the consumer to the version you have just built
38
+
39
+ ### If you are making changes to components used into the BrandPage Tab in BC.NET
40
+
41
+ 1. Get latest app.maker source code.
42
+ 2. Update its reference to `@designcrowd/fe-shared-lib` with the one you just built
43
+ 3. Bump its version (app.maker version)
44
+ 4. Run `npm run docker:publish:bp`
45
+ 5. IN BC.Net Update reference of `@designcrowd/library.brand-page` to use the version you just set in the app.maker
46
+
47
+ <a id="storybook"></a>
48
+
49
+ ### Storybook
50
+
51
+ Storybook is published with each new commit to `master` and can be found here:
52
+
53
+ https://brandcrowd-storybook.s3.amazonaws.com/fe-shared-lib/live/index.html
54
+
55
+
56
+
57
+
58
+ # atoms (formerly shared-component-library)
59
+
60
+ This flow chart describes the workflow for the shared component library.
61
+ https://app.diagrams.net/#G1TtCW8-zgVQz7bacsfQpqL5ZYCzeCGnXu
62
+
63
+
64
+ ## Project setup
65
+
66
+ ```
67
+ npm i
68
+ ```
69
+
70
+ ### Start
71
+
72
+ This command will build all necessary Tailwind files for each theme and set up the configuration for Storybook. Once complete, Storybook will open and you can preview the shared components.
73
+
74
+ ```
75
+ npm start
76
+ ```
77
+
78
+ ### Local Development
79
+
80
+ ### Storybook
81
+
82
+ Update Storybook: `npx storybook@latest upgrade`
83
+
84
+ Writing stories:
85
+
86
+ * Storybook Vue 3 docs: https://storybook.js.org/docs/get-started/vue3-vite
87
+ * Official examples: https://github.com/storybookjs/storybook/blob/next/test-storybooks/portable-stories-kitchen-sink/vue3/stories/Button.stories.ts
88
+
89
+
90
+
91
+ # DesignCrowd Tailwind Configuration
92
+ The purpose of the `themes` directory is to build up a library of themes for our different products in a single place. These themes are then exported and consumed into each product using a local Tailwind CSS setup specific to that product. This provides us with a consistent approach for our colours, fonts, spacing etc whilst also being able to control the Tailwind CSS styles across all of our products.
93
+
94
+ TODO This repository is published as an NPM package and it's themes and helper functions are exposed in the `index.js` file.
95
+
96
+ ## Adding new configuration styles
97
+ New configuration styles can be added to the `themes/base.js` file which will be shared by all child themes. If you want to add a new option only in a specific theme, then edit the `themes/xx.js` file. The format for the theme files follows the structure of the `tailwind.config.js` file. https://tailwindcss.com/docs/configuration
98
+
99
+ ## Adding new themes
100
+ New themes can be added by creating a new xx.js file in the themes folder. Once the new theme has been configured, it will need to be made exportable in the `index.js` file.
101
+
102
+ ## Versioning
103
+ Ensure to bump the version number in `package.json` followed by running `npm i` before each commit. And then run `npm run docker:publish` to publish the version to NPM.
package/buildspec.yml CHANGED
@@ -1,46 +1,46 @@
1
- version: 0.2
2
- environment_variables:
3
- plaintext:
4
- S3_KEY_PREFIX: 'brandcrowd-storybook/fe-shared-lib'
5
- STATIC_PATH: './.storybook-static'
6
- env:
7
- parameter-store:
8
- NPM_TOKEN: 'publish-npm-designcrowd-token'
9
- build_docker_username: 'build-docker-username'
10
- build_docker_password: 'build-docker-password'
11
- phases:
12
- install:
13
- runtime-versions:
14
- nodejs: 20
15
- commands:
16
- - npm i -g npm@10.4.0
17
- - cp npmrc .npmrc
18
- - npm install
19
- - echo Installing yarn...
20
- - npm install -g yarn
21
- pre_build:
22
- commands:
23
- - IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
24
- build:
25
- commands:
26
- - echo Build started on `date`
27
- - echo Building the Docker image...
28
- - docker login -u $build_docker_username -p $build_docker_password
29
- - yarn build
30
- - docker build -t $IMAGE_TAG --build-arg NPM_TOKEN=$NPM_TOKEN .
31
- - echo Build started on `date`
32
- - yarn build:storybook
33
- post_build:
34
- commands:
35
- - echo Build completed on `date`
36
- - echo Extracting artifacts from Docker container...
37
- - docker create --name "temp_library.fe-shared-lib_$IMAGE_TAG" $IMAGE_TAG
38
- - docker cp temp_library.fe-shared-lib_$IMAGE_TAG:/app/artifacts .
39
- - docker rm temp_library.fe-shared-lib_$IMAGE_TAG
40
- - NPM_PUBLISH_FAILED=$(ls -1 ./artifacts/npm_publish_failed | wc -l)
41
- - NPM_PUBLISH_VERSION=$(grep version ./artifacts/package.json | sed -En "s/\s+\"version\".\s+\"(.+)\",/\1/p")
42
- - JSON="{\"npmPublishVersion\":{\"DataType\":\"String\",\"StringValue\":\"$NPM_PUBLISH_VERSION\"},\"npmPublishFailed\":{\"DataType\":\"String\",\"StringValue\":\"$NPM_PUBLISH_FAILED\"},\"gitRepoName\":{\"DataType\":\"String\",\"StringValue\":\"fe-shared-lib\"}, \"gitHash\":{\"DataType\":\"String\",\"StringValue\":\"${CODEBUILD_RESOLVED_SOURCE_VERSION}\"}, \"containerPath\":{\"DataType\":\"String\",\"StringValue\":\"${IMAGE_TAG}\"}}"
43
- - aws sns publish --topic-arn "arn:aws:sns:us-east-1:104415087145:ci-libraryimagemaker-build" --message "Build Complete" --message-attributes "$JSON"
44
- - aws s3 rm s3://${S3_KEY_PREFIX}/live --recursive
45
- - aws s3 cp ${STATIC_PATH}/ s3://${S3_KEY_PREFIX}/live --recursive
46
- - echo Build completed on `date`
1
+ version: 0.2
2
+ environment_variables:
3
+ plaintext:
4
+ S3_KEY_PREFIX: 'brandcrowd-storybook/fe-shared-lib'
5
+ STATIC_PATH: './.storybook-static'
6
+ env:
7
+ parameter-store:
8
+ NPM_TOKEN: 'publish-npm-designcrowd-token'
9
+ build_docker_username: 'build-docker-username'
10
+ build_docker_password: 'build-docker-password'
11
+ phases:
12
+ install:
13
+ runtime-versions:
14
+ nodejs: 20
15
+ commands:
16
+ - npm i -g npm@10.4.0
17
+ - cp npmrc .npmrc
18
+ - npm install
19
+ - echo Installing yarn...
20
+ - npm install -g yarn
21
+ pre_build:
22
+ commands:
23
+ - IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
24
+ build:
25
+ commands:
26
+ - echo Build started on `date`
27
+ - echo Building the Docker image...
28
+ - docker login -u $build_docker_username -p $build_docker_password
29
+ - yarn build
30
+ - docker build -t $IMAGE_TAG --build-arg NPM_TOKEN=$NPM_TOKEN .
31
+ - echo Build started on `date`
32
+ - yarn build:storybook
33
+ post_build:
34
+ commands:
35
+ - echo Build completed on `date`
36
+ - echo Extracting artifacts from Docker container...
37
+ - docker create --name "temp_library.fe-shared-lib_$IMAGE_TAG" $IMAGE_TAG
38
+ - docker cp temp_library.fe-shared-lib_$IMAGE_TAG:/app/artifacts .
39
+ - docker rm temp_library.fe-shared-lib_$IMAGE_TAG
40
+ - NPM_PUBLISH_FAILED=$(ls -1 ./artifacts/npm_publish_failed | wc -l)
41
+ - NPM_PUBLISH_VERSION=$(grep version ./artifacts/package.json | sed -En "s/\s+\"version\".\s+\"(.+)\",/\1/p")
42
+ - JSON="{\"npmPublishVersion\":{\"DataType\":\"String\",\"StringValue\":\"$NPM_PUBLISH_VERSION\"},\"npmPublishFailed\":{\"DataType\":\"String\",\"StringValue\":\"$NPM_PUBLISH_FAILED\"},\"gitRepoName\":{\"DataType\":\"String\",\"StringValue\":\"fe-shared-lib\"}, \"gitHash\":{\"DataType\":\"String\",\"StringValue\":\"${CODEBUILD_RESOLVED_SOURCE_VERSION}\"}, \"containerPath\":{\"DataType\":\"String\",\"StringValue\":\"${IMAGE_TAG}\"}}"
43
+ - aws sns publish --topic-arn "arn:aws:sns:us-east-1:104415087145:ci-libraryimagemaker-build" --message "Build Complete" --message-attributes "$JSON"
44
+ - aws s3 rm s3://${S3_KEY_PREFIX}/live --recursive
45
+ - aws s3 cp ${STATIC_PATH}/ s3://${S3_KEY_PREFIX}/live --recursive
46
+ - echo Build completed on `date`