@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,142 +0,0 @@
1
- import { html, renderIntoBody } from 'shared/testutils';
2
-
3
- import FooterLinks from '../footerLinks';
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('tds-footer-links', FooterLinks.CustomElementConstructor);
14
-
15
- const content = {
16
- columns: [
17
- {
18
- heading: 'Learn',
19
- links: [
20
- {
21
- href: '/',
22
- label: 'Trails'
23
- },
24
- {
25
- href: '/',
26
- label: 'Trailmixes'
27
- }
28
- ]
29
- },
30
- {
31
- heading: 'Extras',
32
- links: [
33
- {
34
- href: '/',
35
- label: 'myTrailhead'
36
- },
37
- {
38
- href: '/',
39
- target: '_blank',
40
- label: 'Help'
41
- }
42
- ]
43
- }
44
- ]
45
- };
46
-
47
- describe('tds-footer-links', () => {
48
- beforeEach(() => {
49
- (track as jest.Mock).mockClear();
50
- });
51
-
52
- it('renders columns', () => {
53
- const element = renderIntoBody(
54
- html`
55
- <tds-footer-links
56
- .columns=${content.columns}
57
- ></tds-footer-links>
58
- `
59
- );
60
- expect(element.shadowRoot!.innerHTML).toMatchHTMLSnapshot();
61
- });
62
-
63
- // Skip this test as LWC in test mode doesn't support child nodes for light DOM components
64
- it.skip('renders columns and slots', () => {
65
- const element = renderIntoBody(
66
- html`
67
- <tds-footer-links .columns=${content.columns}>
68
- <div slot="left">left</div>
69
- <div slot="right">right</div>
70
- </tds-footer-links>
71
- `
72
- );
73
- const getSlot = (name: string) =>
74
- element.shadowRoot!.querySelector(
75
- `slot[name="${name}"]`
76
- )! as HTMLSlotElement;
77
- expect(getSlot('left').assignedElements()[0].textContent).toEqual(
78
- 'left'
79
- );
80
- expect(getSlot('right').assignedElements()[0].textContent).toEqual(
81
- 'right'
82
- );
83
- });
84
-
85
- describe('tracking', () => {
86
- it('link_clicked', () => {
87
- const element = renderIntoBody(
88
- html`
89
- <tds-footer-links
90
- .columns=${content.columns}
91
- ></tds-footer-links>
92
- `
93
- );
94
-
95
- const handler = jest.fn();
96
- document.addEventListener('trailhead_track', handler, {
97
- once: true
98
- });
99
-
100
- element
101
- .shadowRoot!.querySelector('.links__column a')!
102
- .dispatchEvent(new MouseEvent('click'));
103
-
104
- expect(handler.mock.calls[0][0].detail).toEqual(
105
- expect.objectContaining({
106
- eventName: 'link_clicked',
107
- payload: expect.objectContaining({
108
- label: 'Trails'
109
- })
110
- })
111
- );
112
-
113
- expect(track).toBeCalledTimes(1);
114
- expect(track).toBeCalledWith(element, 'custEv_bottomNavLinkClick', {
115
- headingText: 'Learn',
116
- linkText: 'Trails',
117
- subHeadingText: 'Trails'
118
- });
119
- });
120
- });
121
-
122
- describe('eventing', () => {
123
- it('link_click', () => {
124
- const element = renderIntoBody(
125
- html`
126
- <tds-footer-links
127
- .columns=${content.columns}
128
- ></tds-footer-links>
129
- `
130
- );
131
- const handler = jest.fn();
132
- element.addEventListener('link_click', handler);
133
- // Columns
134
- element
135
- .shadowRoot!.querySelector('.links__column a')!
136
- .dispatchEvent(new MouseEvent('click'));
137
- expect(handler.mock.calls[0][0].detail).toEqual(
138
- content.columns[0].links[0]
139
- );
140
- });
141
- });
142
- });
@@ -1,80 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- a {
4
- text-decoration: none;
5
- }
6
-
7
- a:hover {
8
- text-decoration: underline;
9
- }
10
-
11
- .footer {
12
- padding: var(--tds-spacing-8) var(--tds-spacing-4) var(--tds-spacing-4);
13
- border-top: 1px solid var(--tds-color-fog);
14
- }
15
-
16
- .container {
17
- margin: 0 auto;
18
- max-width: var(--tds-container-xl);
19
- }
20
- .links {
21
- display: flex;
22
- }
23
-
24
- .links__column {
25
- flex-shrink: 0;
26
- font-size: var(--tds-font-size-sm);
27
- padding: var(--tds-spacing-4) var(--tds-spacing-2) 0;
28
- width: 17%;
29
- }
30
-
31
- .heading {
32
- color: var(--tds-color-meteorite);
33
- font-weight: bold;
34
- margin-bottom: var(--tds-spacing-4);
35
- font-size: var(--tds-font-size-md);
36
- }
37
-
38
- .links__column li {
39
- margin: var(--tds-spacing-3) 0;
40
- }
41
-
42
- .links__column a {
43
- color: var(--tds-color-meteorite);
44
- }
45
-
46
- .bottom {
47
- display: none;
48
- justify-content: space-between;
49
- align-items: center;
50
- margin: 0 auto;
51
- margin-top: var(--tds-spacing-10);
52
- max-width: 1400px;
53
- }
54
-
55
- .footer[data-slots*='left'] .bottom,
56
- .footer[data-slots*='right'] .bottom {
57
- display: flex;
58
- }
59
-
60
- @media screen and (max-width: 48rem) {
61
- .bottom {
62
- flex-wrap: wrap;
63
- }
64
-
65
- .links {
66
- flex-wrap: wrap;
67
- }
68
- .links__column {
69
- width: 50%;
70
- }
71
- }
72
-
73
- @media screen and (max-width: 24rem) {
74
- .links {
75
- flex-wrap: wrap;
76
- }
77
- .links__column {
78
- width: 100%;
79
- }
80
- }
@@ -1,30 +0,0 @@
1
- <template>
2
- <div class="footer" data-slots={slots}>
3
- <div class="container">
4
- <nav class="links">
5
- <template for:each={_columns} for:item="column">
6
- <div class="links__column" key={column.heading}>
7
- <div class="heading">{column.heading}</div>
8
- <ul if:true={column.links}>
9
- <template for:each={column.links} for:item="link">
10
- <li key={link.label}>
11
- <a
12
- href={link.href}
13
- target={link.target}
14
- rel={link.rel}
15
- onclick={link.handleClick}
16
- >{link.label}</a
17
- >
18
- </li>
19
- </template>
20
- </ul>
21
- </div>
22
- </template>
23
- </nav>
24
- <div class="bottom">
25
- <slot name="left" onslotchange={handleSlotChange}></slot>
26
- <slot name="right" onslotchange={handleSlotChange}></slot>
27
- </div>
28
- </div>
29
- </div>
30
- </template>
@@ -1,48 +0,0 @@
1
- import { api, LightningElement } from 'lwc';
2
-
3
- import { assignedSlotNames } from 'common/slot';
4
- import { track } from 'shared/track';
5
- import { track as analyticsTrack } from 'tds/instrumentation';
6
-
7
- import { FooterLink, FooterColumn } from './types';
8
- import { sendInteractionEvent, InteractionEventTypes } from 'shared/helpers';
9
-
10
- export default class extends LightningElement {
11
- @api columns: FooterColumn[] = null!;
12
-
13
- private slots: string = '';
14
-
15
- private get _columns() {
16
- return this.columns.map((col) => {
17
- return Object.assign({}, col, {
18
- links: col.links.map((link) => {
19
- return Object.assign({}, link, {
20
- handleClick: this.handleLinkClick.bind(this, link)
21
- });
22
- })
23
- });
24
- });
25
- }
26
-
27
- private handleLinkClick(link: FooterLink, e: MouseEvent) {
28
- sendInteractionEvent('Footer Click', InteractionEventTypes.CLICK, e, e.currentTarget);
29
-
30
- this.dispatchEvent(new CustomEvent('link_click', { detail: link }));
31
- track(this.template.host, 'link_clicked', { label: link.label });
32
-
33
- const target = e.currentTarget as HTMLAnchorElement;
34
- const column = target.closest('.links__column');
35
- const heading = column && column.querySelector('.heading');
36
- const headingText = (heading && heading.textContent) || '';
37
-
38
- analyticsTrack(this.template.host, 'custEv_bottomNavLinkClick', {
39
- headingText: headingText,
40
- subHeadingText: target.textContent,
41
- linkText: link.label
42
- });
43
- }
44
-
45
- private handleSlotChange() {
46
- this.slots = assignedSlotNames(this.template).join(' ');
47
- }
48
- }
@@ -1,11 +0,0 @@
1
- export type FooterLink = {
2
- href: string;
3
- target?: string;
4
- label: string;
5
- key?: string;
6
- };
7
-
8
- export type FooterColumn = {
9
- heading: string;
10
- links: FooterLink[];
11
- };
@@ -1,3 +0,0 @@
1
- <template>
2
- <div lwc:dom="manual"></div>
3
- </template>
@@ -1,19 +0,0 @@
1
- import { LightningElement } from 'lwc';
2
-
3
- export default class FooterMfe extends LightningElement {
4
- private didRender = false;
5
-
6
- renderedCallback() {
7
- if (this.didRender) {
8
- return;
9
- }
10
- this.didRender = true;
11
-
12
- // Since the footer is a third-party component, we need to create it dynamically (LWC won't recognize it as a valid component).
13
- const footerElement = document.createElement('hgf-footer');
14
- footerElement.setAttribute('origin', window.location.origin); // will call the route handler for `/c360/experience/v1/navigation`
15
- footerElement.setAttribute('hide-language-selector', 'true');
16
- footerElement.setAttribute('home-href', `/${window.location.host}`); // ugly hack: ideally this wouldn't be necessary, but the only way to remove the "See all ways to contact us" link from the footer is to set this to a non-empty value other than "us"; and given the way that the footer works, the non-empty value needs to be something that can be appended to `/` and work correctly
17
- this.template.querySelector('div')!.appendChild(footerElement);
18
- }
19
- }
@@ -1,43 +0,0 @@
1
- import { html, renderIntoBody } from 'shared/testutils';
2
-
3
- import HeaderAvatar from '../headerAvatar';
4
-
5
- customElements.define(
6
- 'tds-header-avatar',
7
- HeaderAvatar.CustomElementConstructor
8
- );
9
-
10
- describe('tds-header-avatar', () => {
11
- it('sets the img src', () => {
12
- const element = renderIntoBody(
13
- html` <tds-header-avatar img-src="image.png"></tds-header-avatar> `
14
- );
15
- expect(element.shadowRoot!.querySelector('img')).toHaveAttribute(
16
- 'src',
17
- 'image.png'
18
- );
19
- });
20
- it('sets the progress percent', () => {
21
- const element = renderIntoBody(
22
- html` <tds-header-avatar .percent=${50}></tds-header-avatar> `
23
- );
24
- expect(
25
- element.shadowRoot!.querySelector('[role=progressbar]')
26
- ).toHaveAttribute('aria-valuenow', '50');
27
- });
28
- it('sets the progress path', () => {
29
- const element = renderIntoBody(
30
- html` <tds-header-avatar .percent=${100}></tds-header-avatar> `
31
- );
32
- expect(element.shadowRoot!.querySelector('path')).toHaveAttribute(
33
- 'd',
34
- 'M 1 0 A 1 1 0 1 0 1 0 L 0 0'
35
- );
36
- });
37
- it('hides the progress if no percent is passed', () => {
38
- const element = renderIntoBody(
39
- html` <tds-header-avatar></tds-header-avatar> `
40
- );
41
- expect(element.shadowRoot!.querySelector('svg')).toBeNull();
42
- });
43
- });
@@ -1,45 +0,0 @@
1
- :host {
2
- display: block;
3
- }
4
-
5
- .progress-ring {
6
- position: relative;
7
- display: block;
8
- height: 38px;
9
- width: 38px;
10
- border-radius: 50%;
11
- background: #dddbda;
12
- }
13
-
14
- .progress-ring__progress {
15
- transform: scaleX(-1) rotate(-90deg);
16
- top: 0;
17
- right: 0;
18
- left: 0;
19
- bottom: 0;
20
- position: absolute;
21
- }
22
-
23
- .progress-ring__path {
24
- fill: rgb(44, 127, 92); /* TODO: token */
25
- }
26
-
27
- .progress-ring__content {
28
- --size: 3px;
29
- background-color: white;
30
- bottom: calc(var(--size) * 2);
31
- border-radius: 50%;
32
- box-shadow: 0px 0px 0px var(--size) white;
33
- left: calc(var(--size) * 2);
34
- position: absolute;
35
- right: calc(var(--size) * 2);
36
- top: calc(var(--size) * 2);
37
- z-index: 1;
38
- }
39
-
40
- .progress-ring__content img {
41
- border-radius: 100px;
42
- height: 100%;
43
- object-fit: cover;
44
- width: 100%;
45
- }
@@ -1,25 +0,0 @@
1
- <template>
2
- <div if:true={percent} class="progress-ring">
3
- <div
4
- class="progress-ring__progress"
5
- role="progressbar"
6
- aria-valuemin="0"
7
- aria-valuemax="100"
8
- aria-valuenow={percent}
9
- >
10
- <svg viewBox="-1 -1 2 2">
11
- <path class="progress-ring__path" d={d}></path>
12
- </svg>
13
- </div>
14
- <div class="progress-ring__content">
15
- <img alt="" src={imgSrc} loading="lazy" decoding="async" />
16
- </div>
17
- </div>
18
- <img
19
- alt=""
20
- class="progress-ring"
21
- if:false={percent}
22
- src={imgSrc}
23
- loading="lazy"
24
- />
25
- </template>
@@ -1,15 +0,0 @@
1
- import { api, LightningElement } from 'lwc';
2
-
3
- export default class extends LightningElement {
4
- @api imgSrc: string = '';
5
- @api percent: number | null = null;
6
-
7
- private get d() {
8
- if (!this.percent) {return '';}
9
- const isLong = this.percent > 50 ? 1 : 0;
10
- const fill = 1 - this.percent / 100;
11
- const arcX = Math.cos(2 * Math.PI * fill);
12
- const arcY = Math.sin(2 * Math.PI * fill);
13
- return `M 1 0 A 1 1 0 ${isLong} 0 ${arcX} ${arcY} L 0 0`;
14
- }
15
- }
@@ -1,32 +0,0 @@
1
- import { html, renderIntoBody } from 'shared/testutils';
2
-
3
- import HeaderHelpButton from '../headerHelpButton';
4
-
5
- customElements.define(
6
- 'tds-header-help-button',
7
- HeaderHelpButton.CustomElementConstructor
8
- );
9
-
10
- describe('tds-header-help-button', () => {
11
- describe('tracking', () => {
12
- it('header_help_clicked', () => {
13
- const element = renderIntoBody(
14
- html`
15
- <tds-header-help-button href="/"></tds-header-help-button>
16
- `
17
- );
18
- const handler = jest.fn();
19
- document.addEventListener('trailhead_track', handler, {
20
- once: true
21
- });
22
- element
23
- .shadowRoot!.querySelector('.help')!
24
- .dispatchEvent(new MouseEvent('click'));
25
- expect(handler.mock.calls[0][0].detail).toEqual(
26
- expect.objectContaining({
27
- eventName: 'help_clicked'
28
- })
29
- );
30
- });
31
- });
32
- });
@@ -1,14 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- .help-icon {
4
- background-color: var(--tds-color-meteorite);
5
- border-radius: 100px;
6
- color: var(--tds-color-white);
7
- padding: var(--tds-spacing-1);
8
- }
9
-
10
- .help,
11
- .help:visited,
12
- .help:active {
13
- color: var(--tds-color-white);
14
- }
@@ -1,19 +0,0 @@
1
- <template>
2
- <tds-button-icon-link
3
- aria-label={assistiveText}
4
- class="help"
5
- href={href}
6
- onclick={onClick}
7
- variant="bare"
8
- rel="noopener"
9
- target="_blank"
10
- >
11
- <span class="help-icon">
12
- <tds-icon
13
- size="small"
14
- sprite="action"
15
- symbol="question_post_action"
16
- ></tds-icon>
17
- </span>
18
- </tds-button-icon-link>
19
- </template>
@@ -1,12 +0,0 @@
1
- import { api, LightningElement } from 'lwc';
2
-
3
- import { track } from 'shared/track';
4
-
5
- export default class extends LightningElement {
6
- @api assistiveText: string = '';
7
- @api href: string = '';
8
-
9
- private onClick() {
10
- track(this.template.host, 'help_clicked', {});
11
- }
12
- }
@@ -1,50 +0,0 @@
1
- import { html, renderIntoBody } from 'shared/testutils';
2
-
3
- import Heading from '../heading';
4
-
5
- customElements.define('tds-heading', Heading.CustomElementConstructor);
6
-
7
- describe('tds-heading', () => {
8
- it('level 1', () => {
9
- const element = renderIntoBody(
10
- html` <tds-heading level="1"></tds-heading> `
11
- );
12
- expect(element.shadowRoot!.querySelector('h1')).toBeTruthy();
13
- });
14
- it('level 2', () => {
15
- const element = renderIntoBody(
16
- html` <tds-heading level="2"></tds-heading> `
17
- );
18
- expect(element.shadowRoot!.querySelector('h2')).toBeTruthy();
19
- });
20
- it('level 3', () => {
21
- const element = renderIntoBody(
22
- html` <tds-heading level="3"></tds-heading> `
23
- );
24
- expect(element.shadowRoot!.querySelector('h3')).toBeTruthy();
25
- });
26
- it('level 4', () => {
27
- const element = renderIntoBody(
28
- html` <tds-heading level="4"></tds-heading> `
29
- );
30
- expect(element.shadowRoot!.querySelector('h4')).toBeTruthy();
31
- });
32
- it('level 5', () => {
33
- const element = renderIntoBody(
34
- html` <tds-heading level="5"></tds-heading> `
35
- );
36
- expect(element.shadowRoot!.querySelector('h5')).toBeTruthy();
37
- });
38
- it('level 6', () => {
39
- const element = renderIntoBody(
40
- html` <tds-heading level="6"></tds-heading> `
41
- );
42
- expect(element.shadowRoot!.querySelector('h6')).toBeTruthy();
43
- });
44
- it('null', () => {
45
- const element = renderIntoBody(html` <tds-heading></tds-heading> `);
46
- expect(
47
- Array.from(element.shadowRoot!.children).map((n) => n.tagName)
48
- ).toEqual(['SLOT']);
49
- });
50
- });
@@ -1 +0,0 @@
1
- @import 'tds/reset';
@@ -1,9 +0,0 @@
1
- <template>
2
- <h1 class="heading" if:true={isLevel1}><slot></slot></h1>
3
- <h2 class="heading" if:true={isLevel2}><slot></slot></h2>
4
- <h3 class="heading" if:true={isLevel3}><slot></slot></h3>
5
- <h4 class="heading" if:true={isLevel4}><slot></slot></h4>
6
- <h5 class="heading" if:true={isLevel5}><slot></slot></h5>
7
- <h6 class="heading" if:true={isLevel6}><slot></slot></h6>
8
- <template if:false={isHeading}><slot></slot></template>
9
- </template>
@@ -1,36 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tds/tds-heading',
5
- parameters: {
6
- modules: ['/modules/tds-heading.js']
7
- }
8
- };
9
-
10
- export const Level1 = () => html`
11
- <tds-heading level="1"> Level 1 </tds-heading>
12
- `;
13
-
14
- export const Level2 = () => html`
15
- <tds-heading level="2"> Level 2 </tds-heading>
16
- `;
17
-
18
- export const Level3 = () => html`
19
- <tds-heading level="3"> Level 3 </tds-heading>
20
- `;
21
-
22
- export const Level4 = () => html`
23
- <tds-heading level="4"> Level 4 </tds-heading>
24
- `;
25
-
26
- export const Level5 = () => html`
27
- <tds-heading level="5"> Level 5 </tds-heading>
28
- `;
29
-
30
- export const Level6 = () => html`
31
- <tds-heading level="6"> Level 6 </tds-heading>
32
- `;
33
-
34
- export const NoHeading = () => html`
35
- <tds-heading> Not a heading </tds-heading>
36
- `;