@salesforcedevs/lwc-doc-components 1.0.1-alpha
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/lwr.config.json +13 -0
- package/package.json +12 -0
- package/src/modules/lwcdoc/card/card.css +66 -0
- package/src/modules/lwcdoc/card/card.html +13 -0
- package/src/modules/lwcdoc/card/card.ts +13 -0
- package/src/modules/lwcdoc/landingPageLightningComponents/landingPageLightningComponents.css +30 -0
- package/src/modules/lwcdoc/landingPageLightningComponents/landingPageLightningComponents.html +19 -0
- package/src/modules/lwcdoc/landingPageLightningComponents/landingPageLightningComponents.ts +9 -0
- package/src/modules/lwcdoc/landingPageLightningComponents/landingPageMetadata/landingPageLightningComponents.json +50 -0
- package/src/modules/lwcdoc/sectionBlade/sectionBlade.css +24 -0
- package/src/modules/lwcdoc/sectionBlade/sectionBlade.html +9 -0
- package/src/modules/lwcdoc/sectionBlade/sectionBlade.ts +8 -0
package/lwr.config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modules": [
|
|
3
|
+
{ "dir": "src/modules" },
|
|
4
|
+
{ "npm": "@salesforcedevs/dw-components" },
|
|
5
|
+
{ "npm": "@salesforcedevs/docs-components" },
|
|
6
|
+
{ "npm": "@salesforcedevs/dx-components" }
|
|
7
|
+
],
|
|
8
|
+
"expose": [
|
|
9
|
+
"lwcdoc/card",
|
|
10
|
+
"lwcdoc/sectionBlade",
|
|
11
|
+
"lwcdoc/landingPageLightningComponents"
|
|
12
|
+
]
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
dx-card-docs {
|
|
2
|
+
--dx-g-card-item-spacing: 0;
|
|
3
|
+
--dx-g-card-img-spacing: 0;
|
|
4
|
+
--dx-g-transition-box-shadow-2x: none;
|
|
5
|
+
--dx-g-box-shadow-sm: none;
|
|
6
|
+
|
|
7
|
+
border: var(--dx-g-card-border);
|
|
8
|
+
border-radius: var(--dx-g-card-border-radius);
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
dx-card-docs::part(base) {
|
|
13
|
+
--dx-g-card-padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
dx-card-docs::part(content) {
|
|
17
|
+
padding: var(--dx-g-spacing-md) var(--dx-g-spacing-lg) 0
|
|
18
|
+
var(--dx-g-spacing-lg);
|
|
19
|
+
gap: var(--dx-g-spacing-sm);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
dx-card-docs::part(body) {
|
|
23
|
+
font-weight: var(--dx-g-font-normal);
|
|
24
|
+
letter-spacing: 0.019px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
dx-card-docs::part(title) {
|
|
28
|
+
--dx-c-card-title-line-height: var(--dx-g-spacing-xl);
|
|
29
|
+
--dx-c-card-title-letter-spacing: -0.096px;
|
|
30
|
+
--dx-g-transition-hue-1x: none;
|
|
31
|
+
|
|
32
|
+
font-weight: var(--dx-g-font-demi);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
dx-card-docs::part(label) {
|
|
36
|
+
font-size: var(--dx-g-text-base);
|
|
37
|
+
line-height: var(--dx-g-spacing-lg);
|
|
38
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
39
|
+
letter-spacing: 0.08px;
|
|
40
|
+
text-transform: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
dx-card-docs::part(action) {
|
|
44
|
+
padding: 0 var(--dx-g-spacing-lg) var(--dx-g-spacing-md)
|
|
45
|
+
var(--dx-g-spacing-lg);
|
|
46
|
+
gap: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
dx-button::part(container) {
|
|
50
|
+
--dx-c-button-font-size: var(--dx-g-text-base);
|
|
51
|
+
--dx-c-button-font-weight: var(--dx-g-font-bold);
|
|
52
|
+
--dx-c-button-background-color: var(--sds-g-gray-1);
|
|
53
|
+
|
|
54
|
+
padding: var(--dx-g-spacing-sm) var(--dx-g-spacing-lg);
|
|
55
|
+
border-width: var(--dx-g-spacing-2xs);
|
|
56
|
+
height: 44px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
dx-button::part(content) {
|
|
60
|
+
font-family: var(--dx-g-font-sans);
|
|
61
|
+
line-height: 28px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
dx-button {
|
|
65
|
+
margin-top: var(--dx-g-spacing-md);
|
|
66
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LightningElement, api } from "lwc";
|
|
2
|
+
|
|
3
|
+
export default class Card extends LightningElement {
|
|
4
|
+
@api body!: string;
|
|
5
|
+
@api subText?: string | null = null;
|
|
6
|
+
@api href!: string;
|
|
7
|
+
@api imgAlt?: string = "";
|
|
8
|
+
@api imgSrc?: string | null = null;
|
|
9
|
+
@api label!: string;
|
|
10
|
+
@api header!: string;
|
|
11
|
+
@api target?: string | null = null;
|
|
12
|
+
@api showMobileImg?: boolean = false;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@import "dxHelpers/text";
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
--dx-card-image-height: 140px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.container {
|
|
8
|
+
margin: var(--dx-g-spacing-2xl) var(--dx-g-spacing-xl);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.grid {
|
|
12
|
+
--dx-g-page-grid-gap: var(--dx-g-spacing-lg);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.header {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: var(--dx-g-spacing-lg);
|
|
19
|
+
margin-bottom: var(--dx-g-spacing-3xl);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dx-text-display-4 {
|
|
23
|
+
font-weight: var(--dx-g-font-demi);
|
|
24
|
+
letter-spacing: -0.32px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dx-text-body-1 {
|
|
28
|
+
color: var(--dx-g-gray-30);
|
|
29
|
+
letter-spacing: 0.024px;
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container">
|
|
3
|
+
<div class="header">
|
|
4
|
+
<div class="dx-text-display-4">{title}</div>
|
|
5
|
+
<div class="dx-text-body-1">{description}</div>
|
|
6
|
+
</div>
|
|
7
|
+
<dx-grid class="grid" columns="three">
|
|
8
|
+
<template for:each={components} for:item="item">
|
|
9
|
+
<lwcdoc-card
|
|
10
|
+
href={item.href}
|
|
11
|
+
img-alt={item.imgAlt}
|
|
12
|
+
img-src={item.imgSrc}
|
|
13
|
+
label={item.header}
|
|
14
|
+
key={item.header}
|
|
15
|
+
></lwcdoc-card>
|
|
16
|
+
</template>
|
|
17
|
+
</dx-grid>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LightningElement, api } from "lwc";
|
|
2
|
+
import componentsData from "./landingPageMetadata/landingPageLightningComponents.json";
|
|
3
|
+
|
|
4
|
+
export default class LandingPageLightningComponents extends LightningElement {
|
|
5
|
+
components: any = componentsData;
|
|
6
|
+
|
|
7
|
+
@api title!: string;
|
|
8
|
+
@api description?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"href": "https://developer.salesforce.com/",
|
|
4
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
5
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
6
|
+
"header": "Einstein Platform"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"href": "https://developer.salesforce.com/",
|
|
10
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
11
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
12
|
+
"header": "Agent Force"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"href": "https://developer.salesforce.com/",
|
|
16
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
17
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
18
|
+
"header": "Code genie"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"href": "https://developer.salesforce.com/",
|
|
22
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
23
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
24
|
+
"header": "VS code"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"href": "https://developer.salesforce.com/",
|
|
28
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
29
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
30
|
+
"header": "Einstein Platform"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"href": "https://developer.salesforce.com/",
|
|
34
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
35
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
36
|
+
"header": "Agent Force"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"href": "https://developer.salesforce.com/",
|
|
40
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
41
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
42
|
+
"header": "Code Genie"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"href": "https://developer.salesforce.com/",
|
|
46
|
+
"imgAlt": "Scenic view of a mountain.",
|
|
47
|
+
"imgSrc": "https://d259t2jj6zp7qm.cloudfront.net/images/20250109132029/Agent-Codey-1905x1000.png",
|
|
48
|
+
"header": "VS Code"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
dx-feature {
|
|
2
|
+
--dx-c-feature-description-left-img-src: none;
|
|
3
|
+
--dx-c-feature-img-container-padding: 0;
|
|
4
|
+
--dx-c-feature-img-box-shadow: none;
|
|
5
|
+
--dx-c-feature-img-margin-left: 0;
|
|
6
|
+
--dx-c-feature-description-max-width: 380px;
|
|
7
|
+
--dx-c-feature-description-img-width: 50%;
|
|
8
|
+
--dx-c-feature-description-img-gap: var(--dx-g-spacing-lg);
|
|
9
|
+
--dx-c-feature-description-gap: var(--dx-g-spacing-md);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
dx-feature::part(header) {
|
|
13
|
+
line-height: var(--dx-g-spacing-2xl);
|
|
14
|
+
padding-bottom: 0;
|
|
15
|
+
font-size: var(--dx-g-text-2xl);
|
|
16
|
+
font-weight: var(--dx-g-font-demi);
|
|
17
|
+
letter-spacing: -0.128px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
dx-feature::part(body) {
|
|
21
|
+
color: var(--dx-g-blue-vibrant-30);
|
|
22
|
+
font-weight: var(--dx-g-font-normal);
|
|
23
|
+
letter-spacing: 0.019px;
|
|
24
|
+
}
|