@salesforcedevs/dx-components 0.45.0-alpha3 → 0.45.0-alpha5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.45.0-alpha3",
3
+ "version": "0.45.0-alpha5",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -17,11 +17,11 @@
17
17
  }
18
18
 
19
19
  .docs-action-bar .filters-container > *:not(:first-child),
20
- dx-search-input {
20
+ dx-input {
21
21
  margin-left: var(--dx-g-spacing-sm);
22
22
  }
23
23
 
24
- dx-search-input {
24
+ dx-input {
25
25
  --dx-c-input-width: 285px;
26
26
  }
27
27
 
@@ -32,7 +32,7 @@ dx-search-input {
32
32
  }
33
33
 
34
34
  @media screen and (max-width: 1024px) {
35
- .docs-card {
35
+ dx-card-docs {
36
36
  --dx-c-body-max-lines: 3;
37
37
  }
38
38
  }
@@ -44,16 +44,16 @@ dx-search-input {
44
44
  padding: 0;
45
45
  }
46
46
 
47
- dx-search-input {
47
+ .records-container {
48
+ margin-bottom: var(--dx-g-spacing-md);
49
+ }
50
+
51
+ dx-input {
48
52
  --dx-c-input-width: 100%;
49
53
 
50
54
  width: 100%;
51
55
  margin-bottom: var(--dx-g-spacing-md);
52
56
  }
53
-
54
- .docs-action-bar .records-container {
55
- transform: translateY(-100%);
56
- }
57
57
  }
58
58
 
59
59
  @media screen and (max-width: 600px) {
@@ -7,8 +7,8 @@ export default class CardGridDocs extends LightningElement {
7
7
  @api
8
8
  get cards(): DocsCard[] {
9
9
  return this.value
10
- ? this._cards.filter((card: DocsCard) =>
11
- Object.values(card).some(
10
+ ? this._cards.filter(({ title, body, label }) =>
11
+ [title, body, label].some(
12
12
  (val) =>
13
13
  typeof val === "string" &&
14
14
  val.includes(this.value || "")
@@ -17,6 +17,7 @@ export default class CardGridDocs extends LightningElement {
17
17
  : this._cards;
18
18
  }
19
19
  set cards(value) {
20
+ console.log("grid value", { value });
20
21
  this._cards = toJson(value);
21
22
  }
22
23