@salesforcedevs/dx-components 0.56.1 → 0.56.2-example

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 (135) hide show
  1. package/lwc.config.json +18 -3
  2. package/package.json +18 -6
  3. package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +492 -111
  4. package/src/assets/svg/big-moon.svg +1 -0
  5. package/src/assets/svg/blue-circle.svg +3 -0
  6. package/src/assets/svg/login-widget-bg.png +0 -0
  7. package/src/assets/svg/subscribe-background-left.svg +14 -0
  8. package/src/assets/svg/subscribe-background-right.svg +11 -0
  9. package/src/assets/svg/trial-left.svg +6 -0
  10. package/src/assets/svg/trial-right.svg +26 -0
  11. package/src/modules/dx/banner/banner (1).ts +12 -0
  12. package/src/modules/dx/banner/banner.ts +3 -5
  13. package/src/modules/dx/button/button.css +10 -9
  14. package/src/modules/dx/buttonToggle/buttonToggle.css +50 -0
  15. package/src/modules/dx/buttonToggle/buttonToggle.html +17 -0
  16. package/src/modules/dx/buttonToggle/buttonToggle.ts +75 -0
  17. package/src/modules/dx/cardCallout/cardCallout.ts +8 -4
  18. package/src/modules/dx/cardContent/cardContent.html +4 -1
  19. package/src/modules/dx/cardDocs/cardDocs.html +4 -1
  20. package/src/modules/dx/cardEvent/cardEvent.html +1 -2
  21. package/src/modules/dx/cardEvent/cardEvent.ts +1 -1
  22. package/src/modules/dx/cardExpanded/cardExpanded.html +1 -6
  23. package/src/modules/dx/cardExpanded/cardExpanded.ts +2 -2
  24. package/src/modules/dx/cardMinimal/cardMinimal.html +1 -6
  25. package/src/modules/dx/cardTrial/cardTrial.css +63 -4
  26. package/src/modules/dx/cardTrial/cardTrial.html +96 -12
  27. package/src/modules/dx/cardTrial/cardTrial.ts +70 -2
  28. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.css +149 -0
  29. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.html +85 -0
  30. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.ts +67 -0
  31. package/src/modules/dx/checkbox/checkbox.css +4 -0
  32. package/src/modules/dx/codeBlock/codeBlock.ts +5 -1
  33. package/src/modules/dx/dropdown/dropdown.html +5 -1
  34. package/src/modules/dx/dropdown/dropdown.ts +13 -3
  35. package/src/modules/dx/dropdownOption/dropdownOption.css +119 -1
  36. package/src/modules/dx/dropdownOption/dropdownOption.html +4 -0
  37. package/src/modules/dx/dropdownOption/dropdownOption.ts +20 -7
  38. package/src/modules/dx/feature/feature.ts +3 -3
  39. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +84 -18
  40. package/src/modules/dx/featuredContentHeader/featuredContentHeader.html +109 -99
  41. package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +27 -7
  42. package/src/modules/dx/featuresList/featuresList.css +1 -1
  43. package/src/modules/dx/filterMenu/filterMenu.css +26 -8
  44. package/src/modules/dx/filterMenu/filterMenu.html +24 -8
  45. package/src/modules/dx/filterMenu/filterMenu.ts +1 -0
  46. package/src/modules/dx/footer/footer.css +1 -1
  47. package/src/modules/dx/footer/footer.html +25 -20
  48. package/src/modules/dx/footer/footer.ts +19 -15
  49. package/src/modules/dx/footer/links.ts +115 -39
  50. package/src/modules/dx/formattedDateTime/formattedDateTime.ts +8 -3
  51. package/src/modules/dx/header/header.html +10 -3
  52. package/src/modules/dx/header/header.ts +4 -0
  53. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +1 -0
  54. package/src/modules/dx/headerSearch/headerSearch.html +0 -1
  55. package/src/modules/dx/hr/hr.css +2 -4
  56. package/src/modules/dx/iconBadge/iconBadge.css +12 -0
  57. package/src/modules/dx/iconBadge/iconBadge.html +2 -7
  58. package/src/modules/dx/iconBadge/iconBadge.ts +15 -5
  59. package/src/modules/dx/imageAndLabel/imageAndLabel.css +0 -1
  60. package/src/modules/dx/input/input.css +17 -1
  61. package/src/modules/dx/input/input.html +5 -1
  62. package/src/modules/dx/input/input.ts +8 -0
  63. package/src/modules/dx/interactiveImage/interactiveImage.css +59 -0
  64. package/src/modules/dx/interactiveImage/interactiveImage.html +32 -0
  65. package/src/modules/dx/interactiveImage/interactiveImage.ts +71 -0
  66. package/src/modules/dx/logo/logo.css +0 -1
  67. package/src/modules/dx/logo/logo.ts +1 -1
  68. package/src/modules/dx/metadataBadge/metadataBadge.css +41 -0
  69. package/src/modules/dx/metadataBadge/metadataBadge.html +5 -0
  70. package/src/modules/dx/metadataBadge/metadataBadge.ts +24 -0
  71. package/src/modules/dx/modal/modal.css +40 -0
  72. package/src/modules/dx/modal/modal.html +10 -0
  73. package/src/modules/dx/modal/modal.ts +50 -0
  74. package/src/modules/dx/modalDrawer/modalDrawer.html +2 -2
  75. package/src/modules/dx/modalDrawer/modalDrawer.ts +7 -1
  76. package/src/modules/dx/pagination/pagination.css +1 -2
  77. package/src/modules/dx/popover/popover.css +28 -3
  78. package/src/modules/dx/popover/popover.html +1 -0
  79. package/src/modules/dx/popover/popover.ts +83 -44
  80. package/src/modules/dx/searchResults/coveo.css +18989 -0
  81. package/src/modules/dx/searchResults/searchResults.css +387 -0
  82. package/src/modules/dx/searchResults/searchResults.html +104 -0
  83. package/src/modules/dx/searchResults/searchResults.ts +187 -0
  84. package/src/modules/dx/section/section.css +10 -1
  85. package/src/modules/dx/section/section.ts +1 -1
  86. package/src/modules/dx/select/select.css +7 -3
  87. package/src/modules/dx/sidebar/sidebar.css +1 -145
  88. package/src/modules/dx/sidebar/sidebar.ts +2 -0
  89. package/src/modules/dx/sidebarOld/sidebarOld.css +1 -145
  90. package/src/modules/dx/sidebarOld/sidebarOld.ts +2 -0
  91. package/src/modules/dx/sidebarSearch/sidebarSearch.ts +23 -3
  92. package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +1 -1
  93. package/src/modules/dx/tab/tab.css +0 -4
  94. package/src/modules/dx/tabPanel/tabPanel.css +20 -0
  95. package/src/modules/dx/tabPanel/tabPanel.html +13 -0
  96. package/src/modules/dx/tabPanel/tabPanel.ts +27 -0
  97. package/src/modules/dx/tabPanelItem/tabPanelItem.css +39 -0
  98. package/src/modules/dx/tabPanelItem/tabPanelItem.html +15 -0
  99. package/src/modules/dx/tabPanelItem/tabPanelItem.ts +39 -0
  100. package/src/modules/dx/tabPanelList/tabPanelList.css +35 -0
  101. package/src/modules/dx/tabPanelList/tabPanelList.html +47 -0
  102. package/src/modules/dx/tabPanelList/tabPanelList.ts +164 -0
  103. package/src/modules/dx/tabPanelList/uniqueId.ts +6 -0
  104. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.css +33 -0
  105. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.html +53 -0
  106. package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.ts +440 -0
  107. package/src/modules/dx/toc/toc.css +1 -0
  108. package/src/modules/dx/toc/toc.ts +13 -0
  109. package/src/modules/dx/treeItem/treeItem.html +2 -0
  110. package/src/modules/dx/treeItem/treeItem.ts +8 -6
  111. package/src/modules/dx/treeTile/treeTile.css +18 -18
  112. package/src/modules/dx/treeTile/treeTile.html +5 -4
  113. package/src/modules/dx/treeTile/treeTile.ts +17 -3
  114. package/src/modules/dx/typeBadge/typeBadge.css +15 -56
  115. package/src/modules/dx/typeBadge/typeBadge.html +6 -0
  116. package/src/modules/dx/typeBadge/typeBadge.ts +149 -46
  117. package/src/modules/dxBaseElements/archiveCard/archiveCard.ts +2 -6
  118. package/src/modules/dxBaseElements/headerBase/headerBase.ts +11 -1
  119. package/src/modules/dxConstants/brands/brands.ts +14 -0
  120. package/src/modules/dxConstants/colors/colors.ts +14 -0
  121. package/src/modules/dxConstants/contentTypes/contentTypes.ts +10 -0
  122. package/src/modules/dxHelpers/card/card.css +1 -1
  123. package/src/modules/dxHelpers/commonHeader/commonHeader.css +4 -3
  124. package/src/modules/dxHelpers/commonSidebar/commonSidebar.css +145 -0
  125. package/src/modules/dxHelpers/{sidebar/sidebar.css → commonTreeItem/commonTreeItem.css} +0 -0
  126. package/src/modules/dxUtils/async/async.ts +45 -0
  127. package/src/modules/dxUtils/constants/constants.ts +0 -13
  128. package/src/modules/dxUtils/css/css.ts +10 -0
  129. package/src/modules/dxUtils/lwc/lwc.ts +9 -0
  130. package/src/modules/dxUtils/prismjs/prismjs.ts +347 -9
  131. package/src/modules/dxUtils/queryCoordinator/queryCoordinator.ts +37 -11
  132. package/LICENSE +0 -12
  133. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.css +0 -12
  134. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.html +0 -11
  135. package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +0 -18
@@ -0,0 +1 @@
1
+ <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 397 322" width="397" height="322"><defs><clipPath clipPathUnits="userSpaceOnUse" id="cp1"><path d="m0 0h397v322h-397z"/></clipPath></defs><style>.a{fill:#3a49da}.b{fill:none;stroke:#90d0fe;stroke-width:2}.c{fill:none;stroke:#90d0fe;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.d{fill:none;stroke:#90d0fe;stroke-linecap:round;stroke-width:2}</style><g clip-path="url(#cp1)"><path class="a" d="m424.5 322c-207.1 0-374.5-167.4-374.5-374.5 0-207.1 167.4-374.5 374.5-374.5 207.1 0 374.5 167.4 374.5 374.5 0 207.1-167.4 374.5-374.5 374.5z"/><path class="b" d="m270 137c-5.5 0-10-4.5-10-10 0-5.5 4.5-10 10-10 5.5 0 10 4.5 10 10 0 5.5-4.5 10-10 10z"/><path class="c" d="m356.2 93.2c5.3-9.8 5.8-21.3 1.4-31.6"/><path class="c" d="m353.3 97.7c-10 13.4-27.9 19.1-44.4 14.2-16.4-5-27.6-19.5-27.6-36q0-2.7 0.4-5.3"/><path class="c" d="m282.9 65.2c4.6-14.3 17.5-24.8 33.2-26.6 15.6-1.9 30.9 5.2 38.9 18.1"/><path class="c" d="m291.6 70.4h-13.9"/><path class="c" d="m272.3 70.4h-3.3"/><path class="c" d="m374.5 57.3h-4.7"/><path class="c" d="m363.9 57.3h-14.5"/><path class="b" d="m364.6 58.2c-0.5 0-0.9-0.4-0.9-0.9 0-0.5 0.4-0.9 0.9-0.9 0.6 0 1 0.4 1 0.9 0 0.5-0.4 0.9-1 0.9z"/><path class="c" d="m363.5 97.5h-14.7"/><path class="c" d="m331.5 172l2.1 5.7q0.3 0.6 0.9 0.9l5.7 2.1c1.3 0.5 1.3 2.3 0 2.8l-5.7 2.1q-0.6 0.3-0.9 0.9l-2.1 5.7c-0.5 1.3-2.3 1.3-2.8 0l-2.1-5.7q-0.3-0.6-0.9-0.9l-5.7-2.1c-1.3-0.5-1.3-2.3 0-2.8l5.7-2.1q0.6-0.3 0.9-0.9l2.1-5.7c0.5-1.3 2.3-1.3 2.8 0z"/><path class="c" d="m162.4 32.6l3.4 9.3q0.5 1.1 1.5 1.5l9.3 3.4c2.1 0.8 2.1 3.8 0 4.6l-9.3 3.4q-1 0.4-1.5 1.5l-3.4 9.3c-0.8 2.1-3.8 2.1-4.6 0l-3.4-9.3q-0.5-1.1-1.5-1.5l-9.3-3.4c-2.1-0.8-2.1-3.8 0-4.6l9.3-3.4q1-0.4 1.5-1.5l3.4-9.3c0.8-2.1 3.8-2.1 4.6 0z"/><path class="c" d="m8 284v-16"/><path class="c" d="m16.1 276h-16.1"/><path class="d" d="m160 176h28"/><path class="d" d="m204 176h-9"/><path class="b" d="m200 106c-1.1 0-2-0.9-2-2 0-1.1 0.9-2 2-2 1.1 0 2 0.9 2 2 0 1.1-0.9 2-2 2z"/><path class="b" d="m150 246c-1.1 0-2-0.9-2-2 0-1.1 0.9-2 2-2 1.1 0 2 0.9 2 2 0 1.1-0.9 2-2 2z"/></g></svg>
@@ -0,0 +1,3 @@
1
+ <svg width="126" height="126" viewBox="0 0 126 126" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="63" cy="63" r="62" fill="white" stroke="#90D0FE" stroke-width="2"/>
3
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="45px" height="34px" viewBox="0 0 45 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>blog-cta-graphic-left</title>
4
+ <g id="Slack-App-CTA" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Blog---v1" transform="translate(-424.000000, -2216.000000)" stroke-width="2">
6
+ <g id="CTA-signup" transform="translate(52.000000, 2169.000000)">
7
+ <g id="blog-cta-graphic-left" transform="translate(373.000000, 47.500000)">
8
+ <circle id="Oval-Copy-12" stroke="#90D1FF" cx="39.5" cy="4.5" r="3.5"></circle>
9
+ <path d="M7.42619649,16.2472709 L5.80463043,20.6293714 C5.68941141,20.9429183 5.44197383,21.1894114 5.12842699,21.3046304 L0.747270909,22.9271409 C-0.249090303,23.295464 -0.249090303,24.704536 0.747270909,25.0738035 L5.12842699,26.6953696 C5.44197383,26.8105886 5.68941141,27.0570817 5.80463043,27.3706286 L7.42619649,31.7527291 C7.79546401,32.7490903 9.20453599,32.7490903 9.57285909,31.7527291 L11.1944252,27.3706286 C11.3096442,27.0570817 11.5570817,26.8105886 11.8706286,26.6953696 L16.2527291,25.0738035 C17.2481459,24.704536 17.2481459,23.295464 16.2527291,22.9271409 L11.8706286,21.3046304 C11.5570817,21.1894114 11.3096442,20.9429183 11.1944252,20.6293714 L9.57285909,16.2472709 C9.20453599,15.2509097 7.79546401,15.2509097 7.42619649,16.2472709 Z" id="Stroke-7-Copy-2" stroke="#8FD0FE" stroke-linecap="round" stroke-linejoin="round"></path>
10
+ </g>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="23px" height="22px" viewBox="0 0 23 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>blog-cta-graphic-right</title>
4
+ <g id="Slack-App-CTA" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
5
+ <g id="Blog---v1" transform="translate(-936.000000, -2378.000000)" stroke="#8FD0FE" stroke-width="2">
6
+ <g id="CTA-signup" transform="translate(52.000000, 2169.000000)">
7
+ <path d="M894.236764,210.879142 L892.329039,216.034555 C892.193488,216.403433 891.902385,216.693425 891.533506,216.828977 L886.379205,218.737813 C885.207015,219.171134 885.207015,220.828866 886.379205,221.263298 L891.533506,223.171023 C891.902385,223.306575 892.193488,223.596567 892.329039,223.965445 L894.236764,229.120858 C894.671197,230.293047 896.328928,230.293047 896.76225,229.120858 L898.669974,223.965445 C898.805526,223.596567 899.096629,223.306575 899.465508,223.171023 L904.62092,221.263298 C905.791999,220.828866 905.791999,219.171134 904.62092,218.737813 L899.465508,216.828977 C899.096629,216.693425 898.805526,216.403433 898.669974,216.034555 L896.76225,210.879142 C896.328928,209.706953 894.671197,209.706953 894.236764,210.879142 Z" id="blog-cta-graphic-right"></path>
8
+ </g>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="477" height="393" viewBox="0 0 477 393" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M475.962 306.74C475.962 309.003 474.129 310.836 471.866 310.836C469.604 310.836 467.771 309.003 467.771 306.74C467.771 304.478 469.604 302.644 471.866 302.644C474.129 302.644 475.962 304.478 475.962 306.74Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M98.9625 36.7401C98.9625 39.0031 97.1295 40.836 94.8665 40.836C92.6045 40.836 90.7715 39.0031 90.7715 36.7401C90.7715 34.4781 92.6045 32.644 94.8665 32.644C97.1295 32.644 98.9625 34.4781 98.9625 36.7401Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.95075 376.485L6.43275 380.586C6.32475 380.879 6.09375 381.11 5.80075 381.218L1.69975 382.736C0.76675 383.081 0.76675 384.4 1.69975 384.745L5.80075 386.262C6.09375 386.371 6.32475 386.602 6.43275 386.895L7.95075 390.996C8.29575 391.928 9.61475 391.928 9.95975 390.996L11.4768 386.895C11.5858 386.602 11.8167 386.371 12.1097 386.262L16.2107 384.745C17.1427 384.4 17.1427 383.081 16.2107 382.736L12.1097 381.218C11.8167 381.11 11.5858 380.879 11.4768 380.586L9.95975 376.485C9.61475 375.552 8.29575 375.552 7.95075 376.485Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M126.951 1.69975L125.433 5.80075C125.325 6.09475 125.094 6.32475 124.801 6.43275L120.7 7.95075C119.767 8.29675 119.767 9.61474 120.7 9.95974L124.801 11.4768C125.094 11.5858 125.325 11.8167 125.433 12.1097L126.951 16.2117C127.296 17.1427 128.615 17.1427 128.96 16.2117L130.477 12.1097C130.586 11.8167 130.817 11.5858 131.11 11.4768L135.211 9.95974C136.143 9.61474 136.143 8.29675 135.211 7.95075L131.11 6.43275C130.817 6.32475 130.586 6.09475 130.477 5.80075L128.96 1.69975C128.615 0.76675 127.296 0.76675 126.951 1.69975Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,26 @@
1
+ <svg width="562" height="325" viewBox="0 0 562 325" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_7706_186134)">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M88.8185 -16.518C88.8185 8.049 68.9035 27.964 44.3365 27.964C19.7695 27.964 -0.146484 8.049 -0.146484 -16.518C-0.146484 -41.084 19.7695 -61 44.3365 -61C68.9035 -61 88.8185 -41.084 88.8185 -16.518Z" stroke="#90D0FE" stroke-width="2"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M553.142 35.5865L551.624 39.6875C551.516 39.9815 551.286 40.2115 550.993 40.3195L546.891 41.8375C545.958 42.1835 545.958 43.5015 546.891 43.8465L550.993 45.3635C551.286 45.4725 551.516 45.7035 551.624 45.9965L553.142 50.0985C553.488 51.0295 554.806 51.0295 555.151 50.0985L556.668 45.9965C556.777 45.7035 557.008 45.4725 557.301 45.3635L561.403 43.8465C562.335 43.5015 562.335 42.1835 561.403 41.8375L557.301 40.3195C557.008 40.2115 556.777 39.9815 556.668 39.6875L555.151 35.5865C554.806 34.6535 553.488 34.6535 553.142 35.5865Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M252.008 244.108C246.009 232.496 242.621 219.315 242.621 205.343C242.621 193.94 244.878 183.064 248.969 173.137" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M410.92 193.214C411.488 197.175 411.782 201.225 411.782 205.343C411.782 252.056 373.915 289.923 327.202 289.923C298.728 289.923 273.538 275.852 258.211 254.283" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M254.555 162.004C269.323 137.303 296.331 120.764 327.202 120.764C365.504 120.764 397.86 146.223 408.27 181.142" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M398.511 85.7866L395.059 95.1156C394.813 95.7826 394.286 96.3075 393.619 96.5555L384.29 100.008C382.169 100.792 382.169 103.792 384.29 104.577L393.619 108.029C394.286 108.276 394.813 108.802 395.059 109.469L398.511 118.798C399.296 120.919 402.296 120.919 403.08 118.798L406.532 109.469C406.78 108.802 407.305 108.276 407.972 108.029L417.301 104.577C419.422 103.792 419.422 100.792 417.301 100.008L407.972 96.5555C407.305 96.3075 406.78 95.7826 406.532 95.1156L403.08 85.7866C402.296 83.6656 399.296 83.6656 398.511 85.7866Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
9
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M262.252 314.385C262.252 320.076 257.638 324.69 251.946 324.69C246.255 324.69 241.641 320.076 241.641 314.385C241.641 308.693 246.255 304.079 251.946 304.079C257.638 304.079 262.252 308.693 262.252 314.385Z" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M327.116 162.502C327.116 165.278 324.865 167.529 322.09 167.529C319.313 167.529 317.062 165.278 317.062 162.502C317.062 159.727 319.313 157.476 322.09 157.476C324.865 157.476 327.116 159.727 327.116 162.502Z" fill="#90D0FE"/>
11
+ <path d="M389.715 192.771H419.487" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
12
+ <path d="M430.93 192.771H438.019" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
13
+ <path d="M245.277 163.33H268.519" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
14
+ <path d="M213.107 163.33H223.16" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
15
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M236.056 163.33C236.056 164.441 235.156 165.341 234.045 165.341C232.935 165.341 232.035 164.441 232.035 163.33C232.035 162.22 232.935 161.32 234.045 161.32C235.156 161.32 236.056 162.22 236.056 163.33Z" fill="#90D0FE"/>
16
+ <path d="M236.424 253.626H267.833" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
17
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M279.898 253.627C279.898 254.737 278.998 255.638 277.887 255.638C276.777 255.638 275.877 254.737 275.877 253.627C275.877 252.517 276.777 251.616 277.887 251.616C278.998 251.616 279.898 252.517 279.898 253.627Z" fill="#90D0FE"/>
18
+ <path d="M356.52 230.398V214.362" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
19
+ <path d="M364.535 222.382L348.484 222.384" stroke="#90D0FE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
20
+ </g>
21
+ <defs>
22
+ <clipPath id="clip0_7706_186134">
23
+ <rect width="562" height="325" fill="white"/>
24
+ </clipPath>
25
+ </defs>
26
+ </svg>
@@ -0,0 +1,12 @@
1
+ import { LightningElement, api } from "lwc";
2
+ import { setContainerInnerHtml } from "dxUtils/lwc";
3
+
4
+ export default class Banner extends LightningElement {
5
+ @api bannerMarkup =
6
+ 'Thank you for visiting the Salesforce Developers website! <span><a href="https://forms.gle/oWYTbH9RvGyt9uxx7" target="blank">We value your feedback</a></span>';
7
+
8
+ renderedCallback() {
9
+ const container = this.template.querySelector(".info-container");
10
+ setContainerInnerHtml(container, this.bannerMarkup);
11
+ }
12
+ }
@@ -1,14 +1,12 @@
1
1
  import { LightningElement, api } from "lwc";
2
+ import { setContainerInnerHtml } from "dxUtils/lwc";
2
3
 
3
4
  export default class Banner extends LightningElement {
4
5
  @api bannerMarkup =
5
6
  '<span><a href="https://forms.gle/TdSyKFPHXoBx7seM9" target="blank">Share your feedback</a>about our new site.</span>';
6
7
 
7
- renderedCallback(){
8
+ renderedCallback() {
8
9
  const container = this.template.querySelector(".info-container");
9
- if(container){
10
- // eslint-disable-next-line @lwc/lwc/no-inner-html
11
- container.innerHTML = this.bannerMarkup
12
- }
10
+ setContainerInnerHtml(container, this.bannerMarkup);
13
11
  }
14
12
  }
@@ -4,6 +4,7 @@
4
4
  width: min-content;
5
5
  font-size: inherit;
6
6
 
7
+ --dx-c-button-background-color: transparent;
7
8
  --dx-c-button-primary-color: var(--dx-g-blue-vibrant-50);
8
9
  --dx-c-button-primary-color-hover: var(--dx-g-blue-vibrant-40);
9
10
  --dx-c-button-secondary-color-hover: var(--dx-g-cloud-blue-vibrant-90);
@@ -11,20 +12,25 @@
11
12
  --dx-c-button-justify-content: center;
12
13
  --dx-c-button-opacity: 1;
13
14
  --dx-c-button-font-size: var(--dx-g-text-sm);
15
+ --dx-c-button-font-weight: var(--dx-g-font-normal);
16
+ --dx-c-button-display: flex;
14
17
  }
15
18
 
16
19
  .button {
20
+ background-color: var(--dx-c-button-background-color);
17
21
  opacity: var(--dx-c-button-opacity);
18
22
  width: inherit;
19
- display: flex;
23
+ display: var(--dx-c-button-display);
20
24
  align-items: center;
21
25
  justify-content: var(--dx-c-button-justify-content);
22
26
  user-select: none;
23
27
  white-space: nowrap;
24
28
  font-size: var(--dx-c-button-font-size);
25
29
  transition: var(--dx-g-transition-hue-1x);
26
- padding: 0 var(--dx-c-button-horizontal-spacing, var(--dx-g-spacing-md));
30
+ padding: var(--dx-c-button-vertical-spacing, 0)
31
+ var(--dx-c-button-horizontal-spacing, var(--dx-g-spacing-md));
27
32
  border-radius: var(--dx-g-spacing-xs);
33
+ font-weight: var(--dx-c-button-font-weight);
28
34
  }
29
35
 
30
36
  .button:focus {
@@ -49,23 +55,18 @@
49
55
  .button.variant_inline dx-icon,
50
56
  .button.variant_inline-inherit dx-icon {
51
57
  display: inline-block;
52
- transform: translate(0, -2px);
53
58
  }
54
59
 
55
60
  .button > span {
56
61
  font-family: inherit;
57
62
  font-size: inherit;
63
+ font-weight: inherit;
58
64
  }
59
65
 
60
66
  .button:not(.variant_inline-inherit).font-display {
61
67
  font-family: var(--dx-g-font-display);
62
68
  }
63
69
 
64
- .button.font-display:not(.variant_inline):not(.variant_inline-inherit) > span {
65
- /* offset accounts for display font's ghost padding */
66
- margin-top: 5px;
67
- }
68
-
69
70
  .button.font-sans {
70
71
  font-family: var(--dx-g-font-sans);
71
72
  }
@@ -135,7 +136,7 @@
135
136
 
136
137
  .button.variant_secondary {
137
138
  color: var(--dx-c-button-primary-color);
138
- background: transparent;
139
+ background: var(--dx-c-button-background-color);
139
140
  border: 1px solid var(--dx-c-button-primary-color);
140
141
  }
141
142
 
@@ -0,0 +1,50 @@
1
+ @import "dxHelpers/reset";
2
+
3
+ button {
4
+ border: 2px solid var(--dx-g-gray-50);
5
+ border-radius: 4px;
6
+ color: var(--dx-g-gray-50);
7
+ font-family: var(--dx-g-font-sans);
8
+ font-size: var(--dx-g-text-sm);
9
+ font-weight: var(--dx-g-font-bold);
10
+ padding: var(--dx-g-spacing-xs) var(--dx-g-spacing-smd);
11
+ }
12
+
13
+ button:focus {
14
+ outline: 5px solid var(--dx-g-blue-vibrant-60);
15
+ border-color: var(--dx-g-blue-vibrant-50);
16
+ }
17
+
18
+ button:hover {
19
+ border-color: var(--dx-g-blue-vibrant-20);
20
+ }
21
+
22
+ button:focus,
23
+ button:hover {
24
+ background-color: var(--dx-g-blue-vibrant-95);
25
+ color: var(--dx-g-blue-vibrant-20);
26
+ }
27
+
28
+ button:disabled,
29
+ button:disabled:hover {
30
+ background-color: var(--dx-g-gray-80);
31
+ border-color: var(--dx-g-gray-80);
32
+ color: white;
33
+ cursor: default;
34
+ }
35
+
36
+ button:focus:hover {
37
+ border-color: var(--dx-g-blue-vibrant-50);
38
+ }
39
+
40
+ .label-container {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 5px;
44
+ }
45
+
46
+ .pressed {
47
+ background-color: var(--sds-g-gray-14);
48
+ border-color: var(--sds-g-gray-14);
49
+ color: white;
50
+ }
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <button
3
+ aria-labelledby="label"
4
+ class={className}
5
+ onclick={handleMouseEvent}
6
+ onmouseenter={handleMouseEvent}
7
+ onmouseleave={handleMouseEvent}
8
+ onfocus={handleMouseEvent}
9
+ onblur={handleMouseEvent}
10
+ disabled={disabled}
11
+ >
12
+ <div class="label-container">
13
+ <span id="label">{label}</span>
14
+ <dx-icon sprite="utility" symbol={symbol} size="small"></dx-icon>
15
+ </div>
16
+ </button>
17
+ </template>
@@ -0,0 +1,75 @@
1
+ import { LightningElement, api } from "lwc";
2
+ import cx from "classnames";
3
+ import { normalizeBoolean } from "dxUtils/normalizers";
4
+
5
+ export default class ButtonToggle extends LightningElement {
6
+ @api label!: string;
7
+
8
+ @api
9
+ get value() {
10
+ return this._value;
11
+ }
12
+ set value(value: boolean) {
13
+ this._value = normalizeBoolean(value);
14
+ }
15
+
16
+ @api
17
+ get disabled() {
18
+ return this._disabled;
19
+ }
20
+ set disabled(value: boolean) {
21
+ this._disabled = normalizeBoolean(value);
22
+ }
23
+
24
+ private _value = false;
25
+ private _disabled = false;
26
+ private mouseHovering = false;
27
+ private hasFocus = false;
28
+
29
+ private get className(): string {
30
+ return cx(this.value && "pressed");
31
+ }
32
+
33
+ private get symbol() {
34
+ if (
35
+ (this.value && this.mouseHovering && !this.hasFocus) ||
36
+ (this.value && this.hasFocus)
37
+ ) {
38
+ return "close";
39
+ } else if (this.value) {
40
+ return "check";
41
+ }
42
+
43
+ return "add";
44
+ }
45
+
46
+ private handleMouseEvent(e: MouseEvent) {
47
+ switch (e.type) {
48
+ case "click":
49
+ this._value = !this._value;
50
+ this.dispatchEvent(
51
+ new CustomEvent("toggle", {
52
+ detail: {
53
+ label: this.label,
54
+ value: this.value
55
+ }
56
+ })
57
+ );
58
+ break;
59
+ case "mouseenter":
60
+ this.mouseHovering = true;
61
+ break;
62
+ case "mouseleave":
63
+ this.mouseHovering = false;
64
+ break;
65
+ case "focus":
66
+ this.hasFocus = true;
67
+ break;
68
+ case "blur":
69
+ this.hasFocus = false;
70
+ break;
71
+ default:
72
+ break;
73
+ }
74
+ }
75
+ }
@@ -3,6 +3,8 @@ import cx from "classnames";
3
3
  import { toDxColor } from "dxUtils/css";
4
4
  import { track } from "dxUtils/analytics";
5
5
 
6
+ export const ANALYTICS_EVENT_NAME = "custEv_ctaLinkClick";
7
+
6
8
  export default class CardCallout extends LightningElement {
7
9
  @api backgroundColor: string = "indigo-vibrant-40";
8
10
  @api color: string = "white";
@@ -28,10 +30,12 @@ export default class CardCallout extends LightningElement {
28
30
  }
29
31
 
30
32
  private sendGtm(e: PointerEvent) {
31
- track(e.currentTarget, "custEv_ctaLinkClick", {
32
- content_type: "callout",
33
- item_title: this.title,
34
- item_location: this.href
33
+ track(e.currentTarget, ANALYTICS_EVENT_NAME, {
34
+ clickURL: this.href,
35
+ itemTitle: this.title,
36
+ clickText: this.label,
37
+ elementType: "card callout",
38
+ destinationType: "internal"
35
39
  });
36
40
  }
37
41
  }
@@ -20,7 +20,10 @@
20
20
  />
21
21
  </a>
22
22
  <div
23
- class="dx-card-base_section-vertical dx-card-base_column card_section-text"
23
+ class="
24
+ dx-card-base_section-vertical dx-card-base_column
25
+ card_section-text
26
+ "
24
27
  >
25
28
  <span if:true={label} part="label" class="label dx-text-label-3">
26
29
  {label}
@@ -7,7 +7,10 @@
7
7
  class="image dx-card-base_image"
8
8
  />
9
9
  <div
10
- class="dx-card-base_section-vertical dx-card-base_column card_section-text"
10
+ class="
11
+ dx-card-base_section-vertical dx-card-base_column
12
+ card_section-text
13
+ "
11
14
  >
12
15
  <span class="dx-text-label-3">{label}</span>
13
16
  <dx-card-title title={title} target={target}></dx-card-title>
@@ -44,8 +44,7 @@
44
44
  {location}
45
45
  </span>
46
46
  <dx-type-badge
47
- color={brandType}
48
- type="content-type"
47
+ color={typeBadgeColor}
49
48
  value={type}
50
49
  if:true={type}
51
50
  ></dx-type-badge>
@@ -36,7 +36,7 @@ export default class CardEvent extends LightningElement {
36
36
  this.isLinkHovered = false;
37
37
  }
38
38
 
39
- private get brandType() {
39
+ private get typeBadgeColor() {
40
40
  return this.type === "Webinar" ? "green" : "red";
41
41
  }
42
42
  }
@@ -1,11 +1,6 @@
1
1
  <template>
2
2
  <div class={containerClass}>
3
- <dx-type-badge
4
- color={badgeColor}
5
- type="content-type"
6
- value={contentType}
7
- size={badgeSize}
8
- ></dx-type-badge>
3
+ <dx-type-badge variant={contentType} size={badgeSize}></dx-type-badge>
9
4
  <dx-card-title
10
5
  if:true={title}
11
6
  href={href}
@@ -10,8 +10,8 @@ export default class ExpandedCard extends ArchiveCard {
10
10
  @api authorImgSrc?: string | null = null;
11
11
  @api length?: string;
12
12
 
13
- private get isBlog() {
14
- return this.contentType === "Blog";
13
+ private get isBlog(): boolean {
14
+ return this.contentType === "blog";
15
15
  }
16
16
 
17
17
  private get hasAuthor(): boolean {
@@ -3,11 +3,6 @@
3
3
  <a class="dx-text-truncate" href={href} target={target}>
4
4
  <h4>{title}</h4>
5
5
  </a>
6
- <dx-type-badge
7
- color={badgeColor}
8
- size={badgeSize}
9
- type="content-type"
10
- value={contentType}
11
- ></dx-type-badge>
6
+ <dx-type-badge variant={contentType} size={badgeSize}></dx-type-badge>
12
7
  </div>
13
8
  </template>
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .card-trial.has-image {
12
- padding-bottom: 80px;
12
+ padding-bottom: 90px;
13
13
  }
14
14
 
15
15
  dx-icon-badge.badge-main {
@@ -20,7 +20,9 @@ dx-icon-badge.badge-main {
20
20
  }
21
21
 
22
22
  .label {
23
- margin-bottom: var(--dx-g-spacing-sm);
23
+ color: var(--dx-g-gray-30);
24
+ margin-top: 5px;
25
+ margin-bottom: var(--dx-g-spacing-md);
24
26
  }
25
27
 
26
28
  dx-card-title {
@@ -28,10 +30,11 @@ dx-card-title {
28
30
  }
29
31
 
30
32
  .body {
31
- margin-bottom: var(--dx-g-spacing-sm);
33
+ margin-bottom: var(--dx-g-spacing-md);
32
34
  }
33
35
 
34
36
  .terms {
37
+ margin-top: auto;
35
38
  font-weight: var(--dx-g-font-bold);
36
39
  }
37
40
 
@@ -46,6 +49,10 @@ dx-hr {
46
49
  flex-direction: column;
47
50
  }
48
51
 
52
+ .details_top-margin {
53
+ margin-top: var(--dx-g-spacing-lg);
54
+ }
55
+
49
56
  .detail {
50
57
  display: flex;
51
58
  flex-direction: row;
@@ -67,5 +74,57 @@ img {
67
74
  position: absolute;
68
75
  bottom: 0;
69
76
  right: var(--dx-g-spacing-mlg);
70
- width: var(--dx-g-spacing-6xl);
77
+ }
78
+
79
+ dx-button {
80
+ --dx-c-button-font-size: var(--dx-g-text-base);
81
+ --dx-c-button-font-weight: var(--dx-g-font-bold);
82
+ }
83
+
84
+ .recommended-container {
85
+ background-color: var(--dx-g-blue-vibrant-50);
86
+ border-radius: var(--dx-g-card-border-radius) var(--dx-g-card-border-radius)
87
+ 0 0;
88
+ height: var(--dx-g-spacing-3xl);
89
+ display: flex;
90
+ justify-content: center;
91
+ align-items: center;
92
+ }
93
+
94
+ .recommended-label {
95
+ color: white;
96
+ font-family: var(--dx-g-font-sans);
97
+ font-weight: var(--dx-g-font-bold);
98
+ font-size: var(--dx-g-text-base);
99
+ }
100
+
101
+ div.card-trial.recommended-border {
102
+ border: 3px solid var(--dx-g-blue-vibrant-50);
103
+ border-radius: 0 0 var(--dx-g-card-border-radius)
104
+ var(--dx-g-card-border-radius);
105
+ }
106
+
107
+ .recommended-border .top-text {
108
+ margin-top: var(--dx-g-spacing-mlg);
109
+ }
110
+
111
+ .top-text {
112
+ color: var(--dx-g-gray-30);
113
+ }
114
+
115
+ .badge-container {
116
+ display: flex;
117
+ justify-content: space-between;
118
+ }
119
+
120
+ .button-container {
121
+ display: flex;
122
+ justify-content: space-between;
123
+ gap: 10px;
124
+ }
125
+
126
+ .button-one,
127
+ .button-two {
128
+ margin-top: 15px;
129
+ width: 100%;
71
130
  }