@salesforcedevs/dx-components 1.2.18-lightdom → 1.2.18-lightdom3

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": "1.2.18-lightdom",
3
+ "version": "1.2.18-lightdom3",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -1,6 +1,6 @@
1
1
  @import "dxHelpers/reset";
2
2
 
3
- :host { /* TODO: remove this after it has been completely supplanted by .base-button */
3
+ :host {
4
4
  width: min-content;
5
5
  font-size: inherit;
6
6
 
@@ -11,20 +11,6 @@
11
11
  --dx-c-button-justify-content: center;
12
12
  --dx-c-button-opacity: 1;
13
13
  --dx-c-button-font-size: var(--dx-g-text-sm);
14
- }
15
-
16
- .base-button { /* TODO: remove this after it has been completely supplanted by .base-button */
17
- width: min-content;
18
- font-size: inherit;
19
-
20
- --dx-c-button-background-color: transparent;
21
- --dx-c-button-primary-color: var(--dx-g-blue-vibrant-50);
22
- --dx-c-button-primary-color-hover: var(--dx-g-blue-vibrant-40);
23
- --dx-c-button-secondary-color-hover: var(--dx-g-cloud-blue-vibrant-90);
24
- --dx-c-button-inline-color-hover: var(--dx-g-blue-vibrant-30);
25
- --dx-c-button-justify-content: center;
26
- --dx-c-button-opacity: 1;
27
- --dx-c-button-font-size: var(--dx-g-text-sm);
28
14
  --dx-c-button-font-weight: var(--dx-g-font-normal);
29
15
  --dx-c-button-display: flex;
30
16
  }
@@ -1,57 +1,19 @@
1
- @import "dxHelpers/reset";
2
- @import "dxHelpers/text";
3
- @import "dxHelpers/card";
4
1
 
5
- .card-callout {
6
- position: relative;
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- /* in the callout card's case it needs to be subservient to the other items in the grid */
12
- .dx-card-base_override-width {
13
- height: 100% !important;
14
- min-height: unset !important;
15
- }
16
-
17
- /* title */
18
-
19
- .dx-text-heading-3 {
20
- color: inherit;
21
- margin-bottom: var(--dx-g-spacing-3xl);
22
- overflow-wrap: hyphenate-word;
23
- hyphens: overflow;
24
- }
25
-
26
- /* label */
27
2
 
28
- .dx-text-button-light {
29
- color: inherit;
30
- margin-top: auto;
31
- }
32
-
33
- /* callout arrow */
34
-
35
- dx-icon {
3
+ dx-card-callout dx-icon {
36
4
  display: inline;
37
5
  color: inherit;
38
6
  margin-left: var(--dx-g-spacing-sm);
39
7
  }
40
8
 
41
- dx-icon::part(svg) {
9
+ dx-card-callout dx-icon svg {
42
10
  transition: var(--dx-g-transition-transform-2x);
43
11
  }
44
12
 
45
- .card-callout:hover dx-icon::part(svg) {
13
+ .card-callout:hover dx-icon svg {
46
14
  transform: translate(var(--dx-g-spacing-xs));
47
15
  }
48
16
 
49
- .card-callout:active dx-icon::part(svg) {
17
+ .card-callout:active dx-icon svg {
50
18
  transform: translate(var(--dx-g-spacing-2xs));
51
- }
52
-
53
- @media screen and (max-width: 1024px) {
54
- .dx-text-heading-3 {
55
- margin-bottom: var(--dx-g-spacing-xl);
56
- }
57
- }
19
+ }
@@ -1,4 +1,4 @@
1
- <template>
1
+ <template lwc:render-mode='light'>
2
2
  <a
3
3
  class={className}
4
4
  href={href}
@@ -0,0 +1,45 @@
1
+ :host {
2
+ display: block;
3
+
4
+ --dx-g-card-border: 1px solid var(--dx-g-gray-90);
5
+ --dx-g-card-border-radius: 16px;
6
+ --dx-g-card-item-spacing: 12px;
7
+ --dx-g-card-img-spacing: 20px;
8
+ --dx-c-body-max-lines: 6;
9
+ }
10
+
11
+ .card-callout {
12
+ position: relative;
13
+ display: flex;
14
+ flex-direction: column;
15
+ }
16
+
17
+ /* in the callout card's case it needs to be subservient to the other items in the grid */
18
+ .dx-card-base_override-width {
19
+ height: 100% !important;
20
+ min-height: unset !important;
21
+ }
22
+
23
+ /* title */
24
+
25
+ .dx-text-heading-3 {
26
+ color: inherit;
27
+ margin-bottom: var(--dx-g-spacing-3xl);
28
+ overflow-wrap: hyphenate-word;
29
+ hyphens: overflow;
30
+ }
31
+
32
+ /* label */
33
+
34
+ .dx-text-button-light {
35
+ color: inherit;
36
+ margin-top: auto;
37
+ }
38
+
39
+ /* callout arrow */
40
+
41
+ @media screen and (max-width: 1024px) {
42
+ .dx-text-heading-3 {
43
+ margin-bottom: var(--dx-g-spacing-xl);
44
+ }
45
+ }
@@ -6,6 +6,8 @@ import { track } from "dxUtils/analytics";
6
6
  export const ANALYTICS_EVENT_NAME = "custEv_ctaLinkClick";
7
7
 
8
8
  export default class CardCallout extends LightningElement {
9
+ static renderMode = 'light';
10
+
9
11
  @api backgroundColor: string = "indigo-vibrant-40";
10
12
  @api color: string = "white";
11
13
  @api href!: string;
@@ -6,7 +6,7 @@ dx-card-title {
6
6
  --dx-c-card-title-icon-size: 22px;
7
7
  }
8
8
 
9
- dx-icon {
9
+ dx-card-title dx-icon {
10
10
  --dx-c-icon-size: var(--dx-c-card-title-icon-size);
11
11
 
12
12
  display: inline-flex;
@@ -3,7 +3,7 @@ dx-icon {
3
3
  --dx-c-icon-color: currentColor;
4
4
  }
5
5
 
6
- svg {
6
+ dx-icon svg {
7
7
  display: inherit;
8
8
  fill: var(--dx-c-icon-color);
9
9
  height: var(--dx-c-icon-size);
@@ -2,7 +2,7 @@
2
2
 
3
3
  /* main card base */
4
4
 
5
- :host { /* TODO: remove this after it has been completely supplanted by .base-card */
5
+ :host {
6
6
  display: block;
7
7
 
8
8
  --dx-g-card-border: 1px solid var(--dx-g-gray-90);