@salesforcedevs/dx-components 1.2.18-canary.0 → 1.2.18-lightdom
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 +0 -2
- package/package.json +3 -11
- package/src/modules/dx/banner/banner.css +1 -33
- package/src/modules/dx/banner/banner.html +5 -2
- package/src/modules/dx/banner/banner.scoped.css +28 -0
- package/src/modules/dx/banner/banner.ts +3 -1
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.html +2 -1
- package/src/modules/dx/brandThemeProvider/brandThemeProvider.ts +9 -6
- package/src/modules/dx/button/button.css +14 -1
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.html +1 -1
- package/src/modules/dx/cardPodcastEpisode/{cardPodcastEpisode.css → cardPodcastEpisode.scoped.css} +0 -4
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.ts +2 -0
- package/src/modules/dx/cardTitle/cardTitle.css +2 -24
- package/src/modules/dx/cardTitle/cardTitle.html +4 -4
- package/src/modules/dx/cardTitle/cardTitle.scoped.css +25 -0
- package/src/modules/dx/cardTitle/cardTitle.ts +1 -0
- package/src/modules/dx/dropdown/dropdown.css +8 -1
- package/src/modules/dx/dropdown/dropdown.html +4 -2
- package/src/modules/dx/dropdown/dropdown.ts +4 -2
- package/src/modules/dx/header/header.css +7 -95
- package/src/modules/dx/header/header.html +1 -4
- package/src/modules/dx/header/header.scoped.css +92 -0
- package/src/modules/dx/header/header.ts +2 -4
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +2 -147
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.html +6 -5
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.scoped.css +142 -0
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +5 -3
- package/src/modules/dx/headerNav/headerNav.html +2 -2
- package/src/modules/dx/headerNav/{headerNav.css → headerNav.scoped.css} +1 -3
- package/src/modules/dx/headerNav/headerNav.ts +2 -0
- package/src/modules/dx/headerSearch/headerSearch.css +2 -61
- package/src/modules/dx/headerSearch/headerSearch.html +3 -3
- package/src/modules/dx/headerSearch/headerSearch.scoped.css +56 -0
- package/src/modules/dx/headerSearch/headerSearch.ts +2 -0
- package/src/modules/dx/icon/icon.css +1 -4
- package/src/modules/dx/icon/icon.html +1 -1
- package/src/modules/dx/icon/icon.ts +2 -0
- package/src/modules/dx/logo/logo.html +1 -1
- package/src/modules/dx/logo/{logo.css → logo.scoped.css} +0 -3
- package/src/modules/dx/logo/logo.ts +3 -1
- package/src/modules/dx/popover/popover.css +0 -19
- package/src/modules/dx/popover/popover.html +0 -1
- package/src/modules/dx/popover/popover.ts +30 -76
- package/src/modules/dx/relativeDateTime/relativeDateTime.html +1 -1
- package/src/modules/dx/relativeDateTime/relativeDateTime.scoped.css +3 -0
- package/src/modules/dx/relativeDateTime/relativeDateTime.ts +1 -0
- package/src/modules/dx/skipNavLink/skipNavLink.html +1 -1
- package/src/modules/dx/skipNavLink/{skipNavLink.css → skipNavLink.scoped.css} +0 -2
- package/src/modules/dx/skipNavLink/skipNavLink.ts +4 -1
- package/src/modules/dx/tooltip/microtip.css +101 -105
- package/src/modules/dxHelpers/card/card.css +11 -1
- package/src/modules/dxHelpers/commonHeader/commonHeader.css +2 -4
- package/src/modules/dxHelpers/commonSidebar/commonSidebar.css +2 -2
- package/src/modules/dxHelpers/reset/reset.css +0 -1
- package/src/assets/svg/login-widget-bg.png +0 -0
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.css +0 -33
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.html +0 -31
- package/src/modules/dx/tbidAvatarButton/tbidAvatarButton.ts +0 -438
- package/src/modules/dxUtils/async/async.ts +0 -41
- package/yarn-error.log +0 -18466
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
:host {
|
|
1
|
+
header-mobile-nav-menu {
|
|
4
2
|
--dx-c-color-background: var(--dx-g-brand-default-color-background);
|
|
5
3
|
--dx-c-button-color-background-inactive: var(
|
|
6
4
|
--dx-g-brand-default-button-color-background-inactive
|
|
@@ -15,147 +13,4 @@
|
|
|
15
13
|
--dx-g-brand-default-button-color-background-inactive-hover
|
|
16
14
|
);
|
|
17
15
|
--dx-c-color-border-2: var(--dx-g-brand-default-color-border-2);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.nav-menu {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 100%;
|
|
23
|
-
left: 0;
|
|
24
|
-
width: 100%;
|
|
25
|
-
max-height: 56vh;
|
|
26
|
-
overflow-y: auto;
|
|
27
|
-
padding: 0 var(--dx-g-spacing-sm) var(--dx-g-spacing-sm)
|
|
28
|
-
var(--dx-g-spacing-sm);
|
|
29
|
-
background: var(--dx-c-color-background);
|
|
30
|
-
box-shadow: 0 20px 28px 0 rgba(0, 20, 45, 0.08);
|
|
31
|
-
transform: translateY(0);
|
|
32
|
-
border-top: 1px solid transparent;
|
|
33
|
-
transition: var(--dx-g-transition-transform-2x),
|
|
34
|
-
var(--dx-g-transition-hue-1x);
|
|
35
|
-
z-index: 1000;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.nav-menu.has-scrollshadow {
|
|
39
|
-
border-color: var(--dx-c-color-border-2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.nav-menu.state-closed {
|
|
43
|
-
opacity: 0;
|
|
44
|
-
visibility: hidden;
|
|
45
|
-
transform: translateY(-16px);
|
|
46
|
-
pointer-events: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.nav-menu ul {
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.nav-menu_item {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.nav-menu_item,
|
|
61
|
-
.nav-menu_item_cta-main {
|
|
62
|
-
transition: var(--dx-g-transition-hue-1x);
|
|
63
|
-
border-radius: var(--dx-g-spacing-xs);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.nav-menu_item_cta-main {
|
|
67
|
-
justify-content: space-between;
|
|
68
|
-
font-family: var(--dx-g-font-display);
|
|
69
|
-
font-size: var(--dx-g-text-base);
|
|
70
|
-
color: var(--dx-g-blue-vibrant-20);
|
|
71
|
-
line-height: 20px;
|
|
72
|
-
padding: var(--dx-g-spacing-sm) var(--dx-g-spacing-md);
|
|
73
|
-
width: 100%;
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.nav-menu ul > .nav-menu_item:not(:last-of-type) {
|
|
79
|
-
margin-bottom: var(--dx-g-spacing-xs);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.nav-menu_item.state-open {
|
|
83
|
-
background: var(--dx-c-button-color-background-inactive);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.nav-menu_item_cta-main:not(.state-active):hover {
|
|
87
|
-
background: var(--dx-c-button-color-background-inactive);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.nav-menu_item.state-open .nav-menu_item_cta-main:hover {
|
|
91
|
-
background: var(--dx-c-button-color-background-inactive-hover);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.nav-menu_item.state-open .chevrondown {
|
|
95
|
-
transform: rotateX(180deg);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.nav-menu_item_cta-options {
|
|
99
|
-
position: relative;
|
|
100
|
-
display: none;
|
|
101
|
-
flex-direction: column;
|
|
102
|
-
width: 100%;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.nav-menu_item.state-open > .nav-menu_item_cta-options {
|
|
106
|
-
display: flex;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.nav-menu_item_cta {
|
|
110
|
-
height: var(--dx-g-spacing-3xl);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.nav-menu_item_cta-main.state-active {
|
|
114
|
-
background: var(--dx-c-button-color-background-active);
|
|
115
|
-
color: var(--dx-c-color);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.nav-menu_item_cta-main > span {
|
|
119
|
-
transform: translateY(3px); /* ghost padding */
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.nav-menu_item_cta-sub {
|
|
123
|
-
--dx-c-button-secondary-color-hover: var(
|
|
124
|
-
--dx-c-button-color-background-inactive-hover
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
font-size: var(--dx-g-text-sm);
|
|
128
|
-
width: 100%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.nav-menu_item_cta-sub::part(container) {
|
|
132
|
-
justify-content: flex-start;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.nav-menu_item_cta-sub.state-active {
|
|
136
|
-
text-decoration: underline;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.nav-menu_item > .nav-menu_item_cta-options:not(:first-of-type) {
|
|
140
|
-
padding-top: var(--dx-g-spacing-xs);
|
|
141
|
-
margin-top: var(--dx-g-spacing-xs);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.nav-menu_item > .nav-menu_item_cta-options:not(:first-of-type)::after {
|
|
145
|
-
content: "";
|
|
146
|
-
position: absolute;
|
|
147
|
-
top: 0;
|
|
148
|
-
left: var(--dx-g-spacing-md);
|
|
149
|
-
width: calc(100% - var(--dx-g-spacing-xl));
|
|
150
|
-
height: 1px;
|
|
151
|
-
background: var(--dx-c-color-border-2);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.backdrop {
|
|
155
|
-
position: fixed;
|
|
156
|
-
top: 0;
|
|
157
|
-
left: 0;
|
|
158
|
-
height: 100vh;
|
|
159
|
-
width: 100vw;
|
|
160
|
-
z-index: -1;
|
|
161
|
-
}
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<template>
|
|
1
|
+
<template lwc:render-mode='light'>
|
|
2
2
|
<nav
|
|
3
3
|
aria-label="Navigation Menu"
|
|
4
4
|
class={className}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
onscroll={onScroll}
|
|
7
7
|
>
|
|
8
8
|
<ul>
|
|
9
|
-
<template for:each={navItems} for:item="navItem">
|
|
9
|
+
<template for:each={navItems} for:item="navItem" lwc:render-mode='light'>
|
|
10
10
|
<li
|
|
11
11
|
class={navItem.liClassName}
|
|
12
12
|
key={navItem.id}
|
|
@@ -38,16 +38,17 @@
|
|
|
38
38
|
size="medium"
|
|
39
39
|
></dx-icon>
|
|
40
40
|
</button>
|
|
41
|
-
<template if:true={navItem.options}>
|
|
42
|
-
<template for:each={navItem.options} for:item="options">
|
|
41
|
+
<template if:true={navItem.options} lwc:render-mode='light'>
|
|
42
|
+
<template for:each={navItem.options} for:item="options" lwc:render-mode='light'>
|
|
43
43
|
<div
|
|
44
44
|
class="nav-menu_item_cta-options"
|
|
45
45
|
key={options.id}
|
|
46
46
|
>
|
|
47
|
-
<template if:true={options.options}>
|
|
47
|
+
<template if:true={options.options} lwc:render-mode='light'>
|
|
48
48
|
<template
|
|
49
49
|
for:each={options.options}
|
|
50
50
|
for:item="navSubItem"
|
|
51
|
+
lwc:render-mode='light'
|
|
51
52
|
>
|
|
52
53
|
<dx-header-mobile-nav-menu-option
|
|
53
54
|
key={navSubItem.id}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
.nav-menu {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 100%;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-height: 56vh;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
padding: 0 var(--dx-g-spacing-sm) var(--dx-g-spacing-sm)
|
|
9
|
+
var(--dx-g-spacing-sm);
|
|
10
|
+
background: var(--dx-c-color-background);
|
|
11
|
+
box-shadow: 0 20px 28px 0 rgba(0, 20, 45, 0.08);
|
|
12
|
+
transform: translateY(0);
|
|
13
|
+
border-top: 1px solid transparent;
|
|
14
|
+
transition: var(--dx-g-transition-transform-2x),
|
|
15
|
+
var(--dx-g-transition-hue-1x);
|
|
16
|
+
z-index: 1000;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nav-menu.has-scrollshadow {
|
|
20
|
+
border-color: var(--dx-c-color-border-2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nav-menu ul {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nav-menu_item {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nav-menu_item,
|
|
35
|
+
.nav-menu_item_cta-main {
|
|
36
|
+
transition: var(--dx-g-transition-hue-1x);
|
|
37
|
+
border-radius: var(--dx-g-spacing-xs);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nav-menu_item_cta-main {
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
font-family: var(--dx-g-font-display);
|
|
43
|
+
font-size: var(--dx-g-text-base);
|
|
44
|
+
color: var(--dx-g-blue-vibrant-20);
|
|
45
|
+
line-height: 20px;
|
|
46
|
+
padding: var(--dx-g-spacing-sm) var(--dx-g-spacing-md);
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.nav-menu ul > .nav-menu_item:not(:last-of-type) {
|
|
53
|
+
margin-bottom: var(--dx-g-spacing-xs);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nav-menu_item.state-open {
|
|
57
|
+
background: var(--dx-c-button-color-background-inactive);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nav-menu_item_cta-main:not(.state-active):hover {
|
|
61
|
+
background: var(--dx-c-button-color-background-inactive);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nav-menu_item.state-open .nav-menu_item_cta-main:hover {
|
|
65
|
+
background: var(--dx-c-button-color-background-inactive-hover);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.nav-menu_item.state-open .chevrondown {
|
|
69
|
+
transform: rotateX(180deg);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.nav-menu_item_cta-options {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: none;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nav-menu_item.state-open > .nav-menu_item_cta-options {
|
|
80
|
+
display: flex;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nav-menu_item_cta {
|
|
84
|
+
height: var(--dx-g-spacing-3xl);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nav-menu_item_cta-main.state-active {
|
|
88
|
+
background: var(--dx-c-button-color-background-active);
|
|
89
|
+
color: var(--dx-c-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nav-menu_item_cta-main > span {
|
|
93
|
+
transform: translateY(3px); /* ghost padding */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nav-menu_item_cta-sub {
|
|
97
|
+
--dx-c-button-secondary-color-hover: var(
|
|
98
|
+
--dx-c-button-color-background-inactive-hover
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
font-size: var(--dx-g-text-sm);
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.nav-menu_item_cta-sub::part(container) {
|
|
106
|
+
justify-content: flex-start;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nav-menu_item_cta-sub.state-active {
|
|
110
|
+
text-decoration: underline;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.nav-menu_item > .nav-menu_item_cta-options:not(:first-of-type) {
|
|
114
|
+
padding-top: var(--dx-g-spacing-xs);
|
|
115
|
+
margin-top: var(--dx-g-spacing-xs);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nav-menu_item > .nav-menu_item_cta-options:not(:first-of-type)::after {
|
|
119
|
+
content: "";
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: 0;
|
|
122
|
+
left: var(--dx-g-spacing-md);
|
|
123
|
+
width: calc(100% - var(--dx-g-spacing-xl));
|
|
124
|
+
height: 1px;
|
|
125
|
+
background: var(--dx-c-color-border-2);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.backdrop {
|
|
129
|
+
position: fixed;
|
|
130
|
+
top: 0;
|
|
131
|
+
left: 0;
|
|
132
|
+
height: 100vh;
|
|
133
|
+
width: 100vw;
|
|
134
|
+
z-index: -1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.nav-menu.state-closed {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
visibility: hidden;
|
|
140
|
+
transform: translateY(-16px);
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
@@ -4,6 +4,8 @@ import { OptionWithNested } from "typings/custom";
|
|
|
4
4
|
import { deepmapOptions } from "dxUtils/options";
|
|
5
5
|
|
|
6
6
|
export default class HeaderMobileNavMenu extends LightningElement {
|
|
7
|
+
static renderMode = 'light';
|
|
8
|
+
|
|
7
9
|
@api open: boolean = false;
|
|
8
10
|
@api value: string | null = null;
|
|
9
11
|
@api pathname: string | null = null;
|
|
@@ -62,7 +64,7 @@ export default class HeaderMobileNavMenu extends LightningElement {
|
|
|
62
64
|
|
|
63
65
|
renderedCallback() {
|
|
64
66
|
if (!this.navElement) {
|
|
65
|
-
this.navElement = this.
|
|
67
|
+
this.navElement = this.querySelector("nav");
|
|
66
68
|
}
|
|
67
69
|
if (this.open && !this.wasOpen && this.value) {
|
|
68
70
|
this.scrollToAccordianSection();
|
|
@@ -73,10 +75,10 @@ export default class HeaderMobileNavMenu extends LightningElement {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
private scrollToAccordianSection() {
|
|
76
|
-
const element = this.
|
|
78
|
+
const element = this.querySelector(
|
|
77
79
|
`li[data-id="${this.value}"]`
|
|
78
80
|
);
|
|
79
|
-
const container = this.
|
|
81
|
+
const container = this.querySelector(".nav-menu");
|
|
80
82
|
if (element && container) {
|
|
81
83
|
container.scrollTop = element.offsetTop - 8;
|
|
82
84
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<template>
|
|
1
|
+
<template lwc:render-mode='light'>
|
|
2
2
|
<nav role="navigation" aria-label={ariaLabel}>
|
|
3
3
|
<ul class="nav-list">
|
|
4
|
-
<template for:each={navItems} for:item="navItem">
|
|
4
|
+
<template for:each={navItems} for:item="navItem" lwc:render-mode='light'>
|
|
5
5
|
<li key={navItem.id}>
|
|
6
6
|
<dx-tab
|
|
7
7
|
if:false={navItem.options}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import { TabVariant, OptionWithNested } from "typings/custom";
|
|
3
3
|
export default class HeaderNav extends LightningElement {
|
|
4
|
+
static renderMode = 'light';
|
|
5
|
+
|
|
4
6
|
@api pathname: string | null = null;
|
|
5
7
|
@api variant: TabVariant = "default";
|
|
6
8
|
@api ariaLabel: string = "Primary Navigation";
|
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* DESKTOP */
|
|
4
|
-
|
|
5
|
-
:host {
|
|
1
|
+
dx-header-search {
|
|
6
2
|
--toggle-width: var(--dx-g-spacing-5xl);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.desktop_search-container {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
height: var(--dx-g-spacing-xl);
|
|
13
|
-
font-size: var(--dx-g-text-sm);
|
|
14
|
-
font-family: var(--dx-g-font-sans);
|
|
15
|
-
color: var(--dx-g-gray-50);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.desktop_search-container dx-input {
|
|
19
|
-
--dx-c-input-width: calc(
|
|
20
|
-
var(--dx-c-header-search-width) - var(--toggle-width)
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* MOBILE */
|
|
25
|
-
|
|
26
|
-
.mobile_search-button {
|
|
27
|
-
position: relative;
|
|
28
|
-
z-index: 3;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.mobile_search-dropdown {
|
|
32
|
-
--dx-c-popover-border-radius: 0;
|
|
33
|
-
--dx-c-popover-border: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.mobile_search-input {
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
left: 0;
|
|
40
|
-
height: 100%;
|
|
41
|
-
width: 100%;
|
|
42
|
-
transition: var(--dx-g-transition-hue-1x);
|
|
43
|
-
opacity: 0;
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
|
|
46
|
-
--dx-c-input-border: none;
|
|
47
|
-
--dx-c-input-border-radius: 0;
|
|
48
|
-
--dx-c-input-border-active: none;
|
|
49
|
-
--dx-c-input-icon-color: var(--dx-g-blue-vibrant-20);
|
|
50
|
-
--dx-c-input-padding: 0 var(--dx-g-spacing-4xl) 0 var(--dx-g-spacing-md);
|
|
51
|
-
--dx-c-input-background: var(--dx-g-brand-current-color-background-2);
|
|
52
|
-
--dx-c-input-background-active: var(
|
|
53
|
-
--dx-g-brand-current-color-background-2
|
|
54
|
-
);
|
|
55
|
-
--dx-c-input-height: 100% !important;
|
|
56
|
-
--dx-c-input-width: 100%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.mobile_search-input.state-open {
|
|
60
|
-
opacity: 1;
|
|
61
|
-
pointer-events: auto;
|
|
62
|
-
}
|
|
3
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<template>
|
|
1
|
+
<template lwc:render-mode='light'>
|
|
2
2
|
<div class={className} role="search" aria-label="Records Search">
|
|
3
3
|
<!-- MOBILE -->
|
|
4
|
-
<template if:true={mobile}>
|
|
4
|
+
<template if:true={mobile} lwc:render-mode='light'>
|
|
5
5
|
<dx-dropdown
|
|
6
6
|
aria-label="Record Type"
|
|
7
7
|
class="mobile_search-dropdown"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<!-- DESKTOP -->
|
|
40
|
-
<template if:false={mobile}>
|
|
40
|
+
<template if:false={mobile} lwc:render-mode='light'>
|
|
41
41
|
<dx-dropdown
|
|
42
42
|
options={suggestions}
|
|
43
43
|
open={isDropdownOpen}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* DESKTOP */
|
|
2
|
+
|
|
3
|
+
.desktop_search-container {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
height: var(--dx-g-spacing-xl);
|
|
7
|
+
font-size: var(--dx-g-text-sm);
|
|
8
|
+
font-family: var(--dx-g-font-sans);
|
|
9
|
+
color: var(--dx-g-gray-50);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.desktop_search-container dx-input {
|
|
13
|
+
--dx-c-input-width: calc(
|
|
14
|
+
var(--dx-c-header-search-width) - var(--toggle-width)
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* MOBILE */
|
|
19
|
+
|
|
20
|
+
.mobile_search-button {
|
|
21
|
+
position: relative;
|
|
22
|
+
z-index: 3;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mobile_search-dropdown {
|
|
26
|
+
--dx-c-popover-border-radius: 0;
|
|
27
|
+
--dx-c-popover-border: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mobile_search-input {
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
height: 100%;
|
|
35
|
+
width: 100%;
|
|
36
|
+
transition: var(--dx-g-transition-hue-1x);
|
|
37
|
+
opacity: 0;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
|
|
40
|
+
--dx-c-input-border: none;
|
|
41
|
+
--dx-c-input-border-radius: 0;
|
|
42
|
+
--dx-c-input-border-active: none;
|
|
43
|
+
--dx-c-input-icon-color: var(--dx-g-blue-vibrant-20);
|
|
44
|
+
--dx-c-input-padding: 0 var(--dx-g-spacing-4xl) 0 var(--dx-g-spacing-md);
|
|
45
|
+
--dx-c-input-background: var(--dx-g-brand-current-color-background-2);
|
|
46
|
+
--dx-c-input-background-active: var(
|
|
47
|
+
--dx-g-brand-current-color-background-2
|
|
48
|
+
);
|
|
49
|
+
--dx-c-input-height: 100% !important;
|
|
50
|
+
--dx-c-input-width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.mobile_search-input.state-open {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
|
|
3
3
|
export default class Logo extends LightningElement {
|
|
4
|
+
static renderMode = 'light';
|
|
5
|
+
|
|
4
6
|
@api href: string = "/";
|
|
5
7
|
@api imgSrc: string = "/assets/svg/salesforce-cloud.svg";
|
|
6
|
-
@api imgAlt: string = "Salesforce
|
|
8
|
+
@api imgAlt: string = "Salesforce log";
|
|
7
9
|
@api label!: string;
|
|
8
10
|
}
|
|
@@ -64,22 +64,3 @@
|
|
|
64
64
|
.popover-small {
|
|
65
65
|
width: 136px;
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
.popover-arrow {
|
|
69
|
-
position: absolute;
|
|
70
|
-
background: linear-gradient(
|
|
71
|
-
315deg,
|
|
72
|
-
transparent 4px,
|
|
73
|
-
white 4px
|
|
74
|
-
); /* make only top half of rotated square visible */
|
|
75
|
-
width: 8px;
|
|
76
|
-
height: 8px;
|
|
77
|
-
transform: rotate(45deg);
|
|
78
|
-
border: var(--popover-border);
|
|
79
|
-
border-bottom: transparent;
|
|
80
|
-
border-right: transparent;
|
|
81
|
-
box-shadow: var(--dx-g-box-shadow-lg);
|
|
82
|
-
transition: opacity 0.2s linear, transform 0.2s linear;
|
|
83
|
-
transition-delay: 0.02s;
|
|
84
|
-
z-index: var(--dx-c-popover-z-index, var(--dx-g-z-index-max));
|
|
85
|
-
}
|