@salesforcedevs/arch-components 1.20.17-alpha3 → 1.20.17-alpha5

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 (355) hide show
  1. package/package.json +1 -1
  2. package/src/modules/common/effectAdapter/__tests__/effectAdapter.test.ts +0 -12
  3. package/src/modules/common/effectAdapter/effectAdapter.html +0 -1
  4. package/src/modules/common/effectAdapter/effectAdapter.ts +0 -24
  5. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.html +0 -3
  6. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.ts +0 -7
  7. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -3
  8. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -18
  9. package/src/modules/common/reflectedElement/__tests__/reflectedElement.test.ts +0 -75
  10. package/src/modules/common/reflectedElement/reflectedElement.ts +0 -50
  11. package/src/modules/common/slot/__tests__/slot.test.ts +0 -96
  12. package/src/modules/common/slot/slot.ts +0 -21
  13. package/src/modules/sa/coverage/coverage.css +0 -35
  14. package/src/modules/sa/coverage/coverage.html +0 -15
  15. package/src/modules/sa/coverage/coverage.ts +0 -402
  16. package/src/modules/sa/coverage/types.d.ts +0 -26
  17. package/src/modules/sa/expandableSection/expandableSection.css +0 -24
  18. package/src/modules/sa/expandableSection/expandableSection.html +0 -20
  19. package/src/modules/sa/expandableSection/expandableSection.stories.ts +0 -37
  20. package/src/modules/sa/expandableSection/expandableSection.ts +0 -24
  21. package/src/modules/sa/explorer/explorer.css +0 -303
  22. package/src/modules/sa/explorer/explorer.html +0 -403
  23. package/src/modules/sa/explorer/explorer.ts +0 -664
  24. package/src/modules/sa/explorer/types.d.ts +0 -60
  25. package/src/modules/sa/gallery/gallery.css +0 -358
  26. package/src/modules/sa/gallery/gallery.html +0 -65
  27. package/src/modules/sa/gallery/gallery.ts +0 -300
  28. package/src/modules/sa/gallery/types.d.ts +0 -35
  29. package/src/modules/sa/socialShare/socialShare.css +0 -49
  30. package/src/modules/sa/socialShare/socialShare.html +0 -56
  31. package/src/modules/sa/socialShare/socialShare.ts +0 -29
  32. package/src/modules/shared/a11y/a11y.ts +0 -25
  33. package/src/modules/shared/children/children.ts +0 -29
  34. package/src/modules/shared/color/color.ts +0 -52
  35. package/src/modules/shared/debounce/debounce.ts +0 -32
  36. package/src/modules/shared/dialog/dialog.ts +0 -154
  37. package/src/modules/shared/elements/__tests__/overflow.test.ts +0 -39
  38. package/src/modules/shared/elements/overflow.ts +0 -71
  39. package/src/modules/shared/fetch/fetch.ts +0 -52
  40. package/src/modules/shared/helpers/helpers.ts +0 -141
  41. package/src/modules/shared/i18n/i18n.ts +0 -74
  42. package/src/modules/shared/labels/__tests__/helpers.test.ts +0 -107
  43. package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +0 -33
  44. package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +0 -89
  45. package/src/modules/shared/labels/helpers.ts +0 -23
  46. package/src/modules/shared/labels/pointHelpers.ts +0 -47
  47. package/src/modules/shared/labels/timeHelpers.ts +0 -182
  48. package/src/modules/shared/labels/types.d.ts +0 -5
  49. package/src/modules/shared/logger/logger.ts +0 -33
  50. package/src/modules/shared/menu/menu.ts +0 -239
  51. package/src/modules/shared/overflow/__tests__/overflow.test.ts +0 -39
  52. package/src/modules/shared/overflow/overflow.ts +0 -71
  53. package/src/modules/shared/polling-request.ts +0 -97
  54. package/src/modules/shared/testutils.ts +0 -118
  55. package/src/modules/shared/track/track.ts +0 -23
  56. package/src/modules/shared/trailhead.ts +0 -123
  57. package/src/modules/shared/types.d.ts +0 -1
  58. package/src/modules/shared/useEffectAttr.ts +0 -16
  59. package/src/modules/shared/withState.ts +0 -21
  60. package/src/modules/tds/appLauncher/__fixtures__/index.ts +0 -34
  61. package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +0 -119
  62. package/src/modules/tds/appLauncher/appLauncher.css +0 -65
  63. package/src/modules/tds/appLauncher/appLauncher.html +0 -38
  64. package/src/modules/tds/appLauncher/appLauncher.stories.ts +0 -39
  65. package/src/modules/tds/appLauncher/appLauncher.ts +0 -79
  66. package/src/modules/tds/appLauncher/types.ts +0 -8
  67. package/src/modules/tds/avatar/__tests__/avatar.test.ts +0 -11
  68. package/src/modules/tds/avatar/avatar.css +0 -77
  69. package/src/modules/tds/avatar/avatar.html +0 -36
  70. package/src/modules/tds/avatar/avatar.stories.ts +0 -64
  71. package/src/modules/tds/avatar/avatar.ts +0 -50
  72. package/src/modules/tds/badge/__tests__/badge.test.js +0 -11
  73. package/src/modules/tds/badge/badge.css +0 -22
  74. package/src/modules/tds/badge/badge.html +0 -5
  75. package/src/modules/tds/badge/badge.stories.ts +0 -10
  76. package/src/modules/tds/badge/badge.ts +0 -9
  77. package/src/modules/tds/button/__tests__/button.test.ts +0 -52
  78. package/src/modules/tds/button/button.css +0 -1
  79. package/src/modules/tds/button/button.html +0 -20
  80. package/src/modules/tds/button/button.stories.js +0 -54
  81. package/src/modules/tds/button/button.ts +0 -59
  82. package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +0 -17
  83. package/src/modules/tds/buttonIcon/buttonIcon.css +0 -1
  84. package/src/modules/tds/buttonIcon/buttonIcon.html +0 -12
  85. package/src/modules/tds/buttonIcon/buttonIcon.stories.js +0 -38
  86. package/src/modules/tds/buttonIcon/buttonIcon.ts +0 -6
  87. package/src/modules/tds/buttonIconLink/buttonIconLink.css +0 -1
  88. package/src/modules/tds/buttonIconLink/buttonIconLink.html +0 -14
  89. package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +0 -32
  90. package/src/modules/tds/buttonIconLink/buttonIconLink.ts +0 -9
  91. package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +0 -17
  92. package/src/modules/tds/buttonLink/buttonLink.css +0 -1
  93. package/src/modules/tds/buttonLink/buttonLink.html +0 -19
  94. package/src/modules/tds/buttonLink/buttonLink.stories.js +0 -24
  95. package/src/modules/tds/buttonLink/buttonLink.ts +0 -8
  96. package/src/modules/tds/buttonStyles/buttonStyles.css +0 -232
  97. package/src/modules/tds/childSummary/__tests__/childSummary.test.js +0 -99
  98. package/src/modules/tds/childSummary/childSummary.css +0 -74
  99. package/src/modules/tds/childSummary/childSummary.html +0 -38
  100. package/src/modules/tds/childSummary/childSummary.stories.ts +0 -40
  101. package/src/modules/tds/childSummary/childSummary.ts +0 -63
  102. package/src/modules/tds/childSummary/types.d.ts +0 -10
  103. package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +0 -32
  104. package/src/modules/tds/contentChildListItem/contentChildListItem.css +0 -1
  105. package/src/modules/tds/contentChildListItem/contentChildListItem.html +0 -10
  106. package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +0 -46
  107. package/src/modules/tds/contentChildListItem/contentChildListItem.ts +0 -34
  108. package/src/modules/tds/contentIcon/contentIcon.css +0 -47
  109. package/src/modules/tds/contentIcon/contentIcon.html +0 -15
  110. package/src/modules/tds/contentIcon/contentIcon.stories.js +0 -110
  111. package/src/modules/tds/contentIcon/contentIcon.ts +0 -66
  112. package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +0 -76
  113. package/src/modules/tds/contextAdapter/constants.ts +0 -1
  114. package/src/modules/tds/contextAdapter/contextAdapter.html +0 -1
  115. package/src/modules/tds/contextAdapter/contextAdapter.ts +0 -54
  116. package/src/modules/tds/dialogStyles/dialogStyles.css +0 -90
  117. package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +0 -3
  118. package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +0 -142
  119. package/src/modules/tds/footerLinks/footerLinks.css +0 -80
  120. package/src/modules/tds/footerLinks/footerLinks.html +0 -30
  121. package/src/modules/tds/footerLinks/footerLinks.ts +0 -48
  122. package/src/modules/tds/footerLinks/types.ts +0 -11
  123. package/src/modules/tds/footerMfe/footerMfe.html +0 -3
  124. package/src/modules/tds/footerMfe/footerMfe.ts +0 -19
  125. package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +0 -43
  126. package/src/modules/tds/headerAvatar/headerAvatar.css +0 -45
  127. package/src/modules/tds/headerAvatar/headerAvatar.html +0 -25
  128. package/src/modules/tds/headerAvatar/headerAvatar.ts +0 -15
  129. package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +0 -32
  130. package/src/modules/tds/headerHelpButton/headerHelpButton.css +0 -14
  131. package/src/modules/tds/headerHelpButton/headerHelpButton.html +0 -19
  132. package/src/modules/tds/headerHelpButton/headerHelpButton.ts +0 -12
  133. package/src/modules/tds/heading/__tests__/heading.test.ts +0 -50
  134. package/src/modules/tds/heading/heading.css +0 -1
  135. package/src/modules/tds/heading/heading.html +0 -9
  136. package/src/modules/tds/heading/heading.stories.ts +0 -36
  137. package/src/modules/tds/heading/heading.ts +0 -36
  138. package/src/modules/tds/icon/icon.css +0 -28
  139. package/src/modules/tds/icon/icon.html +0 -17
  140. package/src/modules/tds/icon/icon.stories.js +0 -18
  141. package/src/modules/tds/icon/icon.ts +0 -79
  142. package/src/modules/tds/input/__tests__/input.test.ts +0 -41
  143. package/src/modules/tds/input/input.css +0 -34
  144. package/src/modules/tds/input/input.html +0 -12
  145. package/src/modules/tds/input/input.stories.ts +0 -25
  146. package/src/modules/tds/input/input.ts +0 -41
  147. package/src/modules/tds/instrumentation/instrumentation.css +0 -0
  148. package/src/modules/tds/instrumentation/instrumentation.html +0 -1
  149. package/src/modules/tds/instrumentation/instrumentation.ts +0 -113
  150. package/src/modules/tds/pbCard/pbCard.css +0 -28
  151. package/src/modules/tds/pbCard/pbCard.html +0 -21
  152. package/src/modules/tds/pbCard/pbCard.ts +0 -18
  153. package/src/modules/tds/pill/__tests__/pill.test.ts +0 -56
  154. package/src/modules/tds/pill/pill.css +0 -70
  155. package/src/modules/tds/pill/pill.html +0 -17
  156. package/src/modules/tds/pill/pill.stories.ts +0 -41
  157. package/src/modules/tds/pill/pill.ts +0 -34
  158. package/src/modules/tds/progressBar/__tests__/progressBar.test.js +0 -11
  159. package/src/modules/tds/progressBar/progressBar.css +0 -42
  160. package/src/modules/tds/progressBar/progressBar.html +0 -14
  161. package/src/modules/tds/progressBar/progressBar.stories.ts +0 -24
  162. package/src/modules/tds/progressBar/progressBar.ts +0 -14
  163. package/src/modules/tds/radio/__tests__/radio.test.ts +0 -29
  164. package/src/modules/tds/radio/radio.css +0 -89
  165. package/src/modules/tds/radio/radio.html +0 -17
  166. package/src/modules/tds/radio/radio.stories.ts +0 -31
  167. package/src/modules/tds/radio/radio.ts +0 -32
  168. package/src/modules/tds/reset/reset.css +0 -39
  169. package/src/modules/tds/search/__fixtures__/index.ts +0 -32
  170. package/src/modules/tds/search/__tests__/search.test.ts +0 -235
  171. package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +0 -115
  172. package/src/modules/tds/search/lib/__tests__/listbox.test.ts +0 -192
  173. package/src/modules/tds/search/lib/listbox.ts +0 -209
  174. package/src/modules/tds/search/search.css +0 -122
  175. package/src/modules/tds/search/search.html +0 -21
  176. package/src/modules/tds/search/search.stories.ts +0 -20
  177. package/src/modules/tds/search/search.ts +0 -107
  178. package/src/modules/tds/search/types.d.ts +0 -22
  179. package/src/modules/tds/searchList/searchList.css +0 -120
  180. package/src/modules/tds/searchList/searchList.html +0 -43
  181. package/src/modules/tds/searchList/searchList.stories.ts +0 -10
  182. package/src/modules/tds/searchList/searchList.ts +0 -53
  183. package/src/modules/tds/select/__tests__/select.test.ts +0 -150
  184. package/src/modules/tds/select/select.css +0 -42
  185. package/src/modules/tds/select/select.html +0 -24
  186. package/src/modules/tds/select/select.stories.ts +0 -59
  187. package/src/modules/tds/select/select.ts +0 -60
  188. package/src/modules/tds/spinner/__tests__/spinner.test.ts +0 -11
  189. package/src/modules/tds/spinner/spinner.css +0 -194
  190. package/src/modules/tds/spinner/spinner.html +0 -9
  191. package/src/modules/tds/spinner/spinner.stories.ts +0 -20
  192. package/src/modules/tds/spinner/spinner.ts +0 -15
  193. package/src/modules/tds/styles/styles.css +0 -24
  194. package/src/modules/tds/summary/__tests__/summary.test.ts +0 -135
  195. package/src/modules/tds/summary/summary.css +0 -135
  196. package/src/modules/tds/summary/summary.html +0 -69
  197. package/src/modules/tds/summary/summary.stories.js +0 -148
  198. package/src/modules/tds/summary/summary.ts +0 -95
  199. package/src/modules/tds/tab/__tests__/tab.test.ts +0 -25
  200. package/src/modules/tds/tab/tab.css +0 -3
  201. package/src/modules/tds/tab/tab.html +0 -5
  202. package/src/modules/tds/tab/tab.ts +0 -46
  203. package/src/modules/tds/tabset/__tests__/tabset.test.ts +0 -108
  204. package/src/modules/tds/tabset/tabset.css +0 -112
  205. package/src/modules/tds/tabset/tabset.html +0 -63
  206. package/src/modules/tds/tabset/tabset.stories.ts +0 -32
  207. package/src/modules/tds/tabset/tabset.ts +0 -232
  208. package/src/modules/tds/themeProvider/themeProvider.css +0 -502
  209. package/src/modules/tds/themeProvider/themeProvider.html +0 -3
  210. package/src/modules/tds/themeProvider/themeProvider.ts +0 -37
  211. package/src/modules/tds/tile/tile.css +0 -23
  212. package/src/modules/tds/tile/tile.html +0 -5
  213. package/src/modules/tds/tile/tile.stories.js +0 -14
  214. package/src/modules/tds/tile/tile.ts +0 -12
  215. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +0 -1
  216. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +0 -47
  217. package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +0 -104
  218. package/src/modules/th/contextAdapter/contextAdapter.html +0 -1
  219. package/src/modules/th/contextAdapter/contextAdapter.ts +0 -49
  220. package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +0 -56
  221. package/src/modules/th/favoriteButton/favoriteButton.css +0 -3
  222. package/src/modules/th/favoriteButton/favoriteButton.html +0 -15
  223. package/src/modules/th/favoriteButton/favoriteButton.stories.js +0 -30
  224. package/src/modules/th/favoriteButton/favoriteButton.ts +0 -84
  225. package/src/modules/th/favoriteButton/mocks/index.ts +0 -12
  226. package/src/modules/th/search/__fixtures__/index.ts +0 -14
  227. package/src/modules/th/search/__tests__/search.test.ts +0 -233
  228. package/src/modules/th/search/constants.ts +0 -2
  229. package/src/modules/th/search/mocks/index.ts +0 -30
  230. package/src/modules/th/search/mocks/responses.ts +0 -54
  231. package/src/modules/th/search/search.css +0 -4
  232. package/src/modules/th/search/search.html +0 -12
  233. package/src/modules/th/search/search.ts +0 -172
  234. package/src/modules/th/search/types.d.ts +0 -29
  235. package/src/modules/tm/card/__tests__/card.test.ts +0 -65
  236. package/src/modules/tm/card/card.css +0 -131
  237. package/src/modules/tm/card/card.html +0 -81
  238. package/src/modules/tm/card/card.ts +0 -269
  239. package/src/modules/tm/cardBase/cardBase.css +0 -11
  240. package/src/modules/tm/cardGridA/cardGridA.css +0 -11
  241. package/src/modules/tm/cardGridA/cardGridA.html +0 -21
  242. package/src/modules/tm/cardGridA/cardGridA.stories.js +0 -107
  243. package/src/modules/tm/cardGridA/cardGridA.ts +0 -24
  244. package/src/modules/tm/cardGridB/cardGridB.css +0 -88
  245. package/src/modules/tm/cardGridB/cardGridB.html +0 -20
  246. package/src/modules/tm/cardGridB/cardGridB.stories.js +0 -58
  247. package/src/modules/tm/cardGridB/cardGridB.ts +0 -19
  248. package/src/modules/tm/cardGridC/cardGridC.css +0 -24
  249. package/src/modules/tm/cardGridC/cardGridC.html +0 -22
  250. package/src/modules/tm/cardGridC/cardGridC.stories.js +0 -42
  251. package/src/modules/tm/cardGridC/cardGridC.ts +0 -11
  252. package/src/modules/tm/cardGridD/cardGridD.css +0 -17
  253. package/src/modules/tm/cardGridD/cardGridD.html +0 -20
  254. package/src/modules/tm/cardGridD/cardGridD.stories.js +0 -34
  255. package/src/modules/tm/cardGridD/cardGridD.ts +0 -7
  256. package/src/modules/tm/cardNew/cardNew.css +0 -31
  257. package/src/modules/tm/cardNew/cardNew.html +0 -29
  258. package/src/modules/tm/cardNew/cardNew.ts +0 -66
  259. package/src/modules/tm/content/__fixtures__/index.ts +0 -884
  260. package/src/modules/tm/content/__tests__/content.test.ts +0 -95
  261. package/src/modules/tm/content/content.css +0 -641
  262. package/src/modules/tm/content/content.html +0 -53
  263. package/src/modules/tm/content/content.stories.js +0 -14
  264. package/src/modules/tm/content/content.ts +0 -171
  265. package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +0 -52
  266. package/src/modules/tm/endCapA/endCapA.css +0 -64
  267. package/src/modules/tm/endCapA/endCapA.html +0 -21
  268. package/src/modules/tm/endCapA/endCapA.stories.js +0 -37
  269. package/src/modules/tm/endCapA/endCapA.ts +0 -23
  270. package/src/modules/tm/eventsA/eventsA.css +0 -107
  271. package/src/modules/tm/eventsA/eventsA.html +0 -26
  272. package/src/modules/tm/eventsA/eventsA.stories.js +0 -51
  273. package/src/modules/tm/eventsA/eventsA.ts +0 -48
  274. package/src/modules/tm/faqA/faqA.css +0 -87
  275. package/src/modules/tm/faqA/faqA.html +0 -27
  276. package/src/modules/tm/faqA/faqA.stories.js +0 -25
  277. package/src/modules/tm/faqA/faqA.ts +0 -40
  278. package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +0 -116
  279. package/src/modules/tm/featureGridA/featureGridA.css +0 -95
  280. package/src/modules/tm/featureGridA/featureGridA.html +0 -34
  281. package/src/modules/tm/featureGridA/featureGridA.stories.js +0 -45
  282. package/src/modules/tm/featureGridA/featureGridA.ts +0 -59
  283. package/src/modules/tm/footnote/footnote.css +0 -28
  284. package/src/modules/tm/footnote/footnote.html +0 -3
  285. package/src/modules/tm/footnote/footnote.stories.js +0 -29
  286. package/src/modules/tm/footnote/footnote.ts +0 -35
  287. package/src/modules/tm/heroA/__tests__/heroA.test.ts +0 -51
  288. package/src/modules/tm/heroA/heroA.css +0 -116
  289. package/src/modules/tm/heroA/heroA.html +0 -27
  290. package/src/modules/tm/heroA/heroA.stories.js +0 -49
  291. package/src/modules/tm/heroA/heroA.ts +0 -56
  292. package/src/modules/tm/heroB/heroB.css +0 -78
  293. package/src/modules/tm/heroB/heroB.html +0 -26
  294. package/src/modules/tm/heroB/heroB.stories.js +0 -44
  295. package/src/modules/tm/heroB/heroB.ts +0 -26
  296. package/src/modules/tm/page/__tests__/page.test.ts +0 -35
  297. package/src/modules/tm/page/page.css +0 -3
  298. package/src/modules/tm/page/page.html +0 -3
  299. package/src/modules/tm/page/page.stories.js +0 -10
  300. package/src/modules/tm/page/page.ts +0 -3
  301. package/src/modules/tm/pageHeaderA/pageHeaderA.css +0 -82
  302. package/src/modules/tm/pageHeaderA/pageHeaderA.html +0 -24
  303. package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +0 -18
  304. package/src/modules/tm/pageHeaderA/pageHeaderA.ts +0 -51
  305. package/src/modules/tm/pageNavigationA/pageNavigationA.css +0 -41
  306. package/src/modules/tm/pageNavigationA/pageNavigationA.html +0 -9
  307. package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +0 -34
  308. package/src/modules/tm/pageNavigationA/pageNavigationA.ts +0 -18
  309. package/src/modules/tm/promoA/__tests__/promoA.test.ts +0 -89
  310. package/src/modules/tm/promoA/promoA.css +0 -95
  311. package/src/modules/tm/promoA/promoA.html +0 -22
  312. package/src/modules/tm/promoA/promoA.stories.js +0 -38
  313. package/src/modules/tm/promoA/promoA.ts +0 -62
  314. package/src/modules/tm/sectionA/sectionA.css +0 -64
  315. package/src/modules/tm/sectionA/sectionA.html +0 -21
  316. package/src/modules/tm/sectionA/sectionA.stories.js +0 -18
  317. package/src/modules/tm/sectionA/sectionA.ts +0 -27
  318. package/src/modules/tm/sectionSpacer/sectionSpacer.css +0 -4
  319. package/src/modules/tm/sectionSpacer/sectionSpacer.html +0 -1
  320. package/src/modules/tm/sectionSpacer/sectionSpacer.ts +0 -3
  321. package/src/modules/tm/skillsCardA/skillsCardA.css +0 -73
  322. package/src/modules/tm/skillsCardA/skillsCardA.html +0 -37
  323. package/src/modules/tm/skillsCardA/skillsCardA.ts +0 -38
  324. package/src/modules/tm/skillsGridA/skillsGridA.css +0 -12
  325. package/src/modules/tm/skillsGridA/skillsGridA.html +0 -5
  326. package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +0 -65
  327. package/src/modules/tm/skillsGridA/skillsGridA.ts +0 -3
  328. package/src/modules/tm/statsA/statsA.css +0 -26
  329. package/src/modules/tm/statsA/statsA.html +0 -10
  330. package/src/modules/tm/statsA/statsA.stories.js +0 -29
  331. package/src/modules/tm/statsA/statsA.ts +0 -20
  332. package/src/modules/tm/textItem/textItem.css +0 -53
  333. package/src/modules/tm/textItem/textItem.html +0 -18
  334. package/src/modules/tm/textItem/textItem.ts +0 -32
  335. package/src/modules/tm/textItemGridA/textItemGridA.css +0 -11
  336. package/src/modules/tm/textItemGridA/textItemGridA.html +0 -15
  337. package/src/modules/tm/textItemGridA/textItemGridA.stories.js +0 -67
  338. package/src/modules/tm/textItemGridA/textItemGridA.ts +0 -20
  339. package/src/modules/tm/threeCardGrid/threeCardGrid.css +0 -6
  340. package/src/modules/tm/threeCardGrid/threeCardGrid.html +0 -5
  341. package/src/modules/tm/threeCardGrid/threeCardGrid.ts +0 -3
  342. package/src/modules/tm/trailblazersA/trailblazersA.css +0 -70
  343. package/src/modules/tm/trailblazersA/trailblazersA.html +0 -42
  344. package/src/modules/tm/trailblazersA/trailblazersA.stories.js +0 -52
  345. package/src/modules/tm/trailblazersA/trailblazersA.ts +0 -43
  346. package/src/modules/tm/utils/utils.ts +0 -18
  347. package/src/modules/tm/youtube/youtube.css +0 -7
  348. package/src/modules/tm/youtube/youtube.html +0 -10
  349. package/src/modules/tm/youtube/youtube.stories.js +0 -15
  350. package/src/modules/tm/youtube/youtube.ts +0 -27
  351. package/src/modules/ui/focusTrap/focusTrap.html +0 -5
  352. package/src/modules/ui/focusTrap/focusTrap.ts +0 -104
  353. package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +0 -95
  354. package/src/modules/ui/focusVisible/focusVisible.html +0 -3
  355. package/src/modules/ui/focusVisible/focusVisible.ts +0 -46
@@ -1,87 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- ul {
4
- --gutter: 40px;
5
- --gap: var(--tds-spacing-8);
6
- background-color: var(--tds-color-white);
7
- border-radius: var(--tds-radius-lg);
8
- box-shadow: var(--tds-shadow-lg);
9
- display: grid;
10
- grid-auto-flow: row;
11
- grid-row-gap: var(--gap);
12
- margin: auto;
13
- max-width: 800px;
14
- padding: var(--tds-spacing-8);
15
- }
16
-
17
- .item {
18
- position: relative;
19
- }
20
-
21
- .item hr {
22
- background-color: var(--tds-color-fog);
23
- border: none;
24
- display: block;
25
- height: 1px;
26
- left: var(--gutter);
27
- position: absolute;
28
- right: 0;
29
- top: calc(100% + var(--gap) / 2);
30
- }
31
-
32
- .item:last-child hr {
33
- display: none;
34
- }
35
-
36
- .item--expanded {
37
- }
38
-
39
- h3 {
40
- align-items: center;
41
- display: flex;
42
- color: var(--tds-color-brand);
43
- font-size: var(--tds-font-size-xl);
44
- }
45
-
46
- button {
47
- appearance: none;
48
- -webkit-appearance: none;
49
- background: none;
50
- border: none;
51
- color: inherit;
52
- cursor: pointer;
53
- font-size: inherit;
54
- height: 100%;
55
- }
56
-
57
- button > div {
58
- align-items: center;
59
- display: flex;
60
- height: 100%;
61
- }
62
-
63
- button .icon-wrapper {
64
- align-items: center;
65
- display: flex;
66
- width: var(--gutter);
67
- }
68
-
69
- button .icon {
70
- transform: rotate(-90deg);
71
- transition: transform 300ms;
72
- }
73
-
74
- .item--expanded button .icon {
75
- transform: rotate(0deg);
76
- }
77
-
78
- .description {
79
- display: none;
80
- line-height: var(--tds-line-height-normal);
81
- margin-left: var(--gutter);
82
- margin-top: var(--tds-spacing-3);
83
- }
84
-
85
- .item--expanded .description {
86
- display: block;
87
- }
@@ -1,27 +0,0 @@
1
- <template>
2
- <ul>
3
- <template for:each={faqs} for:item="item">
4
- <li class={item.className} key={item.id}>
5
- <h3>
6
- <button
7
- aria-controls={item.id}
8
- aria-expanded={item.expanded}
9
- onclick={item.onClick}
10
- >
11
- <div>
12
- <span class="icon-wrapper">
13
- <tds-icon
14
- class="icon"
15
- symbol="switch"
16
- ></tds-icon>
17
- </span>
18
- <span title={item.title}>{item.title}</span>
19
- </div>
20
- </button>
21
- </h3>
22
- <div class="description" id={item.id}>{item.description}</div>
23
- <hr />
24
- </li>
25
- </template>
26
- </ul>
27
- </template>
@@ -1,25 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tm/tm-faq-a',
5
- parameters: {
6
- modules: ['/modules/tm-faq-a.js']
7
- }
8
- };
9
-
10
- export const Base = () => html`
11
- <tm-faq-a>
12
- <tm-faq-item
13
- title="Why become a contact tracer on Trailhead?"
14
- description="Trailhead can not only teach the essential skills needed to become a contact tracer, but is exlusivley in the position to teach you all the skills needed to use the Salesforce platform, used by over 100k companies around the world."
15
- ></tm-faq-item>
16
- <tm-faq-item
17
- title="Why become a contact tracer on Trailhead?"
18
- description="Trailhead can not only teach the essential skills needed to become a contact tracer, but is exlusivley in the position to teach you all the skills needed to use the Salesforce platform, used by over 100k companies around the world."
19
- ></tm-faq-item>
20
- <tm-faq-item
21
- title="Why become a contact tracer on Trailhead?"
22
- description="Trailhead can not only teach the essential skills needed to become a contact tracer, but is exlusivley in the position to teach you all the skills needed to use the Salesforce platform, used by over 100k companies around the world."
23
- ></tm-faq-item>
24
- </tm-faq-a>
25
- `;
@@ -1,40 +0,0 @@
1
- import { track } from 'lwc';
2
-
3
- import { ChildrenElement } from 'shared/children';
4
-
5
- export type Item = {
6
- description: string;
7
- title: string;
8
- };
9
-
10
- export default class extends ChildrenElement<Item> {
11
- childTagName = 'TM-FAQ-ITEM';
12
- extractor = extractItemAttributes;
13
-
14
- @track expanded = new Set<number>();
15
-
16
- private get faqs() {
17
- return this.items.map((item, i) => {
18
- const isExpanded = this.expanded.has(i);
19
- return {
20
- ...item,
21
- className: `item ${isExpanded ? 'item--expanded' : ''}`,
22
- id: `item-${i}`,
23
- expanded: isExpanded,
24
- onClick: () => {
25
- const expanded = new Set(this.expanded);
26
- if (expanded.has(i)) {expanded.delete(i);}
27
- else {expanded.add(i);}
28
- this.expanded = expanded;
29
- }
30
- };
31
- });
32
- }
33
- }
34
-
35
- export function extractItemAttributes(element: Element) {
36
- return {
37
- description: element.getAttribute('description'),
38
- title: element.getAttribute('title')
39
- } as Item;
40
- }
@@ -1,116 +0,0 @@
1
- import { html, renderIntoBody, $ } from 'shared/testutils';
2
-
3
- import FeatureGridA from '../featureGridA';
4
-
5
- import { track } from 'tds/instrumentation';
6
-
7
- jest.mock('tds/instrumentation', () => {
8
- return {
9
- track: jest.fn()
10
- };
11
- });
12
-
13
- customElements.define(
14
- 'tm-feature-grid-a',
15
- FeatureGridA.CustomElementConstructor
16
- );
17
-
18
- describe('tm-feature-grid-a', () => {
19
- beforeEach(() => {
20
- (track as jest.Mock).mockClear();
21
- });
22
-
23
- // Skip these tests as LWC in test mode doesn't support child nodes for light DOM components
24
- // The featureGridA component uses slots for tm-card children, which isn't compatible with lit-html rendering in tests
25
- it.skip('works', async () => {
26
- const element = renderIntoBody(
27
- html`
28
- <tm-feature-grid-a>
29
- <tm-card
30
- title="Hello"
31
- cta-primary-href="/lol"
32
- cta-primary-title="Click"
33
- ></tm-card>
34
- <tm-card title="World"></tm-card>
35
- </tm-feature-grid-a>
36
- `
37
- );
38
- expect($('tds-button-link', element)[0].textContent).toEqual('Click');
39
- expect($('h3', element)[0].textContent).toEqual('Hello');
40
- expect($('h3', element)[1].textContent).toEqual('World');
41
- });
42
-
43
- it.skip('dispatches tracking events', async () => {
44
- const handler = jest.fn();
45
-
46
- const gridElement = renderIntoBody(
47
- html`
48
- <tm-feature-grid-a>
49
- <tm-card
50
- title="Hello"
51
- cta-primary-href="/primary"
52
- cta-primary-title="heyo"
53
- ></tm-card>
54
- <tm-card
55
- title="Cool"
56
- cta-secondary-href="/secondary"
57
- cta-secondary-title="yoo"
58
- ></tm-card>
59
- </tm-feature-grid-a>
60
- `
61
- );
62
-
63
- gridElement.addEventListener('trailhead_track', handler);
64
-
65
- gridElement
66
- .shadowRoot!.querySelector('tds-button-link')!
67
- .dispatchEvent(
68
- new MouseEvent('click', { bubbles: true, composed: true })
69
- );
70
-
71
- gridElement
72
- .shadowRoot!.querySelector('a')!
73
- .dispatchEvent(
74
- new MouseEvent('click', { bubbles: true, composed: true })
75
- );
76
-
77
- expect(handler).toHaveBeenCalledTimes(2);
78
- expect(handler.mock.calls[0][0].detail).toEqual({
79
- eventName: 'cta_clicked',
80
- payload: {
81
- label: 'heyo',
82
- pageLocation: 'TM-FEATURE-GRID-A',
83
- ctaType: 'primary'
84
- }
85
- });
86
- expect(handler.mock.calls[1][0].detail).toEqual({
87
- eventName: 'cta_clicked',
88
- payload: {
89
- label: 'yoo',
90
- pageLocation: 'TM-FEATURE-GRID-A',
91
- ctaType: 'secondary'
92
- }
93
- });
94
-
95
- expect(track).toBeCalledTimes(2);
96
- const trackCalls = (track as jest.Mock).mock.calls;
97
- expect(trackCalls[0]).toEqual([
98
- gridElement,
99
- 'select_content',
100
- { contentType: 'banner', itemTitle: 'heyo' }
101
- ]);
102
- expect(trackCalls[1]).toEqual([
103
- gridElement,
104
- 'select_content',
105
- { contentType: 'banner', itemTitle: 'yoo' }
106
- ]);
107
- });
108
-
109
- it('renders the component', () => {
110
- const element = renderIntoBody(
111
- html`<tm-feature-grid-a></tm-feature-grid-a>`
112
- );
113
- expect(element).toBeTruthy();
114
- expect(element.shadowRoot).toBeTruthy();
115
- });
116
- });
@@ -1,95 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- section {
4
- display: flex;
5
- margin-bottom: var(--tds-spacing-12);
6
- }
7
-
8
- section:nth-child(odd) {
9
- flex-direction: row-reverse;
10
- }
11
-
12
- section:nth-child(even) .content {
13
- margin-right: var(--tds-spacing-12);
14
- }
15
-
16
- section:nth-child(odd) .content {
17
- margin-left: var(--tds-spacing-12);
18
- }
19
-
20
- .content {
21
- display: flex;
22
- flex-direction: column;
23
- flex: 1;
24
- justify-content: center;
25
- }
26
-
27
- .title {
28
- margin-top: 0;
29
- margin-bottom: 0;
30
- font-size: var(--tds-font-size-2xl);
31
- }
32
-
33
- .description {
34
- line-height: 1.5;
35
- margin: var(--tds-spacing-4) 0;
36
- }
37
-
38
- .ctas {
39
- align-self: flex-start;
40
- align-items: center;
41
- display: flex;
42
- flex-wrap: wrap;
43
- text-align: center;
44
- }
45
-
46
- .ctas > * {
47
- margin-right: var(--tds-spacing-4);
48
- margin-bottom: var(--tds-spacing-4);
49
- }
50
-
51
- .cta--secondary {
52
- color: var(--tds-color-brand);
53
- font-weight: bold;
54
- text-decoration: none;
55
- white-space: nowrap;
56
- }
57
-
58
- .image {
59
- max-height: 500px;
60
- max-width: 50%;
61
- object-fit: contain;
62
- }
63
-
64
- @media screen and (max-width: 800px) {
65
- .image {
66
- max-width: 40%;
67
- }
68
- }
69
-
70
- @media screen and (max-width: 600px) {
71
- section {
72
- flex-direction: column-reverse !important;
73
- }
74
-
75
- .content {
76
- margin: auto !important;
77
- width: auto;
78
- }
79
-
80
- .ctas {
81
- align-self: center;
82
- flex-direction: column;
83
- }
84
-
85
- .image {
86
- max-height: 300px;
87
- max-width: 100%;
88
- margin-bottom: var(--tds-spacing-6);
89
- width: auto;
90
- }
91
-
92
- section:last-child {
93
- margin-bottom: var(--tds-spacing-0);
94
- }
95
- }
@@ -1,34 +0,0 @@
1
- <template>
2
- <template for:each={items} for:item="item">
3
- <section key={item.title}>
4
- <div class="content">
5
- <h3 class="title">{item.title}</h3>
6
- <p class="description">{item.description}</p>
7
- <div class="ctas">
8
- <tds-button-link
9
- if:true={item.ctaPrimaryTitle}
10
- href={item.ctaPrimaryHref}
11
- target={item.ctaPrimaryTarget}
12
- onclick={item.handlePrimaryCtaClick}
13
- >{item.ctaPrimaryTitle}</tds-button-link
14
- >
15
- <a
16
- class="cta--secondary"
17
- if:true={item.ctaSecondaryTitle}
18
- href={item.ctaSecondaryHref}
19
- target={item.ctaSecondaryTarget}
20
- onclick={item.handleSecondaryCtaClick}
21
- >{item.ctaSecondaryTitle}</a
22
- >
23
- </div>
24
- </div>
25
- <img
26
- class="image"
27
- src={item.imgSrc}
28
- alt={item.description}
29
- loading="lazy"
30
- decoding="async"
31
- />
32
- </section>
33
- </template>
34
- </template>
@@ -1,45 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tm/tm-feature-grid-a',
5
- parameters: {
6
- chromatic: {
7
- viewports: [400, 500, 800, 1199]
8
- },
9
- modules: ['/modules/tm-feature-grid-a.js']
10
- }
11
- };
12
-
13
- export const Base = () => html`
14
- <div style="max-width: 960px">
15
- <tm-feature-grid-a>
16
- <tm-card
17
- cta-primary-href="/trust"
18
- cta-primary-title="Check Out Trust"
19
- description="Salesforce is committed to achieving and maintaining the trust of our customers. Integral to this mission is providing a robust compliance program that carefully considers data protection matters across our suite of services, including data submitted by customers to our services ('Customer Data')"
20
- img-src="/images/card-a.png"
21
- title="Trust & Compliance"
22
- ></tm-card>
23
- <tm-card
24
- cta-primary-href="/appexchange"
25
- cta-primary-title="Go To AppExchange"
26
- cta-primary-target="_blank"
27
- cta-secondary-href="/trailhead"
28
- cta-secondary-title="Start a Trail on Trailhead"
29
- cta-secondary-target="_blank"
30
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum scelerisque erat enim, eget tempor dolor gravida quis. Donec varius justo ultricies felis rhoncus convallis. "
31
- img-src="/images/card-a.png"
32
- title="App Exchange"
33
- ></tm-card>
34
- <tm-card
35
- cta-primary-href="/"
36
- cta-primary-title="Primary"
37
- cta-secondary-href="/"
38
- cta-secondary-title="Secondary"
39
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum scelerisque erat enim, eget tempor dolor gravida quis. Donec varius justo ultricies felis rhoncus convallis. "
40
- img-src="/images/card-a.png"
41
- title="Feature C"
42
- ></tm-card>
43
- </tm-feature-grid-a>
44
- </div>
45
- `;
@@ -1,59 +0,0 @@
1
- import { ChildrenElement } from 'shared/children';
2
- import { track } from 'shared/track';
3
- import { track as analyticsTrack } from 'tds/instrumentation';
4
-
5
- export type Feature = {
6
- ctaPrimaryHref: string;
7
- ctaPrimaryTitle: string;
8
- ctaPrimaryTarget: string;
9
- ctaSecondaryHref: string;
10
- ctaSecondaryTarget: string;
11
- ctaSecondaryTitle: string;
12
- description: string;
13
- imgSrc: string;
14
- title: string;
15
- };
16
-
17
- export default class extends ChildrenElement<Feature> {
18
- extractor = (element: Element) => {
19
- const ctaPrimaryTitle = element.getAttribute('cta-primary-title')!;
20
- const ctaSecondaryTitle = element.getAttribute('cta-secondary-title')!;
21
- const bannerTitle = element.getAttribute('title')!;
22
- return {
23
- ctaPrimaryHref: element.getAttribute('cta-primary-href')!,
24
- ctaPrimaryTarget: element.getAttribute('cta-primary-target') || '',
25
- ctaPrimaryTitle,
26
- ctaSecondaryHref: element.getAttribute('cta-secondary-href')!,
27
- ctaSecondaryTarget:
28
- element.getAttribute('cta-secondary-target') || '',
29
- ctaSecondaryTitle,
30
- description: element.getAttribute('description')!,
31
- imgSrc: element.getAttribute('img-src')!,
32
- title: bannerTitle,
33
- handlePrimaryCtaClick: this.handleCtaClick.bind(
34
- this,
35
- 'primary',
36
- ctaPrimaryTitle,
37
- bannerTitle
38
- ),
39
- handleSecondaryCtaClick: this.handleCtaClick.bind(
40
- this,
41
- 'secondary',
42
- ctaSecondaryTitle,
43
- bannerTitle
44
- )
45
- };
46
- };
47
-
48
- handleCtaClick(ctaType: string, label: string, bannerTitle: string) {
49
- track(this.template.host, 'cta_clicked', {
50
- ctaType,
51
- label
52
- });
53
- analyticsTrack(this.template.host, 'select_content', {
54
- contentType: 'banner',
55
- itemTitle:
56
- !bannerTitle || bannerTitle === '' ? undefined : bannerTitle
57
- });
58
- }
59
- }
@@ -1,28 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- section {
4
- color: var(--tds-color-meteorite);
5
- align-items: center;
6
- display: flex;
7
- flex-direction: column;
8
- padding: var(--tds-spacing-20) var(--tds-spacing-6);
9
- text-align: center;
10
- margin: auto;
11
- max-width: calc(640px + var(--tds-spacing-6) * 2);
12
- line-height: var(--tds-line-height-normal);
13
- }
14
-
15
- section h3 {
16
- font-size: var(--tds-font-size-md);
17
- font-weight: bold;
18
- margin: 1em 0;
19
- }
20
-
21
- section p {
22
- font-size: var(--tds-font-size-sm);
23
- margin: 1em 0;
24
- }
25
-
26
- section a {
27
- color: var(--tds-color-meteorite);
28
- }
@@ -1,3 +0,0 @@
1
- <template>
2
- <section lwc:dom="manual"></section>
3
- </template>
@@ -1,29 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tm/tm-footnote',
5
- parameters: {
6
- modules: ['/modules/tm-footnote.js']
7
- }
8
- };
9
-
10
- export const Base = () => html`
11
- <tm-footnote>
12
- <h3>Be an Innovator Daily Sweepstakes Rules</h3>
13
- <p>
14
- NO PURCHASE NECESSARY. VOID WHERE PROHIBITED. Be an Innovator Daily
15
- Sweepstakes runs 4/19/19 12:00am PST to 5/6/19 11:59pm PST.
16
- Sweepstakes open to legal residents of the U.S. (incl. D.C.), Canada
17
- (excl. Quebec), France, Germany, India, Ireland, Japan, Netherlands,
18
- New Zealand, Spain, and United Kingdom. Must be 18+ (20+ in Japan).
19
- Restrictions apply.
20
- </p>
21
- <p>
22
- See official rules: <a href="#">English</a>,
23
- <a href="#">Français</a>, Deutsch, <a href="#">Español</a>,
24
- <a href="#">日本語</a>, <a href="#">हिन्दीद</a>,
25
- <a href="#">Lietuvių</a>, <a href="#">Magyar</a>,
26
- <a href="#">Українська</a>
27
- </p>
28
- </tm-footnote>
29
- `;
@@ -1,35 +0,0 @@
1
- import { LightningElement } from 'lwc';
2
-
3
- export default class extends LightningElement {
4
- private observer!: MutationObserver;
5
- private didSetContent = false;
6
-
7
- connectedCallback() {
8
- this.observer = new MutationObserver(() => {
9
- this.setContent();
10
- });
11
- this.observer.observe(this.template.host, {
12
- childList: true,
13
- subtree: true
14
- });
15
- this.setContent();
16
- }
17
-
18
- disconnectedCallback() {
19
- this.observer.disconnect();
20
- }
21
-
22
- renderedCallback() {
23
- if (!this.didSetContent) {
24
- this.didSetContent = true;
25
- this.setContent();
26
- }
27
- }
28
-
29
- private setContent() {
30
- const section = this.template.querySelector('section');
31
- if (section) {
32
- section.innerHTML = this.template.host.innerHTML;
33
- }
34
- }
35
- }
@@ -1,51 +0,0 @@
1
- import { html, renderIntoBody, $ } from 'shared/testutils';
2
-
3
- import HeroA from '../heroA';
4
-
5
- customElements.define('tm-hero-a', HeroA.CustomElementConstructor);
6
-
7
- describe('tm-hero-a', () => {
8
- it('works', async () => {
9
- const element = renderIntoBody(
10
- html`
11
- <tm-hero-a
12
- cta-label="Click"
13
- cta-href="/lol"
14
- title="hello"
15
- ></tm-hero-a>
16
- `
17
- );
18
- expect($('tds-button-link', element)[0].textContent).toEqual('Click');
19
- expect($('h1', element)[0].textContent).toEqual('hello');
20
- });
21
-
22
- it('dispatched a trailhead track event', async () => {
23
- const handler = jest.fn();
24
-
25
- const element = renderIntoBody(
26
- html`
27
- <tm-hero-a
28
- cta-label="Click"
29
- cta-href="/lol"
30
- variant="brand"
31
- ></tm-hero-a>
32
- `
33
- );
34
- document.addEventListener('trailhead_track', handler);
35
- $('tds-button-link', element)[0].dispatchEvent(
36
- new MouseEvent('click', { bubbles: true, composed: true })
37
- );
38
-
39
- const expectedPayload = {
40
- eventName: 'cta_clicked',
41
- payload: {
42
- label: 'Click',
43
- pageLocation: 'TM-HERO-A',
44
- ctaType: 'primary'
45
- }
46
- };
47
-
48
- expect(handler).toHaveBeenCalled();
49
- expect(handler.mock.calls[0][0].detail).toEqual(expectedPayload);
50
- });
51
- });