@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,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,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,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,299 +0,0 @@
1
- import { html } from "lit-html";
2
-
3
- export default {
4
- title: "dx/dx-card-docs",
5
- component: "dx-card-docs"
6
- };
7
-
8
- const createStyles = () => html`
9
- <style>
10
- span {
11
- color: grey;
12
- }
13
- dx-card-docs {
14
- margin-top: 25px;
15
- margin-bottom: 25px;
16
- width: 400px;
17
- max-width: 100%;
18
- min-width: 240px;
19
- }
20
- </style>
21
- `;
22
-
23
- export const Base = () => html`
24
- ${createStyles()}
25
- <span>With image</span>
26
-
27
- <dx-card-docs
28
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
29
- href="https://developer.salesforce.com/"
30
- img-alt="Scenic view of a mountain."
31
- img-src="https://i.imgur.com/FUsyxR5.jpg"
32
- label="Documentation"
33
- title="Einstein Platform Services Developer Guide"
34
- >
35
- <dx-button
36
- href="http://tweetflight.wearebrightly.com/"
37
- target="_blank"
38
- variant="inline"
39
- icon-symbol="forward"
40
- >
41
- Read Guide
42
- </dx-button>
43
- </dx-card-docs>
44
-
45
- <span>Without image</span>
46
-
47
- <dx-card-docs
48
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
49
- href="https://developer.salesforce.com/"
50
- label="API"
51
- title="Quip SCIM API Documentation"
52
- >
53
- <dx-button
54
- href="http://tweetflight.wearebrightly.com/"
55
- target="_blank"
56
- variant="inline"
57
- >
58
- Overview
59
- </dx-button>
60
- <dx-button
61
- href="http://tweetflight.wearebrightly.com/"
62
- target="_blank"
63
- variant="inline"
64
- >
65
- Guides
66
- </dx-button>
67
- <dx-button
68
- href="http://tweetflight.wearebrightly.com/"
69
- target="_blank"
70
- variant="inline"
71
- >
72
- Reference
73
- </dx-button>
74
- </dx-card-docs>
75
-
76
- <span>With new window icon and target set to '_blank'</span>
77
-
78
- <dx-card-docs
79
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
80
- href="https://developer.salesforce.com/"
81
- label="API"
82
- title="Quip SCIM API Documentation"
83
- target="_blank"
84
- >
85
- <dx-button
86
- href="http://tweetflight.wearebrightly.com/"
87
- target="_blank"
88
- variant="inline"
89
- >
90
- Overview
91
- </dx-button>
92
- <dx-button
93
- href="http://tweetflight.wearebrightly.com/"
94
- target="_blank"
95
- variant="inline"
96
- >
97
- Guides
98
- </dx-button>
99
- <dx-button
100
- href="http://tweetflight.wearebrightly.com/"
101
- target="_blank"
102
- variant="inline"
103
- >
104
- Reference
105
- </dx-button>
106
- </dx-card-docs>
107
- `;
108
-
109
- // prettier-ignore
110
- export const Grid = () => html`
111
- <dx-grid columns="three">
112
- <dx-card-docs
113
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
114
- href="https://developer.salesforce.com/"
115
- img-alt="Scenic view of a mountain."
116
- img-src="https://i.imgur.com/FUsyxR5.jpg"
117
- label="Documentation"
118
- title="Einstein Platform Services Developer Guide"
119
- >
120
- <dx-button
121
- href="http://tweetflight.wearebrightly.com/"
122
- target="_blank"
123
- variant="inline"
124
- icon-symbol="forward"
125
- >
126
- Read Guide
127
- </dx-button>
128
- </dx-card-docs>
129
- <dx-card-docs
130
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
131
- href="https://developer.salesforce.com/"
132
- label="API"
133
- title="Quip SCIM API"
134
- >
135
- <dx-button
136
- href="http://tweetflight.wearebrightly.com/"
137
- target="_blank"
138
- variant="inline"
139
- >
140
- Overview
141
- </dx-button>
142
- <dx-button
143
- href="http://tweetflight.wearebrightly.com/"
144
- target="_blank"
145
- variant="inline"
146
- >
147
- Guides
148
- </dx-button>
149
- <dx-button
150
- href="http://tweetflight.wearebrightly.com/"
151
- target="_blank"
152
- variant="inline"
153
- >
154
- Reference
155
- </dx-button>
156
- </dx-card-docs>
157
- <dx-card-docs
158
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
159
- href="https://developer.salesforce.com/"
160
- label="API"
161
- title="Quip SCIM API"
162
- >
163
- <dx-button
164
- href="http://tweetflight.wearebrightly.com/"
165
- target="_blank"
166
- variant="inline"
167
- >
168
- Overview
169
- </dx-button>
170
- <dx-button
171
- href="http://tweetflight.wearebrightly.com/"
172
- target="_blank"
173
- variant="inline"
174
- >
175
- Guides
176
- </dx-button>
177
- <dx-button
178
- href="http://tweetflight.wearebrightly.com/"
179
- target="_blank"
180
- variant="inline"
181
- >
182
- Reference
183
- </dx-button>
184
- </dx-card-docs>
185
- <dx-card-docs
186
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
187
- href="https://developer.salesforce.com/"
188
- img-alt="Scenic view of a mountain."
189
- img-src="https://i.imgur.com/FUsyxR5.jpg"
190
- label="Documentation"
191
- title="Einstein Platform Services Developer Guide"
192
- >
193
- <dx-button
194
- href="http://tweetflight.wearebrightly.com/"
195
- target="_blank"
196
- variant="inline"
197
- icon-symbol="forward"
198
- >
199
- Read Guide
200
- </dx-button>
201
- </dx-card-docs>
202
- <dx-card-docs
203
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
204
- href="https://developer.salesforce.com/"
205
- label="API"
206
- title="Quip SCIM API"
207
- >
208
- <dx-button
209
- href="http://tweetflight.wearebrightly.com/"
210
- target="_blank"
211
- variant="inline"
212
- >
213
- Overview
214
- </dx-button>
215
- <dx-button
216
- href="http://tweetflight.wearebrightly.com/"
217
- target="_blank"
218
- variant="inline"
219
- >
220
- Guides
221
- </dx-button>
222
- <dx-button
223
- href="http://tweetflight.wearebrightly.com/"
224
- target="_blank"
225
- variant="inline"
226
- >
227
- Reference
228
- </dx-button>
229
- </dx-card-docs>
230
- <dx-card-docs
231
- body="Quip SCIM API is a specification designed to make it easier to manage user identities in cloud-based applications and services."
232
- href="https://developer.salesforce.com/"
233
- label="API"
234
- title="Quip SCIM API"
235
- >
236
- <dx-button
237
- href="http://tweetflight.wearebrightly.com/"
238
- target="_blank"
239
- variant="inline"
240
- >
241
- Overview
242
- </dx-button>
243
- <dx-button
244
- href="http://tweetflight.wearebrightly.com/"
245
- target="_blank"
246
- variant="inline"
247
- >
248
- Guides
249
- </dx-button>
250
- <dx-button
251
- href="http://tweetflight.wearebrightly.com/"
252
- target="_blank"
253
- variant="inline"
254
- >
255
- Reference
256
- </dx-button>
257
- </dx-card-docs>
258
- <dx-card-docs
259
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
260
- href="https://developer.salesforce.com/"
261
- img-alt="Scenic view of a mountain."
262
- img-src="https://i.imgur.com/FUsyxR5.jpg"
263
- label="Documentation"
264
- title="Einstein Platform Services Developer Guide"
265
- >
266
- <dx-button
267
- href="http://tweetflight.wearebrightly.com/"
268
- target="_blank"
269
- variant="inline"
270
- icon-symbol="forward"
271
- >
272
- Read Guide
273
- </dx-button>
274
- </dx-card-docs>
275
- <dx-card-docs
276
- body="This is a pretty long card body. It could say just about anything regarding the content of this card."
277
- href="https://developer.salesforce.com/"
278
- img-alt="Scenic view of a mountain."
279
- img-src="https://i.imgur.com/FUsyxR5.jpg"
280
- label="Documentation"
281
- title="Einstein Platform Services Developer Guide"
282
- >
283
- <dx-button
284
- href="http://tweetflight.wearebrightly.com/"
285
- target="_blank"
286
- variant="inline"
287
- icon-symbol="forward"
288
- >
289
- Read Guide
290
- </dx-button>
291
- </dx-card-docs>
292
- <dx-card-callout
293
- background-color="indigo-vibrant-30"
294
- href="/build-stuff"
295
- title="Find an upcoming event"
296
- label="Calendar"
297
- ></dx-card-callout>
298
- </dx-grid>
299
- `;