@salesforcedevs/dx-components 1.3.186-alpha → 1.3.186-cssalpha

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.3.186-alpha",
3
+ "version": "1.3.186-cssalpha",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -5,6 +5,7 @@
5
5
  <li key={navItem.id}>
6
6
  <dx-tab
7
7
  if:false={navItem.options}
8
+ class="new-nav-list-item_default new-nav-list-item"
8
9
  is-active={navItem.isActive}
9
10
  label={navItem.label}
10
11
  href={navItem.link.href}
@@ -22,6 +22,17 @@ a {
22
22
  outline-offset: -1px;
23
23
  }
24
24
 
25
+ .new-nav-list-item {
26
+ color: var(--foundation-gray-neutral-10, #181818);
27
+ font-feature-settings: "clig" off, "liga" off;
28
+ font-family: var(--dx-g-font-sans);
29
+ font-size: 16px;
30
+ font-style: normal;
31
+ font-weight: 400;
32
+ line-height: 24px;
33
+ letter-spacing: 0.019px;
34
+ }
35
+
25
36
  .nav-list-item_default {
26
37
  border: 0;
27
38
  border-radius: var(--dx-g-spacing-md);
@@ -29,6 +40,14 @@ a {
29
40
  padding: 0 var(--horizontal-spacing);
30
41
  }
31
42
 
43
+ .new-nav-list-item_default {
44
+ display: flex;
45
+ padding: 10px 24px;
46
+ justify-content: center;
47
+ align-items: center;
48
+ border-radius: var(--dx-g-spacing-md);
49
+ }
50
+
32
51
  .nav-list-item_small {
33
52
  --border-color: transparent;
34
53
 
@@ -55,6 +74,18 @@ button.nav-list-item_small > dx-icon {
55
74
  );
56
75
  }
57
76
 
77
+ .new-nav-list-item_default:active {
78
+ color: var(--vibrant-blue-50, #0176d3);
79
+ font-feature-settings: "clig" off, "liga" off;
80
+ font-family: var(--dx-g-font-sans);
81
+ font-size: 16px;
82
+ font-style: normal;
83
+ font-weight: 400;
84
+ line-height: 24px;
85
+ letter-spacing: 0.019px;
86
+ border-bottom: var(--dx-g-spacing-xs) solid var(--dx-g-blue-vibrant-50);
87
+ }
88
+
58
89
  button.nav-list-item:hover > dx-icon,
59
90
  button.nav-list-item:active > dx-icon,
60
91
  :host([aria-expanded="true"]) button.nav-list-item > dx-icon {
@@ -1,5 +1,4 @@
1
1
  import { LightningElement, api } from "lwc";
2
- import { CoveoAnalyticsClient } from "coveo.analytics";
3
2
 
4
3
  const REDUNDANT_INSTANCE_ERROR_MESSAGE =
5
4
  "Multiple <dx-traffic-labeler>s detected, this should never be the case.";
@@ -8,34 +7,9 @@ declare module globalThis {
8
7
  let singletonTrafficLabelerConnected: boolean;
9
8
  }
10
9
 
11
- export function logCoveoPageView(
12
- coveoOrganizationId: string | undefined,
13
- coveoAnalyticsToken: string | undefined
14
- ) {
15
- if (coveoOrganizationId && coveoAnalyticsToken) {
16
- const ua = new CoveoAnalyticsClient({
17
- token: coveoAnalyticsToken,
18
- endpoint: `https://${coveoOrganizationId}.analytics.org.coveo.com`
19
- });
20
- const pathParts = window.location.pathname.split("/");
21
- let contentType;
22
- if (pathParts.length >= 2) {
23
- contentType = pathParts[1];
24
- }
25
-
26
- ua.sendViewEvent({
27
- contentIdKey: "@clickableuri",
28
- contentType: contentType,
29
- contentIdValue: window.location.href
30
- });
31
- }
32
- }
33
-
34
10
  export default class TrafficLabeler extends LightningElement {
35
11
  @api internalIps?: string;
36
12
  @api clearbitPublicKey?: string;
37
- @api coveoOrganizationId!: string;
38
- @api coveoAnalyticsToken!: string;
39
13
 
40
14
  connectedCallback(): void {
41
15
  if (!globalThis.singletonTrafficLabelerConnected) {
@@ -49,12 +23,8 @@ export default class TrafficLabeler extends LightningElement {
49
23
  } else {
50
24
  console.error(REDUNDANT_INSTANCE_ERROR_MESSAGE);
51
25
  }
52
-
53
- logCoveoPageView(this.coveoOrganizationId, this.coveoAnalyticsToken);
54
26
  }
55
27
 
56
- private;
57
-
58
28
  async loadClearBitData() {
59
29
  try {
60
30
  const result = await fetch(