@salesforcedevs/arch-components 1.20.17-alpha1 → 1.20.17-alpha10

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 (362) hide show
  1. package/package.json +45 -2
  2. package/src/{modules/common → common}/context/context.ts +10 -10
  3. package/src/{modules/common → common}/effectAdapter/effectAdapter.ts +1 -1
  4. package/src/modules/sa/coverage/coverage.css +0 -35
  5. package/src/modules/sa/coverage/coverage.html +0 -15
  6. package/src/modules/sa/coverage/coverage.ts +0 -406
  7. package/src/modules/sa/coverage/types.d.ts +0 -26
  8. package/src/modules/sa/expandableSection/expandableSection.css +0 -24
  9. package/src/modules/sa/expandableSection/expandableSection.html +0 -20
  10. package/src/modules/sa/expandableSection/expandableSection.stories.ts +0 -37
  11. package/src/modules/sa/expandableSection/expandableSection.ts +0 -24
  12. package/src/modules/sa/explorer/explorer.css +0 -303
  13. package/src/modules/sa/explorer/explorer.html +0 -403
  14. package/src/modules/sa/explorer/explorer.ts +0 -664
  15. package/src/modules/sa/explorer/types.d.ts +0 -60
  16. package/src/modules/sa/gallery/gallery.css +0 -358
  17. package/src/modules/sa/gallery/gallery.html +0 -65
  18. package/src/modules/sa/gallery/gallery.ts +0 -300
  19. package/src/modules/sa/gallery/types.d.ts +0 -35
  20. package/src/modules/sa/socialShare/socialShare.css +0 -49
  21. package/src/modules/sa/socialShare/socialShare.html +0 -56
  22. package/src/modules/sa/socialShare/socialShare.ts +0 -29
  23. package/src/modules/shared/a11y/a11y.ts +0 -25
  24. package/src/modules/shared/children/children.ts +0 -29
  25. package/src/modules/shared/color/color.ts +0 -52
  26. package/src/modules/shared/debounce/debounce.ts +0 -32
  27. package/src/modules/shared/dialog/dialog.ts +0 -154
  28. package/src/modules/shared/elements/__tests__/overflow.test.ts +0 -39
  29. package/src/modules/shared/elements/overflow.ts +0 -71
  30. package/src/modules/shared/fetch/fetch.ts +0 -52
  31. package/src/modules/shared/helpers/helpers.ts +0 -141
  32. package/src/modules/shared/i18n/i18n.ts +0 -74
  33. package/src/modules/shared/labels/__tests__/helpers.test.ts +0 -107
  34. package/src/modules/shared/labels/__tests__/pointHelpers.test.ts +0 -33
  35. package/src/modules/shared/labels/__tests__/timeHelpers.test.ts +0 -89
  36. package/src/modules/shared/labels/helpers.ts +0 -23
  37. package/src/modules/shared/labels/pointHelpers.ts +0 -47
  38. package/src/modules/shared/labels/timeHelpers.ts +0 -182
  39. package/src/modules/shared/labels/types.d.ts +0 -5
  40. package/src/modules/shared/logger/logger.ts +0 -33
  41. package/src/modules/shared/menu/menu.ts +0 -239
  42. package/src/modules/shared/overflow/__tests__/overflow.test.ts +0 -39
  43. package/src/modules/shared/overflow/overflow.ts +0 -71
  44. package/src/modules/shared/polling-request.ts +0 -97
  45. package/src/modules/shared/testutils.ts +0 -118
  46. package/src/modules/shared/track/track.ts +0 -23
  47. package/src/modules/shared/trailhead.ts +0 -123
  48. package/src/modules/shared/types.d.ts +0 -1
  49. package/src/modules/shared/useEffectAttr.ts +0 -16
  50. package/src/modules/shared/withState.ts +0 -21
  51. package/src/modules/tds/appLauncher/__fixtures__/index.ts +0 -34
  52. package/src/modules/tds/appLauncher/__tests__/appLauncher.test.ts +0 -119
  53. package/src/modules/tds/appLauncher/appLauncher.css +0 -65
  54. package/src/modules/tds/appLauncher/appLauncher.html +0 -38
  55. package/src/modules/tds/appLauncher/appLauncher.stories.ts +0 -39
  56. package/src/modules/tds/appLauncher/appLauncher.ts +0 -79
  57. package/src/modules/tds/appLauncher/types.ts +0 -8
  58. package/src/modules/tds/avatar/__tests__/avatar.test.ts +0 -11
  59. package/src/modules/tds/avatar/avatar.css +0 -77
  60. package/src/modules/tds/avatar/avatar.html +0 -36
  61. package/src/modules/tds/avatar/avatar.stories.ts +0 -64
  62. package/src/modules/tds/avatar/avatar.ts +0 -50
  63. package/src/modules/tds/badge/__tests__/badge.test.js +0 -11
  64. package/src/modules/tds/badge/badge.css +0 -22
  65. package/src/modules/tds/badge/badge.html +0 -5
  66. package/src/modules/tds/badge/badge.stories.ts +0 -10
  67. package/src/modules/tds/badge/badge.ts +0 -9
  68. package/src/modules/tds/button/__tests__/button.test.ts +0 -52
  69. package/src/modules/tds/button/button.css +0 -1
  70. package/src/modules/tds/button/button.html +0 -20
  71. package/src/modules/tds/button/button.stories.js +0 -54
  72. package/src/modules/tds/button/button.ts +0 -59
  73. package/src/modules/tds/buttonIcon/__tests__/buttonIcon.test.ts +0 -17
  74. package/src/modules/tds/buttonIcon/buttonIcon.css +0 -1
  75. package/src/modules/tds/buttonIcon/buttonIcon.html +0 -12
  76. package/src/modules/tds/buttonIcon/buttonIcon.stories.js +0 -38
  77. package/src/modules/tds/buttonIcon/buttonIcon.ts +0 -6
  78. package/src/modules/tds/buttonIconLink/buttonIconLink.css +0 -1
  79. package/src/modules/tds/buttonIconLink/buttonIconLink.html +0 -14
  80. package/src/modules/tds/buttonIconLink/buttonIconLink.stories.ts +0 -32
  81. package/src/modules/tds/buttonIconLink/buttonIconLink.ts +0 -9
  82. package/src/modules/tds/buttonLink/__tests__/buttonLink.test.ts +0 -17
  83. package/src/modules/tds/buttonLink/buttonLink.css +0 -1
  84. package/src/modules/tds/buttonLink/buttonLink.html +0 -19
  85. package/src/modules/tds/buttonLink/buttonLink.stories.js +0 -24
  86. package/src/modules/tds/buttonLink/buttonLink.ts +0 -8
  87. package/src/modules/tds/buttonStyles/buttonStyles.css +0 -232
  88. package/src/modules/tds/childSummary/__tests__/childSummary.test.js +0 -99
  89. package/src/modules/tds/childSummary/childSummary.css +0 -74
  90. package/src/modules/tds/childSummary/childSummary.html +0 -38
  91. package/src/modules/tds/childSummary/childSummary.stories.ts +0 -40
  92. package/src/modules/tds/childSummary/childSummary.ts +0 -63
  93. package/src/modules/tds/childSummary/types.d.ts +0 -10
  94. package/src/modules/tds/contentChildListItem/__tests__/contentChildListItem.test.ts +0 -32
  95. package/src/modules/tds/contentChildListItem/contentChildListItem.css +0 -1
  96. package/src/modules/tds/contentChildListItem/contentChildListItem.html +0 -10
  97. package/src/modules/tds/contentChildListItem/contentChildListItem.stories.ts +0 -46
  98. package/src/modules/tds/contentChildListItem/contentChildListItem.ts +0 -34
  99. package/src/modules/tds/contentIcon/contentIcon.css +0 -47
  100. package/src/modules/tds/contentIcon/contentIcon.html +0 -15
  101. package/src/modules/tds/contentIcon/contentIcon.stories.js +0 -110
  102. package/src/modules/tds/contentIcon/contentIcon.ts +0 -66
  103. package/src/modules/tds/contextAdapter/__tests__/contextAdapter.test.ts +0 -76
  104. package/src/modules/tds/contextAdapter/constants.ts +0 -1
  105. package/src/modules/tds/contextAdapter/contextAdapter.html +0 -1
  106. package/src/modules/tds/contextAdapter/contextAdapter.ts +0 -54
  107. package/src/modules/tds/dialogStyles/dialogStyles.css +0 -90
  108. package/src/modules/tds/footerLinks/__tests__/__snapshots__/footerLinks.test.ts.snap +0 -3
  109. package/src/modules/tds/footerLinks/__tests__/footerLinks.test.ts +0 -142
  110. package/src/modules/tds/footerLinks/footerLinks.css +0 -80
  111. package/src/modules/tds/footerLinks/footerLinks.html +0 -30
  112. package/src/modules/tds/footerLinks/footerLinks.ts +0 -48
  113. package/src/modules/tds/footerLinks/types.ts +0 -11
  114. package/src/modules/tds/footerMfe/footerMfe.html +0 -3
  115. package/src/modules/tds/footerMfe/footerMfe.ts +0 -19
  116. package/src/modules/tds/headerAvatar/__tests__/headerAvatar.test.ts +0 -43
  117. package/src/modules/tds/headerAvatar/headerAvatar.css +0 -45
  118. package/src/modules/tds/headerAvatar/headerAvatar.html +0 -25
  119. package/src/modules/tds/headerAvatar/headerAvatar.ts +0 -15
  120. package/src/modules/tds/headerHelpButton/__tests__/headerHelpButton.test.ts +0 -32
  121. package/src/modules/tds/headerHelpButton/headerHelpButton.css +0 -14
  122. package/src/modules/tds/headerHelpButton/headerHelpButton.html +0 -19
  123. package/src/modules/tds/headerHelpButton/headerHelpButton.ts +0 -12
  124. package/src/modules/tds/heading/__tests__/heading.test.ts +0 -50
  125. package/src/modules/tds/heading/heading.css +0 -1
  126. package/src/modules/tds/heading/heading.html +0 -9
  127. package/src/modules/tds/heading/heading.stories.ts +0 -36
  128. package/src/modules/tds/heading/heading.ts +0 -36
  129. package/src/modules/tds/icon/icon.css +0 -28
  130. package/src/modules/tds/icon/icon.html +0 -17
  131. package/src/modules/tds/icon/icon.stories.js +0 -18
  132. package/src/modules/tds/icon/icon.ts +0 -79
  133. package/src/modules/tds/input/__tests__/input.test.ts +0 -41
  134. package/src/modules/tds/input/input.css +0 -34
  135. package/src/modules/tds/input/input.html +0 -12
  136. package/src/modules/tds/input/input.stories.ts +0 -25
  137. package/src/modules/tds/input/input.ts +0 -41
  138. package/src/modules/tds/instrumentation/instrumentation.css +0 -0
  139. package/src/modules/tds/instrumentation/instrumentation.html +0 -1
  140. package/src/modules/tds/instrumentation/instrumentation.ts +0 -113
  141. package/src/modules/tds/pbCard/pbCard.css +0 -28
  142. package/src/modules/tds/pbCard/pbCard.html +0 -21
  143. package/src/modules/tds/pbCard/pbCard.ts +0 -18
  144. package/src/modules/tds/pill/__tests__/pill.test.ts +0 -56
  145. package/src/modules/tds/pill/pill.css +0 -70
  146. package/src/modules/tds/pill/pill.html +0 -17
  147. package/src/modules/tds/pill/pill.stories.ts +0 -41
  148. package/src/modules/tds/pill/pill.ts +0 -34
  149. package/src/modules/tds/progressBar/__tests__/progressBar.test.js +0 -11
  150. package/src/modules/tds/progressBar/progressBar.css +0 -42
  151. package/src/modules/tds/progressBar/progressBar.html +0 -14
  152. package/src/modules/tds/progressBar/progressBar.stories.ts +0 -24
  153. package/src/modules/tds/progressBar/progressBar.ts +0 -14
  154. package/src/modules/tds/radio/__tests__/radio.test.ts +0 -29
  155. package/src/modules/tds/radio/radio.css +0 -89
  156. package/src/modules/tds/radio/radio.html +0 -17
  157. package/src/modules/tds/radio/radio.stories.ts +0 -31
  158. package/src/modules/tds/radio/radio.ts +0 -32
  159. package/src/modules/tds/reset/reset.css +0 -39
  160. package/src/modules/tds/search/__fixtures__/index.ts +0 -32
  161. package/src/modules/tds/search/__tests__/search.test.ts +0 -235
  162. package/src/modules/tds/search/lib/__tests__/__snapshots__/listbox.test.ts.snap +0 -115
  163. package/src/modules/tds/search/lib/__tests__/listbox.test.ts +0 -192
  164. package/src/modules/tds/search/lib/listbox.ts +0 -209
  165. package/src/modules/tds/search/search.css +0 -122
  166. package/src/modules/tds/search/search.html +0 -21
  167. package/src/modules/tds/search/search.stories.ts +0 -20
  168. package/src/modules/tds/search/search.ts +0 -107
  169. package/src/modules/tds/search/types.d.ts +0 -22
  170. package/src/modules/tds/searchList/searchList.css +0 -120
  171. package/src/modules/tds/searchList/searchList.html +0 -43
  172. package/src/modules/tds/searchList/searchList.stories.ts +0 -10
  173. package/src/modules/tds/searchList/searchList.ts +0 -53
  174. package/src/modules/tds/select/__tests__/select.test.ts +0 -150
  175. package/src/modules/tds/select/select.css +0 -42
  176. package/src/modules/tds/select/select.html +0 -24
  177. package/src/modules/tds/select/select.stories.ts +0 -59
  178. package/src/modules/tds/select/select.ts +0 -60
  179. package/src/modules/tds/spinner/__tests__/spinner.test.ts +0 -11
  180. package/src/modules/tds/spinner/spinner.css +0 -194
  181. package/src/modules/tds/spinner/spinner.html +0 -9
  182. package/src/modules/tds/spinner/spinner.stories.ts +0 -20
  183. package/src/modules/tds/spinner/spinner.ts +0 -15
  184. package/src/modules/tds/styles/styles.css +0 -24
  185. package/src/modules/tds/summary/__tests__/summary.test.ts +0 -135
  186. package/src/modules/tds/summary/summary.css +0 -135
  187. package/src/modules/tds/summary/summary.html +0 -69
  188. package/src/modules/tds/summary/summary.stories.js +0 -148
  189. package/src/modules/tds/summary/summary.ts +0 -95
  190. package/src/modules/tds/tab/__tests__/tab.test.ts +0 -25
  191. package/src/modules/tds/tab/tab.css +0 -3
  192. package/src/modules/tds/tab/tab.html +0 -5
  193. package/src/modules/tds/tab/tab.ts +0 -46
  194. package/src/modules/tds/tabset/__tests__/tabset.test.ts +0 -108
  195. package/src/modules/tds/tabset/tabset.css +0 -112
  196. package/src/modules/tds/tabset/tabset.html +0 -63
  197. package/src/modules/tds/tabset/tabset.stories.ts +0 -32
  198. package/src/modules/tds/tabset/tabset.ts +0 -232
  199. package/src/modules/tds/themeProvider/themeProvider.css +0 -502
  200. package/src/modules/tds/themeProvider/themeProvider.html +0 -3
  201. package/src/modules/tds/themeProvider/themeProvider.ts +0 -37
  202. package/src/modules/tds/tile/tile.css +0 -23
  203. package/src/modules/tds/tile/tile.html +0 -5
  204. package/src/modules/tds/tile/tile.stories.js +0 -14
  205. package/src/modules/tds/tile/tile.ts +0 -12
  206. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.html +0 -1
  207. package/src/modules/tds/xsfMfeEvents/xsfMfeEvents.ts +0 -47
  208. package/src/modules/th/contextAdapter/__tests__/contextAdapter.test.ts +0 -104
  209. package/src/modules/th/contextAdapter/contextAdapter.html +0 -1
  210. package/src/modules/th/contextAdapter/contextAdapter.ts +0 -49
  211. package/src/modules/th/favoriteButton/__tests__/favoriteButton.test.ts +0 -56
  212. package/src/modules/th/favoriteButton/favoriteButton.css +0 -3
  213. package/src/modules/th/favoriteButton/favoriteButton.html +0 -15
  214. package/src/modules/th/favoriteButton/favoriteButton.stories.js +0 -30
  215. package/src/modules/th/favoriteButton/favoriteButton.ts +0 -84
  216. package/src/modules/th/favoriteButton/mocks/index.ts +0 -12
  217. package/src/modules/th/search/__fixtures__/index.ts +0 -14
  218. package/src/modules/th/search/__tests__/search.test.ts +0 -233
  219. package/src/modules/th/search/constants.ts +0 -2
  220. package/src/modules/th/search/mocks/index.ts +0 -30
  221. package/src/modules/th/search/mocks/responses.ts +0 -54
  222. package/src/modules/th/search/search.css +0 -4
  223. package/src/modules/th/search/search.html +0 -12
  224. package/src/modules/th/search/search.ts +0 -172
  225. package/src/modules/th/search/types.d.ts +0 -29
  226. package/src/modules/th/tbid/__tests__/__snapshots__/tbid.test.ts.snap +0 -3
  227. package/src/modules/th/tbid/__tests__/tbid.test.ts +0 -242
  228. package/src/modules/th/tbid/tbid.html +0 -1
  229. package/src/modules/th/tbid/tbid.stories.mdx +0 -25
  230. package/src/modules/th/tbid/tbid.ts +0 -215
  231. package/src/modules/tm/card/__tests__/card.test.ts +0 -65
  232. package/src/modules/tm/card/card.css +0 -131
  233. package/src/modules/tm/card/card.html +0 -81
  234. package/src/modules/tm/card/card.ts +0 -269
  235. package/src/modules/tm/cardBase/cardBase.css +0 -11
  236. package/src/modules/tm/cardGridA/cardGridA.css +0 -11
  237. package/src/modules/tm/cardGridA/cardGridA.html +0 -21
  238. package/src/modules/tm/cardGridA/cardGridA.stories.js +0 -107
  239. package/src/modules/tm/cardGridA/cardGridA.ts +0 -24
  240. package/src/modules/tm/cardGridB/cardGridB.css +0 -88
  241. package/src/modules/tm/cardGridB/cardGridB.html +0 -20
  242. package/src/modules/tm/cardGridB/cardGridB.stories.js +0 -58
  243. package/src/modules/tm/cardGridB/cardGridB.ts +0 -19
  244. package/src/modules/tm/cardGridC/cardGridC.css +0 -24
  245. package/src/modules/tm/cardGridC/cardGridC.html +0 -22
  246. package/src/modules/tm/cardGridC/cardGridC.stories.js +0 -42
  247. package/src/modules/tm/cardGridC/cardGridC.ts +0 -11
  248. package/src/modules/tm/cardGridD/cardGridD.css +0 -17
  249. package/src/modules/tm/cardGridD/cardGridD.html +0 -20
  250. package/src/modules/tm/cardGridD/cardGridD.stories.js +0 -34
  251. package/src/modules/tm/cardGridD/cardGridD.ts +0 -7
  252. package/src/modules/tm/cardNew/cardNew.css +0 -31
  253. package/src/modules/tm/cardNew/cardNew.html +0 -29
  254. package/src/modules/tm/cardNew/cardNew.ts +0 -66
  255. package/src/modules/tm/content/__fixtures__/index.ts +0 -884
  256. package/src/modules/tm/content/__tests__/content.test.ts +0 -95
  257. package/src/modules/tm/content/content.css +0 -641
  258. package/src/modules/tm/content/content.html +0 -53
  259. package/src/modules/tm/content/content.stories.js +0 -14
  260. package/src/modules/tm/content/content.ts +0 -171
  261. package/src/modules/tm/endCapA/__tests__/endCapA.test.ts +0 -52
  262. package/src/modules/tm/endCapA/endCapA.css +0 -64
  263. package/src/modules/tm/endCapA/endCapA.html +0 -21
  264. package/src/modules/tm/endCapA/endCapA.stories.js +0 -37
  265. package/src/modules/tm/endCapA/endCapA.ts +0 -23
  266. package/src/modules/tm/eventsA/eventsA.css +0 -107
  267. package/src/modules/tm/eventsA/eventsA.html +0 -26
  268. package/src/modules/tm/eventsA/eventsA.stories.js +0 -51
  269. package/src/modules/tm/eventsA/eventsA.ts +0 -48
  270. package/src/modules/tm/faqA/faqA.css +0 -87
  271. package/src/modules/tm/faqA/faqA.html +0 -27
  272. package/src/modules/tm/faqA/faqA.stories.js +0 -25
  273. package/src/modules/tm/faqA/faqA.ts +0 -40
  274. package/src/modules/tm/featureGridA/__tests__/featureGridA.test.ts +0 -116
  275. package/src/modules/tm/featureGridA/featureGridA.css +0 -95
  276. package/src/modules/tm/featureGridA/featureGridA.html +0 -34
  277. package/src/modules/tm/featureGridA/featureGridA.stories.js +0 -45
  278. package/src/modules/tm/featureGridA/featureGridA.ts +0 -59
  279. package/src/modules/tm/footnote/footnote.css +0 -28
  280. package/src/modules/tm/footnote/footnote.html +0 -3
  281. package/src/modules/tm/footnote/footnote.stories.js +0 -29
  282. package/src/modules/tm/footnote/footnote.ts +0 -35
  283. package/src/modules/tm/heroA/__tests__/heroA.test.ts +0 -51
  284. package/src/modules/tm/heroA/heroA.css +0 -116
  285. package/src/modules/tm/heroA/heroA.html +0 -27
  286. package/src/modules/tm/heroA/heroA.stories.js +0 -49
  287. package/src/modules/tm/heroA/heroA.ts +0 -56
  288. package/src/modules/tm/heroB/heroB.css +0 -78
  289. package/src/modules/tm/heroB/heroB.html +0 -26
  290. package/src/modules/tm/heroB/heroB.stories.js +0 -44
  291. package/src/modules/tm/heroB/heroB.ts +0 -26
  292. package/src/modules/tm/page/__tests__/page.test.ts +0 -35
  293. package/src/modules/tm/page/page.css +0 -3
  294. package/src/modules/tm/page/page.html +0 -3
  295. package/src/modules/tm/page/page.stories.js +0 -10
  296. package/src/modules/tm/page/page.ts +0 -3
  297. package/src/modules/tm/pageHeaderA/pageHeaderA.css +0 -82
  298. package/src/modules/tm/pageHeaderA/pageHeaderA.html +0 -24
  299. package/src/modules/tm/pageHeaderA/pageHeaderA.stories.js +0 -18
  300. package/src/modules/tm/pageHeaderA/pageHeaderA.ts +0 -51
  301. package/src/modules/tm/pageNavigationA/pageNavigationA.css +0 -41
  302. package/src/modules/tm/pageNavigationA/pageNavigationA.html +0 -9
  303. package/src/modules/tm/pageNavigationA/pageNavigationA.stories.js +0 -34
  304. package/src/modules/tm/pageNavigationA/pageNavigationA.ts +0 -18
  305. package/src/modules/tm/promoA/__tests__/promoA.test.ts +0 -89
  306. package/src/modules/tm/promoA/promoA.css +0 -95
  307. package/src/modules/tm/promoA/promoA.html +0 -22
  308. package/src/modules/tm/promoA/promoA.stories.js +0 -38
  309. package/src/modules/tm/promoA/promoA.ts +0 -62
  310. package/src/modules/tm/sectionA/sectionA.css +0 -64
  311. package/src/modules/tm/sectionA/sectionA.html +0 -21
  312. package/src/modules/tm/sectionA/sectionA.stories.js +0 -18
  313. package/src/modules/tm/sectionA/sectionA.ts +0 -27
  314. package/src/modules/tm/sectionSpacer/sectionSpacer.css +0 -4
  315. package/src/modules/tm/sectionSpacer/sectionSpacer.html +0 -1
  316. package/src/modules/tm/sectionSpacer/sectionSpacer.ts +0 -3
  317. package/src/modules/tm/skillsCardA/skillsCardA.css +0 -73
  318. package/src/modules/tm/skillsCardA/skillsCardA.html +0 -37
  319. package/src/modules/tm/skillsCardA/skillsCardA.ts +0 -38
  320. package/src/modules/tm/skillsGridA/skillsGridA.css +0 -12
  321. package/src/modules/tm/skillsGridA/skillsGridA.html +0 -5
  322. package/src/modules/tm/skillsGridA/skillsGridA.stories.ts +0 -65
  323. package/src/modules/tm/skillsGridA/skillsGridA.ts +0 -3
  324. package/src/modules/tm/statsA/statsA.css +0 -26
  325. package/src/modules/tm/statsA/statsA.html +0 -10
  326. package/src/modules/tm/statsA/statsA.stories.js +0 -29
  327. package/src/modules/tm/statsA/statsA.ts +0 -20
  328. package/src/modules/tm/textItem/textItem.css +0 -53
  329. package/src/modules/tm/textItem/textItem.html +0 -18
  330. package/src/modules/tm/textItem/textItem.ts +0 -32
  331. package/src/modules/tm/textItemGridA/textItemGridA.css +0 -11
  332. package/src/modules/tm/textItemGridA/textItemGridA.html +0 -15
  333. package/src/modules/tm/textItemGridA/textItemGridA.stories.js +0 -67
  334. package/src/modules/tm/textItemGridA/textItemGridA.ts +0 -20
  335. package/src/modules/tm/threeCardGrid/threeCardGrid.css +0 -6
  336. package/src/modules/tm/threeCardGrid/threeCardGrid.html +0 -5
  337. package/src/modules/tm/threeCardGrid/threeCardGrid.ts +0 -3
  338. package/src/modules/tm/trailblazersA/trailblazersA.css +0 -70
  339. package/src/modules/tm/trailblazersA/trailblazersA.html +0 -42
  340. package/src/modules/tm/trailblazersA/trailblazersA.stories.js +0 -52
  341. package/src/modules/tm/trailblazersA/trailblazersA.ts +0 -43
  342. package/src/modules/tm/utils/utils.ts +0 -18
  343. package/src/modules/tm/youtube/youtube.css +0 -7
  344. package/src/modules/tm/youtube/youtube.html +0 -10
  345. package/src/modules/tm/youtube/youtube.stories.js +0 -15
  346. package/src/modules/tm/youtube/youtube.ts +0 -27
  347. package/src/modules/ui/focusTrap/focusTrap.html +0 -5
  348. package/src/modules/ui/focusTrap/focusTrap.ts +0 -104
  349. package/src/modules/ui/focusVisible/__tests__/focusVisible.test.ts +0 -95
  350. package/src/modules/ui/focusVisible/focusVisible.html +0 -3
  351. package/src/modules/ui/focusVisible/focusVisible.ts +0 -46
  352. /package/src/{modules/common → common}/context/context.html +0 -0
  353. /package/src/{modules/common → common}/effectAdapter/__tests__/effectAdapter.test.ts +0 -0
  354. /package/src/{modules/common → common}/effectAdapter/effectAdapter.html +0 -0
  355. /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.html +0 -0
  356. /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/select/select.ts +0 -0
  357. /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -0
  358. /package/src/{modules/common → common}/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -0
  359. /package/src/{modules/common → common}/reflectedElement/__tests__/reflectedElement.test.ts +0 -0
  360. /package/src/{modules/common → common}/reflectedElement/reflectedElement.ts +0 -0
  361. /package/src/{modules/common → common}/slot/__tests__/slot.test.ts +0 -0
  362. /package/src/{modules/common → common}/slot/slot.ts +0 -0
@@ -1,269 +0,0 @@
1
- import { api, track, LightningElement } from 'lwc';
2
-
3
- import { track as analyticsTrack } from 'tds/instrumentation';
4
- import { sendInteractionEvent, InteractionEventTypes } from 'shared/helpers';
5
-
6
- export type CardAttribute = string | null;
7
-
8
- export type CardImageVariant =
9
- | 'top--cover'
10
- | 'top--small'
11
- | 'left--small'
12
- | 'left--cover'
13
- | 'right--cover';
14
-
15
- export type Card = {
16
- assistiveText: CardAttribute;
17
- ctaHref: CardAttribute;
18
- ctaTarget: CardAttribute;
19
- ctaTitle: CardAttribute;
20
- description: CardAttribute;
21
- imgSrc: CardAttribute;
22
- pretitle: CardAttribute;
23
- pretitleHref: CardAttribute;
24
- pretitleHrefText: CardAttribute;
25
- title: CardAttribute;
26
- productArea: CardAttribute;
27
- date: CardAttribute;
28
- level: CardAttribute;
29
- };
30
-
31
- const widths = [820, 640, 320, 75];
32
-
33
- const homepageCtaTitles = ['design', 'deliver', 'govern', 'roadmap'];
34
-
35
- export default class extends LightningElement {
36
- @api assistiveText: CardAttribute = null;
37
- @api ctaHref: CardAttribute = null;
38
- @api ctaTarget: CardAttribute = null;
39
- @api ctaTitle: CardAttribute = null;
40
- @api description: CardAttribute = null;
41
- @api imgAspect: CardAttribute = null;
42
- @api imgSrc: CardAttribute = null;
43
- @api imgVariant: CardImageVariant = 'top--cover';
44
- @api pretitle: CardAttribute = null;
45
- @api pretitleHref: CardAttribute = null;
46
- @api pretitleHrefText: CardAttribute = null;
47
- @api title: string = '';
48
- @api productArea: string = '';
49
- @api date: string = '';
50
- @api level: string = '';
51
-
52
- @track private snapToTop = mediaQuerySnapToTop.matches;
53
- private cardId: string = '';
54
-
55
- private get imgStyle() {
56
- if (!this.imgSrc) return '';
57
- let style: string[] = [];
58
- const { imgVariantResponsive: variant, imgSrc } = this;
59
-
60
- if (variant.includes('cover')) {
61
- let image = imgSrc;
62
-
63
- // Use the original image if it's a remote image or WebP
64
- /* if (!this.isRemoteImage && !imgSrc.includes('webp')) {
65
- const imgType = imgSrc.split('.').pop();
66
- image = imgSrc.replace(`.${imgType}`, '-820w.webp');
67
- } */
68
-
69
- style.push(`background-image: url(${image})`);
70
- }
71
- if (variant === 'top--cover') {
72
- style.push(`padding-top: ${this.imgAspect || '40%'}`);
73
- }
74
- return style.join(';');
75
- }
76
-
77
- private get imgTag() {
78
- return this.imgVariant.includes('small');
79
- }
80
-
81
- private get isRemoteImage() {
82
- return /^(https?\:\/\/|\/\/)/i.test(this.imgSrc || '');
83
- }
84
-
85
- private get imgSrcSetWebP() {
86
- if (this.isRemoteImage) {
87
- return this.imgSrc;
88
- } else {
89
- const imgType = this.imgSrc?.split('.').pop();
90
- const imgName = this.imgSrc?.replace(`.${imgType}`, '');
91
- let srcSet: string[] = [];
92
- widths.forEach((width) => {
93
- srcSet.push(`${imgName}-${width}w.webp ${width}w`);
94
- });
95
- return srcSet.join(',');
96
- }
97
- }
98
-
99
- private get imgSrcSetJpg() {
100
- if (this.isRemoteImage) {
101
- return this.imgSrc;
102
- } else {
103
- const imgType = this.imgSrc?.split('.').pop();
104
- const imgName = this.imgSrc?.replace(`.${imgType}`, '');
105
- let srcSet: string[] = [];
106
- widths.forEach((width) => {
107
- srcSet.push(`${imgName}-${width}w.jpg ${width}w`);
108
- });
109
- return srcSet.join(',');
110
- }
111
- }
112
-
113
- private get imgTagNoSvg() {
114
- return this.imgTag && !this.imgSrc?.toLowerCase().endsWith('svg');
115
- }
116
-
117
- private get imgTagSvg() {
118
- return this.imgTag && this.imgSrc?.toLowerCase().endsWith('svg');
119
- }
120
-
121
- private get rel() {
122
- return this.ctaTarget === '_blank' ? 'noopener' : '';
123
- }
124
-
125
- get isExternalHref() {
126
- return this.ctaTarget === '_blank' && this.ctaTitle;
127
- }
128
-
129
- private get imgVariantResponsive() {
130
- if (!this.snapToTop) return this.imgVariant;
131
- return String(this.imgVariant).replace(/left|right/, 'top');
132
- }
133
-
134
- // Accessibility getters
135
- get cardTitleId() {
136
- return `${this.cardId}-title`;
137
- }
138
-
139
- get ctaTitleId() {
140
- return `${this.cardId}-cta`;
141
- }
142
-
143
- get imageDivId() {
144
- return `${this.cardId}-image-div`;
145
- }
146
-
147
- get imageImgId() {
148
- return `${this.cardId}-image-img`;
149
- }
150
-
151
- get imageSvgId() {
152
- return `${this.cardId}-image-svg`;
153
- }
154
-
155
- get imageAriaLabel() {
156
- const title = this.title || 'Card';
157
- const description = this.description || '';
158
- return `View ${title}${description ? `: ${description}` : ''}`;
159
- }
160
-
161
- get imageAltText() {
162
- return this.description || this.title || 'Card image';
163
- }
164
-
165
- connectedCallback() {
166
- mediaQuerySnapToTop.addListener(this.onMediaQuerySnapToTop);
167
- // Generate unique ID for this card instance
168
- const title = this.title || 'Card';
169
- this.cardId = `${title}-${Math.random().toString(36).substring(2, 11)}`;
170
- }
171
-
172
- disconnectedCallback() {
173
- mediaQuerySnapToTop.removeListener(this.onMediaQuerySnapToTop);
174
- }
175
-
176
- private onImageClick(e: MouseEvent) {
177
- const element = e.target as HTMLElement;
178
- sendInteractionEvent(
179
- 'Card Image Click',
180
- InteractionEventTypes.IMAGE_CLICK,
181
- e,
182
- element
183
- );
184
-
185
- let { ctaHref, ctaTarget } = this;
186
- if (ctaHref) {
187
- if (ctaTarget) window.open(ctaHref, ctaTarget);
188
- else window.location.href = ctaHref;
189
- }
190
- this.trackLinkClick(e, true);
191
- }
192
-
193
- private trackLinkClick(e: MouseEvent, imgClick: boolean) {
194
- const element = e.currentTarget as HTMLAnchorElement;
195
- const linkText = this.ctaTitle;
196
- const title = typeof this.title === 'string' ? this.title : '';
197
- let event: string = '';
198
- let payload: Record<string, string> = {};
199
- if (!imgClick) {
200
- sendInteractionEvent(
201
- 'Card Link Click',
202
- InteractionEventTypes.CLICK,
203
- e,
204
- element
205
- );
206
- }
207
-
208
- if (
209
- window.location.pathname === '/' &&
210
- homepageCtaTitles.includes(this.title.toLowerCase())
211
- ) {
212
- event = 'homepage_cta';
213
- payload = {
214
- linkText: `home: ${linkText}`,
215
- headingText: title,
216
- itemLocation: 'card'
217
- };
218
- } else {
219
- event = 'select_content';
220
- payload = {
221
- contentType: 'card grid',
222
- itemTitle: (!title || title === '') ? undefined : title,
223
- itemLocation: 'card'
224
- } as any;
225
- }
226
- if (element.target) {
227
- const parsedLink = new URL(element.href);
228
- analyticsTrack(this.template.host, 'custEv_outboundClick', {
229
- clickText: title,
230
- clickUrl: parsedLink.href
231
- });
232
- }
233
- analyticsTrack(this.template.host, event, payload);
234
- }
235
-
236
- private onMediaQuerySnapToTop = (e: MediaQueryListEvent) => {
237
- this.snapToTop = e.matches;
238
- };
239
-
240
- // Accessibility keyboard handlers
241
- handleCardKeydown(e: KeyboardEvent) {
242
- if (e.key === 'Enter' || e.key === ' ') {
243
- this.trackLinkClick(e as unknown as MouseEvent, false);
244
- e.preventDefault();
245
- if (this.ctaHref) {
246
- if (this.ctaTarget) window.open(this.ctaHref, this.ctaTarget);
247
- else window.location.href = this.ctaHref;
248
- }
249
- }
250
- }
251
- }
252
-
253
- export function extractCardAttributes(element: Element) {
254
- return {
255
- ctaHref: element.getAttribute('cta-href')!,
256
- ctaTarget: element.getAttribute('cta-target')!,
257
- ctaTitle: element.getAttribute('cta-title')!,
258
- description: element.getAttribute('description'),
259
- imgSrc: element.getAttribute('img-src'),
260
- pretitle: element.getAttribute('pretitle'),
261
- pretitleHref: element.getAttribute('pretitle-href'),
262
- pretitleHrefText: element.getAttribute('pretitle-href-text'),
263
- title: element.getAttribute('title')
264
- } as Card;
265
- }
266
-
267
- // tm-card-grid taks care of adjusting the grid to the correct number
268
- // of columns at smaller view ports
269
- export const mediaQuerySnapToTop = window.matchMedia(`(max-width: 500px)`);
@@ -1,11 +0,0 @@
1
- .card-base {
2
- background-color: var(--tds-color-white);
3
- border-radius: var(--tds-radius-lg);
4
- box-shadow: var(--tds-shadow-xs);
5
- height: 100%;
6
- transition: all 250ms ease-in-out;
7
- }
8
-
9
- .card-base:hover {
10
- box-shadow: var(--tds-shadow-md);
11
- }
@@ -1,11 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- ul {
4
- --spacing: var(--tds-spacing-6);
5
- justify-content: center;
6
- display: grid;
7
- grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
8
- grid-column-gap: var(--spacing);
9
- grid-row-gap: var(--spacing);
10
- max-width: 1280px;
11
- }
@@ -1,21 +0,0 @@
1
- <template>
2
- <ul>
3
- <template for:each={items} for:item="item">
4
- <li key={item.ctaHref}>
5
- <tm-card
6
- cta-href={item.ctaHref}
7
- cta-target={item.ctaTarget}
8
- cta-title={item.ctaTitle}
9
- img-aspect={imgAspect}
10
- img-src={item.imgSrc}
11
- img-variant={imgVariant}
12
- description={item.description}
13
- title={item.title}
14
- pretitle={item.pretitle}
15
- pretitle-href={item.pretitleHref}
16
- pretitle-href-text={item.pretitleHrefText}
17
- ></tm-card>
18
- </li>
19
- </template>
20
- </ul>
21
- </template>
@@ -1,107 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tm/tm-card-grid-a',
5
- parameters: {
6
- chromatic: {
7
- viewports: [450, 800, 1199]
8
- },
9
- modules: ['/modules/tm-card-grid-a.js']
10
- }
11
- };
12
-
13
- export const Base = () => html`
14
- <tm-card-grid-a img-aspect="60%">
15
- <tm-card
16
- cta-href="/"
17
- cta-title="Read More"
18
- cta-target="_blank"
19
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
20
- title="Hello A"
21
- ></tm-card>
22
- <tm-card
23
- cta-href="/"
24
- cta-title="Read More"
25
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
26
- title="Hello B"
27
- ></tm-card>
28
- <tm-card
29
- cta-href="/"
30
- cta-title="Read More"
31
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
32
- title="Hello C"
33
- ></tm-card>
34
- <tm-card
35
- cta-href="/"
36
- cta-title="Read More"
37
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
38
- title="Hello D"
39
- ></tm-card>
40
- <tm-card
41
- cta-href="/"
42
- cta-title="Read More"
43
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
44
- title="Hello E"
45
- ></tm-card>
46
- </tm-card-grid-a>
47
- `;
48
-
49
- export const ImageFull = () => html`
50
- <tm-card-grid-a img-aspect="60%" img-type="full">
51
- <tm-card
52
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
53
- img-src="/images/card-a.png"
54
- title="Hello A"
55
- ></tm-card>
56
- <tm-card
57
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
58
- img-src="/images/card-a.png"
59
- title="Hello B"
60
- ></tm-card>
61
- <tm-card
62
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
63
- img-src="/images/card-a.png"
64
- title="Hello C"
65
- ></tm-card>
66
- <tm-card
67
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
68
- img-src="/images/card-a.png"
69
- title="Hello D"
70
- ></tm-card>
71
- <tm-card
72
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
73
- img-src="/images/card-a.png"
74
- title="Hello E"
75
- ></tm-card>
76
- </tm-card-grid-a>
77
- `;
78
-
79
- export const ImageLeft = () => html`
80
- <tm-card-grid-a img-aspect="60%" img-type="left">
81
- <tm-card
82
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
83
- img-src="/images/card-a.png"
84
- title="Hello A"
85
- ></tm-card>
86
- <tm-card
87
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
88
- img-src="/images/card-a.png"
89
- title="Hello B"
90
- ></tm-card>
91
- <tm-card
92
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
93
- img-src="/images/card-a.png"
94
- title="Hello C"
95
- ></tm-card>
96
- <tm-card
97
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
98
- img-src="/images/card-a.png"
99
- title="Hello D"
100
- ></tm-card>
101
- <tm-card
102
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
103
- img-src="/images/card-a.png"
104
- title="Hello E"
105
- ></tm-card>
106
- </tm-card-grid-a>
107
- `;
@@ -1,24 +0,0 @@
1
- import { api } from 'lwc';
2
-
3
- import { Card, extractCardAttributes } from 'tm/card';
4
-
5
- import { ChildrenElement } from 'shared/children';
6
-
7
- export default class extends ChildrenElement<Card> {
8
- @api items: Card[] = [];
9
- @api imgAspect: string | null = null;
10
- @api imgType: 'full' | 'left' | null = null;
11
-
12
- private get imgVariant() {
13
- switch (this.imgType) {
14
- case 'full':
15
- return 'top--cover';
16
- case 'left':
17
- return 'top--small';
18
- default:
19
- return '';
20
- }
21
- }
22
-
23
- extractor = extractCardAttributes;
24
- }
@@ -1,88 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- div {
4
- --spacing: var(--tds-spacing-6);
5
- display: grid;
6
- grid-column-gap: var(--spacing);
7
- grid-row-gap: var(--spacing);
8
- grid-template-columns: repeat(6, 1fr);
9
- grid-template-rows: repeat(3, auto);
10
- max-width: 1280px;
11
- }
12
-
13
- .card:nth-child(1) {
14
- grid-column: 1 / span 3;
15
- grid-row: 1;
16
- }
17
-
18
- .card:nth-child(2) {
19
- grid-column: 4 / span 3;
20
- grid-row: 1;
21
- }
22
-
23
- .card:nth-child(3) {
24
- grid-column: 1 / span 2;
25
- grid-row: 2;
26
- }
27
-
28
- .card:nth-child(4) {
29
- grid-column: 1 / span 2;
30
- grid-row: 3;
31
- }
32
-
33
- .card:nth-child(5) {
34
- grid-column: 3 / span 4;
35
- grid-row: 2 / span 2;
36
- }
37
-
38
- @media screen and (max-width: 1100px) {
39
- ul {
40
- grid-template-rows: repeat(5, auto);
41
- }
42
-
43
- .card:nth-child(3) {
44
- grid-column: 1 / span 3;
45
- grid-row: 4;
46
- }
47
-
48
- .card:nth-child(4) {
49
- grid-column: 4 / span 3;
50
- grid-row: 4;
51
- }
52
-
53
- .card:nth-child(5) {
54
- grid-column: 1 / span 6;
55
- grid-row: 2 / span 2;
56
- }
57
- }
58
-
59
- @media screen and (max-width: 850px) {
60
- ul {
61
- grid-template-rows: repeat(6, auto);
62
- }
63
-
64
- .card:nth-child(1) {
65
- grid-column: 1 / span 6;
66
- grid-row: 1;
67
- }
68
-
69
- .card:nth-child(2) {
70
- grid-column: 1 / span 6;
71
- grid-row: 2;
72
- }
73
-
74
- .card:nth-child(3) {
75
- grid-column: 1 / span 6;
76
- grid-row: 5;
77
- }
78
-
79
- .card:nth-child(4) {
80
- grid-column: 1 / span 6;
81
- grid-row: 6;
82
- }
83
-
84
- .card:nth-child(5) {
85
- grid-column: 1 / span 6;
86
- grid-row: 3 / span 2;
87
- }
88
- }
@@ -1,20 +0,0 @@
1
- <template>
2
- <div>
3
- <template for:each={grid} for:item="item">
4
- <tm-card
5
- class="card"
6
- cta-href={item.ctaHref}
7
- cta-target={item.ctaTarget}
8
- cta-title={item.ctaTitle}
9
- description={item.description}
10
- img-src={item.imgSrc}
11
- img-variant={item.imgVariant}
12
- key={item.title}
13
- pretitle={item.pretitle}
14
- pretitle-href={item.pretitleHref}
15
- pretitle-href-text={item.pretitleHrefText}
16
- title={item.title}
17
- ></tm-card>
18
- </template>
19
- </div>
20
- </template>
@@ -1,58 +0,0 @@
1
- import { html } from 'lit-html';
2
-
3
- export default {
4
- title: 'tm/tm-card-grid-b',
5
- parameters: {
6
- chromatic: {
7
- viewports: [450, 800, 1000, 1199]
8
- },
9
- modules: ['/modules/tm-card-grid-b.js']
10
- }
11
- };
12
-
13
- export const Base = () => html`
14
- <tm-card-grid-b>
15
- <tm-card
16
- cta-href="/"
17
- cta-title="Read More"
18
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
19
- img-src="/images/card-a.png"
20
- title="Hello A"
21
- pretitle="Type of Content"
22
- ></tm-card>
23
- <tm-card
24
- cta-href="/"
25
- cta-title="Read More"
26
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
27
- img-src="/images/card-a.png"
28
- title="Hello B"
29
- pretitle="Blog by"
30
- pretitle-href="/user/sharon"
31
- pretitle-href-text="Sharon Tate"
32
- ></tm-card>
33
- <tm-card
34
- cta-href="/"
35
- cta-title="Read More"
36
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
37
- img-src="/images/card-a.png"
38
- title="Hello C"
39
- pretitle="Type of Content"
40
- ></tm-card>
41
- <tm-card
42
- cta-href="/"
43
- cta-title="Read More"
44
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
45
- img-src="/images/card-a.png"
46
- title="Hello D"
47
- pretitle="Type of Content"
48
- ></tm-card>
49
- <tm-card
50
- cta-href="/"
51
- cta-title="Read More"
52
- description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eget velit placerat, scelerisque libero sed, mattis orci."
53
- img-src="/images/card-a.png"
54
- title="Hello E"
55
- pretitle="Type of Content"
56
- ></tm-card>
57
- </tm-card-grid-b>
58
- `;
@@ -1,19 +0,0 @@
1
- import { Card, CardImageVariant, extractCardAttributes } from 'tm/card';
2
-
3
- import { ChildrenElement } from 'shared/children';
4
-
5
- type GridCard = Card & { imgVariant: CardImageVariant };
6
-
7
- export default class extends ChildrenElement<Card> {
8
- extractor = extractCardAttributes;
9
-
10
- get grid(): GridCard[] {
11
- return [
12
- { ...this.items[0], imgVariant: 'right--cover' },
13
- { ...this.items[1], imgVariant: 'right--cover' },
14
- { ...this.items[2], imgVariant: 'left--small' },
15
- { ...this.items[3], imgVariant: 'left--small' },
16
- { ...this.items[4], imgVariant: 'left--cover' }
17
- ];
18
- }
19
- }
@@ -1,24 +0,0 @@
1
- @import 'tds/reset';
2
-
3
- ul {
4
- --spacing: var(--tds-spacing-6);
5
- justify-content: center;
6
- display: grid;
7
- grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
8
- grid-column-gap: var(--spacing);
9
- grid-row-gap: var(--spacing);
10
- max-width: 1280px;
11
- margin: auto;
12
- }
13
-
14
- @media screen and (max-width: 800px) {
15
- ul {
16
- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
17
- }
18
- }
19
-
20
- @media screen and (max-width: 400px) {
21
- ul {
22
- grid-template-columns: 1fr;
23
- }
24
- }
@@ -1,22 +0,0 @@
1
- <template>
2
- <ul>
3
- <template for:each={items} for:item="item">
4
- <li key={item.title}>
5
- <tm-card
6
- class="card"
7
- cta-href={item.ctaHref}
8
- cta-target={item.ctaTarget}
9
- cta-title={item.ctaTitle}
10
- img-aspect={imgAspect}
11
- img-src={item.imgSrc}
12
- img-variant="top--cover"
13
- description={item.description}
14
- pretitle={item.pretitle}
15
- pretitle-href={item.pretitleHref}
16
- pretitle-href-text={item.pretitleHrefText}
17
- title={item.title}
18
- ></tm-card>
19
- </li>
20
- </template>
21
- </ul>
22
- </template>