@salesforcedevs/dx-components 0.26.2 → 0.28.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 (255) hide show
  1. package/lwc.config.json +2 -1
  2. package/package.json +2 -6
  3. package/src/modules/{utils-internal → base-elements}/archiveCard/archiveCard.ts +0 -0
  4. package/src/modules/{utils-internal → base-elements}/headerBase/headerBase.ts +0 -0
  5. package/src/modules/dx/cardBlogPostProvider/cardBlogPostProvider.ts +1 -1
  6. package/src/modules/dx/cardCallout/cardCallout.ts +1 -1
  7. package/src/modules/dx/cardContent/cardContent.ts +2 -2
  8. package/src/modules/dx/cardDocs/cardDocs.ts +1 -1
  9. package/src/modules/dx/cardExpanded/cardExpanded.ts +1 -1
  10. package/src/modules/dx/cardMinimal/cardMinimal.ts +1 -1
  11. package/src/modules/dx/cardNews/cardNews.ts +1 -1
  12. package/src/modules/dx/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.ts +1 -1
  13. package/src/modules/dx/cardSmall/cardSmall.ts +1 -1
  14. package/src/modules/dx/codeBlock/codeBlock.ts +1 -1
  15. package/src/modules/dx/dropdown/dropdown.ts +1 -1
  16. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +1 -1
  17. package/src/modules/dx/groupText/groupText.ts +1 -1
  18. package/src/modules/dx/header/header.ts +1 -1
  19. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +1 -1
  20. package/src/modules/dx/headerSearch/headerSearch.ts +1 -1
  21. package/src/modules/dx/icon/icon.ts +1 -1
  22. package/src/modules/dx/iconBadge/iconBadge.ts +1 -1
  23. package/src/modules/dx/input/input.ts +1 -1
  24. package/src/modules/dx/modalDrawer/modalDrawer.css +40 -0
  25. package/src/modules/dx/modalDrawer/modalDrawer.html +11 -0
  26. package/src/modules/dx/modalDrawer/modalDrawer.ts +27 -0
  27. package/src/modules/dx/popover/popover.ts +1 -1
  28. package/src/modules/dx/section/section.ts +1 -1
  29. package/src/modules/dx/sidebar/sidebar.ts +1 -1
  30. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +2 -5
  31. package/src/modules/dx/slackCta/slackCta.css +1 -1
  32. package/src/modules/dx/tooltip/tooltip.css +1 -0
  33. package/src/modules/dx/typeBadge/typeBadge.ts +1 -1
  34. package/src/modules/{utils-internal → utils}/coveo/coveo.ts +0 -0
  35. package/src/modules/{utils-internal → utils}/css/css.ts +0 -0
  36. package/src/modules/{utils-internal → utils}/devices/devices.ts +0 -0
  37. package/src/modules/utils/highlight/highlight.ts +1 -1
  38. package/src/modules/{utils-internal → utils}/options/options.ts +0 -0
  39. package/src/modules/{utils-internal → utils}/prismjs/prismjs.html +0 -0
  40. package/src/modules/{utils-internal → utils}/prismjs/prismjs.ts +0 -0
  41. package/src/modules/{utils-internal → utils}/recentSearches/recentSearches.ts +0 -0
  42. package/src/modules/{utils-internal → utils}/regexps/regexps.ts +0 -0
  43. package/src/modules/{utils-internal → utils}/seo/seo.ts +0 -0
  44. package/src/modules/{utils-internal → utils}/slot/slot.ts +0 -0
  45. package/src/modules/{utils-internal → utils}/wordpress/wordpress.ts +0 -0
  46. package/src/modules/dx/banner/__tests__/banner.test.ts +0 -33
  47. package/src/modules/dx/brandThemeProvider/__tests__/brandThemeProvider.test.ts +0 -49
  48. package/src/modules/dx/brandThemeProvider/brandThemeProvider.stories.ts +0 -321
  49. package/src/modules/dx/breadcrumbs/__tests__/breadcrumbs.test.ts +0 -140
  50. package/src/modules/dx/breadcrumbs/__tests__/mockProps.ts +0 -28
  51. package/src/modules/dx/breadcrumbs/breadcrumbs.stories.ts +0 -39
  52. package/src/modules/dx/button/__tests__/button.test.ts +0 -107
  53. package/src/modules/dx/button/button.stories.ts +0 -150
  54. package/src/modules/dx/cardBlogPost/__tests__/cardBlogPost.test.ts +0 -26
  55. package/src/modules/dx/cardBlogPost/__tests__/mockProps.ts +0 -12
  56. package/src/modules/dx/cardBlogPost/cardBlogPost.stories.ts +0 -164
  57. package/src/modules/dx/cardBlogPostProvider/__tests__/cardBlogPostProvider.test.ts +0 -34
  58. package/src/modules/dx/cardBlogPostProvider/__tests__/mockWordpressPosts.ts +0 -44
  59. package/src/modules/dx/cardCallout/__tests__/cardCallout.test.ts +0 -20
  60. package/src/modules/dx/cardCallout/__tests__/mockProps.ts +0 -7
  61. package/src/modules/dx/cardCallout/cardCallout.stories.ts +0 -33
  62. package/src/modules/dx/cardContent/__tests__/cardContent.test.ts +0 -100
  63. package/src/modules/dx/cardContent/__tests__/mockProps.ts +0 -13
  64. package/src/modules/dx/cardContent/cardContent.stories.ts +0 -127
  65. package/src/modules/dx/cardDemo/cardDemo.stories.ts +0 -115
  66. package/src/modules/dx/cardDocs/__tests__/cardDocs.test.ts +0 -48
  67. package/src/modules/dx/cardDocs/__tests__/mockProps.ts +0 -9
  68. package/src/modules/dx/cardDocs/cardDocs.stories.ts +0 -299
  69. package/src/modules/dx/cardEvent/__tests__/cardEvent.test.ts +0 -95
  70. package/src/modules/dx/cardEvent/__tests__/mockProps.ts +0 -10
  71. package/src/modules/dx/cardEvent/cardEvent.stories.ts +0 -153
  72. package/src/modules/dx/cardExpanded/__tests__/cardExpanded.test.ts +0 -193
  73. package/src/modules/dx/cardExpanded/__tests__/mockProps.ts +0 -21
  74. package/src/modules/dx/cardExpanded/cardExpanded.stories.ts +0 -59
  75. package/src/modules/dx/cardGrid/__tests__/cardMockProps.ts +0 -431
  76. package/src/modules/dx/cardGrid/__tests__/mockProps.ts +0 -15
  77. package/src/modules/dx/cardGrid/cardGrid.stories.ts +0 -111
  78. package/src/modules/dx/cardMinimal/__tests__/cardMinimal.test.ts +0 -87
  79. package/src/modules/dx/cardMinimal/__tests__/mockProps.ts +0 -10
  80. package/src/modules/dx/cardMinimal/cardMinimal.stories.ts +0 -32
  81. package/src/modules/dx/cardNews/__tests__/cardNews.test.ts +0 -58
  82. package/src/modules/dx/cardNews/__tests__/mockProps.ts +0 -7
  83. package/src/modules/dx/cardNews/cardNews.stories.ts +0 -115
  84. package/src/modules/dx/cardPodcastEpisode/__tests__/cardPodcastEpisode.test.ts +0 -68
  85. package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.stories.ts +0 -31
  86. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/cardPodcastEpisodeProvider.test.ts +0 -36
  87. package/src/modules/dx/cardPodcastEpisodeProvider/__tests__/mockWordpressEpisodes.ts +0 -50
  88. package/src/modules/dx/cardSmall/__tests__/cardSmall.test.ts +0 -66
  89. package/src/modules/dx/cardSmall/__tests__/mockProps.ts +0 -8
  90. package/src/modules/dx/cardSmall/cardSmall.stories.ts +0 -166
  91. package/src/modules/dx/cardTitle/__tests__/cardTitle.test.ts +0 -46
  92. package/src/modules/dx/cardTrailheadModule/__tests__/cardTrailheadModule.test.ts +0 -18
  93. package/src/modules/dx/cardTrailheadModule/__tests__/mockProps.ts +0 -11
  94. package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.stories.ts +0 -122
  95. package/src/modules/dx/cardVideoPreview/__tests__/cardVideoPreview.test.ts +0 -22
  96. package/src/modules/dx/cardVideoPreview/__tests__/mockProps.ts +0 -11
  97. package/src/modules/dx/cardVideoPreview/cardVideoPreview.stories.ts +0 -147
  98. package/src/modules/dx/checkbox/__tests__/checkbox.test.ts +0 -85
  99. package/src/modules/dx/checkbox/__tests__/mockProps.ts +0 -5
  100. package/src/modules/dx/checkbox/checkbox.stories.ts +0 -38
  101. package/src/modules/dx/checkboxGroup/__tests__/checkboxGroup.test.ts +0 -80
  102. package/src/modules/dx/checkboxGroup/__tests__/mockProps.ts +0 -14
  103. package/src/modules/dx/checkboxGroup/checkboxGroup.stories.ts +0 -33
  104. package/src/modules/dx/codeBlock/__tests__/codeBlock.test.ts +0 -238
  105. package/src/modules/dx/codeBlock/__tests__/mockProps.ts +0 -160
  106. package/src/modules/dx/codeBlock/codeBlock.stories.ts +0 -143
  107. package/src/modules/dx/dropdown/__tests__/dropdown.test.ts +0 -165
  108. package/src/modules/dx/dropdown/__tests__/mockNestedOptions.ts +0 -96
  109. package/src/modules/dx/dropdown/__tests__/mockOptions.ts +0 -10
  110. package/src/modules/dx/dropdown/__tests__/mockProps.ts +0 -6
  111. package/src/modules/dx/dropdown/dropdown.stories.ts +0 -89
  112. package/src/modules/dx/dropdownOption/__tests__/dropdownOption.test.ts +0 -112
  113. package/src/modules/dx/dropdownOption/__tests__/mockProps.ts +0 -20
  114. package/src/modules/dx/emptyState/__tests__/emptyState.test.ts +0 -52
  115. package/src/modules/dx/emptyState/__tests__/mockProps.ts +0 -4
  116. package/src/modules/dx/emptyState/emptyState.stories.ts +0 -45
  117. package/src/modules/dx/feature/__tests__/feature.test.ts +0 -51
  118. package/src/modules/dx/feature/__tests__/mockProps.ts +0 -8
  119. package/src/modules/dx/featureGrid/__tests__/featureGrid.test.ts +0 -21
  120. package/src/modules/dx/featureGrid/featureGrid.stories.ts +0 -120
  121. package/src/modules/dx/featuredContentHeader/__tests__/featuredContentHeader.test.ts +0 -178
  122. package/src/modules/dx/featuredContentHeader/__tests__/mockProps.ts +0 -73
  123. package/src/modules/dx/featuredContentHeader/featuredContentHeader.stories.ts +0 -153
  124. package/src/modules/dx/featuresList/__tests__/featuresList.test.ts +0 -43
  125. package/src/modules/dx/featuresList/__tests__/mockProps.ts +0 -17
  126. package/src/modules/dx/featuresList/featuresList.stories.ts +0 -30
  127. package/src/modules/dx/footer/__tests__/footer.test.ts +0 -147
  128. package/src/modules/dx/footer/__tests__/mockLocales.ts +0 -7
  129. package/src/modules/dx/footer/footer.stories.ts +0 -88
  130. package/src/modules/dx/footerOption/__tests__/footerOption.test.ts +0 -34
  131. package/src/modules/dx/footerOption/__tests__/mockProps.ts +0 -7
  132. package/src/modules/dx/formattedDateTime/__tests__/formattedDateTime.test.ts +0 -25
  133. package/src/modules/dx/formattedDateTime/__tests__/mockProps.ts +0 -13
  134. package/src/modules/dx/formattedDateTime/formattedDateTime.stories.ts +0 -103
  135. package/src/modules/dx/grid/__tests__/grid.test.ts +0 -32
  136. package/src/modules/dx/grid/grid.stories.ts +0 -134
  137. package/src/modules/dx/groupBio/__tests__/groupBio.test.ts +0 -82
  138. package/src/modules/dx/groupBio/__tests__/mockProps.ts +0 -15
  139. package/src/modules/dx/groupBio/groupBio.stories.ts +0 -66
  140. package/src/modules/dx/groupText/__tests__/groupText.test.ts +0 -69
  141. package/src/modules/dx/groupText/__tests__/mockProps.ts +0 -35
  142. package/src/modules/dx/groupText/groupText.stories.ts +0 -81
  143. package/src/modules/dx/header/__tests__/header.test.ts +0 -236
  144. package/src/modules/dx/header/__tests__/mockNavArchitects.ts +0 -169
  145. package/src/modules/dx/header/__tests__/mockNavDevelopers.ts +0 -419
  146. package/src/modules/dx/header/__tests__/mockNavs.ts +0 -115
  147. package/src/modules/dx/header/__tests__/mockProps.ts +0 -164
  148. package/src/modules/dx/header/header.stories.ts +0 -172
  149. package/src/modules/dx/headerMobileNavMenu/__tests__/headerMobileNavMenu.test.ts +0 -123
  150. package/src/modules/dx/headerMobileNavMenuOption/__tests__/headerMobileNavMenuOption.test.ts +0 -38
  151. package/src/modules/dx/headerNav/__tests__/headerNav.test.ts +0 -49
  152. package/src/modules/dx/headerSearch/__tests__/headerSearch.test.ts +0 -182
  153. package/src/modules/dx/headerSearch/__tests__/mockData.ts +0 -11
  154. package/src/modules/dx/headerSearch/__tests__/mockProps.ts +0 -6
  155. package/src/modules/dx/helmet/__tests__/helmet.test.ts +0 -52
  156. package/src/modules/dx/helmet/helmet.stories.ts +0 -53
  157. package/src/modules/dx/hr/__tests__/hr.test.ts +0 -53
  158. package/src/modules/dx/hr/__tests__/mockProps.ts +0 -16
  159. package/src/modules/dx/hr/hr.stories.ts +0 -50
  160. package/src/modules/dx/icon/__tests__/icon.test.ts +0 -54
  161. package/src/modules/dx/icon/icon.stories.ts +0 -100
  162. package/src/modules/dx/iconBadge/__tests__/iconBadge.test.ts +0 -17
  163. package/src/modules/dx/iconBadge/iconBadge.stories.ts +0 -32
  164. package/src/modules/dx/imageAndLabel/__tests__/imageAndLabel.test.ts +0 -39
  165. package/src/modules/dx/imageAndLabel/__tests__/mockProps.ts +0 -6
  166. package/src/modules/dx/imageAndLabel/imageAndLabel.stories.ts +0 -48
  167. package/src/modules/dx/input/__tests__/input.test.ts +0 -357
  168. package/src/modules/dx/input/input.stories.ts +0 -102
  169. package/src/modules/dx/instrumentation/__tests__/instrumentation.test.ts +0 -86
  170. package/src/modules/dx/interactiveImage/__tests__/interactiveImage.test.ts +0 -83
  171. package/src/modules/dx/interactiveImage/__tests__/mockProps.ts +0 -39
  172. package/src/modules/dx/interactiveImage/interactiveImage.stories.ts +0 -31
  173. package/src/modules/dx/lazy/__tests__/lazy.test.ts +0 -43
  174. package/src/modules/dx/lazy/lazy.stories.ts +0 -132
  175. package/src/modules/dx/pagination/__tests__/pagination.test.ts +0 -121
  176. package/src/modules/dx/pagination/pagination.stories.ts +0 -88
  177. package/src/modules/dx/podcastHost/__tests__/mockProps.ts +0 -8
  178. package/src/modules/dx/podcastHost/__tests__/podcastHost.test.ts +0 -21
  179. package/src/modules/dx/podcastHost/podcastHost.stories.ts +0 -17
  180. package/src/modules/dx/podcastPlayer/__tests__/podcastPlayer.test.ts +0 -20
  181. package/src/modules/dx/podcastPlayer/podcastPlayer.stories.ts +0 -13
  182. package/src/modules/dx/podcastSubscription/__tests__/podcastSubscription.test.ts +0 -16
  183. package/src/modules/dx/podcastSubscription/podcastSubscription.stories.ts +0 -23
  184. package/src/modules/dx/popover/__tests__/mockProps.ts +0 -8
  185. package/src/modules/dx/popover/__tests__/popover.test.ts +0 -313
  186. package/src/modules/dx/popover/popover.stories.ts +0 -82
  187. package/src/modules/dx/radioGroup/__tests__/mockProps.ts +0 -12
  188. package/src/modules/dx/radioGroup/__tests__/radioGroup.test.ts +0 -42
  189. package/src/modules/dx/radioGroup/radioGroup.stories.ts +0 -25
  190. package/src/modules/dx/relativeDateTime/__tests__/mockProps.ts +0 -55
  191. package/src/modules/dx/relativeDateTime/__tests__/relativeDateTime.test.ts +0 -52
  192. package/src/modules/dx/relativeDateTime/relativeDateTime.stories.ts +0 -83
  193. package/src/modules/dx/searchResults/searchResults.stories.ts +0 -36
  194. package/src/modules/dx/section/__tests__/section.test.ts +0 -17
  195. package/src/modules/dx/section/section.stories.ts +0 -381
  196. package/src/modules/dx/sectionSignup/__tests__/sectionSignup.test.ts +0 -66
  197. package/src/modules/dx/sectionSignup/sectionSignup.stories.ts +0 -49
  198. package/src/modules/dx/select/select.stories.ts +0 -59
  199. package/src/modules/dx/sidebar/__tests__/mockProps.ts +0 -181
  200. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEmptyEvent.ts +0 -6
  201. package/src/modules/dx/sidebar/__tests__/mockSearchChangeEvent.ts +0 -527
  202. package/src/modules/dx/sidebar/__tests__/sidebar.test.ts +0 -568
  203. package/src/modules/dx/sidebar/sidebar.stories.ts +0 -188
  204. package/src/modules/dx/sidebarOld/__tests__/mockProps.ts +0 -178
  205. package/src/modules/dx/sidebarOld/__tests__/sidebarOld.test.ts +0 -570
  206. package/src/modules/dx/sidebarOld/sidebarOld.stories.ts +0 -139
  207. package/src/modules/dx/sidebarSearch/__tests__/mockPreloadedState.ts +0 -1686
  208. package/src/modules/dx/sidebarSearch/__tests__/sidebarSearch.test.ts +0 -175
  209. package/src/modules/dx/sidebarSearchResult/__tests__/sidebarSearchResult.test.ts +0 -96
  210. package/src/modules/dx/slackCta/__tests__/slackCta.test.ts +0 -36
  211. package/src/modules/dx/slackCta/slackCta.stories.ts +0 -25
  212. package/src/modules/dx/socials/__tests__/socials.test.ts +0 -114
  213. package/src/modules/dx/socials/socials.stories.ts +0 -24
  214. package/src/modules/dx/spinner/__tests__/spinner.test.ts +0 -37
  215. package/src/modules/dx/spinner/spinner.stories.ts +0 -69
  216. package/src/modules/dx/tab/__tests__/tab.test.ts +0 -129
  217. package/src/modules/dx/tab/tab.stories.ts +0 -57
  218. package/src/modules/dx/toc/__tests__/mockProps.ts +0 -28
  219. package/src/modules/dx/toc/__tests__/toc.test.ts +0 -109
  220. package/src/modules/dx/toc/toc.stories.ts +0 -26
  221. package/src/modules/dx/tooltip/__tests__/tooltip.test.ts +0 -22
  222. package/src/modules/dx/tooltip/tooltip.stories.ts +0 -46
  223. package/src/modules/dx/topics/__tests__/mockProps.ts +0 -3
  224. package/src/modules/dx/topics/__tests__/topics.test.ts +0 -31
  225. package/src/modules/dx/tree/__tests__/mockProps.ts +0 -215
  226. package/src/modules/dx/tree/__tests__/tree.test.ts +0 -346
  227. package/src/modules/dx/tree/__tests__/treeHandler.test.ts +0 -194
  228. package/src/modules/dx/tree/tree.stories.ts +0 -65
  229. package/src/modules/dx/treeItem/__tests__/mockProps.ts +0 -46
  230. package/src/modules/dx/treeItem/__tests__/treeItem.test.ts +0 -377
  231. package/src/modules/dx/treeTile/__tests__/mockProps.ts +0 -16
  232. package/src/modules/dx/treeTile/__tests__/treeTile.test.ts +0 -168
  233. package/src/modules/dx/typeBadge/__tests__/typeBadge.test.ts +0 -77
  234. package/src/modules/dx/typeBadge/typeBadge.stories.ts +0 -114
  235. package/src/modules/dx/typeBadgeGroup/__tests__/mockProps.ts +0 -11
  236. package/src/modules/dx/typeBadgeGroup/__tests__/typeBadgeGroup.test.ts +0 -72
  237. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.stories.ts +0 -19
  238. package/src/modules/test-components/buttonTest/buttonTest.html +0 -3
  239. package/src/modules/test-components/buttonTest/buttonTest.ts +0 -3
  240. package/src/modules/test-components/codeBlockTest/codeBlockTest.js +0 -4
  241. package/src/modules/test-components/featureGridTest/featureGridTest.html +0 -7
  242. package/src/modules/test-components/featureGridTest/featureGridTest.ts +0 -5
  243. package/src/modules/test-components/instrumentationTest/instrumentationTest.html +0 -4
  244. package/src/modules/test-components/instrumentationTest/instrumentationTest.ts +0 -8
  245. package/src/modules/test-components/popoverTest/popoverTest.html +0 -6
  246. package/src/modules/test-components/popoverTest/popoverTest.ts +0 -5
  247. package/src/modules/test-components/slackCtaTest/slackCtaTest.html +0 -3
  248. package/src/modules/test-components/slackCtaTest/slackCtaTest.ts +0 -3
  249. package/src/modules/utils/highlight/__tests__/highlight.test.ts +0 -108
  250. package/src/modules/utils/highlight/__tests__/mockProps.ts +0 -45
  251. package/src/modules/utils-internal/jest/jest.ts +0 -58
  252. package/src/modules/utils-internal/recentSearches/__tests__/recentSearches.test.ts +0 -83
  253. package/src/modules/utils-internal/storybook/storybook.ts +0 -32
  254. package/src/modules/utils-internal/tests/tests.ts +0 -38
  255. package/src/modules/utils-internal/wordpress/__tests__/wordpress.test.ts +0 -15
@@ -1,431 +0,0 @@
1
- export default [
2
- {
3
- title: "Heroku Dev Center",
4
- body: "Learn about building, deploying, and managing your apps on Heroku.",
5
- href: "https://devcenter.heroku.com/",
6
- brand: "platform",
7
- links: [
8
- {
9
- id: 1,
10
- href: "https://devcenter.heroku.com/",
11
- title: "Overview"
12
- },
13
- {
14
- id: 1,
15
- href: "https://devcenter.heroku.com/",
16
- title: "Guides"
17
- },
18
- {
19
- id: 1,
20
- href: "https://devcenter.heroku.com/",
21
- title: "References"
22
- }
23
- ]
24
- },
25
- {
26
- title: "Lightning Web Components",
27
- body: "Learn about building, deploying, and managing your apps on Heroku.",
28
- href: "https://developer.salesforce.com/docs/component-library/overview/",
29
- brand: "platform",
30
- links: [
31
- {
32
- id: 1,
33
- href: "https://devcenter.heroku.com/",
34
- title: "Overview"
35
- },
36
- {
37
- id: 1,
38
- href: "https://devcenter.heroku.com/",
39
- title: "Guides"
40
- },
41
- {
42
- id: 1,
43
- href: "https://devcenter.heroku.com/",
44
- title: "References"
45
- }
46
- ]
47
- },
48
- {
49
- title: "Lightning Design System",
50
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
51
- href: "https://www.lightningdesignsystem.com/",
52
- brand: "platform",
53
- links: [
54
- {
55
- id: 1,
56
- href: "https://devcenter.heroku.com/",
57
- title: "Overview"
58
- },
59
- {
60
- id: 1,
61
- href: "https://devcenter.heroku.com/",
62
- title: "Guides"
63
- },
64
- {
65
- id: 1,
66
- href: "https://devcenter.heroku.com/",
67
- title: "References"
68
- }
69
- ]
70
- },
71
- {
72
- title: "Commerce Cloud APIs",
73
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
74
- href: "https://developer.commercecloud.com/s/",
75
- brand: "commerce"
76
- },
77
- {
78
- title: "MuleSoft Documentation",
79
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
80
- href: "https://docs.mulesoft.com/",
81
- brand: "integration"
82
- },
83
- {
84
- title: "Salesforce Extensions for VS Code",
85
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
86
- href: "https://developer.salesforce.com/tools/vscode",
87
- brand: "platform"
88
- },
89
- {
90
- title: "Quip Developer Documentation",
91
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
92
- href: "https://quip.com/dev",
93
- brand: "collaboration"
94
- },
95
- {
96
- title: "Tableau Help",
97
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
98
- href: "https://help.tableau.com/",
99
- brand: "analytics"
100
- },
101
- {
102
- title: "Einstein Voice & Vision",
103
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
104
- href: "https://metamind.readme.io",
105
- brand: "platform"
106
- },
107
- {
108
- title: "Lightning Web Components",
109
- body: "Learn about building, deploying, and managing your apps on Heroku.",
110
- href: "https://developer.salesforce.com/docs/component-library/overview/",
111
- brand: "platform"
112
- },
113
- {
114
- title: "Lightning Design System",
115
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
116
- href: "https://www.lightningdesignsystem.com/",
117
- brand: "platform"
118
- },
119
- {
120
- title: "Commerce Cloud APIs",
121
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
122
- href: "https://developer.commercecloud.com/s/",
123
- brand: "commerce"
124
- },
125
- {
126
- title: "MuleSoft Documentation",
127
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
128
- href: "https://docs.mulesoft.com/",
129
- brand: "integration"
130
- },
131
- {
132
- title: "Salesforce Extensions for VS Code",
133
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
134
- href: "https://developer.salesforce.com/tools/vscode",
135
- brand: "platform"
136
- },
137
- {
138
- title: "Quip Developer Documentation",
139
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
140
- href: "https://quip.com/dev",
141
- brand: "collaboration"
142
- },
143
- {
144
- title: "Tableau Help",
145
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
146
- href: "https://help.tableau.com/",
147
- brand: "analytics"
148
- },
149
- {
150
- title: "Einstein Voice & Vision",
151
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
152
- href: "https://metamind.readme.io",
153
- brand: "platform"
154
- },
155
- {
156
- title: "Lightning Web Components",
157
- body: "Learn about building, deploying, and managing your apps on Heroku.",
158
- href: "https://developer.salesforce.com/docs/component-library/overview/",
159
- brand: "platform"
160
- },
161
- {
162
- title: "Lightning Design System",
163
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
164
- href: "https://www.lightningdesignsystem.com/",
165
- brand: "platform"
166
- },
167
- {
168
- title: "Commerce Cloud APIs",
169
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
170
- href: "https://developer.commercecloud.com/s/",
171
- brand: "commerce"
172
- },
173
- {
174
- title: "MuleSoft Documentation",
175
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
176
- href: "https://docs.mulesoft.com/",
177
- brand: "integration"
178
- },
179
- {
180
- title: "Salesforce Extensions for VS Code",
181
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
182
- href: "https://developer.salesforce.com/tools/vscode",
183
- brand: "platform"
184
- },
185
- {
186
- title: "Quip Developer Documentation",
187
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
188
- href: "https://quip.com/dev",
189
- brand: "collaboration"
190
- },
191
- {
192
- title: "Tableau Help",
193
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
194
- href: "https://help.tableau.com/",
195
- brand: "analytics"
196
- },
197
- {
198
- title: "Einstein Voice & Vision",
199
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
200
- href: "https://metamind.readme.io",
201
- brand: "platform"
202
- },
203
- {
204
- title: "Commerce Cloud APIs",
205
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
206
- href: "https://developer.commercecloud.com/s/",
207
- brand: "commerce"
208
- },
209
- {
210
- title: "MuleSoft Documentation",
211
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
212
- href: "https://docs.mulesoft.com/",
213
- brand: "integration"
214
- },
215
- {
216
- title: "Salesforce Extensions for VS Code",
217
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
218
- href: "https://developer.salesforce.com/tools/vscode",
219
- brand: "platform"
220
- },
221
- {
222
- title: "Quip Developer Documentation",
223
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
224
- href: "https://quip.com/dev",
225
- brand: "collaboration"
226
- },
227
- {
228
- title: "Tableau Help",
229
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
230
- href: "https://help.tableau.com/",
231
- brand: "analytics"
232
- },
233
- {
234
- title: "Einstein Voice & Vision",
235
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
236
- href: "https://metamind.readme.io",
237
- brand: "platform"
238
- },
239
- {
240
- title: "Lightning Web Components",
241
- body: "Learn about building, deploying, and managing your apps on Heroku.",
242
- href: "https://developer.salesforce.com/docs/component-library/overview/",
243
- brand: "platform"
244
- },
245
- {
246
- title: "Lightning Design System",
247
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
248
- href: "https://www.lightningdesignsystem.com/",
249
- brand: "platform"
250
- },
251
- {
252
- title: "Commerce Cloud APIs",
253
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
254
- href: "https://developer.commercecloud.com/s/",
255
- brand: "commerce"
256
- },
257
- {
258
- title: "MuleSoft Documentation",
259
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
260
- href: "https://docs.mulesoft.com/",
261
- brand: "integration"
262
- },
263
- {
264
- title: "Salesforce Extensions for VS Code",
265
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
266
- href: "https://developer.salesforce.com/tools/vscode",
267
- brand: "platform"
268
- },
269
- {
270
- title: "Quip Developer Documentation",
271
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
272
- href: "https://quip.com/dev",
273
- brand: "collaboration"
274
- },
275
- {
276
- title: "Tableau Help",
277
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
278
- href: "https://help.tableau.com/",
279
- brand: "analytics"
280
- },
281
- {
282
- title: "Einstein Voice & Vision",
283
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
284
- href: "https://metamind.readme.io",
285
- brand: "platform"
286
- },
287
- {
288
- title: "Lightning Web Components",
289
- body: "Learn about building, deploying, and managing your apps on Heroku.",
290
- href: "https://developer.salesforce.com/docs/component-library/overview/",
291
- brand: "platform"
292
- },
293
- {
294
- title: "Lightning Design System",
295
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
296
- href: "https://www.lightningdesignsystem.com/",
297
- brand: "platform"
298
- },
299
- {
300
- title: "Commerce Cloud APIs",
301
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
302
- href: "https://developer.commercecloud.com/s/",
303
- brand: "commerce"
304
- },
305
- {
306
- title: "MuleSoft Documentation",
307
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
308
- href: "https://docs.mulesoft.com/",
309
- brand: "integration"
310
- },
311
- {
312
- title: "Salesforce Extensions for VS Code",
313
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
314
- href: "https://developer.salesforce.com/tools/vscode",
315
- brand: "platform"
316
- },
317
- {
318
- title: "Quip Developer Documentation",
319
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
320
- href: "https://quip.com/dev",
321
- brand: "collaboration"
322
- },
323
- {
324
- title: "Tableau Help",
325
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
326
- href: "https://help.tableau.com/",
327
- brand: "analytics"
328
- },
329
- {
330
- title: "Einstein Voice & Vision",
331
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
332
- href: "https://metamind.readme.io",
333
- brand: "platform"
334
- },
335
- {
336
- title: "Commerce Cloud APIs",
337
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
338
- href: "https://developer.commercecloud.com/s/",
339
- brand: "commerce"
340
- },
341
- {
342
- title: "MuleSoft Documentation",
343
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
344
- href: "https://docs.mulesoft.com/",
345
- brand: "integration"
346
- },
347
- {
348
- title: "Salesforce Extensions for VS Code",
349
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
350
- href: "https://developer.salesforce.com/tools/vscode",
351
- brand: "platform"
352
- },
353
- {
354
- title: "Quip Developer Documentation",
355
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
356
- href: "https://quip.com/dev",
357
- brand: "collaboration"
358
- },
359
- {
360
- title: "Tableau Help",
361
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
362
- href: "https://help.tableau.com/",
363
- brand: "analytics"
364
- },
365
- {
366
- title: "Einstein Voice & Vision",
367
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
368
- href: "https://metamind.readme.io",
369
- brand: "platform"
370
- },
371
- {
372
- title: "Lightning Web Components",
373
- body: "Learn about building, deploying, and managing your apps on Heroku.",
374
- href: "https://developer.salesforce.com/docs/component-library/overview/",
375
- brand: "platform"
376
- },
377
- {
378
- title: "Lightning Design System",
379
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
380
- href: "https://www.lightningdesignsystem.com/",
381
- brand: "platform"
382
- },
383
- {
384
- title: "Commerce Cloud APIs",
385
- body: "Unlock and integrate data from any system to deliver critical, time-sensitive projects with MuleSoft.",
386
- href: "https://developer.commercecloud.com/s/",
387
- brand: "commerce"
388
- },
389
- {
390
- title: "MuleSoft Documentation",
391
- body: "Explore documentation, APIs, resources, and discussion forums to Develop personalized commerce experiences on a fast, flexible platform.",
392
- href: "https://docs.mulesoft.com/",
393
- brand: "integration"
394
- },
395
- {
396
- title: "Salesforce Extensions for VS Code",
397
- body: "Use Salesforce Extensions for Visual Studio Code to optimize building and debugging code on the Salesforce Platform. From the VS Studio code editor, work seamlessly with scratch orgs, sandboxes, and DE orgs, and code intelligently with Apex, Lightning components, and Visualforce.",
398
- href: "https://developer.salesforce.com/tools/vscode",
399
- brand: "platform"
400
- },
401
- {
402
- title: "Quip Developer Documentation",
403
- body: "Make more intelligent, data-driven decisions that guide your business forward with Quip.",
404
- href: "https://quip.com/dev",
405
- brand: "collaboration"
406
- },
407
- {
408
- title: "Tableau Help",
409
- body: "Tableau brings together data from anywhere to empower your people everywhere.",
410
- href: "https://help.tableau.com/",
411
- brand: "analytics"
412
- },
413
- {
414
- title: "Einstein Voice & Vision",
415
- body: "Einstein Platform Services allows you to seamlessly integrate custom deep learning models into your CRM workflows.",
416
- href: "https://metamind.readme.io",
417
- brand: "platform"
418
- },
419
- {
420
- title: "Lightning Web Components",
421
- body: "Learn about building, deploying, and managing your apps on Heroku.",
422
- href: "https://developer.salesforce.com/docs/component-library/overview/",
423
- brand: "platform"
424
- },
425
- {
426
- title: "Lightning Design System",
427
- body: "Create the World's Best Enterprise App Experiences using Salesforce Lightning Design System.",
428
- href: "https://www.lightningdesignsystem.com/",
429
- brand: "platform"
430
- }
431
- ];
@@ -1,15 +0,0 @@
1
- import cards from "./cardMockProps";
2
-
3
- export default {
4
- cards,
5
- languageList: [
6
- { label: "English", value: "en-us" },
7
- { label: "Japanese", value: "ja-jp" }
8
- ],
9
- productList: [
10
- { label: "All Services", value: "a" },
11
- { label: "Analytics", value: "b" },
12
- { label: "Commerce", value: "c" },
13
- { label: "Digital 360", value: "d" }
14
- ]
15
- };
@@ -1,111 +0,0 @@
1
- import { html } from "lit-html";
2
- import mockProps from "./__tests__/mockProps";
3
-
4
- export default {
5
- title: "dx/dx-card-grid",
6
- component: "dx-card-grid"
7
- };
8
-
9
- const createStyles = () => html`
10
- <style>
11
- .docs-action-bar {
12
- display: flex;
13
- justify-content: space-between;
14
- align-items: flex-end;
15
- }
16
-
17
- .docs-action-bar > .records-container {
18
- margin-right: auto;
19
- }
20
-
21
- .docs-action-bar .filters-container {
22
- display: flex;
23
- }
24
-
25
- .filter-checkbox-group,
26
- .filter-button::part(container) {
27
- --dx-c-checkbox-text-transform: capitalize;
28
- text-transform: var(--dx-c-checkbox-text-transform);
29
- }
30
-
31
- .docs-action-bar .filters-container > *:not(:first-child),
32
- .docs-search-input {
33
- margin-left: var(--dx-g-spacing-sm);
34
- }
35
- </style>
36
- `;
37
-
38
- // prettier-ignore
39
- export const Base = () => html`
40
- <dx-card-grid
41
- cards="${JSON.stringify(mockProps.cards)}"
42
- ></dx-card-grid>
43
- `;
44
-
45
- export const PageSize = () => html`
46
- <dx-card-grid
47
- cards="${JSON.stringify(mockProps.cards)}"
48
- page-size="12"
49
- ></dx-card-grid>
50
- `;
51
-
52
- // We need to generate these cards this way because we can't for:each over stringified data for storybook
53
- const mockCards = mockProps.cards.map(
54
- (item) => html`
55
- <dx-card-docs
56
- title="${item.title}"
57
- body="${item.body}"
58
- href="${item.href}"
59
- >
60
- <dx-button
61
- variant="inline"
62
- href="${item.href}"
63
- if:false="${item.links}"
64
- >
65
- Read It
66
- </dx-button>
67
- </dx-card-docs>
68
- `
69
- );
70
-
71
- export const SlottedFilters = () => html`
72
- ${createStyles()}
73
-
74
- <dx-card-grid cards="${JSON.stringify(mockProps.cards)}">
75
- <div class="docs-action-bar" slot="filters">
76
- <dx-popover width="max-content">
77
- <dx-button
78
- class="filter-button"
79
- variant="tertiary"
80
- icon-symbol="chevrondown"
81
- slot="control"
82
- >
83
- Products
84
- </dx-button>
85
- <dx-checkbox-group
86
- legend="Products"
87
- options="${JSON.stringify(mockProps.productList)}"
88
- slot="content"
89
- class="filter-checkbox-group"
90
- ></dx-checkbox-group>
91
- </dx-popover>
92
- <dx-popover width="max-content">
93
- <dx-button
94
- class="filter-button"
95
- variant="tertiary"
96
- icon-symbol="chevrondown"
97
- slot="control"
98
- >
99
- Language
100
- </dx-button>
101
- <dx-radio-group
102
- legend="Languages"
103
- options="${JSON.stringify(mockProps.languageList)}"
104
- slot="content"
105
- class="filter-checkbox-group"
106
- ></dx-radio-group>
107
- </dx-popover>
108
- </div>
109
- <div slot="cards">${mockCards}</div>
110
- </dx-card-grid>
111
- `;
@@ -1,87 +0,0 @@
1
- import CardMinimal from "dx/cardMinimal";
2
- import TypeBadge from "dx/typeBadge";
3
- import { createRenderComponent } from "utils-internal/tests";
4
- import { createMediaMock } from "utils-internal/jest";
5
- import { blogPostMock, podcastEpisodeMock } from "./mockProps";
6
-
7
- const MOBILE_QUERY = "(max-width: 640px)";
8
- const TAG = "dx-card-minimal";
9
- const render = createRenderComponent(TAG, CardMinimal);
10
-
11
- describe(TAG, () => {
12
- describe("default render", () => {
13
- beforeAll(() => {
14
- window.matchMedia = createMediaMock();
15
- });
16
-
17
- it("renders a blog post", () => {
18
- const component = render(blogPostMock);
19
- const link: HTMLAnchorElement =
20
- component.shadowRoot.querySelector("a");
21
- expect(link).not.toBeNull();
22
- expect(link.href).toMatch(blogPostMock.href);
23
- expect(link.target).toBe("_self");
24
-
25
- const heading = link.querySelector("h4");
26
- expect(heading).not.toBeNull();
27
- expect(heading?.textContent).toBe(blogPostMock.title);
28
-
29
- const typeBadge: TypeBadge =
30
- component.shadowRoot.querySelector("dx-type-badge");
31
- expect(typeBadge).not.toBeNull();
32
- expect(typeBadge.value).toBe("Blog");
33
- expect(typeBadge.color).toBe("teal");
34
- expect(typeBadge.size).toBe("default");
35
-
36
- expect(window.matchMedia).toBeCalledTimes(1);
37
- expect(window.matchMedia).toBeCalledWith(MOBILE_QUERY);
38
-
39
- return expect(component).toBeAccessible();
40
- });
41
-
42
- it("renders a podcast episode with target blank", () => {
43
- const target = "_blank";
44
- const component = render({ ...podcastEpisodeMock, target });
45
- const link: HTMLAnchorElement =
46
- component.shadowRoot.querySelector("a");
47
- expect(link).not.toBeNull();
48
- expect(link.href).toMatch(podcastEpisodeMock.href);
49
- expect(link.target).toBe(target);
50
-
51
- const heading = link.querySelector("h4");
52
- expect(heading).not.toBeNull();
53
- expect(heading?.textContent).toBe(podcastEpisodeMock.title);
54
-
55
- const typeBadge: TypeBadge =
56
- component.shadowRoot.querySelector("dx-type-badge");
57
- expect(typeBadge).not.toBeNull();
58
- expect(typeBadge.value).toBe(podcastEpisodeMock.contentType);
59
- expect(typeBadge.color).toBe("blue");
60
- expect(typeBadge.size).toBe("default");
61
-
62
- expect(window.matchMedia).toBeCalledTimes(1);
63
- expect(window.matchMedia).toBeCalledWith(MOBILE_QUERY);
64
-
65
- return expect(component).toBeAccessible();
66
- });
67
- });
68
- describe("render mobile", () => {
69
- beforeAll(() => {
70
- window.matchMedia = createMediaMock(true);
71
- });
72
-
73
- it("renders dx-type-badge as small", () => {
74
- const component = render(podcastEpisodeMock);
75
- const typeBadge =
76
- component.shadowRoot.querySelector("dx-type-badge");
77
- expect(typeBadge).not.toBeNull();
78
- expect(typeBadge.value).toBe(podcastEpisodeMock.contentType);
79
- expect(typeBadge.color).toBe("blue");
80
- expect(typeBadge.size).toBe("small");
81
- expect(window.matchMedia).toBeCalledTimes(1);
82
- expect(window.matchMedia).toBeCalledWith(MOBILE_QUERY);
83
-
84
- return expect(component).toBeAccessible();
85
- });
86
- });
87
- });
@@ -1,10 +0,0 @@
1
- export const blogPostMock = {
2
- title: "Lightning Web Components for Your Inbox",
3
- href: "/awesome-post"
4
- };
5
-
6
- export const podcastEpisodeMock = {
7
- title: "Episode 100: Trailhead Engineering with Jeff Douglas",
8
- href: "/awesome-episode",
9
- contentType: "Podcast"
10
- };