@salesforcedevs/dx-components 0.26.1-alpha0.6 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/LICENSE +12 -0
  2. package/lwc.config.json +2 -1
  3. package/package.json +3 -9
  4. package/src/assets/icons/action-sprite/svg/symbols.svg +1 -0
  5. package/src/assets/icons/brand-sprite/svg/symbols.svg +1381 -0
  6. package/src/assets/icons/custom-sprite/svg/symbols.svg +1 -0
  7. package/src/assets/icons/doctype-sprite/svg/symbols.svg +1 -0
  8. package/src/assets/icons/general-sprite/svg/symbols.svg +3013 -0
  9. package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +257 -0
  10. package/src/assets/icons/standard-sprite/svg/symbols.svg +1 -0
  11. package/src/assets/icons/utility-sprite/svg/symbols.svg +1 -0
  12. package/src/assets/svg/card-news-learn-moar.svg +415 -0
  13. package/src/assets/svg/cloud-1.svg +24 -0
  14. package/src/assets/svg/cloud-2.svg +18 -0
  15. package/src/assets/svg/codey.svg +93 -0
  16. package/src/assets/svg/command.svg +9 -0
  17. package/src/assets/svg/control.svg +10 -0
  18. package/src/assets/svg/docs-empty-state-small.svg +72 -0
  19. package/src/assets/svg/docs-empty-state.svg +86 -0
  20. package/src/assets/svg/dsc-home-news-bear.svg +3 -0
  21. package/src/assets/svg/dsc-home-news-community.png +0 -0
  22. package/src/assets/svg/dsc-home-news-goatbear.svg +257 -0
  23. package/src/assets/svg/dsc-home-news-samplegallery.svg +76 -0
  24. package/src/assets/svg/empty-state-assistant.svg +1 -0
  25. package/src/assets/svg/fch-blog-cloud-1.png +0 -0
  26. package/src/assets/svg/fch-blog-cloud-2.png +0 -0
  27. package/src/assets/svg/fch-blog-planet.png +0 -0
  28. package/src/assets/svg/feature-backdrop1.svg +10 -0
  29. package/src/assets/svg/feature-backdrop2.svg +10 -0
  30. package/src/assets/svg/featured-demo-art-blank.svg +76 -0
  31. package/src/assets/svg/featured-demo-art-eBikes.svg +77 -0
  32. package/src/assets/svg/footer-graphic-large.svg +207 -0
  33. package/src/assets/svg/footer-graphic-mountains-small.svg +17 -0
  34. package/src/assets/svg/footer-graphic-mountains.svg +21 -0
  35. package/src/assets/svg/footer-graphic-trees-small.svg +33 -0
  36. package/src/assets/svg/footer-graphic-trees.svg +62 -0
  37. package/src/assets/svg/lake-mountain.svg +79 -0
  38. package/src/assets/svg/podcast-subscription-clouds-small.svg +49 -0
  39. package/src/assets/svg/podcast-subscription-clouds.svg +57 -0
  40. package/src/assets/svg/podcasts-subscription-apple.svg +164 -0
  41. package/src/assets/svg/podcasts-subscription-google.svg +29 -0
  42. package/src/assets/svg/podcasts-subscription-spotify.svg +11 -0
  43. package/src/assets/svg/salesforce-cloud.svg +7 -0
  44. package/src/assets/svg/salesforce-logo-corporate.svg +21 -0
  45. package/src/assets/svg/salesforce-logo.svg +14 -0
  46. package/src/assets/svg/sidebar-loading.svg +34 -0
  47. package/src/assets/svg/slack-cta-podcast-background-left.svg +28 -0
  48. package/src/assets/svg/slack-cta-podcast-background-right.svg +38 -0
  49. package/src/assets/svg/trees.svg +42 -0
  50. package/src/modules/base-elements/archiveCard/archiveCard.ts +35 -0
  51. package/src/modules/base-elements/headerBase/headerBase.ts +204 -0
  52. package/src/modules/dx/banner/banner.css +46 -0
  53. package/src/modules/dx/banner/banner.html +13 -0
  54. package/src/modules/dx/banner/banner.ts +14 -0
  55. package/src/modules/dx/brandThemeProvider/brandCssVars.ts +10 -0
  56. package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +3 -0
  57. package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +46 -0
  58. package/src/modules/dx/breadcrumbs/breadcrumbs.css +111 -0
  59. package/src/modules/dx/breadcrumbs/breadcrumbs.html +44 -0
  60. package/src/modules/dx/breadcrumbs/breadcrumbs.ts +122 -0
  61. package/src/modules/dx/button/button.css +175 -0
  62. package/src/modules/dx/button/button.html +43 -0
  63. package/src/modules/dx/button/button.ts +63 -0
  64. package/src/modules/dx/cardBlogPost/cardBlogPost.css +13 -0
  65. package/src/modules/dx/cardBlogPost/cardBlogPost.html +24 -0
  66. package/src/modules/dx/cardBlogPost/cardBlogPost.ts +23 -0
  67. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +3 -0
  68. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +16 -0
  69. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +29 -0
  70. package/src/modules/dx/cardCallout/cardCallout.css +57 -0
  71. package/src/modules/dx/cardCallout/cardCallout.html +15 -0
  72. package/src/modules/dx/cardCallout/cardCallout.ts +37 -0
  73. package/src/modules/dx/cardContent/cardContent.css +52 -0
  74. package/src/modules/dx/cardContent/cardContent.html +59 -0
  75. package/src/modules/dx/cardContent/cardContent.ts +68 -0
  76. package/src/modules/dx/cardDemo/cardDemo.css +1 -0
  77. package/src/modules/dx/cardDemo/cardDemo.html +12 -0
  78. package/src/modules/dx/cardDemo/cardDemo.ts +11 -0
  79. package/src/modules/dx/cardDocs/cardDocs.css +50 -0
  80. package/src/modules/dx/cardDocs/cardDocs.html +20 -0
  81. package/src/modules/dx/cardDocs/cardDocs.ts +30 -0
  82. package/src/modules/dx/cardEvent/cardEvent.css +107 -0
  83. package/src/modules/dx/cardEvent/cardEvent.html +94 -0
  84. package/src/modules/dx/cardEvent/cardEvent.ts +42 -0
  85. package/src/modules/dx/cardExpanded/cardExpanded.css +49 -0
  86. package/src/modules/dx/cardExpanded/cardExpanded.html +37 -0
  87. package/src/modules/dx/cardExpanded/cardExpanded.ts +45 -0
  88. package/src/modules/dx/cardGrid/cardGrid.css +89 -0
  89. package/src/modules/dx/cardGrid/cardGrid.html +46 -0
  90. package/src/modules/dx/cardGrid/cardGrid.ts +140 -0
  91. package/src/modules/dx/cardMinimal/cardMinimal.css +31 -0
  92. package/src/modules/dx/cardMinimal/cardMinimal.html +13 -0
  93. package/src/modules/dx/cardMinimal/cardMinimal.ts +3 -0
  94. package/src/modules/dx/cardNews/cardNews.css +159 -0
  95. package/src/modules/dx/cardNews/cardNews.html +37 -0
  96. package/src/modules/dx/cardNews/cardNews.ts +62 -0
  97. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +19 -0
  98. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +36 -0
  99. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +36 -0
  100. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +3 -0
  101. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +12 -0
  102. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +29 -0
  103. package/src/modules/dx/cardSmall/cardSmall.css +32 -0
  104. package/src/modules/dx/cardSmall/cardSmall.html +42 -0
  105. package/src/modules/dx/cardSmall/cardSmall.ts +38 -0
  106. package/src/modules/dx/cardTitle/cardTitle.css +41 -0
  107. package/src/modules/dx/cardTitle/cardTitle.html +20 -0
  108. package/src/modules/dx/cardTitle/cardTitle.ts +27 -0
  109. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +24 -0
  110. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +20 -0
  111. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +18 -0
  112. package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +14 -0
  113. package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +26 -0
  114. package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +13 -0
  115. package/src/modules/dx/checkbox/checkbox.css +168 -0
  116. package/src/modules/dx/checkbox/checkbox.html +26 -0
  117. package/src/modules/dx/checkbox/checkbox.ts +55 -0
  118. package/src/modules/dx/checkboxGroup/checkboxGroup.css +12 -0
  119. package/src/modules/dx/checkboxGroup/checkboxGroup.html +15 -0
  120. package/src/modules/dx/checkboxGroup/checkboxGroup.ts +77 -0
  121. package/src/modules/dx/codeBlock/codeBlock.css +128 -0
  122. package/src/modules/dx/codeBlock/codeBlock.html +79 -0
  123. package/src/modules/dx/codeBlock/codeBlock.ts +215 -0
  124. package/src/modules/dx/codeBlock/darkTheme.css +88 -0
  125. package/src/modules/dx/codeBlock/lightTheme.css +72 -0
  126. package/src/modules/dx/dropdown/dropdown.css +93 -0
  127. package/src/modules/dx/dropdown/dropdown.html +67 -0
  128. package/src/modules/dx/dropdown/dropdown.ts +182 -0
  129. package/src/modules/dx/dropdownOption/dropdownOption.css +61 -0
  130. package/src/modules/dx/dropdownOption/dropdownOption.html +53 -0
  131. package/src/modules/dx/dropdownOption/dropdownOption.ts +39 -0
  132. package/src/modules/dx/emptyState/emptyState.css +64 -0
  133. package/src/modules/dx/emptyState/emptyState.html +9 -0
  134. package/src/modules/dx/emptyState/emptyState.ts +20 -0
  135. package/src/modules/dx/feature/feature.css +135 -0
  136. package/src/modules/dx/feature/feature.html +33 -0
  137. package/src/modules/dx/feature/feature.ts +34 -0
  138. package/src/modules/dx/featureGrid/featureGrid.html +3 -0
  139. package/src/modules/dx/featureGrid/featureGrid.ts +15 -0
  140. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +469 -0
  141. package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +96 -0
  142. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +113 -0
  143. package/src/modules/dx/featuredContentHeader/svgs.ts +35 -0
  144. package/src/modules/dx/featuresList/featuresList.css +24 -0
  145. package/src/modules/dx/featuresList/featuresList.html +20 -0
  146. package/src/modules/dx/featuresList/featuresList.ts +21 -0
  147. package/src/modules/dx/footer/footer.css +405 -0
  148. package/src/modules/dx/footer/footer.html +145 -0
  149. package/src/modules/dx/footer/footer.ts +124 -0
  150. package/src/modules/dx/footer/links.ts +140 -0
  151. package/src/modules/dx/footerOption/footerOption.css +4 -0
  152. package/src/modules/dx/footerOption/footerOption.html +12 -0
  153. package/src/modules/dx/footerOption/footerOption.ts +19 -0
  154. package/src/modules/dx/formattedDateTime/formattedDateTime.html +1 -0
  155. package/src/modules/dx/formattedDateTime/formattedDateTime.ts +72 -0
  156. package/src/modules/dx/grid/grid.css +48 -0
  157. package/src/modules/dx/grid/grid.html +3 -0
  158. package/src/modules/dx/grid/grid.md +14 -0
  159. package/src/modules/dx/grid/grid.ts +72 -0
  160. package/src/modules/dx/groupBio/groupBio.css +49 -0
  161. package/src/modules/dx/groupBio/groupBio.html +29 -0
  162. package/src/modules/dx/groupBio/groupBio.ts +41 -0
  163. package/src/modules/dx/groupText/groupText.css +119 -0
  164. package/src/modules/dx/groupText/groupText.html +65 -0
  165. package/src/modules/dx/groupText/groupText.ts +93 -0
  166. package/src/modules/dx/headTags/headTags.html +3 -0
  167. package/src/modules/dx/headTags/headTags.ts +39 -0
  168. package/src/modules/dx/header/__benchmarks__/header.benchmark.js +45 -0
  169. package/src/modules/dx/header/header.css +109 -0
  170. package/src/modules/dx/header/header.html +129 -0
  171. package/src/modules/dx/header/header.ts +27 -0
  172. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +160 -0
  173. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +73 -0
  174. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +102 -0
  175. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.css +5 -0
  176. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.html +14 -0
  177. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +20 -0
  178. package/src/modules/dx/headerNav/headerNav.css +31 -0
  179. package/src/modules/dx/headerNav/headerNav.html +48 -0
  180. package/src/modules/dx/headerNav/headerNav.ts +56 -0
  181. package/src/modules/dx/headerSearch/headerSearch.css +62 -0
  182. package/src/modules/dx/headerSearch/headerSearch.html +64 -0
  183. package/src/modules/dx/headerSearch/headerSearch.ts +159 -0
  184. package/src/modules/dx/helmet/helmet.css +83 -0
  185. package/src/modules/dx/helmet/helmet.html +39 -0
  186. package/src/modules/dx/helmet/helmet.ts +27 -0
  187. package/src/modules/dx/hr/hr.css +55 -0
  188. package/src/modules/dx/hr/hr.html +23 -0
  189. package/src/modules/dx/hr/hr.ts +45 -0
  190. package/src/modules/dx/icon/icon.css +14 -0
  191. package/src/modules/dx/icon/icon.html +11 -0
  192. package/src/modules/dx/icon/icon.ts +85 -0
  193. package/src/modules/dx/iconBadge/iconBadge.css +40 -0
  194. package/src/modules/dx/iconBadge/iconBadge.html +10 -0
  195. package/src/modules/dx/iconBadge/iconBadge.ts +42 -0
  196. package/src/modules/dx/imageAndLabel/imageAndLabel.css +54 -0
  197. package/src/modules/dx/imageAndLabel/imageAndLabel.html +22 -0
  198. package/src/modules/dx/imageAndLabel/imageAndLabel.ts +16 -0
  199. package/src/modules/dx/input/input.css +165 -0
  200. package/src/modules/dx/input/input.html +58 -0
  201. package/src/modules/dx/input/input.ts +238 -0
  202. package/src/modules/dx/input/validators.ts +5 -0
  203. package/src/modules/dx/instrumentation/instrumentation.html +1 -0
  204. package/src/modules/dx/instrumentation/instrumentation.ts +116 -0
  205. package/src/modules/dx/interactiveImage/interactiveImage.css +59 -0
  206. package/src/modules/dx/interactiveImage/interactiveImage.html +32 -0
  207. package/src/modules/dx/interactiveImage/interactiveImage.ts +71 -0
  208. package/src/modules/dx/lazy/lazy.html +5 -0
  209. package/src/modules/dx/lazy/lazy.ts +163 -0
  210. package/src/modules/dx/logo/logo.css +33 -0
  211. package/src/modules/dx/logo/logo.html +6 -0
  212. package/src/modules/dx/logo/logo.ts +8 -0
  213. package/src/modules/dx/modalDrawer/modalDrawer.css +40 -0
  214. package/src/modules/dx/modalDrawer/modalDrawer.html +11 -0
  215. package/src/modules/dx/modalDrawer/modalDrawer.ts +27 -0
  216. package/src/modules/dx/newsletterForm/newsletterForm.css +73 -0
  217. package/src/modules/dx/newsletterForm/newsletterForm.html +73 -0
  218. package/src/modules/dx/newsletterForm/newsletterForm.ts +238 -0
  219. package/src/modules/dx/pagination/pagination.css +51 -0
  220. package/src/modules/dx/pagination/pagination.html +45 -0
  221. package/src/modules/dx/pagination/pagination.ts +93 -0
  222. package/src/modules/dx/podcastHost/podcastHost.css +62 -0
  223. package/src/modules/dx/podcastHost/podcastHost.html +28 -0
  224. package/src/modules/dx/podcastHost/podcastHost.ts +13 -0
  225. package/src/modules/dx/podcastPlayer/podcastPlayer.css +10 -0
  226. package/src/modules/dx/podcastPlayer/podcastPlayer.html +3 -0
  227. package/src/modules/dx/podcastPlayer/podcastPlayer.ts +5 -0
  228. package/src/modules/dx/podcastSubscription/podcastSubscription.css +91 -0
  229. package/src/modules/dx/podcastSubscription/podcastSubscription.html +24 -0
  230. package/src/modules/dx/podcastSubscription/podcastSubscription.ts +58 -0
  231. package/src/modules/dx/popover/popover.css +63 -0
  232. package/src/modules/dx/popover/popover.html +16 -0
  233. package/src/modules/dx/popover/popover.ts +313 -0
  234. package/src/modules/dx/radioGroup/radioGroup.css +12 -0
  235. package/src/modules/dx/radioGroup/radioGroup.html +16 -0
  236. package/src/modules/dx/radioGroup/radioGroup.ts +65 -0
  237. package/src/modules/dx/relativeDateTime/relativeDateTime.html +3 -0
  238. package/src/modules/dx/relativeDateTime/relativeDateTime.ts +113 -0
  239. package/src/modules/dx/searchResults/coveo.css +18989 -0
  240. package/src/modules/dx/searchResults/searchResults.css +387 -0
  241. package/src/modules/dx/searchResults/searchResults.html +104 -0
  242. package/src/modules/dx/searchResults/searchResults.ts +186 -0
  243. package/src/modules/dx/section/section.css +130 -0
  244. package/src/modules/dx/section/section.html +66 -0
  245. package/src/modules/dx/section/section.ts +41 -0
  246. package/src/modules/dx/sectionSignup/sectionSignup.css +43 -0
  247. package/src/modules/dx/sectionSignup/sectionSignup.html +23 -0
  248. package/src/modules/dx/sectionSignup/sectionSignup.ts +44 -0
  249. package/src/modules/dx/select/select.css +44 -0
  250. package/src/modules/dx/select/select.html +60 -0
  251. package/src/modules/dx/select/select.ts +23 -0
  252. package/src/modules/dx/sidebar/sidebar.css +192 -0
  253. package/src/modules/dx/sidebar/sidebar.html +94 -0
  254. package/src/modules/dx/sidebar/sidebar.ts +255 -0
  255. package/src/modules/dx/sidebarOld/sidebarOld.css +160 -0
  256. package/src/modules/dx/sidebarOld/sidebarOld.html +70 -0
  257. package/src/modules/dx/sidebarOld/sidebarOld.ts +187 -0
  258. package/src/modules/dx/sidebarSearch/sidebarSearch.css +3 -0
  259. package/src/modules/dx/sidebarSearch/sidebarSearch.html +26 -0
  260. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +437 -0
  261. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +36 -0
  262. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.html +14 -0
  263. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +70 -0
  264. package/src/modules/dx/skipNavLink/skipNavLink.css +21 -0
  265. package/src/modules/dx/skipNavLink/skipNavLink.html +3 -0
  266. package/src/modules/dx/skipNavLink/skipNavLink.ts +3 -0
  267. package/src/modules/dx/slackCta/slackCta.css +47 -0
  268. package/src/modules/dx/slackCta/slackCta.html +17 -0
  269. package/src/modules/dx/slackCta/slackCta.ts +12 -0
  270. package/src/modules/dx/socials/socials.css +35 -0
  271. package/src/modules/dx/socials/socials.html +22 -0
  272. package/src/modules/dx/socials/socials.ts +81 -0
  273. package/src/modules/dx/spinner/spinner.css +750 -0
  274. package/src/modules/dx/spinner/spinner.html +6 -0
  275. package/src/modules/dx/spinner/spinner.ts +20 -0
  276. package/src/modules/dx/tab/tab.css +106 -0
  277. package/src/modules/dx/tab/tab.html +13 -0
  278. package/src/modules/dx/tab/tab.ts +52 -0
  279. package/src/modules/dx/toc/toc.css +94 -0
  280. package/src/modules/dx/toc/toc.html +28 -0
  281. package/src/modules/dx/toc/toc.ts +77 -0
  282. package/src/modules/dx/tooltip/microtip.css +269 -0
  283. package/src/modules/dx/tooltip/tooltip.css +36 -0
  284. package/src/modules/dx/tooltip/tooltip.html +5 -0
  285. package/src/modules/dx/tooltip/tooltip.ts +6 -0
  286. package/src/modules/dx/topics/topics.css +25 -0
  287. package/src/modules/dx/topics/topics.html +12 -0
  288. package/src/modules/dx/topics/topics.ts +25 -0
  289. package/src/modules/dx/tree/tree.css +5 -0
  290. package/src/modules/dx/tree/tree.html +11 -0
  291. package/src/modules/dx/tree/tree.ts +72 -0
  292. package/src/modules/dx/tree/treeHandler.ts +100 -0
  293. package/src/modules/dx/treeItem/treeItem.css +14 -0
  294. package/src/modules/dx/treeItem/treeItem.html +22 -0
  295. package/src/modules/dx/treeItem/treeItem.ts +110 -0
  296. package/src/modules/dx/treeTile/treeTile.css +190 -0
  297. package/src/modules/dx/treeTile/treeTile.html +27 -0
  298. package/src/modules/dx/treeTile/treeTile.ts +59 -0
  299. package/src/modules/dx/typeBadge/typeBadge.css +74 -0
  300. package/src/modules/dx/typeBadge/typeBadge.html +5 -0
  301. package/src/modules/dx/typeBadge/typeBadge.ts +65 -0
  302. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +12 -0
  303. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +11 -0
  304. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +18 -0
  305. package/src/modules/helpers/animations/animations.css +15 -0
  306. package/src/modules/helpers/button/button.css +4 -0
  307. package/src/modules/helpers/card/card.css +258 -0
  308. package/src/modules/helpers/code/code.css +296 -0
  309. package/src/modules/helpers/commonHeader/commonHeader.css +130 -0
  310. package/src/modules/helpers/reset/reset.css +559 -0
  311. package/src/modules/helpers/sidebar/sidebar.css +21 -0
  312. package/src/modules/helpers/slds/slds.css +191 -0
  313. package/src/modules/helpers/table/table.css +110 -0
  314. package/src/modules/helpers/text/text.css +163 -0
  315. package/src/modules/utils/coveo/coveo.ts +70 -0
  316. package/src/modules/utils/css/css.ts +43 -0
  317. package/src/modules/utils/devices/devices.ts +1 -0
  318. package/src/modules/utils/highlight/highlight.ts +32 -0
  319. package/src/modules/utils/normalizers/normalizers.ts +91 -0
  320. package/src/modules/utils/options/options.ts +39 -0
  321. package/src/modules/utils/prismjs/prismjs.html +3 -0
  322. package/src/modules/utils/prismjs/prismjs.ts +3321 -0
  323. package/src/modules/utils/recentSearches/recentSearches.ts +57 -0
  324. package/src/modules/utils/regexps/regexps.ts +5 -0
  325. package/src/modules/utils/seo/seo.ts +4 -0
  326. package/src/modules/utils/slot/slot.ts +17 -0
  327. package/src/modules/utils/wordpress/wordpress.ts +13 -0
@@ -0,0 +1,89 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+
4
+ .docs-action-bar {
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: flex-end;
8
+ padding: var(--dx-g-spacing-md) 0 var(--dx-g-spacing-lg);
9
+ }
10
+
11
+ .docs-action-bar > .records-container {
12
+ margin-right: auto;
13
+ }
14
+
15
+ .docs-action-bar .filters-container {
16
+ display: flex;
17
+ }
18
+
19
+ .filter-checkbox-group,
20
+ .filter-button::part(container) {
21
+ --dx-c-checkbox-text-transform: capitalize;
22
+
23
+ text-transform: var(--dx-c-checkbox-text-transform);
24
+ }
25
+
26
+ .docs-action-bar .filters-container > *:not(:first-child),
27
+ .docs-search-input {
28
+ margin-left: var(--dx-g-spacing-sm);
29
+ }
30
+
31
+ .docs-search-input {
32
+ --dx-c-input-width: 285px;
33
+ }
34
+
35
+ .docs-card {
36
+ --dx-c-body-max-lines: 4;
37
+ --dx-c-heading-max-lines: 2;
38
+ }
39
+
40
+ .pagination-container {
41
+ max-width: fit-content;
42
+ max-width: -moz-fit-content;
43
+ margin: var(--dx-g-spacing-lg) auto;
44
+ }
45
+
46
+ @media screen and (max-width: 1024px) {
47
+ .docs-card {
48
+ --dx-c-body-max-lines: 3;
49
+ }
50
+ }
51
+
52
+ @media screen and (max-width: 768px) {
53
+ .docs-action-bar {
54
+ flex-direction: column-reverse;
55
+ width: 100%;
56
+ padding: 0;
57
+ }
58
+
59
+ .docs-search-input {
60
+ --dx-c-input-width: 100%;
61
+
62
+ width: 100%;
63
+ margin-bottom: var(--dx-g-spacing-md);
64
+ }
65
+
66
+ .docs-action-bar .records-container {
67
+ transform: translateY(-100%);
68
+ }
69
+ }
70
+
71
+ @media screen and (max-width: 600px) {
72
+ .pagination-container {
73
+ width: 100%;
74
+ overflow: hidden;
75
+ }
76
+
77
+ .pagination-container > * {
78
+ position: absolute;
79
+ left: 50%;
80
+ transform: translateX(-50%);
81
+ }
82
+ }
83
+
84
+ @media screen and (max-width: 460px) {
85
+ .docs-action-bar .records-container {
86
+ transform: initial;
87
+ padding: var(--dx-g-spacing-md) 0;
88
+ }
89
+ }
@@ -0,0 +1,46 @@
1
+ <template>
2
+ <div class="card-grid">
3
+ <div class="docs-action-bar">
4
+ <div class="records-container">
5
+ <span if:true={endingRecord}>
6
+ Showing { startingRecord } to { endingRecord } of {
7
+ cards.length }
8
+ </span>
9
+ </div>
10
+ <div class="filters-container">
11
+ <slot name="filters"></slot>
12
+ </div>
13
+ <dx-input
14
+ size="small"
15
+ placeholder="Search..."
16
+ icon-symbol="search"
17
+ shortcut-key="j"
18
+ class="docs-search-input"
19
+ onchange={handleSearchChange}
20
+ value={searchTerm}
21
+ ></dx-input>
22
+ </div>
23
+ <dx-grid
24
+ columns={tileColumns}
25
+ if:false={showEmptyState}
26
+ class="card-container"
27
+ ></dx-grid>
28
+ <div style="display: none">
29
+ <slot name="cards" onslotchange={onSlotChange}></slot>
30
+ </div>
31
+ <div class="pagination-container" if:false={showEmptyState}>
32
+ <dx-pagination
33
+ current-page={page}
34
+ total-pages={totalPages}
35
+ pages-to-show={pagesToShow}
36
+ onpagechange={goToPage}
37
+ if:false={hidePagination}
38
+ ></dx-pagination>
39
+ </div>
40
+ </div>
41
+ <dx-empty-state
42
+ title="Beep boop. That did not compute."
43
+ subtitle={emptyStateSubtitle}
44
+ if:true={showEmptyState}
45
+ ></dx-empty-state>
46
+ </template>
@@ -0,0 +1,140 @@
1
+ import { LightningElement, api } from "lwc";
2
+
3
+ export default class CardGrid extends LightningElement {
4
+ @api pageSize = 24;
5
+ @api searchDebounce = 500;
6
+ page = 1;
7
+
8
+ private searchTerm = "";
9
+ private matchDesktop!: MediaQueryList;
10
+ private matchMobile!: MediaQueryList;
11
+ private matchMobileSmall!: MediaQueryList;
12
+ private deviceType: "desktop" | "mobile" | "mobile-small" = "desktop";
13
+ private searchTimeout?: number;
14
+ private cards: any[] = [];
15
+
16
+ private get startingRecord() {
17
+ return this.page === 1
18
+ ? this.page
19
+ : (this.page - 1) * this.pageSize + 1;
20
+ }
21
+
22
+ private get endingRecord() {
23
+ const defaultEndingRecord = this.pageSize * this.page;
24
+ return defaultEndingRecord > this.cards.length
25
+ ? this.cards.length
26
+ : defaultEndingRecord;
27
+ }
28
+
29
+ private get totalPages() {
30
+ return Math.ceil(this.cards.length / this.pageSize);
31
+ }
32
+
33
+ private get hidePagination() {
34
+ return this.totalPages < 2;
35
+ }
36
+
37
+ private get emptyStateSubtitle() {
38
+ return (
39
+ "No results" +
40
+ (this.searchTerm !== "" ? ` for "${this.searchTerm}"` : "")
41
+ );
42
+ }
43
+
44
+ private get showEmptyState() {
45
+ return !this.cards.length;
46
+ }
47
+
48
+ private get tileColumns() {
49
+ return this.deviceType === "desktop" ? "three" : "two";
50
+ }
51
+
52
+ private get pagesToShow() {
53
+ return this.deviceType === "mobile-small" ? 3 : 5;
54
+ }
55
+
56
+ connectedCallback(): void {
57
+ this.matchDesktop = window.matchMedia("(min-width: 1024px)");
58
+ this.matchDesktop.addEventListener("change", this.handleDesktopView);
59
+
60
+ this.matchMobile = window.matchMedia(
61
+ "(min-width: 401px) and (max-width: 1023px)"
62
+ );
63
+ this.matchMobile.addEventListener("change", this.handleMobileView);
64
+
65
+ this.matchMobileSmall = window.matchMedia("(max-width: 340px)");
66
+ this.matchMobileSmall.addEventListener(
67
+ "change",
68
+ this.handleMobileSmallView
69
+ );
70
+
71
+ if (this.matchMobile.matches) {
72
+ this.deviceType = "mobile";
73
+ }
74
+ if (this.matchMobileSmall.matches) {
75
+ this.deviceType = "mobile-small";
76
+ }
77
+ }
78
+
79
+ disconnectedCallback(): void {
80
+ this.matchDesktop.removeEventListener("change", this.handleDesktopView);
81
+ this.matchMobile.removeEventListener("change", this.handleMobileView);
82
+ this.matchMobileSmall.removeEventListener(
83
+ "change",
84
+ this.handleMobileSmallView
85
+ );
86
+ }
87
+
88
+ renderedCallback(): void {
89
+ this.displayCurrentPage();
90
+ }
91
+
92
+ onSlotChange() {
93
+ const slots = Array.from(
94
+ this.template.querySelectorAll("slot")
95
+ ) as HTMLSlotElement[];
96
+ this.cards = Array.from(slots[1].assignedElements()[0].children);
97
+ }
98
+
99
+ handleDesktopView = (e: MediaQueryListEvent | MediaQueryList) => {
100
+ if (e.matches) {
101
+ this.deviceType = "desktop";
102
+ }
103
+ };
104
+
105
+ handleMobileView = (e: MediaQueryListEvent | MediaQueryList) => {
106
+ if (e.matches) {
107
+ this.deviceType = "mobile";
108
+ }
109
+ };
110
+
111
+ handleMobileSmallView = (e: MediaQueryListEvent | MediaQueryList) => {
112
+ if (e.matches) {
113
+ this.deviceType = "mobile-small";
114
+ }
115
+ };
116
+
117
+ handleSearchChange(event: InputEvent): void {
118
+ window.clearTimeout(this.searchTimeout);
119
+ this.searchTimeout = window.setTimeout(() => {
120
+ this.dispatchEvent(
121
+ new CustomEvent("searchchange", { detail: event.detail })
122
+ );
123
+ }, this.searchDebounce);
124
+ }
125
+
126
+ goToPage(e: CustomEvent) {
127
+ this.page = e.detail;
128
+ this.displayCurrentPage();
129
+ }
130
+
131
+ displayCurrentPage() {
132
+ const cardContainer = this.template.querySelector(".card-container");
133
+ if (cardContainer) {
134
+ cardContainer.innerHTML = "";
135
+ this.cards
136
+ .slice(this.startingRecord - 1, this.endingRecord)
137
+ .map((node) => cardContainer?.appendChild(node));
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,31 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+
4
+ :host {
5
+ display: block;
6
+ }
7
+
8
+ a {
9
+ --dx-c-max-lines: var(--dx-c-title-max-lines, 3);
10
+
11
+ color: var(--dx-g-blue-vibrant-50);
12
+ flex-grow: 1;
13
+ font-family: var(--dx-g-font-sans);
14
+ font-size: var(--dx-g-text-sm);
15
+ font-weight: var(--dx-g-font-demi);
16
+ }
17
+
18
+ a:hover {
19
+ color: var(--dx-g-blue-vibrant-40);
20
+ }
21
+
22
+ a + * {
23
+ margin-left: var(--dx-g-spacing-sm);
24
+ }
25
+
26
+ .card-container {
27
+ align-items: center;
28
+ border-bottom: 1px solid var(--sds-g-gray-4);
29
+ display: flex;
30
+ padding: var(--dx-g-spacing-smd) 0;
31
+ }
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <div class="card-container">
3
+ <a class="dx-text-truncate" href={href} target={target}>
4
+ <h4>{title}</h4>
5
+ </a>
6
+ <dx-type-badge
7
+ color={badgeColor}
8
+ size={badgeSize}
9
+ type="content-type"
10
+ value={contentType}
11
+ ></dx-type-badge>
12
+ </div>
13
+ </template>
@@ -0,0 +1,3 @@
1
+ import { ArchiveCard } from "base-elements/archiveCard";
2
+
3
+ export default class MinimalCard extends ArchiveCard {}
@@ -0,0 +1,159 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+ @import "helpers/card";
4
+
5
+ .dx-card-news {
6
+ position: relative;
7
+ display: flex;
8
+ align-items: stretch;
9
+ flex-direction: column;
10
+ justify-content: flex-start;
11
+ box-shadow: var(--dx-g-box-shadow-sm);
12
+ }
13
+
14
+ .text {
15
+ flex-grow: 1;
16
+ padding: var(--dx-g-card-padding) 24px 0 20px;
17
+ z-index: 1;
18
+ }
19
+
20
+ .dx-text-heading-3 {
21
+ margin: 4px 0 4px 0;
22
+ color: inherit;
23
+ }
24
+
25
+ p {
26
+ font-size: 16px;
27
+ letter-spacing: 0.15px;
28
+ line-height: 24px;
29
+ }
30
+
31
+ .cta {
32
+ margin: 16px 0;
33
+ }
34
+
35
+ img {
36
+ display: none;
37
+ margin: 0;
38
+ }
39
+
40
+ .dx-card-size-large .dx-text-heading-3 {
41
+ font-size: 30px;
42
+ letter-spacing: 0.3px;
43
+ line-height: 40px;
44
+ margin: 4px 0 10px 0;
45
+ }
46
+
47
+ .dx-card-size-large p {
48
+ letter-spacing: 0.2px;
49
+ }
50
+
51
+ .dx-card-size-large .cta {
52
+ margin: var(--dx-g-spacing-lg) 0;
53
+ }
54
+
55
+ .dx-card-size-large img {
56
+ display: block;
57
+ }
58
+
59
+ .is-dark dx-button {
60
+ --dx-c-button-inline-color-hover: var(--dx-g-blue-vibrant-60);
61
+ }
62
+
63
+ @media screen and (min-width: 1024px) {
64
+ .text {
65
+ padding: var(--dx-g-spacing-lg);
66
+ }
67
+
68
+ .dx-card-news {
69
+ position: relative;
70
+ min-height: 380px;
71
+ display: flex;
72
+ align-items: stretch;
73
+ justify-content: flex-start;
74
+ box-shadow: var(--dx-g-box-shadow-sm);
75
+ }
76
+
77
+ .dx-text-heading-3 {
78
+ letter-spacing: 0.1px;
79
+ }
80
+
81
+ img,
82
+ .text {
83
+ display: block;
84
+ }
85
+
86
+ .dx-card-news-img-placement-top {
87
+ flex-direction: column-reverse;
88
+ }
89
+
90
+ .dx-card-news-img-placement-bottom {
91
+ flex-direction: column;
92
+ }
93
+
94
+ .dx-card-news-img-placement-right .text {
95
+ max-width: 50%;
96
+ }
97
+
98
+ .dx-card-news-img-placement-right .text.large {
99
+ max-width: 75%;
100
+ }
101
+
102
+ /* Pushed to the right, centered vertically */
103
+ .dx-card-news-img-placement-right img {
104
+ position: absolute;
105
+ width: 100%;
106
+ right: 0;
107
+ max-width: 50%;
108
+ }
109
+
110
+ .dx-card-size-normal .dx-text-heading-3 {
111
+ font-size: var(--dx-g-text-xl);
112
+ line-height: 28px;
113
+ }
114
+
115
+ .dx-card-size-normal p {
116
+ letter-spacing: 0.2px;
117
+ margin: 12px 0 0 0;
118
+ }
119
+
120
+ .dx-card-size-normal .cta {
121
+ margin: 14px 0 -2px 0;
122
+ }
123
+
124
+ .dx-card-size-large .dx-text-heading-3 {
125
+ font-size: var(--dx-g-text-2xl);
126
+ line-height: 40px;
127
+ letter-spacing: 0.6px;
128
+ margin: 10px 0 0 0;
129
+ }
130
+
131
+ .dx-card-size-large p {
132
+ font-size: 20px;
133
+ line-height: 32px;
134
+ margin: 10px 0 0 0;
135
+ letter-spacing: 0.72px;
136
+ }
137
+
138
+ .dx-card-size-large .cta {
139
+ margin: 24px 0 0 0;
140
+ }
141
+
142
+ .dx-card-news-img-vertical-align-middle {
143
+ top: 50%;
144
+ transform: translate(0, -50%);
145
+ }
146
+
147
+ .dx-card-news-img-vertical-align-bottom {
148
+ bottom: 0;
149
+ }
150
+
151
+ .dx-card-news-img-vertical-align-top {
152
+ top: 0;
153
+ }
154
+
155
+ .dx-card-news-img-placement-right img.dx-card-news-img-small,
156
+ .dx-card-news-img-small {
157
+ max-width: 25%;
158
+ }
159
+ }
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <a
3
+ class={className}
4
+ href={href}
5
+ target={target}
6
+ style={style}
7
+ part="container"
8
+ >
9
+ <div class={textContainerClassName}>
10
+ <h3 class="dx-text-heading-3">{title}</h3>
11
+ <p>{body}</p>
12
+ <div class="cta">
13
+ <dx-button if:true={hasLargeButton} size="large">
14
+ {buttonText}
15
+ </dx-button>
16
+
17
+ <dx-button
18
+ if:false={hasLargeButton}
19
+ variant="inline"
20
+ icon-symbol="forward"
21
+ >
22
+ {buttonText}
23
+ </dx-button>
24
+ </div>
25
+ </div>
26
+ <img
27
+ if:true={imgSrc}
28
+ alt={imgAlt}
29
+ aria-label={imgAlt}
30
+ role="img"
31
+ src={imgSrc}
32
+ class={imgClassName}
33
+ style={imgStyle}
34
+ part="image"
35
+ />
36
+ </a>
37
+ </template>
@@ -0,0 +1,62 @@
1
+ import { LightningElement, api } from "lwc";
2
+ import cx from "classnames";
3
+ import { toDxColor } from "utils/css";
4
+ import {
5
+ CardNewsButtonType,
6
+ CardNewsImagePlacement,
7
+ CardNewsImageVerticalAlignment,
8
+ CardNewsSize,
9
+ CardNewsTextContainerSize
10
+ } from "typings/custom";
11
+
12
+ export default class CardNews extends LightningElement {
13
+ @api backgroundColor?: string = "indigo-vibrant-40";
14
+ @api body!: string;
15
+ @api buttonText?: string = "";
16
+ @api buttonType!: CardNewsButtonType;
17
+ @api color?: string = "white";
18
+ @api dark?: boolean = false;
19
+ @api size?: CardNewsSize = "normal";
20
+ @api href!: string;
21
+ @api imgAlt?: string = "";
22
+ @api imgSrc?: string | null = null;
23
+ @api imgPlacement?: CardNewsImagePlacement = "top";
24
+ @api imgVerticalAlign?: CardNewsImageVerticalAlignment | null = null;
25
+ @api target?: string | null = null;
26
+ @api title!: string;
27
+ @api textContainerWidth?: CardNewsTextContainerSize = "small";
28
+
29
+ private get style(): string {
30
+ const background = `background-color: ${toDxColor(
31
+ this.backgroundColor
32
+ )};`;
33
+ const color = `color: ${toDxColor(this.color)};`;
34
+ return [background, color].join(" ");
35
+ }
36
+
37
+ private get className(): string {
38
+ return cx(
39
+ "dx-card-news",
40
+ "dx-card-base",
41
+ `dx-card-size-${this.size}`,
42
+ this.dark && `is-dark`,
43
+ this.imgSrc && `dx-card-news-img-placement-${this.imgPlacement}`
44
+ );
45
+ }
46
+
47
+ private get hasLargeButton(): boolean {
48
+ return this.buttonType === "large";
49
+ }
50
+
51
+ private get textContainerClassName(): string {
52
+ return cx("text", this.textContainerWidth);
53
+ }
54
+
55
+ private get imgClassName(): string {
56
+ return cx(
57
+ this.imgVerticalAlign &&
58
+ `dx-card-news-img-vertical-align-${this.imgVerticalAlign}`,
59
+ this.textContainerWidth === "large" && `dx-card-news-img-small`
60
+ );
61
+ }
62
+ }
@@ -0,0 +1,19 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+ @import "helpers/card";
4
+
5
+ .card-podcast-episode {
6
+ display: flex;
7
+ flex-direction: row;
8
+ }
9
+
10
+ @media (max-width: 1024px) {
11
+ .datetime {
12
+ margin-bottom: 0 !important;
13
+ }
14
+
15
+ .body,
16
+ .length {
17
+ display: none;
18
+ }
19
+ }
@@ -0,0 +1,36 @@
1
+ <template>
2
+ <div class={className}>
3
+ <div class="dx-card-base_section-horizontal">
4
+ <a
5
+ aria-label="Go To Article"
6
+ href={href}
7
+ target={target}
8
+ onmouseenter={setLinkHovered}
9
+ onmouseleave={setLinkInactive}
10
+ >
11
+ <dx-icon-badge
12
+ class="dx-play-button"
13
+ symbol="play"
14
+ background-color="white"
15
+ slot="image-badge"
16
+ ></dx-icon-badge>
17
+ </a>
18
+ </div>
19
+ <div class="dx-card-base_section-horizontal dx-card-base_column">
20
+ <dx-card-title
21
+ href={href}
22
+ target={target}
23
+ onmouseenter={setLinkHovered}
24
+ onmouseleave={setLinkInactive}
25
+ title={title}
26
+ ></dx-card-title>
27
+ <span class="datetime dx-text-label-1-dark">
28
+ <dx-relative-date-time
29
+ value={_datetime}
30
+ ></dx-relative-date-time>
31
+ </span>
32
+ <span class="body dx-text-body-2">{body}</span>
33
+ <span class="length dx-text-body-3">{length}</span>
34
+ </div>
35
+ </div>
36
+ </template>
@@ -0,0 +1,36 @@
1
+ import { LightningElement, api } from "lwc";
2
+ import cx from "classnames";
3
+
4
+ export default class CardPodcastEpisode extends LightningElement {
5
+ @api body!: string;
6
+ @api datetime!: string;
7
+ @api dateTime?: string | null = null;
8
+ @api href!: string;
9
+ @api length!: string;
10
+ @api target?: string | null = null;
11
+ @api title!: string;
12
+
13
+ private isLinkHovered: boolean = false;
14
+
15
+ // LWC is being compiled so that datetime is being interpreted as date-time
16
+ // ONLY from from the implementation in dx-card-podcast-episode-provider
17
+ private get _datetime() {
18
+ return this.datetime || this.dateTime;
19
+ }
20
+
21
+ private get className() {
22
+ return cx(
23
+ "card-podcast-episode",
24
+ "dx-card-base_borderless",
25
+ this.isLinkHovered && "dx-card-base_link-hovered"
26
+ );
27
+ }
28
+
29
+ private setLinkHovered() {
30
+ this.isLinkHovered = true;
31
+ }
32
+
33
+ private setLinkInactive() {
34
+ this.isLinkHovered = false;
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: contents;
3
+ }
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <template for:each={episodes} for:item="episode">
3
+ <dx-card-podcast-episode
4
+ body={episode.body}
5
+ datetime={episode.datetime}
6
+ href={episode.href}
7
+ key={episode.id}
8
+ length={episode.length}
9
+ title={episode.title}
10
+ ></dx-card-podcast-episode>
11
+ </template>
12
+ </template>