@salesforcedevs/dw-components 0.0.0 → 0.0.1

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 (75) hide show
  1. package/lwc.config.json +10 -1
  2. package/package.json +8 -4
  3. package/src/modules/dw/blogsGrid/blogsGrid.css +10 -7
  4. package/src/modules/dw/blogsGrid/blogsGrid.html +15 -12
  5. package/src/modules/dw/blogsGrid/blogsGrid.ts +23 -9
  6. package/src/modules/dw/browseTrials/browseTrials.css +35 -0
  7. package/src/modules/dw/browseTrials/browseTrials.html +86 -0
  8. package/src/modules/dw/browseTrials/browseTrials.ts +116 -0
  9. package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.css +2 -0
  10. package/src/modules/dw/cardBlogPostProvider/cardBlogPostProvider.html +3 -3
  11. package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.css +2 -0
  12. package/src/modules/dw/cardPodcastEpisodeProvider/cardPodcastEpisodeProvider.html +2 -1
  13. package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.css +6 -8
  14. package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.html +11 -7
  15. package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +71 -40
  16. package/src/modules/dw/contentArchive/contentArchive.css +5 -4
  17. package/src/modules/dw/contentArchive/contentArchive.html +58 -24
  18. package/src/modules/dw/contentArchive/contentArchive.ts +46 -8
  19. package/src/modules/dw/contentArchive/contentArchive.types.ts +8 -4
  20. package/src/modules/dw/contentArchive/utils.ts +30 -14
  21. package/src/modules/dw/deSignupForm/deSignupForm.css +11 -10
  22. package/src/modules/dw/deSignupForm/deSignupForm.html +39 -25
  23. package/src/modules/dw/deSignupForm/deSignupForm.ts +200 -133
  24. package/src/modules/dw/deSignupForm/submitForm.ts +7 -3
  25. package/src/modules/dw/docsGrid/docsGrid.css +0 -1
  26. package/src/modules/dw/docsGrid/docsGrid.html +6 -2
  27. package/src/modules/dw/docsGrid/docsGrid.ts +103 -38
  28. package/src/modules/dw/eventsList/eventsList.css +4 -4
  29. package/src/modules/dw/eventsList/eventsList.html +5 -5
  30. package/src/modules/dw/eventsList/eventsList.ts +47 -48
  31. package/src/modules/dw/j2sCardSequence/j2sCardSequence.css +14 -0
  32. package/src/modules/dw/j2sCardSequence/j2sCardSequence.html +41 -0
  33. package/src/modules/dw/j2sCardSequence/j2sCardSequence.ts +487 -0
  34. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.css +76 -0
  35. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.html +64 -0
  36. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.ts +157 -0
  37. package/src/modules/dw/j2sForm/j2sForm.css +65 -0
  38. package/src/modules/dw/j2sForm/j2sForm.html +217 -0
  39. package/src/modules/dw/j2sForm/j2sForm.ts +371 -0
  40. package/src/modules/dw/j2sForm/mockProps.ts +3102 -0
  41. package/src/modules/dw/languageSelector/languageSelector.html +11 -0
  42. package/src/modules/dw/languageSelector/languageSelector.ts +106 -0
  43. package/src/modules/dw/newsletterForm/newsletterForm.css +2 -2
  44. package/src/modules/dw/newsletterForm/newsletterForm.html +35 -10
  45. package/src/modules/dw/newsletterForm/newsletterForm.ts +107 -78
  46. package/src/modules/dw/podcastSubscription/podcastSubscription.css +6 -7
  47. package/src/modules/dw/podcastSubscription/podcastSubscription.html +2 -2
  48. package/src/modules/dw/podcastSubscription/podcastSubscription.ts +4 -4
  49. package/src/modules/dw/podcastsGrid/podcastsGrid.css +7 -0
  50. package/src/modules/dw/podcastsGrid/podcastsGrid.html +6 -1
  51. package/src/modules/dw/podcastsGrid/podcastsGrid.ts +3 -3
  52. package/src/modules/dw/podcastsPromo/podcastsPromo.css +14 -0
  53. package/src/modules/dw/podcastsPromo/podcastsPromo.html +16 -8
  54. package/src/modules/dw/podcastsPromo/podcastsPromo.ts +11 -2
  55. package/src/modules/dw/rcgTable/altData.ts +72 -9
  56. package/src/modules/dw/rcgTable/getTableData.ts +1 -1
  57. package/src/modules/dw/rcgTable/rcgTable.ts +3 -3
  58. package/src/modules/dw/slackCta/slackCta.css +5 -6
  59. package/src/modules/dw/slackCta/slackCta.html +1 -1
  60. package/src/modules/dw/slackSuccess/slackSuccess.css +1 -1
  61. package/src/modules/dw/slackSuccess/slackSuccess.html +2 -2
  62. package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.css +119 -0
  63. package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.html +192 -0
  64. package/src/modules/dw/tbidLoginMenu/tbidLoginMenu.ts +148 -0
  65. package/src/modules/dw/videoGrid/types.ts +12 -0
  66. package/src/modules/dw/videoGrid/videoGrid.css +24 -0
  67. package/src/modules/dw/videoGrid/videoGrid.html +41 -0
  68. package/src/modules/dw/videoGrid/videoGrid.ts +41 -0
  69. package/src/modules/dw/youtubeVideoGrid/types.ts +8 -0
  70. package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.css +14 -0
  71. package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.html +24 -0
  72. package/src/modules/dw/youtubeVideoGrid/youtubeVideoGrid.ts +66 -0
  73. package/src/modules/dwHelpers/mobileDividers/mobileDividers.css +19 -0
  74. package/src/modules/dwUtils/forms/forms.ts +514 -0
  75. package/src/modules/{dwBaseElements → dwUtils}/postsGrid/postsGrid.ts +10 -13
package/lwc.config.json CHANGED
@@ -5,6 +5,9 @@
5
5
  ],
6
6
  "expose": [
7
7
  "dw/blogsGrid",
8
+ "dw/videoGrid",
9
+ "dw/youtubeVideoGrid",
10
+ "dw/browseTrials",
8
11
  "dw/cardBlogPostProvider",
9
12
  "dw/cardPodcastEpisodeProvider",
10
13
  "dw/codeSamplesGrid",
@@ -13,12 +16,18 @@
13
16
  "dw/docsGrid",
14
17
  "dw/eventsList",
15
18
  "dw/instrumentation",
19
+ "dw/j2sCardSequence",
20
+ "dw/j2sCardSequenceStep",
21
+ "dw/j2sForm",
22
+ "dw/languageSelector",
16
23
  "dw/newsletterForm",
17
24
  "dw/podcastSubscription",
18
25
  "dw/podcastsGrid",
19
26
  "dw/podcastsPromo",
20
27
  "dw/rcgTable",
21
28
  "dw/slackCta",
22
- "dw/slackSuccess"
29
+ "dw/slackSuccess",
30
+ "dw/tbidLoginMenu",
31
+ "dwUtils/forms"
23
32
  ]
24
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dw-components",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "Lightning web components for https://developer.salesforce.com",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -10,17 +10,21 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
+ "@types/youtube-player": "^5.5.11",
13
14
  "classnames": "^2.2.6",
14
15
  "lodash.clonedeep": "^4.5.0",
15
16
  "lodash.orderby": "^4.6.0",
16
17
  "lodash.uniqby": "^4.7.0",
17
- "query-string": "^7.1.1"
18
+ "query-string": "^7.1.3",
19
+ "youtube-player": "^5.6.0"
18
20
  },
19
21
  "devDependencies": {
20
22
  "@types/classnames": "^2.2.10",
21
23
  "@types/lodash.clonedeep": "^4.5.7",
22
24
  "@types/lodash.orderby": "^4.6.7",
23
- "@types/lodash.uniqby": "^4.7.7"
25
+ "@types/lodash.uniqby": "^4.7.7",
26
+ "@types/setimmediate": "^1.0.2",
27
+ "setimmediate": "^1.0.5"
24
28
  },
25
- "gitHead": "28224ddff4bbcb00044ecca05aea6f6511b4eccc"
29
+ "gitHead": "deaeb3bcc945d1193082f046ec6cf97ace568302"
26
30
  }
@@ -1,4 +1,5 @@
1
1
  @import "dwHelpers/postsGrid";
2
+ @import "dwHelpers/mobileDividers";
2
3
 
3
4
  :host {
4
5
  --dx-c-post-list-padding-horizontal: var(--dx-g-page-padding-horizontal);
@@ -23,10 +24,6 @@ dx-section.section-reduced-padding {
23
24
  line-height: 32px;
24
25
  width: 500px;
25
26
  }
26
-
27
- .box {
28
- height: 162px;
29
- }
30
27
  }
31
28
 
32
29
  @media only screen and (max-width: 640px) {
@@ -39,7 +36,6 @@ dx-section.section-reduced-padding {
39
36
  }
40
37
 
41
38
  .box {
42
- height: 162px;
43
39
  background-position: 0% 25%, 90% 75%;
44
40
  }
45
41
  }
@@ -72,8 +68,8 @@ dx-section.section-reduced-padding {
72
68
  }
73
69
 
74
70
  .box {
75
- background-image: url("/assets/svg/subscribe-background-left.svg"),
76
- url("/assets/svg/subscribe-background-right.svg");
71
+ background-image: url("https://a.sfdcstatic.com/developer-website/images/subscribe-background-left.svg"),
72
+ url("https://a.sfdcstatic.com/developer-website/images/subscribe-background-right.svg");
77
73
  background-position: 4% 25%, 90% 60%;
78
74
  background-repeat: no-repeat;
79
75
  width: 100%;
@@ -87,3 +83,10 @@ dx-section.section-reduced-padding {
87
83
  h2 {
88
84
  padding: 0;
89
85
  }
86
+
87
+ /* MOBILE BREAKPOINT FOR POSTS */
88
+ @media screen and (max-width: 600px) {
89
+ .mobile-divider_posts:last-child {
90
+ display: none;
91
+ }
92
+ }
@@ -5,10 +5,8 @@
5
5
  <div class="subscription-box">
6
6
  <div class="box">
7
7
  <div class="content">
8
- <h2 class="title">
9
- Get the latest Salesforce Developer blog posts and
10
- podcast episodes via Slack or RSS.
11
- </h2>
8
+ <h2 class="title">{rssTitle}</h2>
9
+ <p lwc:if={rssBody}>{rssBody}</p>
12
10
  <div class="cta-container">
13
11
  <dx-button
14
12
  size="small"
@@ -19,7 +17,7 @@
19
17
  href="/slack/install"
20
18
  class="button"
21
19
  >
22
- Add to Slack
20
+ {rssBtnOneLabel}
23
21
  </dx-button>
24
22
  <dx-button
25
23
  size="small"
@@ -29,8 +27,9 @@
29
27
  icon-sprite="general"
30
28
  href="https://developer.salesforce.com/blogs/feed"
31
29
  class="button"
30
+ onclick={rssOnClick}
32
31
  >
33
- Subscribe to RSS
32
+ {rssBtnTwoLabel}
34
33
  </dx-button>
35
34
  </div>
36
35
  </div>
@@ -44,30 +43,34 @@
44
43
  <dx-grid columns={columns}>
45
44
  <template for:each={postList} for:item="post">
46
45
  <dx-card-blog-post
47
- author-img-src={post.authorImgSrc}
48
- author-label={post.authorName}
46
+ authors={post.authors}
49
47
  body={post.body}
50
48
  datetime={post.datetime}
51
49
  href={post.href}
52
50
  img-alt={post.imgAlt}
53
51
  img-src={post.imgSrc}
54
52
  key={post.id}
55
- title={post.title}
53
+ header={post.title}
56
54
  ></dx-card-blog-post>
55
+ <dx-hr
56
+ spacing="2xs"
57
+ class="mobile-divider_posts"
58
+ key={post.id}
59
+ ></dx-hr>
57
60
  </template>
58
61
  </dx-grid>
59
62
  <dx-hr
60
63
  if:true={showLoadMore}
61
64
  onclick={onClick}
62
65
  variant="load-more"
63
- text="SHOW MORE"
66
+ text={showMoreLabel}
64
67
  ></dx-hr>
65
68
  <dx-hr
66
69
  if:true={showArchives}
67
70
  onclick={onClick}
68
71
  variant="link"
69
- href="/content-archive?content-type=Blogs"
70
- text="VIEW ARCHIVES"
72
+ href={archiveCta}
73
+ text={viewArchivesLabel}
71
74
  ></dx-hr>
72
75
  </div>
73
76
  </template>
@@ -1,20 +1,28 @@
1
+ import { api } from "lwc";
1
2
  import { normalizePost } from "dxUtils/normalizers";
2
3
  import { track } from "dxUtils/analytics";
3
4
  import { WordpressBlogPost, NormalizedPost } from "typings/custom";
4
- import { PostsGrid } from "dwBaseElements/postsGrid";
5
+ import { PostsGrid } from "dwUtils/postsGrid";
5
6
 
6
7
  const BLOG_SUBSCRIBE_HREF = "https://developer.salesforce.com/blogs/feed";
7
8
 
8
9
  const ANALYTICS_INFO = {
9
- itemTitle: "Blogs RSS Subscribe Button",
10
- elementType: "button",
11
- destinationType: "internal",
12
- clickText: "Subscribe",
13
- clickUrl: BLOG_SUBSCRIBE_HREF,
14
- ctaClick: true
10
+ click_text: "Subscribe to RSS",
11
+ element_title: "Subscribe to RSS",
12
+ click_url: BLOG_SUBSCRIBE_HREF,
13
+ content_category: "cta"
15
14
  };
16
15
 
17
16
  export default class BlogsGrid extends PostsGrid {
17
+ @api showMoreLabel = "SHOW MORE";
18
+ @api viewArchivesLabel = "VIEW ARCHIVES";
19
+ @api rssTitle =
20
+ "Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.";
21
+ @api rssBody?: string;
22
+ @api rssBtnOneLabel = "Add to Slack";
23
+ @api rssBtnTwoLabel = "Subscribe to RSS";
24
+ @api archiveCta = "/content-archive?content-type=Blogs";
25
+
18
26
  _loadMoreAmount = 21;
19
27
 
20
28
  normalizePost(post: WordpressBlogPost): NormalizedPost {
@@ -22,7 +30,13 @@ export default class BlogsGrid extends PostsGrid {
22
30
  }
23
31
 
24
32
  rssOnClick(event: Event): void {
25
- track(event.target!, "custEv_ctaButtonClick", ANALYTICS_INFO);
26
- window.location.href = BLOG_SUBSCRIBE_HREF;
33
+ track(event.target!, "custEv_ctaButtonClick", {
34
+ ...ANALYTICS_INFO,
35
+ element_type: "button"
36
+ });
37
+ track(event.target!, "custEv_linkClick", {
38
+ ...ANALYTICS_INFO,
39
+ element_type: "link"
40
+ });
27
41
  }
28
42
  }
@@ -0,0 +1,35 @@
1
+ @import "dxHelpers/reset";
2
+ @import "dxHelpers/text";
3
+
4
+ :host {
5
+ --dw-browse-trials-padding-top: 0;
6
+ --dw-browse-trials-padding-bottom: 0;
7
+ }
8
+
9
+ .category-section {
10
+ --dx-c-section-padding-horizontal: 0;
11
+ --dx-c-section-padding-bottom: 0;
12
+ --dx-c-section-padding-top: var(--dx-g-spacing-4xl);
13
+ }
14
+
15
+ .panel-list-container {
16
+ padding: var(--dw-browse-trials-padding-top)
17
+ var(--dx-g-page-padding-horizontal)
18
+ var(--dw-browse-trials-padding-bottom)
19
+ var(--dx-g-page-padding-horizontal);
20
+ }
21
+
22
+ dx-tab-panel-list {
23
+ --dx-c-tab-panel-list-horizontal-padding: 0;
24
+ }
25
+
26
+ .category-text-container {
27
+ width: 100%;
28
+ }
29
+
30
+ .button-toggle-container {
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ gap: var(--dx-g-spacing-md);
34
+ margin-top: var(--dx-g-spacing-3xl);
35
+ }
@@ -0,0 +1,86 @@
1
+ <template>
2
+ <dx-section header={header}>
3
+ <dx-tab-panel-list
4
+ tabs={tabLabels}
5
+ onchange={handleTabChange}
6
+ initial-index={activeTabIndex}
7
+ >
8
+ <template for:each={trials} for:item="trial">
9
+ <dx-tab-panel key={trial.label}>
10
+ <div
11
+ key={trial.label}
12
+ class="button-toggle-container"
13
+ if:false={trial.hideFilters}
14
+ >
15
+ <template
16
+ for:each={buttonToggleStates}
17
+ for:item="buttonToggleState"
18
+ >
19
+ <dx-button-toggle
20
+ label={buttonToggleState.label}
21
+ key={buttonToggleState.label}
22
+ value={buttonToggleState.value}
23
+ ontoggle={handleFilters}
24
+ ></dx-button-toggle>
25
+ </template>
26
+ </div>
27
+ <template for:each={filteredCategories} for:item="category">
28
+ <dx-section
29
+ header={category.title}
30
+ subtitle={category.subtitle}
31
+ heading-level="4"
32
+ subtitle-level="2"
33
+ key={category.title}
34
+ class="category-section"
35
+ >
36
+ <dx-grid columns="three">
37
+ <template
38
+ for:each={category.cards}
39
+ for:item="card"
40
+ >
41
+ <template if:true={card.hasModal}>
42
+ <dx-card-trial
43
+ key={card.title}
44
+ badge-background-color={card.badgeBackgroundColor}
45
+ badge-symbol={card.badgeSymbol}
46
+ body={card.body}
47
+ details={card.details}
48
+ modal-title={card.modalTitle}
49
+ modal-details={card.modalDetails}
50
+ href={card.href}
51
+ label={card.label}
52
+ terms={card.terms}
53
+ header={card.title}
54
+ button-one-cta={card.buttonOneCta}
55
+ button-one-href={card.buttonOneHref}
56
+ button-one-icon={card.buttonOneIcon}
57
+ button-two-cta={card.buttonTwoCta}
58
+ modal-type-badge-value={card.modalTypeBadgeValue}
59
+ modal-type-badge-dark={card.modalTypeBadgeDark}
60
+ hide-card-details="true"
61
+ ></dx-card-trial>
62
+ </template>
63
+ <template if:false={card.hasModal}>
64
+ <dx-card-trial
65
+ key={card.title}
66
+ badge-background-color={card.badgeBackgroundColor}
67
+ badge-symbol={card.badgeSymbol}
68
+ body={card.body}
69
+ href={card.href}
70
+ label={card.label}
71
+ terms={card.terms}
72
+ header={card.title}
73
+ button-one-cta={card.buttonOneCta}
74
+ button-one-href={card.buttonOneHref}
75
+ button-one-icon={card.buttonOneIcon}
76
+ ></dx-card-trial>
77
+ </template>
78
+ </template>
79
+ </dx-grid>
80
+ </dx-section>
81
+ </template>
82
+ </dx-tab-panel>
83
+ </template>
84
+ </dx-tab-panel-list>
85
+ </dx-section>
86
+ </template>
@@ -0,0 +1,116 @@
1
+ import { LightningElement, api, track } from "lwc";
2
+ import { toJson } from "dxUtils/normalizers";
3
+
4
+ const STORED_TAB_SELECTED_KEY = "storedTabIndex";
5
+
6
+ export default class BrowseTrials extends LightningElement {
7
+ @api header = "Browse Trials";
8
+
9
+ @api
10
+ get trials() {
11
+ return this._trials;
12
+ }
13
+ set trials(
14
+ value: [{ label: string; hideFilters: boolean; buttonLabels: string[] }]
15
+ ) {
16
+ this._trials = toJson(value);
17
+ this.tabLabels = this._trials.map((trial) => ({ label: trial.label }));
18
+ this.buttonLabels = this._trials.map((trial) =>
19
+ !trial.hideFilters ? trial.buttonLabels : []
20
+ );
21
+ this._filteredTitles = this._trials.map(() => []);
22
+ this._filteredCategories = this._trials.map(
23
+ (trial) => trial.categories
24
+ );
25
+ }
26
+
27
+ get buttonToggleStates() {
28
+ return this.buttonLabels[this.activeTabIndex].map((label) => ({
29
+ label,
30
+ value: this.activeFilteredTitles.includes(label)
31
+ }));
32
+ }
33
+
34
+ get activeFilteredTitles() {
35
+ return this._filteredTitles[this.activeTabIndex];
36
+ }
37
+ set activeFilteredTitles(value: string[]) {
38
+ this._filteredTitles[this.activeTabIndex] = value;
39
+ }
40
+
41
+ get activeCategories() {
42
+ return this._trials[this.activeTabIndex].categories;
43
+ }
44
+
45
+ get filteredCategories() {
46
+ return this._filteredCategories[this.activeTabIndex];
47
+ }
48
+ set filteredCategories(value: any) {
49
+ this._filteredCategories[this.activeTabIndex] = value;
50
+ }
51
+
52
+ @track
53
+ private _filteredCategories!: Array<any>;
54
+
55
+ private activeTabIndex = 0;
56
+ private buttonLabels!: string[][];
57
+ private _filteredTitles!: string[][];
58
+ private tabLabels!: Array<{ label: string }>;
59
+ private _trials!: [
60
+ {
61
+ label: string;
62
+ hideFilters: boolean;
63
+ buttonLabels: string[];
64
+ categories: Array<{ title: string }>;
65
+ }
66
+ ];
67
+
68
+ connectedCallback() {
69
+ const storedTabIndex = window.localStorage.getItem(
70
+ STORED_TAB_SELECTED_KEY
71
+ );
72
+ if (storedTabIndex) {
73
+ this.activeTabIndex = +storedTabIndex;
74
+ }
75
+ }
76
+
77
+ handleTabChange(e: CustomEvent) {
78
+ this.activeTabIndex = e.detail;
79
+ window.localStorage.setItem(STORED_TAB_SELECTED_KEY, e.detail);
80
+ }
81
+
82
+ filterCategories() {
83
+ this.filteredCategories = this.activeCategories.filter((category) =>
84
+ this.activeFilteredTitles.includes(category.title)
85
+ );
86
+ }
87
+
88
+ addLabelToFilter(label: string) {
89
+ this.activeFilteredTitles.push(label);
90
+ this.filterCategories();
91
+ }
92
+
93
+ removeLabelFromFilter(label: string) {
94
+ this.activeFilteredTitles = this.activeFilteredTitles.filter(
95
+ (filterTitle) => filterTitle !== label
96
+ );
97
+ this.filterCategories();
98
+ }
99
+
100
+ resetFilters() {
101
+ this.activeFilteredTitles = [];
102
+ this.filteredCategories = this.activeCategories;
103
+ }
104
+
105
+ handleFilters(e: CustomEvent) {
106
+ const { label, value } = e.detail;
107
+
108
+ if (value) {
109
+ this.addLabelToFilter(label);
110
+ } else if (this.activeFilteredTitles.length !== 1) {
111
+ this.removeLabelFromFilter(label);
112
+ } else {
113
+ this.resetFilters();
114
+ }
115
+ }
116
+ }
@@ -1,3 +1,5 @@
1
+ @import "dwHelpers/mobileDividers";
2
+
1
3
  :host {
2
4
  display: contents;
3
5
  }
@@ -2,15 +2,15 @@
2
2
  <template for:each={posts} for:item="post">
3
3
  <dx-card-blog-post
4
4
  label="BLOG POST"
5
- author-img-src={post.authorImgSrc}
6
- author-label={post.authorName}
7
5
  body={post.body}
8
6
  datetime={post.datetime}
9
7
  href={post.href}
10
8
  img-alt={post.imgAlt}
11
9
  img-src={post.imgSrc}
12
10
  key={post.id}
13
- title={post.title}
11
+ header={post.title}
12
+ authors={post.authors}
14
13
  ></dx-card-blog-post>
14
+ <dx-hr spacing="2xs" class="mobile-divider_posts" key={post.id}></dx-hr>
15
15
  </template>
16
16
  </template>
@@ -1,3 +1,5 @@
1
+ @import "dwHelpers/mobileDividers";
2
+
1
3
  :host {
2
4
  display: contents;
3
5
  }
@@ -6,7 +6,8 @@
6
6
  href={episode.href}
7
7
  key={episode.id}
8
8
  length={episode.length}
9
- title={episode.title}
9
+ header={episode.title}
10
10
  ></dx-card-podcast-episode>
11
+ <dx-hr spacing="2xs" class="mobile-divider" key={episode.id}></dx-hr>
11
12
  </template>
12
13
  </template>
@@ -2,6 +2,10 @@ dx-section:first-of-type {
2
2
  --dx-c-section-padding-bottom: 0;
3
3
  }
4
4
 
5
+ dx-section {
6
+ --dx-c-section-position: revert;
7
+ }
8
+
5
9
  .badge-link-container {
6
10
  padding-top: var(--dx-g-spacing-md);
7
11
  }
@@ -79,15 +83,9 @@ dx-section:first-of-type {
79
83
 
80
84
  .pagination-container {
81
85
  max-width: fit-content;
82
- max-width: -moz-fit-content;
83
86
  margin: 50px auto;
84
87
  }
85
88
 
86
- dx-type-badge.platform {
87
- --dx-c-type-badge-color: var(--dx-g-green-vibrant-40);
88
- --dx-c-type-badge-background: var(--dx-g-green-vibrant-90);
89
- }
90
-
91
89
  @media screen and (max-width: 1024px) {
92
90
  .code-samples-feature {
93
91
  --dx-c-feature-description-font-size: 14px;
@@ -159,13 +157,13 @@ dx-type-badge.platform {
159
157
  }
160
158
 
161
159
  @media screen and (min-width: 1025px) {
162
- .item-container:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)) {
160
+ .item-container:not(:nth-child(1), :nth-child(2), :nth-child(3)) {
163
161
  margin-top: 70px;
164
162
  }
165
163
  }
166
164
 
167
165
  @media screen and (max-width: 1024px) and (min-width: 768px) {
168
- .item-container:not(:nth-child(1)):not(:nth-child(2)) {
166
+ .item-container:not(:nth-child(1), :nth-child(2)) {
169
167
  margin-top: 51px;
170
168
  }
171
169
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <dx-section>
3
3
  <dx-feature
4
- title={featuredCodeSample.title}
4
+ header={featuredCodeSample.title}
5
5
  button-href={featuredCodeSample.href}
6
6
  button-label="Explore on GitHub"
7
7
  image-src={featuredCodeSample.imgSrc}
@@ -14,7 +14,7 @@
14
14
  </dx-feature>
15
15
  </dx-section>
16
16
 
17
- <dx-section title="Browse Demos">
17
+ <dx-section header="Browse Demos">
18
18
  <div class="docs-action-bar">
19
19
  <div class="records-container">
20
20
  <span if:true={endingRecord}>
@@ -97,15 +97,15 @@
97
97
  key={item.id}
98
98
  body={item.body}
99
99
  label={item.type}
100
- title={item.title}
100
+ header={item.title}
101
101
  href={item.href}
102
102
  >
103
103
  <div class="badge-link-container">
104
104
  <div class="badge-container">
105
- <dx-type-badge
105
+ <dx-metadata-badge
106
106
  value={item.product}
107
- class={item.product}
108
- ></dx-type-badge>
107
+ size="small"
108
+ ></dx-metadata-badge>
109
109
  </div>
110
110
  <div class="external-link-container">
111
111
  <dx-button
@@ -113,6 +113,7 @@
113
113
  icon-symbol="new_window"
114
114
  variant="inline"
115
115
  href={item.href}
116
+ onclick={handleReadItClick}
116
117
  >
117
118
  {item.buttonText}
118
119
  </dx-button>
@@ -130,8 +131,11 @@
130
131
  ></dx-pagination>
131
132
  </div>
132
133
  <dx-empty-state
133
- title="Beep boop. That did not compute."
134
+ variant="alt"
135
+ header="Beep boop. That did not compute."
134
136
  subtitle={emptyStateSubtitle}
137
+ body={emptyStateBody}
138
+ suggestions={emptyStateSuggestions}
135
139
  if:true={showEmptyState}
136
140
  ></dx-empty-state>
137
141
  </dx-section>