@salesforcedevs/mrkt-components 0.36.1 → 0.38.0

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.
package/lwc.config.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "mrkt/ctaSection",
9
9
  "mrkt/fullImgSection",
10
10
  "mrkt/sectionHeader",
11
+ "mrkt/socials",
11
12
  "mrkt/twoColSection",
12
13
  "mrkt/twoColListSection",
13
14
  "mrkt/rectangularHeading"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/mrkt-components",
3
- "version": "0.36.1",
3
+ "version": "0.38.0",
4
4
  "description": "Marketing Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -15,5 +15,5 @@
15
15
  "devDependencies": {
16
16
  "@types/classnames": "^2.2.10"
17
17
  },
18
- "gitHead": "67d543f27b17707430ece6991aef17b1ef2adc8c"
18
+ "gitHead": "8aa0d5f09d65166284bdb76e598fb69031b76049"
19
19
  }
@@ -0,0 +1,65 @@
1
+ @import "helpers/reset";
2
+ @import "helpers/text";
3
+
4
+ .socials {
5
+ width: 100%;
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ background: white;
11
+ padding: var(--dx-g-spacing-3xl) var(--dx-g-page-padding-horizontal);
12
+ }
13
+
14
+ dx-hr {
15
+ /* --dx-c-hr-padding-horizontal: 0; */
16
+ width: 100%;
17
+ max-width: 1012px;
18
+ margin-bottom: var(--dx-g-spacing-3xl);
19
+ }
20
+
21
+ .socials-container {
22
+ width: 100%;
23
+ display: grid;
24
+ grid-template-columns: repeat(auto-fit, minmax(80px, min-content));
25
+ grid-gap: 100px;
26
+ justify-content: center;
27
+ }
28
+
29
+ a {
30
+ position: relative;
31
+ display: flex;
32
+ flex-direction: column;
33
+ align-items: center;
34
+ flex-shrink: 0;
35
+ }
36
+
37
+ a > dx-icon-badge {
38
+ --dx-c-icon-badge-size: var(--dx-g-spacing-xl);
39
+ --dx-c-icon-badge-icon-size: var(--dx-g-spacing-md);
40
+ --dx-c-icon-badge-background-color: var(--dx-g-text-heading-color);
41
+ --dx-c-icon-badge-transition: var(--dx-g-transition-hue-1x);
42
+ }
43
+
44
+ a > span {
45
+ padding-top: var(--dx-g-spacing-xs);
46
+ color: var(--dx-g-text-heading-color) !important;
47
+ white-space: nowrap;
48
+ }
49
+
50
+ a:hover > dx-icon-badge {
51
+ --dx-c-icon-badge-background-color: var(--dx-g-blue-vibrant-40);
52
+ }
53
+
54
+ @media (max-width: 1024px) {
55
+ .socials-container {
56
+ grid-gap: var(--dx-g-spacing-3xl);
57
+ }
58
+ }
59
+
60
+ @media (max-width: 768px) {
61
+ .socials-container {
62
+ grid-template-columns: auto;
63
+ grid-gap: var(--dx-g-spacing-2xl);
64
+ }
65
+ }
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <div class="socials">
3
+ <dx-hr text={title} spacing="none"></dx-hr>
4
+ <div class="socials-container">
5
+ <template for:each={items} for:item="item">
6
+ <a key={item.id} href={item.link.href}>
7
+ <dx-icon-badge
8
+ sprite="brand"
9
+ symbol={item.iconSymbol}
10
+ ></dx-icon-badge>
11
+ <span class="dx-text-body-2">{item.label}</span>
12
+ </a>
13
+ </template>
14
+ </div>
15
+ </div>
16
+ </template>
@@ -0,0 +1,17 @@
1
+ import { api, LightningElement } from "lwc";
2
+ import { toJson } from "utils/normalizers";
3
+ import type { OptionWithLink } from "typings/custom";
4
+
5
+ export default class Socials extends LightningElement {
6
+ @api title: string = "Our Socials";
7
+
8
+ @api
9
+ get items() {
10
+ return this._items;
11
+ }
12
+ set items(value) {
13
+ this._items = toJson(value);
14
+ }
15
+
16
+ private _items: OptionWithLink[] = [];
17
+ }