@salesforcedevs/arch-components 1.20.17-alpha1

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 (363) hide show
  1. package/lwc.config.json +7 -0
  2. package/package.json +19 -0
  3. package/src/modules/common/context/context.html +1 -0
  4. package/src/modules/common/context/context.ts +137 -0
  5. package/src/modules/common/effectAdapter/__tests__/effectAdapter.test.ts +12 -0
  6. package/src/modules/common/effectAdapter/effectAdapter.html +1 -0
  7. package/src/modules/common/effectAdapter/effectAdapter.ts +18 -0
  8. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.html +3 -0
  9. package/src/modules/common/reflectedElement/__tests__/modules/test/select/select.ts +7 -0
  10. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +3 -0
  11. package/src/modules/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +18 -0
  12. package/src/modules/common/reflectedElement/__tests__/reflectedElement.test.ts +75 -0
  13. package/src/modules/common/reflectedElement/reflectedElement.ts +50 -0
  14. package/src/modules/common/slot/__tests__/slot.test.ts +96 -0
  15. package/src/modules/common/slot/slot.ts +20 -0
  16. package/src/modules/sa/coverage/coverage.css +35 -0
  17. package/src/modules/sa/coverage/coverage.html +15 -0
  18. package/src/modules/sa/coverage/coverage.ts +406 -0
  19. package/src/modules/sa/coverage/types.d.ts +26 -0
  20. package/src/modules/sa/expandableSection/expandableSection.css +24 -0
  21. package/src/modules/sa/expandableSection/expandableSection.html +20 -0
  22. package/src/modules/sa/expandableSection/expandableSection.stories.ts +37 -0
  23. package/src/modules/sa/expandableSection/expandableSection.ts +24 -0
  24. package/src/modules/sa/explorer/explorer.css +303 -0
  25. package/src/modules/sa/explorer/explorer.html +403 -0
  26. package/src/modules/sa/explorer/explorer.ts +664 -0
  27. package/src/modules/sa/explorer/types.d.ts +60 -0
  28. package/src/modules/sa/gallery/gallery.css +358 -0
  29. package/src/modules/sa/gallery/gallery.html +65 -0
  30. package/src/modules/sa/gallery/gallery.ts +300 -0
  31. package/src/modules/sa/gallery/types.d.ts +35 -0
  32. package/src/modules/sa/socialShare/socialShare.css +49 -0
  33. package/src/modules/sa/socialShare/socialShare.html +56 -0
  34. package/src/modules/sa/socialShare/socialShare.ts +29 -0
  35. package/src/modules/shared/a11y/a11y.ts +25 -0
  36. package/src/modules/shared/children/children.ts +29 -0
  37. package/src/modules/shared/color/color.ts +52 -0
  38. package/src/modules/shared/debounce/debounce.ts +32 -0
  39. package/src/modules/shared/dialog/dialog.ts +154 -0
  40. package/src/modules/shared/elements/__tests__/overflow.test.ts +39 -0
  41. package/src/modules/shared/elements/overflow.ts +71 -0
  42. package/src/modules/shared/fetch/fetch.ts +52 -0
  43. package/src/modules/shared/helpers/helpers.ts +141 -0
  44. package/src/modules/shared/i18n/i18n.ts +74 -0
  45. package/src/modules/shared/labels/__tests__/helpers.test.ts +107 -0
  46. package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +33 -0
  47. package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +89 -0
  48. package/src/modules/shared/labels/helpers.ts +23 -0
  49. package/src/modules/shared/labels/pointHelpers.ts +47 -0
  50. package/src/modules/shared/labels/timeHelpers.ts +182 -0
  51. package/src/modules/shared/labels/types.d.ts +5 -0
  52. package/src/modules/shared/logger/logger.ts +33 -0
  53. package/src/modules/shared/menu/menu.ts +239 -0
  54. package/src/modules/shared/overflow/__tests__/overflow.test.ts +39 -0
  55. package/src/modules/shared/overflow/overflow.ts +71 -0
  56. package/src/modules/shared/polling-request.ts +97 -0
  57. package/src/modules/shared/testutils.ts +118 -0
  58. package/src/modules/shared/track/track.ts +23 -0
  59. package/src/modules/shared/trailhead.ts +123 -0
  60. package/src/modules/shared/types.d.ts +1 -0
  61. package/src/modules/shared/useEffectAttr.ts +16 -0
  62. package/src/modules/shared/withState.ts +21 -0
  63. package/src/modules/tds/appLauncher/__fixtures__/index.ts +34 -0
  64. package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +119 -0
  65. package/src/modules/tds/appLauncher/appLauncher.css +65 -0
  66. package/src/modules/tds/appLauncher/appLauncher.html +38 -0
  67. package/src/modules/tds/appLauncher/appLauncher.stories.ts +39 -0
  68. package/src/modules/tds/appLauncher/appLauncher.ts +79 -0
  69. package/src/modules/tds/appLauncher/types.ts +8 -0
  70. package/src/modules/tds/avatar/__tests__/avatar.test.ts +11 -0
  71. package/src/modules/tds/avatar/avatar.css +77 -0
  72. package/src/modules/tds/avatar/avatar.html +36 -0
  73. package/src/modules/tds/avatar/avatar.stories.ts +64 -0
  74. package/src/modules/tds/avatar/avatar.ts +50 -0
  75. package/src/modules/tds/badge/__tests__/badge.test.js +11 -0
  76. package/src/modules/tds/badge/badge.css +22 -0
  77. package/src/modules/tds/badge/badge.html +5 -0
  78. package/src/modules/tds/badge/badge.stories.ts +10 -0
  79. package/src/modules/tds/badge/badge.ts +9 -0
  80. package/src/modules/tds/button/__tests__/button.test.ts +52 -0
  81. package/src/modules/tds/button/button.css +1 -0
  82. package/src/modules/tds/button/button.html +20 -0
  83. package/src/modules/tds/button/button.stories.js +54 -0
  84. package/src/modules/tds/button/button.ts +59 -0
  85. package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +17 -0
  86. package/src/modules/tds/buttonIcon/buttonIcon.css +1 -0
  87. package/src/modules/tds/buttonIcon/buttonIcon.html +12 -0
  88. package/src/modules/tds/buttonIcon/buttonIcon.stories.js +38 -0
  89. package/src/modules/tds/buttonIcon/buttonIcon.ts +6 -0
  90. package/src/modules/tds/buttonIconLink/buttonIconLink.css +1 -0
  91. package/src/modules/tds/buttonIconLink/buttonIconLink.html +14 -0
  92. package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +32 -0
  93. package/src/modules/tds/buttonIconLink/buttonIconLink.ts +9 -0
  94. package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +17 -0
  95. package/src/modules/tds/buttonLink/buttonLink.css +1 -0
  96. package/src/modules/tds/buttonLink/buttonLink.html +19 -0
  97. package/src/modules/tds/buttonLink/buttonLink.stories.js +24 -0
  98. package/src/modules/tds/buttonLink/buttonLink.ts +8 -0
  99. package/src/modules/tds/buttonStyles/buttonStyles.css +232 -0
  100. package/src/modules/tds/childSummary/__tests__/childSummary.test.js +99 -0
  101. package/src/modules/tds/childSummary/childSummary.css +74 -0
  102. package/src/modules/tds/childSummary/childSummary.html +38 -0
  103. package/src/modules/tds/childSummary/childSummary.stories.ts +40 -0
  104. package/src/modules/tds/childSummary/childSummary.ts +63 -0
  105. package/src/modules/tds/childSummary/types.d.ts +10 -0
  106. package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +32 -0
  107. package/src/modules/tds/contentChildListItem/contentChildListItem.css +1 -0
  108. package/src/modules/tds/contentChildListItem/contentChildListItem.html +10 -0
  109. package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +46 -0
  110. package/src/modules/tds/contentChildListItem/contentChildListItem.ts +34 -0
  111. package/src/modules/tds/contentIcon/contentIcon.css +47 -0
  112. package/src/modules/tds/contentIcon/contentIcon.html +15 -0
  113. package/src/modules/tds/contentIcon/contentIcon.stories.js +110 -0
  114. package/src/modules/tds/contentIcon/contentIcon.ts +66 -0
  115. package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +76 -0
  116. package/src/modules/tds/contextAdapter/constants.ts +1 -0
  117. package/src/modules/tds/contextAdapter/contextAdapter.html +1 -0
  118. package/src/modules/tds/contextAdapter/contextAdapter.ts +54 -0
  119. package/src/modules/tds/dialogStyles/dialogStyles.css +90 -0
  120. package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +3 -0
  121. package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +142 -0
  122. package/src/modules/tds/footerLinks/footerLinks.css +80 -0
  123. package/src/modules/tds/footerLinks/footerLinks.html +30 -0
  124. package/src/modules/tds/footerLinks/footerLinks.ts +48 -0
  125. package/src/modules/tds/footerLinks/types.ts +11 -0
  126. package/src/modules/tds/footerMfe/footerMfe.html +3 -0
  127. package/src/modules/tds/footerMfe/footerMfe.ts +19 -0
  128. package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +43 -0
  129. package/src/modules/tds/headerAvatar/headerAvatar.css +45 -0
  130. package/src/modules/tds/headerAvatar/headerAvatar.html +25 -0
  131. package/src/modules/tds/headerAvatar/headerAvatar.ts +15 -0
  132. package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +32 -0
  133. package/src/modules/tds/headerHelpButton/headerHelpButton.css +14 -0
  134. package/src/modules/tds/headerHelpButton/headerHelpButton.html +19 -0
  135. package/src/modules/tds/headerHelpButton/headerHelpButton.ts +12 -0
  136. package/src/modules/tds/heading/__tests__/heading.test.ts +50 -0
  137. package/src/modules/tds/heading/heading.css +1 -0
  138. package/src/modules/tds/heading/heading.html +9 -0
  139. package/src/modules/tds/heading/heading.stories.ts +36 -0
  140. package/src/modules/tds/heading/heading.ts +36 -0
  141. package/src/modules/tds/icon/icon.css +28 -0
  142. package/src/modules/tds/icon/icon.html +17 -0
  143. package/src/modules/tds/icon/icon.stories.js +18 -0
  144. package/src/modules/tds/icon/icon.ts +79 -0
  145. package/src/modules/tds/input/__tests__/input.test.ts +41 -0
  146. package/src/modules/tds/input/input.css +34 -0
  147. package/src/modules/tds/input/input.html +12 -0
  148. package/src/modules/tds/input/input.stories.ts +25 -0
  149. package/src/modules/tds/input/input.ts +41 -0
  150. package/src/modules/tds/instrumentation/instrumentation.css +0 -0
  151. package/src/modules/tds/instrumentation/instrumentation.html +1 -0
  152. package/src/modules/tds/instrumentation/instrumentation.ts +113 -0
  153. package/src/modules/tds/pbCard/pbCard.css +28 -0
  154. package/src/modules/tds/pbCard/pbCard.html +21 -0
  155. package/src/modules/tds/pbCard/pbCard.ts +18 -0
  156. package/src/modules/tds/pill/__tests__/pill.test.ts +56 -0
  157. package/src/modules/tds/pill/pill.css +70 -0
  158. package/src/modules/tds/pill/pill.html +17 -0
  159. package/src/modules/tds/pill/pill.stories.ts +41 -0
  160. package/src/modules/tds/pill/pill.ts +34 -0
  161. package/src/modules/tds/progressBar/__tests__/progressBar.test.js +11 -0
  162. package/src/modules/tds/progressBar/progressBar.css +42 -0
  163. package/src/modules/tds/progressBar/progressBar.html +14 -0
  164. package/src/modules/tds/progressBar/progressBar.stories.ts +24 -0
  165. package/src/modules/tds/progressBar/progressBar.ts +14 -0
  166. package/src/modules/tds/radio/__tests__/radio.test.ts +29 -0
  167. package/src/modules/tds/radio/radio.css +89 -0
  168. package/src/modules/tds/radio/radio.html +17 -0
  169. package/src/modules/tds/radio/radio.stories.ts +31 -0
  170. package/src/modules/tds/radio/radio.ts +32 -0
  171. package/src/modules/tds/reset/reset.css +39 -0
  172. package/src/modules/tds/search/__fixtures__/index.ts +32 -0
  173. package/src/modules/tds/search/__tests__/search.test.ts +235 -0
  174. package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +115 -0
  175. package/src/modules/tds/search/lib/__tests__/listbox.test.ts +192 -0
  176. package/src/modules/tds/search/lib/listbox.ts +209 -0
  177. package/src/modules/tds/search/search.css +122 -0
  178. package/src/modules/tds/search/search.html +21 -0
  179. package/src/modules/tds/search/search.stories.ts +20 -0
  180. package/src/modules/tds/search/search.ts +107 -0
  181. package/src/modules/tds/search/types.d.ts +22 -0
  182. package/src/modules/tds/searchList/searchList.css +120 -0
  183. package/src/modules/tds/searchList/searchList.html +43 -0
  184. package/src/modules/tds/searchList/searchList.stories.ts +10 -0
  185. package/src/modules/tds/searchList/searchList.ts +53 -0
  186. package/src/modules/tds/select/__tests__/select.test.ts +150 -0
  187. package/src/modules/tds/select/select.css +42 -0
  188. package/src/modules/tds/select/select.html +24 -0
  189. package/src/modules/tds/select/select.stories.ts +59 -0
  190. package/src/modules/tds/select/select.ts +60 -0
  191. package/src/modules/tds/spinner/__tests__/spinner.test.ts +11 -0
  192. package/src/modules/tds/spinner/spinner.css +194 -0
  193. package/src/modules/tds/spinner/spinner.html +9 -0
  194. package/src/modules/tds/spinner/spinner.stories.ts +20 -0
  195. package/src/modules/tds/spinner/spinner.ts +15 -0
  196. package/src/modules/tds/styles/styles.css +24 -0
  197. package/src/modules/tds/summary/__tests__/summary.test.ts +135 -0
  198. package/src/modules/tds/summary/summary.css +135 -0
  199. package/src/modules/tds/summary/summary.html +69 -0
  200. package/src/modules/tds/summary/summary.stories.js +148 -0
  201. package/src/modules/tds/summary/summary.ts +95 -0
  202. package/src/modules/tds/tab/__tests__/tab.test.ts +25 -0
  203. package/src/modules/tds/tab/tab.css +3 -0
  204. package/src/modules/tds/tab/tab.html +5 -0
  205. package/src/modules/tds/tab/tab.ts +46 -0
  206. package/src/modules/tds/tabset/__tests__/tabset.test.ts +108 -0
  207. package/src/modules/tds/tabset/tabset.css +112 -0
  208. package/src/modules/tds/tabset/tabset.html +63 -0
  209. package/src/modules/tds/tabset/tabset.stories.ts +32 -0
  210. package/src/modules/tds/tabset/tabset.ts +232 -0
  211. package/src/modules/tds/themeProvider/themeProvider.css +502 -0
  212. package/src/modules/tds/themeProvider/themeProvider.html +3 -0
  213. package/src/modules/tds/themeProvider/themeProvider.ts +37 -0
  214. package/src/modules/tds/tile/tile.css +23 -0
  215. package/src/modules/tds/tile/tile.html +5 -0
  216. package/src/modules/tds/tile/tile.stories.js +14 -0
  217. package/src/modules/tds/tile/tile.ts +12 -0
  218. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +1 -0
  219. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +47 -0
  220. package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +104 -0
  221. package/src/modules/th/contextAdapter/contextAdapter.html +1 -0
  222. package/src/modules/th/contextAdapter/contextAdapter.ts +49 -0
  223. package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +56 -0
  224. package/src/modules/th/favoriteButton/favoriteButton.css +3 -0
  225. package/src/modules/th/favoriteButton/favoriteButton.html +15 -0
  226. package/src/modules/th/favoriteButton/favoriteButton.stories.js +30 -0
  227. package/src/modules/th/favoriteButton/favoriteButton.ts +84 -0
  228. package/src/modules/th/favoriteButton/mocks/index.ts +12 -0
  229. package/src/modules/th/search/__fixtures__/index.ts +14 -0
  230. package/src/modules/th/search/__tests__/search.test.ts +233 -0
  231. package/src/modules/th/search/constants.ts +2 -0
  232. package/src/modules/th/search/mocks/index.ts +30 -0
  233. package/src/modules/th/search/mocks/responses.ts +54 -0
  234. package/src/modules/th/search/search.css +4 -0
  235. package/src/modules/th/search/search.html +12 -0
  236. package/src/modules/th/search/search.ts +172 -0
  237. package/src/modules/th/search/types.d.ts +29 -0
  238. package/src/modules/th/tbid/__tests__/__snapshots__/tbid.test.ts.snap +3 -0
  239. package/src/modules/th/tbid/__tests__/tbid.test.ts +242 -0
  240. package/src/modules/th/tbid/tbid.html +1 -0
  241. package/src/modules/th/tbid/tbid.stories.mdx +25 -0
  242. package/src/modules/th/tbid/tbid.ts +215 -0
  243. package/src/modules/tm/card/__tests__/card.test.ts +65 -0
  244. package/src/modules/tm/card/card.css +131 -0
  245. package/src/modules/tm/card/card.html +81 -0
  246. package/src/modules/tm/card/card.ts +269 -0
  247. package/src/modules/tm/cardBase/cardBase.css +11 -0
  248. package/src/modules/tm/cardGridA/cardGridA.css +11 -0
  249. package/src/modules/tm/cardGridA/cardGridA.html +21 -0
  250. package/src/modules/tm/cardGridA/cardGridA.stories.js +107 -0
  251. package/src/modules/tm/cardGridA/cardGridA.ts +24 -0
  252. package/src/modules/tm/cardGridB/cardGridB.css +88 -0
  253. package/src/modules/tm/cardGridB/cardGridB.html +20 -0
  254. package/src/modules/tm/cardGridB/cardGridB.stories.js +58 -0
  255. package/src/modules/tm/cardGridB/cardGridB.ts +19 -0
  256. package/src/modules/tm/cardGridC/cardGridC.css +24 -0
  257. package/src/modules/tm/cardGridC/cardGridC.html +22 -0
  258. package/src/modules/tm/cardGridC/cardGridC.stories.js +42 -0
  259. package/src/modules/tm/cardGridC/cardGridC.ts +11 -0
  260. package/src/modules/tm/cardGridD/cardGridD.css +17 -0
  261. package/src/modules/tm/cardGridD/cardGridD.html +20 -0
  262. package/src/modules/tm/cardGridD/cardGridD.stories.js +34 -0
  263. package/src/modules/tm/cardGridD/cardGridD.ts +7 -0
  264. package/src/modules/tm/cardNew/cardNew.css +31 -0
  265. package/src/modules/tm/cardNew/cardNew.html +29 -0
  266. package/src/modules/tm/cardNew/cardNew.ts +66 -0
  267. package/src/modules/tm/content/__fixtures__/index.ts +884 -0
  268. package/src/modules/tm/content/__tests__/content.test.ts +95 -0
  269. package/src/modules/tm/content/content.css +641 -0
  270. package/src/modules/tm/content/content.html +53 -0
  271. package/src/modules/tm/content/content.stories.js +14 -0
  272. package/src/modules/tm/content/content.ts +171 -0
  273. package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +52 -0
  274. package/src/modules/tm/endCapA/endCapA.css +64 -0
  275. package/src/modules/tm/endCapA/endCapA.html +21 -0
  276. package/src/modules/tm/endCapA/endCapA.stories.js +37 -0
  277. package/src/modules/tm/endCapA/endCapA.ts +23 -0
  278. package/src/modules/tm/eventsA/eventsA.css +107 -0
  279. package/src/modules/tm/eventsA/eventsA.html +26 -0
  280. package/src/modules/tm/eventsA/eventsA.stories.js +51 -0
  281. package/src/modules/tm/eventsA/eventsA.ts +48 -0
  282. package/src/modules/tm/faqA/faqA.css +87 -0
  283. package/src/modules/tm/faqA/faqA.html +27 -0
  284. package/src/modules/tm/faqA/faqA.stories.js +25 -0
  285. package/src/modules/tm/faqA/faqA.ts +40 -0
  286. package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +116 -0
  287. package/src/modules/tm/featureGridA/featureGridA.css +95 -0
  288. package/src/modules/tm/featureGridA/featureGridA.html +34 -0
  289. package/src/modules/tm/featureGridA/featureGridA.stories.js +45 -0
  290. package/src/modules/tm/featureGridA/featureGridA.ts +59 -0
  291. package/src/modules/tm/footnote/footnote.css +28 -0
  292. package/src/modules/tm/footnote/footnote.html +3 -0
  293. package/src/modules/tm/footnote/footnote.stories.js +29 -0
  294. package/src/modules/tm/footnote/footnote.ts +35 -0
  295. package/src/modules/tm/heroA/__tests__/heroA.test.ts +51 -0
  296. package/src/modules/tm/heroA/heroA.css +116 -0
  297. package/src/modules/tm/heroA/heroA.html +27 -0
  298. package/src/modules/tm/heroA/heroA.stories.js +49 -0
  299. package/src/modules/tm/heroA/heroA.ts +56 -0
  300. package/src/modules/tm/heroB/heroB.css +78 -0
  301. package/src/modules/tm/heroB/heroB.html +26 -0
  302. package/src/modules/tm/heroB/heroB.stories.js +44 -0
  303. package/src/modules/tm/heroB/heroB.ts +26 -0
  304. package/src/modules/tm/page/__tests__/page.test.ts +35 -0
  305. package/src/modules/tm/page/page.css +3 -0
  306. package/src/modules/tm/page/page.html +3 -0
  307. package/src/modules/tm/page/page.stories.js +10 -0
  308. package/src/modules/tm/page/page.ts +3 -0
  309. package/src/modules/tm/pageHeaderA/pageHeaderA.css +82 -0
  310. package/src/modules/tm/pageHeaderA/pageHeaderA.html +24 -0
  311. package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +18 -0
  312. package/src/modules/tm/pageHeaderA/pageHeaderA.ts +51 -0
  313. package/src/modules/tm/pageNavigationA/pageNavigationA.css +41 -0
  314. package/src/modules/tm/pageNavigationA/pageNavigationA.html +9 -0
  315. package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +34 -0
  316. package/src/modules/tm/pageNavigationA/pageNavigationA.ts +18 -0
  317. package/src/modules/tm/promoA/__tests__/promoA.test.ts +89 -0
  318. package/src/modules/tm/promoA/promoA.css +95 -0
  319. package/src/modules/tm/promoA/promoA.html +22 -0
  320. package/src/modules/tm/promoA/promoA.stories.js +38 -0
  321. package/src/modules/tm/promoA/promoA.ts +62 -0
  322. package/src/modules/tm/sectionA/sectionA.css +64 -0
  323. package/src/modules/tm/sectionA/sectionA.html +21 -0
  324. package/src/modules/tm/sectionA/sectionA.stories.js +18 -0
  325. package/src/modules/tm/sectionA/sectionA.ts +27 -0
  326. package/src/modules/tm/sectionSpacer/sectionSpacer.css +4 -0
  327. package/src/modules/tm/sectionSpacer/sectionSpacer.html +1 -0
  328. package/src/modules/tm/sectionSpacer/sectionSpacer.ts +3 -0
  329. package/src/modules/tm/skillsCardA/skillsCardA.css +73 -0
  330. package/src/modules/tm/skillsCardA/skillsCardA.html +37 -0
  331. package/src/modules/tm/skillsCardA/skillsCardA.ts +38 -0
  332. package/src/modules/tm/skillsGridA/skillsGridA.css +12 -0
  333. package/src/modules/tm/skillsGridA/skillsGridA.html +5 -0
  334. package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +65 -0
  335. package/src/modules/tm/skillsGridA/skillsGridA.ts +3 -0
  336. package/src/modules/tm/statsA/statsA.css +26 -0
  337. package/src/modules/tm/statsA/statsA.html +10 -0
  338. package/src/modules/tm/statsA/statsA.stories.js +29 -0
  339. package/src/modules/tm/statsA/statsA.ts +20 -0
  340. package/src/modules/tm/textItem/textItem.css +53 -0
  341. package/src/modules/tm/textItem/textItem.html +18 -0
  342. package/src/modules/tm/textItem/textItem.ts +32 -0
  343. package/src/modules/tm/textItemGridA/textItemGridA.css +11 -0
  344. package/src/modules/tm/textItemGridA/textItemGridA.html +15 -0
  345. package/src/modules/tm/textItemGridA/textItemGridA.stories.js +67 -0
  346. package/src/modules/tm/textItemGridA/textItemGridA.ts +20 -0
  347. package/src/modules/tm/threeCardGrid/threeCardGrid.css +6 -0
  348. package/src/modules/tm/threeCardGrid/threeCardGrid.html +5 -0
  349. package/src/modules/tm/threeCardGrid/threeCardGrid.ts +3 -0
  350. package/src/modules/tm/trailblazersA/trailblazersA.css +70 -0
  351. package/src/modules/tm/trailblazersA/trailblazersA.html +42 -0
  352. package/src/modules/tm/trailblazersA/trailblazersA.stories.js +52 -0
  353. package/src/modules/tm/trailblazersA/trailblazersA.ts +43 -0
  354. package/src/modules/tm/utils/utils.ts +18 -0
  355. package/src/modules/tm/youtube/youtube.css +7 -0
  356. package/src/modules/tm/youtube/youtube.html +10 -0
  357. package/src/modules/tm/youtube/youtube.stories.js +15 -0
  358. package/src/modules/tm/youtube/youtube.ts +27 -0
  359. package/src/modules/ui/focusTrap/focusTrap.html +5 -0
  360. package/src/modules/ui/focusTrap/focusTrap.ts +104 -0
  361. package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +95 -0
  362. package/src/modules/ui/focusVisible/focusVisible.html +3 -0
  363. package/src/modules/ui/focusVisible/focusVisible.ts +46 -0
@@ -0,0 +1,41 @@
1
+ @import 'tds/reset';
2
+
3
+ nav {
4
+ align-items: center;
5
+ background-color: var(--tds-color-white);
6
+ display: grid;
7
+ grid-auto-flow: column;
8
+ grid-column-gap: var(--tds-spacing-1);
9
+ justify-content: center;
10
+ padding: var(--tds-spacing-2);
11
+ border-bottom: 1px solid #00000010; /* fix token */
12
+ }
13
+
14
+ nav a {
15
+ border-radius: var(--tds-radius-lg);
16
+ padding: var(--tds-spacing-2) var(--tds-spacing-5);
17
+ color: var(--tds-color-black);
18
+ text-decoration: none;
19
+ font-weight: bold;
20
+ }
21
+
22
+ nav a:hover {
23
+ border-radius: var(--tds-radius-lg);
24
+ padding: var(--tds-spacing-2) var(--tds-spacing-5);
25
+ background-color: hsl(
26
+ var(--tds-color-brand-h),
27
+ var(--tds-color-brand-s),
28
+ calc(var(--tds-color-brand-l) + 55%)
29
+ );
30
+ }
31
+
32
+ nav a[aria-current='page'] {
33
+ color: var(--tds-color-brand);
34
+ border-radius: var(--tds-radius-lg);
35
+ padding: var(--tds-spacing-2) var(--tds-spacing-5);
36
+ background-color: hsl(
37
+ var(--tds-color-brand-h),
38
+ var(--tds-color-brand-s),
39
+ calc(var(--tds-color-brand-l) + 50%)
40
+ );
41
+ }
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <nav>
3
+ <template for:each={items} for:item="item">
4
+ <a aria-current={item.ariaCurrent} href={item.href} key={item.title}
5
+ >{item.title}</a
6
+ >
7
+ </template>
8
+ </nav>
9
+ </template>
@@ -0,0 +1,34 @@
1
+ import { html } from 'lit-html';
2
+
3
+ export default {
4
+ title: 'tm/tm-page-navigation-a',
5
+ parameters: {
6
+ modules: ['/modules/tm-page-navigation-a.js']
7
+ }
8
+ };
9
+
10
+ export const Base = () => html`
11
+ <tm-page-navigation-a>
12
+ <tm-page-navigation-item
13
+ href="/"
14
+ title="Salesforce Architect"
15
+ ></tm-page-navigation-item>
16
+ <tm-page-navigation-item
17
+ active
18
+ href="/"
19
+ title="Design"
20
+ ></tm-page-navigation-item>
21
+ <tm-page-navigation-item
22
+ href="/"
23
+ title="Deliver"
24
+ ></tm-page-navigation-item>
25
+ <tm-page-navigation-item
26
+ href="/"
27
+ title="Govern"
28
+ ></tm-page-navigation-a-item>
29
+ <tm-page-navigation-item
30
+ href="/"
31
+ title="Roadmap"
32
+ ></tm-page-navigation-item>
33
+ </tm-page-navigation-a>
34
+ `;
@@ -0,0 +1,18 @@
1
+ import { ChildrenElement } from 'shared/children';
2
+
3
+ type Item = {
4
+ ariaCurrent: string | null;
5
+ href: string;
6
+ title: string;
7
+ };
8
+
9
+ export default class extends ChildrenElement<Item> {
10
+ childTagName = 'TM-PAGE-NAVIGATION-ITEM';
11
+ extractor = (element: Element) => {
12
+ return {
13
+ ariaCurrent: element.hasAttribute('active') ? 'page' : null,
14
+ href: element.getAttribute('href'),
15
+ title: element.getAttribute('title')
16
+ } as Item;
17
+ };
18
+ }
@@ -0,0 +1,89 @@
1
+ import { html, renderIntoBody } from 'shared/testutils';
2
+
3
+ import PromoA from '../promoA';
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('tm-prom-a', PromoA.CustomElementConstructor);
14
+
15
+ describe('tm-prom-a', () => {
16
+ let open: jest.Mock;
17
+ Object.defineProperty(window, 'open', { get: () => open });
18
+ beforeEach(() => {
19
+ open = jest.fn();
20
+ });
21
+ it('handles click on the image', async () => {
22
+ let element = renderIntoBody(
23
+ html`
24
+ <tm-prom-a
25
+ cta-href="/promo"
26
+ cta-target="_blank"
27
+ cta-title="Promo"
28
+ ></tm-prom-a>
29
+ `
30
+ );
31
+ element.shadowRoot!.querySelector('div')!.click();
32
+ expect(open).toHaveBeenCalledWith('/promo', '_blank');
33
+ });
34
+ it('stops propogation on the tds-button-link', async () => {
35
+ let element = renderIntoBody(
36
+ html`
37
+ <tm-prom-a
38
+ cta-href="/promo"
39
+ cta-target="_blank"
40
+ cta-title="Promo"
41
+ ></tm-prom-a>
42
+ `
43
+ );
44
+ element
45
+ .shadowRoot!.querySelector('tds-button-link')!
46
+ .shadowRoot!.querySelector('a')!
47
+ .click();
48
+ expect(open).not.toHaveBeenCalled();
49
+ });
50
+ it('tracks survey links', async () => {
51
+ let element = renderIntoBody(
52
+ html`
53
+ <tm-prom-a
54
+ cta-target="_blank"
55
+ cta-href="https://sfdc.co/arch-site-survey"
56
+ cta-title="Promo"
57
+ ></tm-prom-a>
58
+ `
59
+ );
60
+ const anchor = element
61
+ .shadowRoot!.querySelector('tds-button-link')!
62
+ .shadowRoot!.querySelector('a')!;
63
+
64
+ element.shadowRoot!.querySelector('div')!.click();
65
+ anchor.click();
66
+
67
+ expect(track).toBeCalledTimes(2);
68
+ const trackCalls = (track as jest.Mock).mock.calls;
69
+ expect(trackCalls[0]).toEqual([
70
+ element,
71
+ 'site_survey',
72
+ {
73
+ linkText: 'Promo',
74
+ linkUrl: 'https://sfdc.co/arch-site-survey',
75
+ itemLocation: 'banner'
76
+ }
77
+ ]);
78
+
79
+ expect(trackCalls[1]).toEqual([
80
+ element,
81
+ 'site_survey',
82
+ {
83
+ linkText: 'Promo',
84
+ linkUrl: 'https://sfdc.co/arch-site-survey',
85
+ itemLocation: 'banner'
86
+ }
87
+ ]);
88
+ });
89
+ });
@@ -0,0 +1,95 @@
1
+ @import 'tds/reset';
2
+
3
+ :host {
4
+ margin: auto;
5
+ max-width: 1200px;
6
+ }
7
+
8
+ .promo {
9
+ align-items: flex-start;
10
+ border-radius: var(--tds-radius-lg);
11
+ box-shadow: var(--tds-shadow-md);
12
+ cursor: pointer;
13
+ display: flex;
14
+ justify-content: space-between;
15
+ margin: 0 0 0 2rem;
16
+ position: relative;
17
+ min-height: 380px;
18
+ }
19
+
20
+ .shadow {
21
+ background: linear-gradient(
22
+ 90deg,
23
+ var(--shadow-color-start),
24
+ var(--shadow-color-end)
25
+ );
26
+ border-radius: var(--tds-radius-lg);
27
+ display: block;
28
+ height: 100%;
29
+ position: absolute;
30
+ transform: translate3d(10px, 10px, 0);
31
+ transition: transform 250ms ease-in-out;
32
+ width: 100%;
33
+ }
34
+
35
+ .promo:hover .shadow {
36
+ transform: translate3d(16px, 16px, 0);
37
+ }
38
+
39
+ .promo:hover .content {
40
+ box-shadow: var(--tds-shadow-lg);
41
+ }
42
+
43
+ .image {
44
+ background-size: cover;
45
+ background-repeat: no-repeat;
46
+ background-position: center center;
47
+ border-radius: var(--tds-radius-lg);
48
+ height: 100%;
49
+ position: absolute;
50
+ width: 100%;
51
+ }
52
+
53
+ .content {
54
+ background-color: var(--tds-color-white);
55
+ border-radius: var(--tds-radius-lg);
56
+ box-sizing: border-box;
57
+ box-shadow: var(--tds-shadow-md);
58
+ height: 100%;
59
+ padding: var(--tds-spacing-8);
60
+ margin: var(--tds-spacing-6) 30% var(--tds-spacing-6)
61
+ calc(var(--tds-spacing-8) * -1);
62
+ max-width: 400px;
63
+ z-index: 2;
64
+ transition: transform 250ms ease-in-out;
65
+ }
66
+
67
+ .spacer {
68
+ height: 0;
69
+ padding-top: 40%;
70
+ }
71
+
72
+ @media screen and (max-width: 500px) {
73
+ .content {
74
+ margin: 80% var(--tds-spacing-4) var(--tds-spacing-4);
75
+ }
76
+
77
+ .promo {
78
+ margin: 0;
79
+ }
80
+ }
81
+
82
+ .title {
83
+ font-family: Neutraface;
84
+ font-size: var(--tds-font-size-2xl);
85
+ line-height: 1.125;
86
+ }
87
+
88
+ .description {
89
+ margin: var(--tds-spacing-2) 0;
90
+ font-size: var(--tds-font-size-lg);
91
+ }
92
+
93
+ .cta {
94
+ padding-top: var(--tds-spacing-2);
95
+ }
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <div class={promoClassName} onclick={onClick}>
3
+ <div class="shadow" if:true={showShadow} style={shadowStyle}></div>
4
+ <div class="image" style={imageStyle}></div>
5
+ <div class="content">
6
+ <h3 class="title">{title}</h3>
7
+ <p if:true={description} class="description">{description}</p>
8
+ <tds-button-link
9
+ class="cta"
10
+ href={ctaHref}
11
+ if:true={ctaTitle}
12
+ onclick={onLinkClick}
13
+ target={ctaTarget}
14
+ variant="brand"
15
+ rel="noopener"
16
+ >
17
+ {ctaTitle}
18
+ </tds-button-link>
19
+ </div>
20
+ <div class="spacer" style={spacerStyle}></div>
21
+ </div>
22
+ </template>
@@ -0,0 +1,38 @@
1
+ import { html } from 'lit-html';
2
+ import { styleMap } from 'lit-html/directives/style-map';
3
+
4
+ export default {
5
+ title: 'tm/tm-promo-a',
6
+ parameters: {
7
+ chromatic: {
8
+ viewports: [400, 800, 1199]
9
+ },
10
+ modules: ['/modules/tm-promo-a.js']
11
+ }
12
+ };
13
+
14
+ export const Base = () => html`
15
+ <div style=${styleMap({ padding: '2rem' })}>
16
+ <tm-promo-a
17
+ title="Get Signed Up for Architect Dreamforce Sessions"
18
+ description="Sessions are filling up fast! This is basically an ad."
19
+ img-src="/images/promo.png"
20
+ cta-href="/"
21
+ cta-title="Sign Up"
22
+ ></tm-promo-a>
23
+ </div>
24
+ `;
25
+
26
+ export const Shadow = () => html`
27
+ <div style=${styleMap({ padding: '2rem' })}>
28
+ <tm-promo-a
29
+ title="Get Signed Up for Architect Dreamforce Sessions"
30
+ description="Sessions are filling up fast! This is basically an ad."
31
+ img-src="/images/promo.png"
32
+ cta-href="/"
33
+ cta-title="Sign Up"
34
+ shadow-color-start="red"
35
+ shadow-color-end="purple"
36
+ ></tm-promo-a>
37
+ </div>
38
+ `;
@@ -0,0 +1,62 @@
1
+ import { api, LightningElement } from 'lwc';
2
+ import { track } from 'tds/instrumentation';
3
+
4
+ export default class extends LightningElement {
5
+ @api ctaHref: string | null = null;
6
+ @api ctaTarget: string | null = null;
7
+ @api ctaTitle: string | null = null;
8
+ @api imgAspect: string | null = null;
9
+ @api imgSrc: string | null = null;
10
+ @api description: string | null = null;
11
+ @api shadowColorStart: string | null = null;
12
+ @api shadowColorEnd: string | null = null;
13
+ @api title: string = '';
14
+
15
+ private get imageStyle() {
16
+ return [`background-image: url(${this.imgSrc})`].join(';');
17
+ }
18
+
19
+ private get promoClassName() {
20
+ return `promo ${this.showShadow ? 'promo--shadow' : ''}`;
21
+ }
22
+
23
+ private get shadowStyle() {
24
+ return [
25
+ `--shadow-color-start: ${this.shadowColorStart}`,
26
+ `--shadow-color-end: ${this.shadowColorEnd}`
27
+ ].join(';');
28
+ }
29
+
30
+ private get showShadow() {
31
+ return this.shadowColorStart && this.shadowColorEnd;
32
+ }
33
+
34
+ private get spacerStyle() {
35
+ return `padding-top: ${this.imgAspect || '33%'}`;
36
+ }
37
+
38
+ private onClick(e: MouseEvent) {
39
+ let { ctaHref, ctaTarget } = this;
40
+ if (ctaHref) {
41
+ if (ctaTarget) window.open(ctaHref, ctaTarget);
42
+ else window.location.href = ctaHref;
43
+ }
44
+ this.trackLinkClick();
45
+ }
46
+
47
+ private trackLinkClick() {
48
+ let { ctaHref, ctaTitle } = this;
49
+ if (ctaHref === 'https://sfdc.co/arch-site-survey') {
50
+ track(this.template.host, 'site_survey', {
51
+ linkText: ctaTitle,
52
+ linkUrl: ctaHref,
53
+ itemLocation: 'banner'
54
+ });
55
+ }
56
+ }
57
+
58
+ private onLinkClick(e: MouseEvent) {
59
+ e.stopPropagation();
60
+ this.trackLinkClick();
61
+ }
62
+ }
@@ -0,0 +1,64 @@
1
+ @import 'tds/reset';
2
+
3
+ .section {
4
+ padding: var(--tds-spacing-20) var(--tds-spacing-6);
5
+ }
6
+
7
+ .section--white {
8
+ background-color: var(--tds-color-white);
9
+ color: var(--tds-color-black);
10
+ }
11
+
12
+ .section--dark {
13
+ background-color: var(--tds-color-theme-dark);
14
+ color: var(--tds-color-white);
15
+ }
16
+
17
+ .section--light {
18
+ background-color: var(--tds-color-blue-ninety-five);
19
+ color: var(--tds-color-black);
20
+ }
21
+
22
+ .section--blue {
23
+ background-color: var(--tds-color-theme-light);
24
+ color: var(--tds-color-black);
25
+ }
26
+
27
+ .section--bright {
28
+ background-color: var(--tds-color-theme-bright);
29
+ color: var(--tds-color-black);
30
+ }
31
+
32
+ .content-container {
33
+ margin: auto;
34
+ max-width: 600px;
35
+ text-align: center;
36
+ padding-bottom: var(--tds-spacing-4);
37
+ }
38
+
39
+ .content {
40
+ align-items: center;
41
+ display: flex;
42
+ flex-direction: column;
43
+ margin: auto;
44
+ max-width: 1280px;
45
+ }
46
+
47
+ .title {
48
+ font-size: var(--tds-font-size-2xl);
49
+ margin-bottom: var(--tds-spacing-2);
50
+ }
51
+
52
+ .description {
53
+ font-size: var(--tds-font-size-lg);
54
+ line-height: 1.5;
55
+ margin-bottom: var(--tds-spacing-6);
56
+ }
57
+
58
+ .slot {
59
+ align-self: stretch;
60
+ }
61
+
62
+ .cta {
63
+ margin-top: var(--tds-spacing-6);
64
+ }
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <section class={sectionClassName}>
3
+ <div class="content">
4
+ <div class="content-container">
5
+ <h2 if:true={title} class="title">{title}</h2>
6
+ <p if:true={description} class="description">{description}</p>
7
+ </div>
8
+ <div class="slot">
9
+ <slot></slot>
10
+ </div>
11
+ <tds-button-link
12
+ href={ctaHref}
13
+ target={ctaTarget}
14
+ if:true={ctaHref}
15
+ class="cta"
16
+ >
17
+ {ctaTitle}
18
+ </tds-button-link>
19
+ </div>
20
+ </section>
21
+ </template>
@@ -0,0 +1,18 @@
1
+ import { html } from 'lit-html';
2
+
3
+ export default {
4
+ title: 'tm/tm-section-a',
5
+ parameters: {
6
+ modules: ['/modules/tm-section-a.js']
7
+ }
8
+ };
9
+
10
+ export const Base = () => html`
11
+ <tm-section-a
12
+ description="Build apps faster, integrate easier, make apps smarter"
13
+ title="Explore Content"
14
+ cta-href="/"
15
+ cta-title="Explore"
16
+ >
17
+ </tm-section-a>
18
+ `;
@@ -0,0 +1,27 @@
1
+ import { api, LightningElement } from 'lwc';
2
+ import { waitForPageSettled } from 'tm/utils';
3
+
4
+ export default class extends LightningElement {
5
+ @api background: string | null = null;
6
+ @api description: string | null = null;
7
+ @api title: string = '';
8
+ @api ctaHref: string | null = null;
9
+ @api ctaTitle: string | null = null;
10
+ @api ctaTarget: string | null = null;
11
+
12
+ connectedCallback() {
13
+ let hash = window.location.hash.slice(1);
14
+ if (this.id && this.id === hash) {
15
+ // We have to restore the natural browser behavior of
16
+ // jumping to anchors because when DOMContentLoaded fires
17
+ // the page won't be fully rendered yet
18
+ waitForPageSettled().then(() => {
19
+ this.template.host.scrollIntoView();
20
+ });
21
+ }
22
+ }
23
+
24
+ private get sectionClassName() {
25
+ return `section section--${this.background}`;
26
+ }
27
+ }
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: block;
3
+ height: var(--tds-spacing-20);
4
+ }
@@ -0,0 +1 @@
1
+ <template> </template>
@@ -0,0 +1,3 @@
1
+ import { LightningElement } from 'lwc';
2
+
3
+ export default class extends LightningElement {}
@@ -0,0 +1,73 @@
1
+ @import 'tds/reset';
2
+
3
+ .card {
4
+ background-color: var(--tds-color-white);
5
+ border-radius: var(--tds-radius-lg);
6
+ box-shadow: var(--tds-shadow-sm);
7
+ padding: var(--tds-spacing-12);
8
+ }
9
+
10
+ .content {
11
+ display: flex;
12
+ flex-direction: column;
13
+ flex: 1;
14
+ justify-content: center;
15
+ }
16
+
17
+ .title {
18
+ margin-top: 0;
19
+ margin-bottom: 0;
20
+ font-size: var(--tds-font-size-xl);
21
+ font-weight: normal;
22
+ }
23
+
24
+ .description {
25
+ line-height: 1.5;
26
+ margin-top: var(--tds-spacing-3);
27
+ margin-bottom: var(--tds-spacing-6);
28
+ }
29
+
30
+ ul {
31
+ display: grid;
32
+ grid-auto-flow: row;
33
+ grid-row-gap: var(--tds-spacing-6);
34
+ }
35
+
36
+ li .progress-label {
37
+ display: block;
38
+ color: var(--tds-color-meteorite);
39
+ margin-bottom: var(--tds-spacing-2);
40
+ }
41
+
42
+ li a {
43
+ text-decoration: underline;
44
+ }
45
+
46
+ .progress-bar {
47
+ background-color: var(--tds-color-sand);
48
+ border-radius: 100px;
49
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
50
+ height: 20px;
51
+ }
52
+
53
+ .progress-value {
54
+ height: 100%;
55
+ }
56
+
57
+ .progress-value--cold {
58
+ border-radius: 100px;
59
+ background: linear-gradient(
60
+ 90deg,
61
+ rgba(22, 99, 195, 1) 0%,
62
+ rgba(15, 194, 226, 1) 100%
63
+ );
64
+ }
65
+
66
+ .progress-value--warm {
67
+ border-radius: 100px;
68
+ background: linear-gradient(
69
+ 90deg,
70
+ rgba(195, 46, 22, 1) 0%,
71
+ rgba(226, 140, 15, 1) 100%
72
+ );
73
+ }
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <div class="card">
3
+ <div class="content">
4
+ <h3 class="title">{title}</h3>
5
+ <p class="description">{description}</p>
6
+ </div>
7
+ <ul>
8
+ <template for:each={skills} for:item="item">
9
+ <li key={item.title}>
10
+ <template if:true={item.href}>
11
+ <a
12
+ href={item.href}
13
+ class="progress-label"
14
+ target={item.target}
15
+ >{item.title}</a
16
+ >
17
+ </template>
18
+ <template if:false={item.href}>
19
+ <span class="progress-label">{item.title}</span>
20
+ </template>
21
+ <div
22
+ aria-valuemin="0"
23
+ aria-valuemax="100"
24
+ aria-valuenow={item.value}
25
+ class="progress-bar"
26
+ role="progressbar"
27
+ >
28
+ <div
29
+ class={item.valueClassName}
30
+ style={item.valueStyle}
31
+ ></div>
32
+ </div>
33
+ </li>
34
+ </template>
35
+ </ul>
36
+ </div>
37
+ </template>