@salesforcedevs/dx-components 0.26.1-alpha0.2 → 0.26.1-alpha0.3

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 (533) hide show
  1. package/package.json +4 -2
  2. package/src/.DS_Store +0 -0
  3. package/src/assets/icons/action-sprite/svg/symbols.svg +0 -1
  4. package/src/assets/icons/brand-sprite/svg/symbols.svg +0 -1381
  5. package/src/assets/icons/custom-sprite/svg/symbols.svg +0 -1
  6. package/src/assets/icons/doctype-sprite/svg/symbols.svg +0 -1
  7. package/src/assets/icons/general-sprite/svg/symbols.svg +0 -3013
  8. package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +0 -257
  9. package/src/assets/icons/standard-sprite/svg/symbols.svg +0 -1
  10. package/src/assets/icons/utility-sprite/svg/symbols.svg +0 -1
  11. package/src/assets/svg/card-news-learn-moar.svg +0 -415
  12. package/src/assets/svg/cloud-1.svg +0 -24
  13. package/src/assets/svg/cloud-2.svg +0 -18
  14. package/src/assets/svg/codey.svg +0 -93
  15. package/src/assets/svg/command.svg +0 -9
  16. package/src/assets/svg/control.svg +0 -10
  17. package/src/assets/svg/docs-empty-state-small.svg +0 -72
  18. package/src/assets/svg/docs-empty-state.svg +0 -86
  19. package/src/assets/svg/dsc-home-news-bear.svg +0 -3
  20. package/src/assets/svg/dsc-home-news-community.png +0 -0
  21. package/src/assets/svg/dsc-home-news-goatbear.svg +0 -257
  22. package/src/assets/svg/dsc-home-news-samplegallery.svg +0 -76
  23. package/src/assets/svg/empty-state-assistant.svg +0 -1
  24. package/src/assets/svg/fch-blog-cloud-1.png +0 -0
  25. package/src/assets/svg/fch-blog-cloud-2.png +0 -0
  26. package/src/assets/svg/fch-blog-planet.png +0 -0
  27. package/src/assets/svg/feature-backdrop1.svg +0 -10
  28. package/src/assets/svg/feature-backdrop2.svg +0 -10
  29. package/src/assets/svg/featured-demo-art-blank.svg +0 -76
  30. package/src/assets/svg/featured-demo-art-eBikes.svg +0 -77
  31. package/src/assets/svg/footer-graphic-large.svg +0 -207
  32. package/src/assets/svg/footer-graphic-mountains-small.svg +0 -17
  33. package/src/assets/svg/footer-graphic-mountains.svg +0 -21
  34. package/src/assets/svg/footer-graphic-trees-small.svg +0 -33
  35. package/src/assets/svg/footer-graphic-trees.svg +0 -62
  36. package/src/assets/svg/lake-mountain.svg +0 -79
  37. package/src/assets/svg/podcast-subscription-clouds-small.svg +0 -49
  38. package/src/assets/svg/podcast-subscription-clouds.svg +0 -57
  39. package/src/assets/svg/podcasts-subscription-apple.svg +0 -164
  40. package/src/assets/svg/podcasts-subscription-google.svg +0 -29
  41. package/src/assets/svg/podcasts-subscription-spotify.svg +0 -11
  42. package/src/assets/svg/salesforce-cloud.svg +0 -7
  43. package/src/assets/svg/salesforce-logo-corporate.svg +0 -21
  44. package/src/assets/svg/salesforce-logo.svg +0 -14
  45. package/src/assets/svg/sidebar-loading.svg +0 -34
  46. package/src/assets/svg/slack-cta-podcast-background-left.svg +0 -28
  47. package/src/assets/svg/slack-cta-podcast-background-right.svg +0 -38
  48. package/src/assets/svg/trees.svg +0 -42
  49. package/src/modules/.DS_Store +0 -0
  50. package/src/modules/dx/.DS_Store +0 -0
  51. package/src/modules/dx/banner/__tests__/banner.test.ts +0 -33
  52. package/src/modules/dx/banner/banner.css +0 -46
  53. package/src/modules/dx/banner/banner.html +0 -13
  54. package/src/modules/dx/banner/banner.ts +0 -14
  55. package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +0 -49
  56. package/src/modules/dx/brandThemeProvider/brandCssVars.ts +0 -10
  57. package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +0 -3
  58. package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +0 -321
  59. package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +0 -46
  60. package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +0 -140
  61. package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +0 -28
  62. package/src/modules/dx/breadcrumbs/breadcrumbs.css +0 -111
  63. package/src/modules/dx/breadcrumbs/breadcrumbs.html +0 -44
  64. package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +0 -39
  65. package/src/modules/dx/breadcrumbs/breadcrumbs.ts +0 -122
  66. package/src/modules/dx/button/__tests__/button.test.ts +0 -107
  67. package/src/modules/dx/button/button.css +0 -175
  68. package/src/modules/dx/button/button.html +0 -43
  69. package/src/modules/dx/button/button.stories.ts +0 -150
  70. package/src/modules/dx/button/button.ts +0 -63
  71. package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +0 -26
  72. package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +0 -12
  73. package/src/modules/dx/cardBlogPost/cardBlogPost.css +0 -13
  74. package/src/modules/dx/cardBlogPost/cardBlogPost.html +0 -24
  75. package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +0 -164
  76. package/src/modules/dx/cardBlogPost/cardBlogPost.ts +0 -23
  77. package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +0 -34
  78. package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +0 -44
  79. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.css +0 -3
  80. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.html +0 -16
  81. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +0 -29
  82. package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +0 -20
  83. package/src/modules/dx/cardCallout/__tests__/mockProps.ts +0 -7
  84. package/src/modules/dx/cardCallout/cardCallout.css +0 -57
  85. package/src/modules/dx/cardCallout/cardCallout.html +0 -15
  86. package/src/modules/dx/cardCallout/cardCallout.stories.ts +0 -33
  87. package/src/modules/dx/cardCallout/cardCallout.ts +0 -37
  88. package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +0 -100
  89. package/src/modules/dx/cardContent/__tests__/mockProps.ts +0 -13
  90. package/src/modules/dx/cardContent/cardContent.css +0 -52
  91. package/src/modules/dx/cardContent/cardContent.html +0 -59
  92. package/src/modules/dx/cardContent/cardContent.stories.ts +0 -127
  93. package/src/modules/dx/cardContent/cardContent.ts +0 -68
  94. package/src/modules/dx/cardDemo/cardDemo.css +0 -1
  95. package/src/modules/dx/cardDemo/cardDemo.html +0 -12
  96. package/src/modules/dx/cardDemo/cardDemo.stories.ts +0 -115
  97. package/src/modules/dx/cardDemo/cardDemo.ts +0 -11
  98. package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +0 -48
  99. package/src/modules/dx/cardDocs/__tests__/mockProps.ts +0 -9
  100. package/src/modules/dx/cardDocs/cardDocs.css +0 -50
  101. package/src/modules/dx/cardDocs/cardDocs.html +0 -20
  102. package/src/modules/dx/cardDocs/cardDocs.stories.ts +0 -299
  103. package/src/modules/dx/cardDocs/cardDocs.ts +0 -30
  104. package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +0 -95
  105. package/src/modules/dx/cardEvent/__tests__/mockProps.ts +0 -10
  106. package/src/modules/dx/cardEvent/cardEvent.css +0 -107
  107. package/src/modules/dx/cardEvent/cardEvent.html +0 -94
  108. package/src/modules/dx/cardEvent/cardEvent.stories.ts +0 -153
  109. package/src/modules/dx/cardEvent/cardEvent.ts +0 -42
  110. package/src/modules/dx/cardExpanded/__tests__/cardExpanded.test.ts +0 -193
  111. package/src/modules/dx/cardExpanded/__tests__/mockProps.ts +0 -21
  112. package/src/modules/dx/cardExpanded/cardExpanded.css +0 -49
  113. package/src/modules/dx/cardExpanded/cardExpanded.html +0 -37
  114. package/src/modules/dx/cardExpanded/cardExpanded.stories.ts +0 -59
  115. package/src/modules/dx/cardExpanded/cardExpanded.ts +0 -45
  116. package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +0 -431
  117. package/src/modules/dx/cardGrid/__tests__/mockProps.ts +0 -15
  118. package/src/modules/dx/cardGrid/cardGrid.css +0 -89
  119. package/src/modules/dx/cardGrid/cardGrid.html +0 -46
  120. package/src/modules/dx/cardGrid/cardGrid.stories.ts +0 -111
  121. package/src/modules/dx/cardGrid/cardGrid.ts +0 -140
  122. package/src/modules/dx/cardMinimal/__tests__/cardMinimal.test.ts +0 -87
  123. package/src/modules/dx/cardMinimal/__tests__/mockProps.ts +0 -10
  124. package/src/modules/dx/cardMinimal/cardMinimal.css +0 -31
  125. package/src/modules/dx/cardMinimal/cardMinimal.html +0 -13
  126. package/src/modules/dx/cardMinimal/cardMinimal.stories.ts +0 -32
  127. package/src/modules/dx/cardMinimal/cardMinimal.ts +0 -3
  128. package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +0 -58
  129. package/src/modules/dx/cardNews/__tests__/mockProps.ts +0 -7
  130. package/src/modules/dx/cardNews/cardNews.css +0 -159
  131. package/src/modules/dx/cardNews/cardNews.html +0 -37
  132. package/src/modules/dx/cardNews/cardNews.stories.ts +0 -115
  133. package/src/modules/dx/cardNews/cardNews.ts +0 -62
  134. package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +0 -68
  135. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +0 -19
  136. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +0 -36
  137. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +0 -31
  138. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +0 -36
  139. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +0 -36
  140. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +0 -50
  141. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +0 -3
  142. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +0 -12
  143. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +0 -29
  144. package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +0 -66
  145. package/src/modules/dx/cardSmall/__tests__/mockProps.ts +0 -8
  146. package/src/modules/dx/cardSmall/cardSmall.css +0 -32
  147. package/src/modules/dx/cardSmall/cardSmall.html +0 -42
  148. package/src/modules/dx/cardSmall/cardSmall.stories.ts +0 -166
  149. package/src/modules/dx/cardSmall/cardSmall.ts +0 -38
  150. package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +0 -46
  151. package/src/modules/dx/cardTitle/cardTitle.css +0 -41
  152. package/src/modules/dx/cardTitle/cardTitle.html +0 -20
  153. package/src/modules/dx/cardTitle/cardTitle.ts +0 -27
  154. package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +0 -18
  155. package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +0 -11
  156. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +0 -24
  157. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.html +0 -20
  158. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +0 -122
  159. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.ts +0 -18
  160. package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +0 -22
  161. package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +0 -11
  162. package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +0 -14
  163. package/src/modules/dx/cardVideoPreview/cardVideoPreview.html +0 -26
  164. package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +0 -147
  165. package/src/modules/dx/cardVideoPreview/cardVideoPreview.ts +0 -13
  166. package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +0 -85
  167. package/src/modules/dx/checkbox/__tests__/mockProps.ts +0 -5
  168. package/src/modules/dx/checkbox/checkbox.css +0 -168
  169. package/src/modules/dx/checkbox/checkbox.html +0 -26
  170. package/src/modules/dx/checkbox/checkbox.stories.ts +0 -38
  171. package/src/modules/dx/checkbox/checkbox.ts +0 -55
  172. package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +0 -80
  173. package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +0 -14
  174. package/src/modules/dx/checkboxGroup/checkboxGroup.css +0 -12
  175. package/src/modules/dx/checkboxGroup/checkboxGroup.html +0 -15
  176. package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +0 -33
  177. package/src/modules/dx/checkboxGroup/checkboxGroup.ts +0 -77
  178. package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +0 -238
  179. package/src/modules/dx/codeBlock/__tests__/mockProps.ts +0 -160
  180. package/src/modules/dx/codeBlock/codeBlock.css +0 -128
  181. package/src/modules/dx/codeBlock/codeBlock.html +0 -79
  182. package/src/modules/dx/codeBlock/codeBlock.stories.ts +0 -143
  183. package/src/modules/dx/codeBlock/codeBlock.ts +0 -215
  184. package/src/modules/dx/codeBlock/darkTheme.css +0 -88
  185. package/src/modules/dx/codeBlock/lightTheme.css +0 -72
  186. package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +0 -165
  187. package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +0 -96
  188. package/src/modules/dx/dropdown/__tests__/mockOptions.ts +0 -10
  189. package/src/modules/dx/dropdown/__tests__/mockProps.ts +0 -6
  190. package/src/modules/dx/dropdown/dropdown.css +0 -93
  191. package/src/modules/dx/dropdown/dropdown.html +0 -67
  192. package/src/modules/dx/dropdown/dropdown.stories.ts +0 -89
  193. package/src/modules/dx/dropdown/dropdown.ts +0 -182
  194. package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +0 -112
  195. package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +0 -20
  196. package/src/modules/dx/dropdownOption/dropdownOption.css +0 -61
  197. package/src/modules/dx/dropdownOption/dropdownOption.html +0 -53
  198. package/src/modules/dx/dropdownOption/dropdownOption.ts +0 -39
  199. package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +0 -52
  200. package/src/modules/dx/emptyState/__tests__/mockProps.ts +0 -4
  201. package/src/modules/dx/emptyState/emptyState.css +0 -64
  202. package/src/modules/dx/emptyState/emptyState.html +0 -9
  203. package/src/modules/dx/emptyState/emptyState.stories.ts +0 -45
  204. package/src/modules/dx/emptyState/emptyState.ts +0 -20
  205. package/src/modules/dx/feature/__tests__/feature.test.ts +0 -51
  206. package/src/modules/dx/feature/__tests__/mockProps.ts +0 -8
  207. package/src/modules/dx/feature/feature.css +0 -135
  208. package/src/modules/dx/feature/feature.html +0 -33
  209. package/src/modules/dx/feature/feature.ts +0 -34
  210. package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +0 -21
  211. package/src/modules/dx/featureGrid/featureGrid.html +0 -3
  212. package/src/modules/dx/featureGrid/featureGrid.stories.ts +0 -120
  213. package/src/modules/dx/featureGrid/featureGrid.ts +0 -15
  214. package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +0 -178
  215. package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +0 -73
  216. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +0 -469
  217. package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +0 -96
  218. package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +0 -153
  219. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +0 -113
  220. package/src/modules/dx/featuredContentHeader/svgs.ts +0 -35
  221. package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +0 -43
  222. package/src/modules/dx/featuresList/__tests__/mockProps.ts +0 -17
  223. package/src/modules/dx/featuresList/featuresList.css +0 -24
  224. package/src/modules/dx/featuresList/featuresList.html +0 -20
  225. package/src/modules/dx/featuresList/featuresList.stories.ts +0 -30
  226. package/src/modules/dx/featuresList/featuresList.ts +0 -21
  227. package/src/modules/dx/footer/__tests__/footer.test.ts +0 -147
  228. package/src/modules/dx/footer/__tests__/mockLocales.ts +0 -7
  229. package/src/modules/dx/footer/footer.css +0 -405
  230. package/src/modules/dx/footer/footer.html +0 -145
  231. package/src/modules/dx/footer/footer.stories.ts +0 -88
  232. package/src/modules/dx/footer/footer.ts +0 -124
  233. package/src/modules/dx/footer/links.ts +0 -140
  234. package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +0 -34
  235. package/src/modules/dx/footerOption/__tests__/mockProps.ts +0 -7
  236. package/src/modules/dx/footerOption/footerOption.css +0 -4
  237. package/src/modules/dx/footerOption/footerOption.html +0 -12
  238. package/src/modules/dx/footerOption/footerOption.ts +0 -19
  239. package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +0 -25
  240. package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +0 -13
  241. package/src/modules/dx/formattedDateTime/formattedDateTime.html +0 -1
  242. package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +0 -103
  243. package/src/modules/dx/formattedDateTime/formattedDateTime.ts +0 -72
  244. package/src/modules/dx/grid/__tests__/grid.test.ts +0 -32
  245. package/src/modules/dx/grid/grid.css +0 -48
  246. package/src/modules/dx/grid/grid.html +0 -3
  247. package/src/modules/dx/grid/grid.md +0 -14
  248. package/src/modules/dx/grid/grid.stories.ts +0 -134
  249. package/src/modules/dx/grid/grid.ts +0 -72
  250. package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +0 -82
  251. package/src/modules/dx/groupBio/__tests__/mockProps.ts +0 -15
  252. package/src/modules/dx/groupBio/groupBio.css +0 -49
  253. package/src/modules/dx/groupBio/groupBio.html +0 -29
  254. package/src/modules/dx/groupBio/groupBio.stories.ts +0 -66
  255. package/src/modules/dx/groupBio/groupBio.ts +0 -41
  256. package/src/modules/dx/groupText/__tests__/groupText.test.ts +0 -69
  257. package/src/modules/dx/groupText/__tests__/mockProps.ts +0 -35
  258. package/src/modules/dx/groupText/groupText.css +0 -119
  259. package/src/modules/dx/groupText/groupText.html +0 -65
  260. package/src/modules/dx/groupText/groupText.stories.ts +0 -81
  261. package/src/modules/dx/groupText/groupText.ts +0 -93
  262. package/src/modules/dx/headTags/headTags.html +0 -3
  263. package/src/modules/dx/headTags/headTags.ts +0 -39
  264. package/src/modules/dx/header/__benchmarks__/header.benchmark.js +0 -45
  265. package/src/modules/dx/header/__tests__/header.test.ts +0 -236
  266. package/src/modules/dx/header/__tests__/mockNavArchitects.ts +0 -169
  267. package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +0 -419
  268. package/src/modules/dx/header/__tests__/mockNavs.ts +0 -115
  269. package/src/modules/dx/header/__tests__/mockProps.ts +0 -164
  270. package/src/modules/dx/header/header.css +0 -109
  271. package/src/modules/dx/header/header.html +0 -129
  272. package/src/modules/dx/header/header.stories.ts +0 -172
  273. package/src/modules/dx/header/header.ts +0 -27
  274. package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +0 -123
  275. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +0 -160
  276. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +0 -73
  277. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +0 -102
  278. package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +0 -38
  279. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.css +0 -5
  280. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.html +0 -14
  281. package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +0 -20
  282. package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +0 -49
  283. package/src/modules/dx/headerNav/headerNav.css +0 -31
  284. package/src/modules/dx/headerNav/headerNav.html +0 -48
  285. package/src/modules/dx/headerNav/headerNav.ts +0 -56
  286. package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +0 -182
  287. package/src/modules/dx/headerSearch/__tests__/mockData.ts +0 -11
  288. package/src/modules/dx/headerSearch/__tests__/mockProps.ts +0 -6
  289. package/src/modules/dx/headerSearch/headerSearch.css +0 -62
  290. package/src/modules/dx/headerSearch/headerSearch.html +0 -64
  291. package/src/modules/dx/headerSearch/headerSearch.ts +0 -159
  292. package/src/modules/dx/helmet/__tests__/helmet.test.ts +0 -52
  293. package/src/modules/dx/helmet/helmet.css +0 -83
  294. package/src/modules/dx/helmet/helmet.html +0 -39
  295. package/src/modules/dx/helmet/helmet.stories.ts +0 -53
  296. package/src/modules/dx/helmet/helmet.ts +0 -27
  297. package/src/modules/dx/hr/__tests__/hr.test.ts +0 -53
  298. package/src/modules/dx/hr/__tests__/mockProps.ts +0 -16
  299. package/src/modules/dx/hr/hr.css +0 -55
  300. package/src/modules/dx/hr/hr.html +0 -23
  301. package/src/modules/dx/hr/hr.stories.ts +0 -50
  302. package/src/modules/dx/hr/hr.ts +0 -45
  303. package/src/modules/dx/icon/__tests__/icon.test.ts +0 -54
  304. package/src/modules/dx/icon/icon.css +0 -14
  305. package/src/modules/dx/icon/icon.html +0 -11
  306. package/src/modules/dx/icon/icon.stories.ts +0 -100
  307. package/src/modules/dx/icon/icon.ts +0 -85
  308. package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +0 -17
  309. package/src/modules/dx/iconBadge/iconBadge.css +0 -40
  310. package/src/modules/dx/iconBadge/iconBadge.html +0 -10
  311. package/src/modules/dx/iconBadge/iconBadge.stories.ts +0 -32
  312. package/src/modules/dx/iconBadge/iconBadge.ts +0 -42
  313. package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +0 -39
  314. package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +0 -6
  315. package/src/modules/dx/imageAndLabel/imageAndLabel.css +0 -54
  316. package/src/modules/dx/imageAndLabel/imageAndLabel.html +0 -22
  317. package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +0 -48
  318. package/src/modules/dx/imageAndLabel/imageAndLabel.ts +0 -16
  319. package/src/modules/dx/input/__tests__/input.test.ts +0 -357
  320. package/src/modules/dx/input/input.css +0 -165
  321. package/src/modules/dx/input/input.html +0 -58
  322. package/src/modules/dx/input/input.stories.ts +0 -102
  323. package/src/modules/dx/input/input.ts +0 -238
  324. package/src/modules/dx/input/validators.ts +0 -5
  325. package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +0 -86
  326. package/src/modules/dx/instrumentation/instrumentation.html +0 -1
  327. package/src/modules/dx/instrumentation/instrumentation.ts +0 -116
  328. package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +0 -83
  329. package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +0 -39
  330. package/src/modules/dx/interactiveImage/interactiveImage.css +0 -59
  331. package/src/modules/dx/interactiveImage/interactiveImage.html +0 -32
  332. package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +0 -31
  333. package/src/modules/dx/interactiveImage/interactiveImage.ts +0 -71
  334. package/src/modules/dx/lazy/__tests__/lazy.test.ts +0 -43
  335. package/src/modules/dx/lazy/lazy.html +0 -5
  336. package/src/modules/dx/lazy/lazy.stories.ts +0 -132
  337. package/src/modules/dx/lazy/lazy.ts +0 -163
  338. package/src/modules/dx/logo/logo.css +0 -33
  339. package/src/modules/dx/logo/logo.html +0 -6
  340. package/src/modules/dx/logo/logo.ts +0 -8
  341. package/src/modules/dx/newsletterForm/newsletterForm.css +0 -73
  342. package/src/modules/dx/newsletterForm/newsletterForm.html +0 -73
  343. package/src/modules/dx/newsletterForm/newsletterForm.ts +0 -238
  344. package/src/modules/dx/pagination/__tests__/pagination.test.ts +0 -121
  345. package/src/modules/dx/pagination/pagination.css +0 -51
  346. package/src/modules/dx/pagination/pagination.html +0 -45
  347. package/src/modules/dx/pagination/pagination.stories.ts +0 -88
  348. package/src/modules/dx/pagination/pagination.ts +0 -93
  349. package/src/modules/dx/podcastHost/__tests__/mockProps.ts +0 -8
  350. package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +0 -21
  351. package/src/modules/dx/podcastHost/podcastHost.css +0 -62
  352. package/src/modules/dx/podcastHost/podcastHost.html +0 -28
  353. package/src/modules/dx/podcastHost/podcastHost.stories.ts +0 -17
  354. package/src/modules/dx/podcastHost/podcastHost.ts +0 -13
  355. package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +0 -20
  356. package/src/modules/dx/podcastPlayer/podcastPlayer.css +0 -10
  357. package/src/modules/dx/podcastPlayer/podcastPlayer.html +0 -3
  358. package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +0 -13
  359. package/src/modules/dx/podcastPlayer/podcastPlayer.ts +0 -5
  360. package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +0 -16
  361. package/src/modules/dx/podcastSubscription/podcastSubscription.css +0 -92
  362. package/src/modules/dx/podcastSubscription/podcastSubscription.html +0 -24
  363. package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +0 -23
  364. package/src/modules/dx/podcastSubscription/podcastSubscription.ts +0 -58
  365. package/src/modules/dx/popover/__tests__/mockProps.ts +0 -8
  366. package/src/modules/dx/popover/__tests__/popover.test.ts +0 -313
  367. package/src/modules/dx/popover/popover.css +0 -63
  368. package/src/modules/dx/popover/popover.html +0 -16
  369. package/src/modules/dx/popover/popover.stories.ts +0 -82
  370. package/src/modules/dx/popover/popover.ts +0 -313
  371. package/src/modules/dx/radioGroup/__tests__/mockProps.ts +0 -12
  372. package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +0 -42
  373. package/src/modules/dx/radioGroup/radioGroup.css +0 -12
  374. package/src/modules/dx/radioGroup/radioGroup.html +0 -16
  375. package/src/modules/dx/radioGroup/radioGroup.stories.ts +0 -25
  376. package/src/modules/dx/radioGroup/radioGroup.ts +0 -65
  377. package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +0 -55
  378. package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +0 -52
  379. package/src/modules/dx/relativeDateTime/relativeDateTime.html +0 -3
  380. package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +0 -83
  381. package/src/modules/dx/relativeDateTime/relativeDateTime.ts +0 -113
  382. package/src/modules/dx/searchResults/coveo.css +0 -18989
  383. package/src/modules/dx/searchResults/searchResults.css +0 -387
  384. package/src/modules/dx/searchResults/searchResults.html +0 -104
  385. package/src/modules/dx/searchResults/searchResults.stories.ts +0 -36
  386. package/src/modules/dx/searchResults/searchResults.ts +0 -186
  387. package/src/modules/dx/section/__tests__/section.test.ts +0 -17
  388. package/src/modules/dx/section/section.css +0 -130
  389. package/src/modules/dx/section/section.html +0 -66
  390. package/src/modules/dx/section/section.stories.ts +0 -381
  391. package/src/modules/dx/section/section.ts +0 -41
  392. package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +0 -66
  393. package/src/modules/dx/sectionSignup/sectionSignup.css +0 -43
  394. package/src/modules/dx/sectionSignup/sectionSignup.html +0 -23
  395. package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +0 -49
  396. package/src/modules/dx/sectionSignup/sectionSignup.ts +0 -44
  397. package/src/modules/dx/select/select.css +0 -44
  398. package/src/modules/dx/select/select.html +0 -60
  399. package/src/modules/dx/select/select.stories.ts +0 -59
  400. package/src/modules/dx/select/select.ts +0 -23
  401. package/src/modules/dx/sidebar/__tests__/mockProps.ts +0 -181
  402. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEmptyEvent.ts +0 -6
  403. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEvent.ts +0 -527
  404. package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +0 -568
  405. package/src/modules/dx/sidebar/sidebar.css +0 -192
  406. package/src/modules/dx/sidebar/sidebar.html +0 -94
  407. package/src/modules/dx/sidebar/sidebar.stories.ts +0 -188
  408. package/src/modules/dx/sidebar/sidebar.ts +0 -255
  409. package/src/modules/dx/sidebarOld/__tests__/mockProps.ts +0 -178
  410. package/src/modules/dx/sidebarOld/__tests__/sidebarOld.test.ts +0 -570
  411. package/src/modules/dx/sidebarOld/sidebarOld.css +0 -160
  412. package/src/modules/dx/sidebarOld/sidebarOld.html +0 -70
  413. package/src/modules/dx/sidebarOld/sidebarOld.stories.ts +0 -139
  414. package/src/modules/dx/sidebarOld/sidebarOld.ts +0 -187
  415. package/src/modules/dx/sidebarSearch/__tests__/mockPreloadedState.ts +0 -1686
  416. package/src/modules/dx/sidebarSearch/__tests__/sidebarSearch.test.ts +0 -175
  417. package/src/modules/dx/sidebarSearch/sidebarSearch.css +0 -3
  418. package/src/modules/dx/sidebarSearch/sidebarSearch.html +0 -26
  419. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +0 -440
  420. package/src/modules/dx/sidebarSearchResult/__tests__/sidebarSearchResult.test.ts +0 -96
  421. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +0 -36
  422. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.html +0 -14
  423. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.ts +0 -70
  424. package/src/modules/dx/skipNavLink/skipNavLink.css +0 -21
  425. package/src/modules/dx/skipNavLink/skipNavLink.html +0 -3
  426. package/src/modules/dx/skipNavLink/skipNavLink.ts +0 -3
  427. package/src/modules/dx/slackCta/__tests__/slackCta.test.ts +0 -48
  428. package/src/modules/dx/slackCta/slackCta.css +0 -41
  429. package/src/modules/dx/slackCta/slackCta.html +0 -17
  430. package/src/modules/dx/slackCta/slackCta.stories.ts +0 -25
  431. package/src/modules/dx/slackCta/slackCta.ts +0 -13
  432. package/src/modules/dx/socials/__tests__/socials.test.ts +0 -114
  433. package/src/modules/dx/socials/socials.css +0 -35
  434. package/src/modules/dx/socials/socials.html +0 -22
  435. package/src/modules/dx/socials/socials.stories.ts +0 -24
  436. package/src/modules/dx/socials/socials.ts +0 -81
  437. package/src/modules/dx/spinner/__tests__/spinner.test.ts +0 -37
  438. package/src/modules/dx/spinner/spinner.css +0 -750
  439. package/src/modules/dx/spinner/spinner.html +0 -6
  440. package/src/modules/dx/spinner/spinner.stories.ts +0 -69
  441. package/src/modules/dx/spinner/spinner.ts +0 -20
  442. package/src/modules/dx/tab/__tests__/tab.test.ts +0 -129
  443. package/src/modules/dx/tab/tab.css +0 -106
  444. package/src/modules/dx/tab/tab.html +0 -13
  445. package/src/modules/dx/tab/tab.stories.ts +0 -57
  446. package/src/modules/dx/tab/tab.ts +0 -52
  447. package/src/modules/dx/toc/__tests__/mockProps.ts +0 -28
  448. package/src/modules/dx/toc/__tests__/toc.test.ts +0 -109
  449. package/src/modules/dx/toc/toc.css +0 -94
  450. package/src/modules/dx/toc/toc.html +0 -28
  451. package/src/modules/dx/toc/toc.stories.ts +0 -26
  452. package/src/modules/dx/toc/toc.ts +0 -77
  453. package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +0 -22
  454. package/src/modules/dx/tooltip/microtip.css +0 -269
  455. package/src/modules/dx/tooltip/tooltip.css +0 -36
  456. package/src/modules/dx/tooltip/tooltip.html +0 -5
  457. package/src/modules/dx/tooltip/tooltip.stories.ts +0 -46
  458. package/src/modules/dx/tooltip/tooltip.ts +0 -6
  459. package/src/modules/dx/topics/__tests__/mockProps.ts +0 -3
  460. package/src/modules/dx/topics/__tests__/topics.test.ts +0 -31
  461. package/src/modules/dx/topics/topics.css +0 -25
  462. package/src/modules/dx/topics/topics.html +0 -12
  463. package/src/modules/dx/topics/topics.ts +0 -25
  464. package/src/modules/dx/tree/__tests__/mockProps.ts +0 -215
  465. package/src/modules/dx/tree/__tests__/tree.test.ts +0 -346
  466. package/src/modules/dx/tree/__tests__/treeHandler.test.ts +0 -194
  467. package/src/modules/dx/tree/tree.css +0 -5
  468. package/src/modules/dx/tree/tree.html +0 -11
  469. package/src/modules/dx/tree/tree.stories.ts +0 -65
  470. package/src/modules/dx/tree/tree.ts +0 -72
  471. package/src/modules/dx/tree/treeHandler.ts +0 -100
  472. package/src/modules/dx/treeItem/__tests__/mockProps.ts +0 -46
  473. package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +0 -377
  474. package/src/modules/dx/treeItem/treeItem.css +0 -14
  475. package/src/modules/dx/treeItem/treeItem.html +0 -22
  476. package/src/modules/dx/treeItem/treeItem.ts +0 -110
  477. package/src/modules/dx/treeTile/__tests__/mockProps.ts +0 -16
  478. package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +0 -168
  479. package/src/modules/dx/treeTile/treeTile.css +0 -190
  480. package/src/modules/dx/treeTile/treeTile.html +0 -27
  481. package/src/modules/dx/treeTile/treeTile.ts +0 -59
  482. package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +0 -77
  483. package/src/modules/dx/typeBadge/typeBadge.css +0 -74
  484. package/src/modules/dx/typeBadge/typeBadge.html +0 -5
  485. package/src/modules/dx/typeBadge/typeBadge.stories.ts +0 -114
  486. package/src/modules/dx/typeBadge/typeBadge.ts +0 -65
  487. package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +0 -11
  488. package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +0 -72
  489. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +0 -12
  490. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +0 -11
  491. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +0 -19
  492. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +0 -18
  493. package/src/modules/helpers/animations/animations.css +0 -15
  494. package/src/modules/helpers/button/button.css +0 -4
  495. package/src/modules/helpers/card/card.css +0 -258
  496. package/src/modules/helpers/code/code.css +0 -296
  497. package/src/modules/helpers/commonHeader/commonHeader.css +0 -130
  498. package/src/modules/helpers/reset/reset.css +0 -559
  499. package/src/modules/helpers/sidebar/sidebar.css +0 -21
  500. package/src/modules/helpers/slds/slds.css +0 -191
  501. package/src/modules/helpers/table/table.css +0 -110
  502. package/src/modules/helpers/text/text.css +0 -163
  503. package/src/modules/test-components/buttonTest/buttonTest.html +0 -3
  504. package/src/modules/test-components/buttonTest/buttonTest.ts +0 -3
  505. package/src/modules/test-components/codeBlockTest/codeBlockTest.js +0 -4
  506. package/src/modules/test-components/featureGridTest/featureGridTest.html +0 -7
  507. package/src/modules/test-components/featureGridTest/featureGridTest.ts +0 -5
  508. package/src/modules/test-components/instrumentationTest/instrumentationTest.html +0 -4
  509. package/src/modules/test-components/instrumentationTest/instrumentationTest.ts +0 -8
  510. package/src/modules/test-components/popoverTest/popoverTest.html +0 -6
  511. package/src/modules/test-components/popoverTest/popoverTest.ts +0 -5
  512. package/src/modules/utils/highlight/__tests__/highlight.test.ts +0 -108
  513. package/src/modules/utils/highlight/__tests__/mockProps.ts +0 -45
  514. package/src/modules/utils/highlight/highlight.ts +0 -32
  515. package/src/modules/utils/normalizers/normalizers.ts +0 -91
  516. package/src/modules/utils-internal/archiveCard/archiveCard.ts +0 -35
  517. package/src/modules/utils-internal/coveo/coveo.ts +0 -70
  518. package/src/modules/utils-internal/css/css.ts +0 -43
  519. package/src/modules/utils-internal/devices/devices.ts +0 -1
  520. package/src/modules/utils-internal/headerBase/headerBase.ts +0 -204
  521. package/src/modules/utils-internal/jest/jest.ts +0 -58
  522. package/src/modules/utils-internal/options/options.ts +0 -39
  523. package/src/modules/utils-internal/prismjs/prismjs.html +0 -3
  524. package/src/modules/utils-internal/prismjs/prismjs.ts +0 -3321
  525. package/src/modules/utils-internal/recentSearches/__tests__/recentSearches.test.ts +0 -83
  526. package/src/modules/utils-internal/recentSearches/recentSearches.ts +0 -57
  527. package/src/modules/utils-internal/regexps/regexps.ts +0 -5
  528. package/src/modules/utils-internal/seo/seo.ts +0 -4
  529. package/src/modules/utils-internal/slot/slot.ts +0 -17
  530. package/src/modules/utils-internal/storybook/storybook.ts +0 -32
  531. package/src/modules/utils-internal/tests/tests.ts +0 -38
  532. package/src/modules/utils-internal/wordpress/__tests__/wordpress.test.ts +0 -15
  533. package/src/modules/utils-internal/wordpress/wordpress.ts +0 -13
@@ -1,127 +0,0 @@
1
- import { html } from "lit-html";
2
-
3
- export default {
4
- title: "dx/dx-card-content",
5
- component: "dx-card-content"
6
- };
7
-
8
- const createStyles = () => html`
9
- <style>
10
- .label {
11
- color: grey;
12
- }
13
-
14
- dx-card-content {
15
- margin-top: 25px;
16
- margin-bottom: 25px;
17
- max-width: 500px;
18
- min-width: 240px;
19
- }
20
-
21
- #horiz {
22
- max-width: 800px;
23
- }
24
- </style>
25
- `;
26
-
27
- export const Base = () => html`
28
- ${createStyles()}
29
- <span class="label">With image</span>
30
-
31
- <dx-card-content
32
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
33
- href="https://developer.salesforce.com/"
34
- img-alt="Scenic view of a mountain."
35
- img-src="https://i.imgur.com/FUsyxR5.jpg"
36
- subtitle="Subtitle"
37
- label="Documentation"
38
- title="Einstein Platform Services Developer Guide"
39
- >
40
- <span slot="datetime">Feb 9th 2020</span>
41
- </dx-card-content>
42
-
43
- <br />
44
- <br />
45
- <span class="label">With Author link</span>
46
-
47
- <dx-card-content
48
- author-label="Mr. Mistoffelees"
49
- author-img-src="https://placekitten.com/300/300"
50
- author-href="https://developer.salesforce.com/blogs/author/josh-birk"
51
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
52
- href="https://developer.salesforce.com/"
53
- img-alt="Scenic view of a mountain."
54
- img-src="https://i.imgur.com/FUsyxR5.jpg"
55
- label="Documentation"
56
- title="Einstein Platform Services Developer Guide"
57
- >
58
- <span slot="datetime">Feb 9th 2020</span>
59
- </dx-card-content>
60
-
61
- <br />
62
- <br />
63
- <span class="label">With Author only</span>
64
-
65
- <dx-card-content
66
- author-label="Mr. Mistoffelees"
67
- author-img-src="https://placekitten.com/300/300"
68
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
69
- href="https://developer.salesforce.com/"
70
- img-alt="Scenic view of a mountain."
71
- img-src="https://i.imgur.com/FUsyxR5.jpg"
72
- label="Documentation"
73
- title="Einstein Platform Services Developer Guide"
74
- >
75
- <span slot="datetime">Feb 9th 2020</span>
76
- </dx-card-content>
77
-
78
- <br />
79
- <br />
80
- <span class="label">Without image</span>
81
-
82
- <dx-card-content
83
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
84
- href="https://developer.salesforce.com/"
85
- label="Documentation"
86
- title="Einstein Platform Services Developer Guide"
87
- >
88
- <span slot="datetime">Feb 9th 2020</span>
89
- </dx-card-content>
90
-
91
- <br />
92
- <br />
93
- <span class="label">Minimum content</span>
94
-
95
- <dx-card-content
96
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
97
- href="https://developer.salesforce.com/"
98
- title="Einstein Platform Services Developer Guide"
99
- >
100
- </dx-card-content>
101
-
102
- <br />
103
- <br />
104
- <span class="label">Really large body</span>
105
- <dx-card-content
106
- body="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean placerat urna eu velit congue scelerisque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla vulputate nulla non mauris tempor, at molestie ex efficitur. Nunc egestas posuere luctus. Nam ligula sapien, mattis pretium dapibus et, convallis a enim. Aliquam et sem volutpat, dignissim sapien non, faucibus nunc. Integer vitae enim et lectus volutpat scelerisque. Vestibulum elementum sapien at semper ornare. Suspendisse potenti. Donec tincidunt euismod porttitor."
107
- href="https://developer.salesforce.com/"
108
- img-alt="Scenic view of a mountain."
109
- img-src="https://i.imgur.com/FUsyxR5.jpg"
110
- title="Lorem Ipsum"
111
- >
112
- </dx-card-content>
113
-
114
- <br />
115
- <br />
116
- <span class="label">Horizontal Layout</span>
117
- <dx-card-content
118
- id="horiz"
119
- body="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean placerat urna eu velit congue scelerisque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla vulputate nulla non mauris tempor, at molestie ex efficitur. Nunc egestas posuere luctus. Nam ligula sapien, mattis pretium dapibus et, convallis a enim. Aliquam et sem volutpat, dignissim sapien non, faucibus nunc. Integer vitae enim et lectus volutpat scelerisque. Vestibulum elementum sapien at semper ornare. Suspendisse potenti. Donec tincidunt euismod porttitor."
120
- href="https://developer.salesforce.com/"
121
- img-alt="Scenic view of a mountain."
122
- img-src="https://i.imgur.com/FUsyxR5.jpg"
123
- title="Lorem Ipsum"
124
- layout="horizontal"
125
- >
126
- </dx-card-content>
127
- `;
@@ -1,68 +0,0 @@
1
- import { LightningElement, api } from "lwc";
2
- import cx from "classnames";
3
- import { LightningSlotElement } from "typings/custom";
4
- import { isSlotEmpty } from "utils-internal/slot";
5
- import { toDxColor } from "utils-internal/css";
6
-
7
- export default class CardContent extends LightningElement {
8
- @api authorHref?: string | null = null;
9
- @api authorImgSrc?: string | null = null;
10
- @api authorLabel?: string | null = null;
11
- @api backgroundColor?: string | null = null;
12
- @api body?: string | null = null;
13
- @api featured?: boolean = false;
14
- @api href!: string;
15
- @api imgAlt?: string = "";
16
- @api imgSrc?: string | null = null;
17
- @api label: string = "";
18
- @api layout: "vertical" | "horizontal" = "vertical";
19
- @api subtitle?: string | null = null;
20
- @api target?: string | null = null;
21
- @api title!: string;
22
-
23
- private isDatetimeEmpty: boolean = true;
24
- private isLinkHovered: boolean = false;
25
-
26
- private get hasAuthor() {
27
- return this.authorImgSrc && this.authorLabel;
28
- }
29
-
30
- private get backgroundStyle(): string {
31
- return this.backgroundColor
32
- ? `background: ${toDxColor(this.backgroundColor)}`
33
- : "";
34
- }
35
-
36
- private get imgLinkAriaLabel() {
37
- return `Read More About ${this.title}`;
38
- }
39
-
40
- private get className(): string {
41
- return cx(
42
- "card-content",
43
- "dx-card-base",
44
- "dx-card-base_borderless",
45
- `dx-card-base_layout-${this.layout}`,
46
- this.featured && "dx-card-base_featured",
47
- this.isDatetimeEmpty && "hide-datetime",
48
- this.isLinkHovered && "dx-card-base_link-hovered",
49
- this.hasImage && "has-image"
50
- );
51
- }
52
-
53
- private get hasImage() {
54
- return this.imgSrc || this.backgroundColor;
55
- }
56
-
57
- private setLinkHovered() {
58
- this.isLinkHovered = true;
59
- }
60
-
61
- private setLinkInactive() {
62
- this.isLinkHovered = false;
63
- }
64
-
65
- private onDatetimeSlotChange(e: LightningSlotElement): void {
66
- this.isDatetimeEmpty = isSlotEmpty(e);
67
- }
68
- }
@@ -1 +0,0 @@
1
- @import "helpers/card";
@@ -1,12 +0,0 @@
1
- <template>
2
- <dx-card-content
3
- body={body}
4
- featured={featured}
5
- href={href}
6
- img-alt={imgAlt}
7
- img-src={imgSrc}
8
- label="Demo"
9
- target={target}
10
- title={title}
11
- ></dx-card-content>
12
- </template>
@@ -1,115 +0,0 @@
1
- import { html } from "lit-html";
2
-
3
- export default {
4
- title: "dx/dx-card-demo",
5
- component: "dx-card-demo"
6
- };
7
-
8
- const createStyles = () => html`
9
- <style>
10
- dx-card-demo {
11
- margin-top: 25px;
12
- margin-bottom: 25px;
13
- width: 400px;
14
- }
15
- </style>
16
- `;
17
-
18
- export const Base = () => html`
19
- ${createStyles()}
20
-
21
- <dx-card-demo
22
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
23
- href="https://developer.salesforce.com/"
24
- img-alt="Scenic view of a mountain."
25
- img-src="https://i.imgur.com/FUsyxR5.jpg"
26
- title="E-Bikes"
27
- >
28
- </dx-card-demo>
29
-
30
- <br />
31
- <br />
32
-
33
- <dx-card-demo
34
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
35
- href="https://developer.salesforce.com/"
36
- title="E-Bikes"
37
- >
38
- </dx-card-demo>
39
- `;
40
-
41
- // prettier-ignore
42
- export const Grid = () => html`
43
- <dx-grid columns="three">
44
- <dx-card-demo
45
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
46
- href="https://developer.salesforce.com/"
47
- img-alt="Scenic view of a mountain."
48
- img-src="https://i.imgur.com/FUsyxR5.jpg"
49
- title="E-Bikes"
50
- >
51
- </dx-card-demo>
52
- <dx-card-demo
53
- body="Sample retail application. Explore this application, integrating with Salesfoce Communities, and learn stuff."
54
- href="https://developer.salesforce.com/"
55
- img-alt="Scenic view of a mountain."
56
- img-src="https://i.imgur.com/FUsyxR5.jpg"
57
- title="E-Bikes"
58
- >
59
- </dx-card-demo>
60
- <dx-card-demo
61
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
62
- href="https://developer.salesforce.com/"
63
- img-alt="Scenic view of a mountain."
64
- img-src="https://i.imgur.com/FUsyxR5.jpg"
65
- title="E-Bikes"
66
- >
67
- </dx-card-demo>
68
- <dx-card-demo
69
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
70
- href="https://developer.salesforce.com/"
71
- img-alt="Scenic view of a mountain."
72
- img-src="https://i.imgur.com/FUsyxR5.jpg"
73
- title="E-Bikes"
74
- >
75
- </dx-card-demo>
76
- <dx-card-demo
77
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
78
- href="https://developer.salesforce.com/"
79
- img-alt="Scenic view of a mountain."
80
- img-src="https://i.imgur.com/FUsyxR5.jpg"
81
- title="E-Bikes"
82
- >
83
- </dx-card-demo>
84
- <dx-card-demo
85
- body="Sample retail application. Explore this application, integrating with Salesfoce Communities, and learn stuff."
86
- href="https://developer.salesforce.com/"
87
- img-alt="Scenic view of a mountain."
88
- img-src="https://i.imgur.com/FUsyxR5.jpg"
89
- title="E-Bikes"
90
- >
91
- </dx-card-demo>
92
- <dx-card-demo
93
- body="Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff. Sample retail application. This application helps E-Bikes, a fictitious electric bicycle manufacturer, manage their products and reseller orders using a rich User Experience. Explore this application, integrating with Salesfoce Communities, and learn stuff."
94
- href="https://developer.salesforce.com/"
95
- img-alt="Scenic view of a mountain."
96
- img-src="https://i.imgur.com/FUsyxR5.jpg"
97
- title="E-Bikes"
98
- >
99
- </dx-card-demo>
100
- <dx-card-demo
101
- body="Sample retail application. Explore this application, integrating with Salesfoce Communities, and learn stuff."
102
- href="https://developer.salesforce.com/"
103
- img-alt="Scenic view of a mountain."
104
- img-src="https://i.imgur.com/FUsyxR5.jpg"
105
- title="E-Bikes"
106
- >
107
- </dx-card-demo>
108
- <dx-card-callout
109
- background-color="indigo-vibrant-30"
110
- href="/build-stuff"
111
- title="Find an upcoming event"
112
- label="Calendar"
113
- ></dx-card-callout>
114
- </dx-grid>
115
- `;
@@ -1,11 +0,0 @@
1
- import { LightningElement, api } from "lwc";
2
-
3
- export default class CardDemo extends LightningElement {
4
- @api body!: string;
5
- @api featured?: boolean = false;
6
- @api href!: string;
7
- @api imgAlt?: string;
8
- @api imgSrc?: string | null;
9
- @api target?: string | null = null;
10
- @api title!: string;
11
- }
@@ -1,48 +0,0 @@
1
- import Card from "dx/cardDocs";
2
- import { createRenderComponent } from "utils-internal/tests";
3
- import { stopPropagationOnSlotted } from "utils-internal/slot";
4
- import mockProps from "./mockProps";
5
-
6
- const TAG = "dx-card";
7
- const render = createRenderComponent(TAG, Card);
8
-
9
- jest.mock("utils-internal/slot", () => {
10
- return {
11
- stopPropagationOnSlotted: jest.fn()
12
- };
13
- });
14
-
15
- describe(TAG, () => {
16
- it("renders the image, label, title, body", () => {
17
- const element = render(mockProps);
18
-
19
- const els = [
20
- ".image",
21
- ".dx-text-label-3",
22
- "dx-card-title",
23
- ".dx-text-body-2"
24
- ].map((query) => element.shadowRoot.querySelector(query));
25
- expect(els).not.toContain(null);
26
- return expect(element).toBeAccessible();
27
- });
28
-
29
- it("doesn't render the image when it doesn't need to", () => {
30
- const element = render({
31
- title: mockProps.title,
32
- body: mockProps.body
33
- });
34
- const els = [".image"].map((query) =>
35
- element.shadowRoot.querySelector(query)
36
- );
37
- els.forEach((el) => expect(el).toBeNull());
38
-
39
- return expect(element).toBeAccessible();
40
- });
41
-
42
- it("renders slot and calls stopPropagation", () => {
43
- const element = render(mockProps);
44
- const slot: HTMLSlotElement = element.shadowRoot.querySelector("slot");
45
- slot.dispatchEvent(new Event("slotchange"));
46
- expect(stopPropagationOnSlotted).toBeCalledTimes(1);
47
- });
48
- });
@@ -1,9 +0,0 @@
1
- export default {
2
- body:
3
- "This is a pretty long card body. It could say just about anything regarding the content of this card.",
4
- href: "https://developer.salesforce.com/",
5
- imgAlt: "Scenic view of a mountain.",
6
- imgSrc: "https://i.imgur.com/FUsyxR5.jpg",
7
- label: "Documentation",
8
- title: "Example Name"
9
- };
@@ -1,50 +0,0 @@
1
- @import "helpers/reset";
2
- @import "helpers/text";
3
- @import "helpers/card";
4
-
5
- :host {
6
- --dx-c-heading-max-lines: 4;
7
- --dx-c-card-grid-max-width: 60px;
8
- }
9
-
10
- .card {
11
- display: flex;
12
- flex-direction: column;
13
- }
14
-
15
- .image {
16
- width: 100%;
17
- height: 160px;
18
- }
19
-
20
- /* text section */
21
-
22
- .card_section-text {
23
- grid-area: text;
24
- flex-grow: 1;
25
- }
26
-
27
- .dx-text-heading-6 dx-button {
28
- margin-left: var(--dx-g-spacing-xs);
29
- }
30
-
31
- .dx-text-heading-4 {
32
- position: relative;
33
- -webkit-line-clamp: var(--dx-c-heading-max-lines);
34
- -webkit-box-orient: vertical;
35
- display: -webkit-box;
36
- overflow: hidden;
37
- }
38
-
39
- .dx-text-heading-4 dx-icon {
40
- display: inline-block;
41
- transform: translateY(-3px);
42
- }
43
-
44
- /* mobile responsiveness */
45
-
46
- @media screen and (max-width: 1024px) {
47
- .has-image:not(.show-mobile-image) .image {
48
- display: none;
49
- }
50
- }
@@ -1,20 +0,0 @@
1
- <template>
2
- <a href={href} class={className} target={target}>
3
- <img
4
- if:true={imgSrc}
5
- alt={imgAlt}
6
- src={imgSrc}
7
- class="image dx-card-base_image"
8
- />
9
- <div
10
- class="dx-card-base_section-vertical dx-card-base_column card_section-text"
11
- >
12
- <span class="dx-text-label-3">{label}</span>
13
- <dx-card-title title={title} target={target}></dx-card-title>
14
- <span class="dx-text-body-2">{body}</span>
15
- </div>
16
- <div class="dx-card-base_section-vertical dx-card-base_ctas">
17
- <slot onslotchange={onSlotChange}></slot>
18
- </div>
19
- </a>
20
- </template>