@salesforcedevs/docs-components 1.3.150-lwf-ref-alpha1 → 1.3.150-lwf-ref-alpha2

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
@@ -18,6 +18,7 @@
18
18
  "doc/headingAnchor",
19
19
  "doc/overview",
20
20
  "doc/phase",
21
+ "doc/styledOrderedList",
21
22
  "doc/xmlContent"
22
23
  ]
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.150-lwf-ref-alpha1",
3
+ "version": "1.3.150-lwf-ref-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,7 +1,10 @@
1
+ @import "dxHelpers/reset";
2
+
1
3
  h2 {
2
4
  font-weight: bold;
3
5
  font-size: 24px;
4
- margin: 10px 0;
6
+ margin-top: 10px;
7
+ margin-bottom: 10px;
5
8
  }
6
9
 
7
10
  .component-image {
@@ -13,7 +16,8 @@ h2 {
13
16
  min-height: 140px;
14
17
  max-height: 480px;
15
18
  flex: 1;
16
- margin: 16px 0px;
19
+ margin-top: 16px;
20
+ margin-bottom: 16px;
17
21
  }
18
22
 
19
23
  .small {
@@ -26,8 +30,3 @@ h2 {
26
30
  flex-direction: column;
27
31
  justify-content: center;
28
32
  }
29
-
30
- img{
31
- max-width: 100%;
32
- height: auto;
33
- }
@@ -1,9 +1,7 @@
1
1
  <template>
2
2
  <div class="item">
3
3
  <h2 if:true={title}>{title}</h2>
4
- <p if:true={description}>
5
- {description}
6
- </p>
4
+ <p if:true={description}>{description}</p>
7
5
  <p if:true={doDontLabel}>{doDontLabel}</p>
8
6
  <div if:true={imageSrc} class="component-image">
9
7
  <img src={imageSrc} />
@@ -11,13 +11,12 @@ class Component extends LightningElement {
11
11
  get doDontLabel(): string {
12
12
  //TODO: store a boolean value and refactor logic
13
13
  if (this.isDo === "true") {
14
- return "DO"
14
+ return "DO";
15
15
  } else if (this.isDo === "false") {
16
- return "DON'T"
16
+ return "DON'T";
17
17
  }
18
- return ""
18
+ return "";
19
19
  }
20
-
21
20
  }
22
21
 
23
- export default Component;
22
+ export default Component;
@@ -0,0 +1,27 @@
1
+ @import "dxHelpers/reset";
2
+
3
+ .list-item{
4
+ display: flex;
5
+ flex: 1;
6
+ flex-direction: row;
7
+ justify-content: center;
8
+ }
9
+
10
+ .circle{
11
+ background: var(--foundation-blue-blue-40, #0B5CAB);
12
+ height: 24px;
13
+ width: 24px;
14
+ border-radius: 50%;
15
+ justify-content: center;
16
+ align-items: center;
17
+ display: flex;
18
+ color: white;
19
+ font-size: 10px;
20
+ }
21
+
22
+ .list-item-content {
23
+ color: var(--text-default, #181818);
24
+ font-family: Open Sans;
25
+ font-size: 16px;
26
+ margin-left: 16px;
27
+ }
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <template for:each={list} for:item="item" for:index="index">
3
+ <div class="list-item" key={item}>
4
+ <div class="circle">{index}</div>
5
+ <p class="list-item-content">{item}</p>
6
+ </div>
7
+ </template>
8
+ </template>
@@ -0,0 +1,18 @@
1
+ import { LightningElement, api } from "lwc";
2
+
3
+ class Component extends LightningElement {
4
+ private _list: Array<string> = [];
5
+
6
+ set list(value: string) {
7
+ if (value) {
8
+ this._list = JSON.parse(value)
9
+ }
10
+ }
11
+
12
+ @api
13
+ get list(): Array<string> {
14
+ return this._list
15
+ }
16
+ }
17
+
18
+ export default Component;