@salesforcedevs/dx-components 1.3.194 → 1.3.196-alpha1

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.
Files changed (39) hide show
  1. package/lwc.config.json +0 -1
  2. package/package.json +4 -5
  3. package/src/modules/dx/alert/alert.css +1 -1
  4. package/src/modules/dx/breadcrumbs/breadcrumbs.css +2 -2
  5. package/src/modules/dx/cardDocs/cardDocs.css +1 -1
  6. package/src/modules/dx/cardGridDocs/cardGridDocs.css +0 -1
  7. package/src/modules/dx/cardNews/cardNews.css +7 -7
  8. package/src/modules/dx/cardStep/mockProps.ts +2 -1
  9. package/src/modules/dx/cardTrialExpanded/cardTrialExpanded.css +2 -2
  10. package/src/modules/dx/checkbox/checkbox.css +1 -2
  11. package/src/modules/dx/checkboxNative/checkboxNative.css +0 -3
  12. package/src/modules/dx/codeBlock/codeBlock.ts +6 -6
  13. package/src/modules/dx/codeBlock/customLanguages.js +2 -4
  14. package/src/modules/dx/codeBlock/lightTheme.css +4 -4
  15. package/src/modules/dx/dropdown/dropdown.css +2 -4
  16. package/src/modules/dx/dropdownOption/dropdownOption.css +2 -2
  17. package/src/modules/dx/feature/feature.css +1 -1
  18. package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +3 -3
  19. package/src/modules/dx/filterMenu/filterMenu.css +2 -6
  20. package/src/modules/dx/footer/footer.css +4 -3
  21. package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +1 -1
  22. package/src/modules/dx/icon/icon.css +1 -1
  23. package/src/modules/dx/input/input.css +0 -3
  24. package/src/modules/dx/searchResults/searchResults.css +2 -3
  25. package/src/modules/dx/select/select.css +1 -15
  26. package/src/modules/dx/spinner/spinner.css +28 -225
  27. package/src/modules/dx/toast/toast.css +1 -1
  28. package/src/modules/dxHelpers/animations/animations.css +1 -1
  29. package/src/modules/dxHelpers/card/card.css +1 -1
  30. package/src/modules/dxHelpers/code/code.css +5 -13
  31. package/src/modules/dxHelpers/commonTreeItem/commonTreeItem.css +1 -1
  32. package/src/modules/dxHelpers/reset/reset.css +6 -13
  33. package/src/modules/dxHelpers/text/text.css +1 -1
  34. package/src/modules/dxUtils/prismjs/prismjs.ts +168 -294
  35. package/LICENSE +0 -12
  36. package/src/modules/dx/header/__benchmarks__/header.benchmark.js +0 -45
  37. package/src/modules/dx/header/header.css +0 -99
  38. package/src/modules/dx/header/header.html +0 -132
  39. package/src/modules/dx/header/header.ts +0 -21
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,45 +0,0 @@
1
- // import Header from "dx/header";
2
- // import { createElement } from "lwc";
3
-
4
- // const navItems = [
5
- // {
6
- // id: "home",
7
- // label: "Home",
8
- // link: {
9
- // href: "/developers",
10
- // target: null
11
- // }
12
- // },
13
- // {
14
- // id: "documentation",
15
- // label: "Documentation",
16
- // link: {
17
- // href: "/docs",
18
- // target: null
19
- // }
20
- // },
21
- // {
22
- // id: "notes",
23
- // label: "Notes",
24
- // link: {
25
- // href: "/notes",
26
- // target: null
27
- // }
28
- // }
29
- // ];
30
-
31
- describe("dx-header", () => {
32
- benchmark("creates and renders", () => {
33
- let element;
34
- run(() => {
35
- // element = createElement("dx-header", {
36
- // is: Header
37
- // });
38
- // Object.assign(element, { navItems });
39
- // document.body.appendChild(element);
40
- });
41
- after(() => {
42
- return element && element.parentElement.removeChild(element);
43
- });
44
- });
45
- });
@@ -1,99 +0,0 @@
1
- @import "dxHelpers/commonHeader";
2
-
3
- :host {
4
- --dx-c-header-search-width: 316px;
5
- --dx-g-text-xs: 14px;
6
- }
7
-
8
- dx-header-mobile-nav-menu {
9
- --dx-c-color-background: var(--dx-g-brand-current-color-background);
10
- --dx-c-button-color-background-inactive: var(
11
- --dx-g-brand-current-button-color-background-inactive
12
- );
13
- --dx-c-button-color-background-active: var(
14
- --dx-g-brand-current-button-color-background-active
15
- );
16
- --dx-c-color: var(--dx-g-brand-current-color);
17
- --dx-c-color-border: var(--dx-g-brand-current-color-border);
18
- --dx-c-color-background-2: var(--dx-g-brand-current-color-background-2);
19
- --dx-c-button-color-background-inactive-hover: var(
20
- --dx-g-brand-current-button-color-background-inactive-hover
21
- );
22
- --dx-c-color-border-2: var(--dx-g-brand-current-color-border-2);
23
- }
24
-
25
- .header_l2_group-title {
26
- margin-right: var(--dx-g-spacing-4xl);
27
- }
28
-
29
- .header_l2_group-nav_menu-ctas {
30
- display: none;
31
- position: relative;
32
- justify-content: center;
33
- align-items: center;
34
- padding-right: var(--dx-g-spacing-sm);
35
- height: 100%;
36
- }
37
-
38
- .header_l2_group-nav_menu-ctas::after {
39
- content: "";
40
- position: absolute;
41
- right: 0;
42
- top: var(--dx-g-spacing-sm);
43
- height: calc(100% - var(--dx-g-spacing-md));
44
- width: 1px;
45
- background: transparent;
46
- transition: var(--dx-g-transition-hue-1x);
47
- }
48
-
49
- header.has-navscrollshadow .header_l2_group-nav_menu-ctas::after {
50
- background: var(--dx-g-brand-current-color-border);
51
- }
52
-
53
- .header_l2_group-nav_menu-button {
54
- --dx-c-button-primary-color: var(--dx-g-blue-vibrant-20);
55
- --dx-c-button-secondary-color-hover: var(
56
- --dx-g-brand-current-button-color-background-inactive
57
- );
58
- }
59
-
60
- @media (max-width: 1024px) {
61
- .header_l2 {
62
- flex-wrap: wrap;
63
- height: unset;
64
- padding: 0;
65
- }
66
-
67
- .header_l2_group-title {
68
- margin-right: 0;
69
- padding: 12px var(--dx-g-page-padding-horizontal);
70
- }
71
-
72
- .header_l2_group {
73
- width: 100%;
74
- }
75
-
76
- .header_l2_group-nav {
77
- height: var(--dx-g-spacing-3xl);
78
- padding: 0;
79
- padding-left: var(--dx-g-spacing-sm);
80
- }
81
-
82
- .header_l2_group-nav_overflow {
83
- margin-right: var(--dx-g-spacing-sm);
84
- }
85
-
86
- .header_version-dropdown {
87
- margin-left: auto;
88
- }
89
-
90
- .has-nav-items .header_l2_group-title {
91
- border-bottom: 1px solid var(--dx-g-brand-current-color-border-2);
92
- }
93
- }
94
-
95
- @media (max-width: 768px) {
96
- .header_l2_group-nav > .header_l2_group-nav_menu-ctas {
97
- display: flex;
98
- }
99
- }
@@ -1,132 +0,0 @@
1
- <template>
2
- <dx-brand-theme-provider brand={brand}>
3
- <header class={className}>
4
- <dx-skip-nav-link></dx-skip-nav-link>
5
- <dx-banner
6
- if:true={showBanner}
7
- banner-markup={bannerMarkup}
8
- ></dx-banner>
9
- <div class="header_l1">
10
- <dx-logo label={title}></dx-logo>
11
- <div class="header-cta-container">
12
- <dx-header-search
13
- if:true={hasSearch}
14
- coveo-organization-id={coveoOrganizationId}
15
- coveo-public-access-token={coveoPublicAccessToken}
16
- coveo-search-pipeline={coveoSearchPipeline}
17
- coveo-search-hub={coveoSearchHub}
18
- mobile={mobile}
19
- onstatechange={handleStateChange}
20
- ></dx-header-search>
21
- </div>
22
- <div
23
- if:true={showTbidLogin}
24
- class="header-tbid-login"
25
- onclick={closeMobileNavMenu}
26
- >
27
- <dw-tbid-login-menu
28
- tbid-api-base-url={tbidApiBaseUrl}
29
- tbid-base-url={tbidBaseUrl}
30
- ></dw-tbid-login-menu>
31
- </div>
32
- <div if:true={showSignup} class="header-login-signup">
33
- <dx-button
34
- aria-label="Browse Trials"
35
- size="small"
36
- href={signupLink}
37
- onclick={handleSignUpClick}
38
- >
39
- Browse Trials
40
- </dx-button>
41
- </div>
42
- </div>
43
- <div class="header_l2">
44
- <div class="header_l2_group header_l2_group-title">
45
- <a href="/" class="home-link" if:true={isValidSubtitle}>
46
- <dx-icon
47
- class="brand-icon"
48
- if:true={isValidBrand}
49
- sprite="salesforcebrand"
50
- symbol={brand}
51
- size="xlarge"
52
- ></dx-icon>
53
- <span class="dx-text-display-6 subtitle">
54
- {subtitle}
55
- </span>
56
- </a>
57
- <dx-dropdown
58
- class="header_version-dropdown"
59
- if:true={versions}
60
- options={versions}
61
- value={version}
62
- onchange={onVersionChange}
63
- small
64
- >
65
- <dx-button
66
- aria-label="Select Version"
67
- class="header_version-selector"
68
- variant="tertiary"
69
- icon-symbol="chevrondown"
70
- >
71
- {versionLabel}
72
- </dx-button>
73
- </dx-dropdown>
74
- </div>
75
- <div
76
- class="header_l2_group header_l2_group-nav"
77
- if:true={hasNavItems}
78
- >
79
- <div class="header_l2_group-nav_menu-ctas">
80
- <dx-button
81
- aria-label="Toggle Mobile Nav Menu"
82
- class="header_l2_group-nav_menu-button"
83
- icon-size="large"
84
- icon-symbol={mobileMenuIconSymbol}
85
- variant="tertiary"
86
- onclick={toggleMobileNavMenu}
87
- ></dx-button>
88
- </div>
89
- <div
90
- class="header_l2_group-nav_overflow"
91
- onscroll={onNavScroll}
92
- >
93
- <dx-header-nav
94
- nav-items={navItems}
95
- onrequestopennavmenu={onRequestOpenNavMenu}
96
- pathname={pathname}
97
- variant="small"
98
- ></dx-header-nav>
99
- <dx-button
100
- aria-label={bailLabel}
101
- if:true={hasBailLink}
102
- href={bailHref}
103
- variant="tertiary"
104
- icon-symbol="new_window"
105
- >
106
- {bailLabel}
107
- </dx-button>
108
- </div>
109
- </div>
110
- </div>
111
- <dx-header-mobile-nav-menu
112
- nav-items={navItems}
113
- onchange={onMobileNavMenuChange}
114
- open={showMobileNavMenu}
115
- pathname={pathname}
116
- value={mobileNavMenuValue}
117
- onrequestclose={closeMobileNavMenu}
118
- if:true={hasNavItems}
119
- >
120
- <dx-button
121
- aria-label={bailLabel}
122
- if:true={hasBailLink}
123
- href={bailHref}
124
- variant="tertiary"
125
- icon-symbol="new_window"
126
- >
127
- {bailLabel}
128
- </dx-button>
129
- </dx-header-mobile-nav-menu>
130
- </header>
131
- </dx-brand-theme-provider>
132
- </template>
@@ -1,21 +0,0 @@
1
- import { HeaderBase } from "dxBaseElements/headerBase";
2
-
3
- export default class Header extends HeaderBase {
4
- private get showTbidLogin(): boolean {
5
- return this.showSignup;
6
- }
7
-
8
- private get showSignup(): boolean {
9
- return this.signupLink
10
- ? (this.mobile && !this.isSearchOpen) || !this.mobile
11
- : false;
12
- }
13
-
14
- protected mobileBreakpoint(): string {
15
- return "768px";
16
- }
17
-
18
- get isValidSubtitle() {
19
- return this.isValidBrand || this.subtitle;
20
- }
21
- }