@hashicorp/react-components 0.0.0-nightly.f3bf415 → 0.0.0-nightly.f535c63
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 +8 -5
- package/src/components/card/primitives.tsx +2 -1
- package/src/components/card/types.ts +2 -2
- package/src/components/card/unified-card/index.tsx +4 -10
- package/src/components/marketo-form/partials/fields/htmltext-field/style.module.css +16 -4
- package/src/components/marketo-form/utils.ts +4 -0
- package/src/components/nav-panel/components/link-list/index.tsx +7 -6
- package/src/components/nav-panel/components/panel/column/index.tsx +17 -2
- package/src/components/nav-panel/components/panel/column/style.module.css +12 -2
- package/src/components/nav-panel/components/panel/root/index.tsx +13 -2
- package/src/components/nav-panel/components/panel/root/style.module.css +19 -4
- package/src/components/nav-panel/components/promo/index.tsx +17 -10
- package/src/components/nav-panel/components/promo/style.module.css +28 -6
- package/src/components/nav-panel/product-panel/index.tsx +104 -27
- package/src/components/nav-panel/product-panel/style.module.css +230 -15
- package/src/components/nav-panel/standard-panel/index.tsx +1 -1
- package/src/components/nav-panel/standard-panel/style.module.css +1 -1
- package/src/components/subnav/index.tsx +2 -2
- package/src/components/subnav/partials/CtaLinks/github-stars-link/style.module.css +8 -12
- package/src/components/subnav/partials/CtaLinks/style.module.css +4 -4
- package/src/components/subnav/partials/DropdownTrigger/index.tsx +1 -1
- package/src/components/subnav/partials/DropdownTrigger/style.module.css +7 -4
- package/src/components/subnav/partials/MenuItemsDefault/index.tsx +10 -3
- package/src/components/subnav/partials/MenuItemsDefault/style.module.css +37 -24
- package/src/components/subnav/partials/MenuItemsOverflow/index.tsx +8 -4
- package/src/components/subnav/partials/MenuItemsOverflow/style.module.css +22 -16
- package/src/components/subnav/partials/TitleLink/index.tsx +10 -10
- package/src/components/subnav/partials/TitleLink/mktg-logos/all-community-product-logos_on-dark.ts +9 -8
- package/src/components/subnav/partials/TitleLink/mktg-logos/all-community-product-logos_on-light.ts +9 -8
- package/src/components/subnav/partials/TitleLink/mktg-logos/all-primary-logos_on-dark.ts +10 -10
- package/src/components/subnav/partials/TitleLink/mktg-logos/all-primary-logos_on-light.ts +10 -10
- package/src/components/subnav/partials/TitleLink/style.module.css +1 -1
- package/src/components/subnav/partials/nav-item-text/style.module.css +2 -4
- package/src/components/subnav/style.module.css +3 -5
- package/src/lib/parse-url/index.test.ts +35 -0
- package/src/lib/parse-url/index.ts +32 -0
- package/src/lib/track-nav-click-event/index.ts +22 -0
- package/src/lib/v/index.ts +10 -0
- package/src/components/subnav/theme.module.css +0 -50
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* Note: consumes from theme.module.css, as marked */
|
|
7
|
-
|
|
8
6
|
.root {
|
|
9
7
|
position: relative;
|
|
10
8
|
display: flex;
|
|
@@ -12,14 +10,14 @@
|
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
.dropdown {
|
|
15
|
-
background: var(--
|
|
16
|
-
border-radius:
|
|
13
|
+
background: var(--token-color-surface-primary);
|
|
14
|
+
border-radius: var(--hdsplus-spacing-03);
|
|
17
15
|
box-shadow: var(--token-elevation-high-box-shadow);
|
|
18
|
-
border: 1px solid var(--border-
|
|
16
|
+
border: 1px solid var(--token-color-border-primary);
|
|
19
17
|
margin-top: 8px;
|
|
20
18
|
max-height: calc(100vh - 300%);
|
|
21
19
|
overflow-y: auto;
|
|
22
|
-
padding: var(--hdsplus-spacing-04)
|
|
20
|
+
padding: var(--hdsplus-spacing-04);
|
|
23
21
|
position: absolute;
|
|
24
22
|
right: 0;
|
|
25
23
|
top: 100%;
|
|
@@ -52,27 +50,35 @@
|
|
|
52
50
|
|
|
53
51
|
.submenuTitle {
|
|
54
52
|
composes: g-type-label from global;
|
|
55
|
-
margin:
|
|
56
|
-
color: var(--
|
|
53
|
+
margin: var(--hdsplus-spacing-04) var(--hdsplus-spacing-03) 8px;
|
|
54
|
+
color: var(--token-color-foreground-faint);
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
.divider {
|
|
60
|
-
margin:
|
|
58
|
+
margin: var(--hdsplus-spacing-04) var(--hdsplus-spacing-03);
|
|
61
59
|
border: 0;
|
|
62
60
|
padding: 0;
|
|
63
61
|
height: 1px;
|
|
64
|
-
background: var(--border-
|
|
62
|
+
background: var(--token-color-border-primary);
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
.submenuItem {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
composes: hds-typography-body-300 from global;
|
|
67
|
+
composes: hds-font-weight-semibold from global;
|
|
68
|
+
display: flex;
|
|
69
|
+
gap: var(--hdsplus-spacing-04);
|
|
70
|
+
padding: var(--hdsplus-spacing-02) var(--hdsplus-spacing-03);
|
|
71
|
+
color: var(--token-color-foreground-primary);
|
|
72
|
+
border-radius: var(--hdsplus-spacing-01);
|
|
73
|
+
align-items: center;
|
|
73
74
|
|
|
74
75
|
&:hover {
|
|
75
|
-
|
|
76
|
+
background-color: var(--token-color-surface-interactive-hover);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:focus {
|
|
80
|
+
outline: 2px solid var(--token-color-focus-action-internal);
|
|
81
|
+
outline-style: auto;
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
|
|
@@ -7,20 +7,20 @@ import { forwardRef } from 'react'
|
|
|
7
7
|
import { camelCase } from 'camel-case'
|
|
8
8
|
import Link from 'next/link'
|
|
9
9
|
import Image from 'next/image'
|
|
10
|
-
import {
|
|
10
|
+
import { vercelSplit } from '../../../../lib/v'
|
|
11
11
|
import classNames from 'classnames'
|
|
12
12
|
import * as CommunityProductLogosOnDark from './mktg-logos/all-community-product-logos_on-dark'
|
|
13
13
|
import * as CommunityProductLogosOnLight from './mktg-logos/all-community-product-logos_on-light'
|
|
14
14
|
import * as PrimaryLogosOnDark from './mktg-logos/all-primary-logos_on-dark'
|
|
15
15
|
import * as PrimaryLogosOnLight from './mktg-logos/all-primary-logos_on-light'
|
|
16
|
-
import HashiCorpLogoOnLight from '@web
|
|
17
|
-
import HashiCorpLogoOnDark from '@web
|
|
18
|
-
import HCPLogoOnLight from '@web
|
|
19
|
-
import HCPLogoOnDark from '@web
|
|
20
|
-
import WaypointLogoAttrOnLight from '@web
|
|
21
|
-
import WaypointLogoAttrOnDark from '@web
|
|
22
|
-
import HCPTerraformLogoOnLight from '@web
|
|
23
|
-
import HCPTerraformLogoOnDark from '@web
|
|
16
|
+
import HashiCorpLogoOnLight from '@hashicorp/web-mktg-logos/src/hashicorp/hashicorp-horizontal_on-light.svg'
|
|
17
|
+
import HashiCorpLogoOnDark from '@hashicorp/web-mktg-logos/src/hashicorp/hashicorp-horizontal_on-dark.svg'
|
|
18
|
+
import HCPLogoOnLight from '@hashicorp/web-mktg-logos/src/hcp/hcp-horizontal_on-light.svg'
|
|
19
|
+
import HCPLogoOnDark from '@hashicorp/web-mktg-logos/src/hcp/hcp-horizontal_on-dark.svg'
|
|
20
|
+
import WaypointLogoAttrOnLight from '@hashicorp/web-mktg-logos/src/waypoint/hashicorp-waypoint-attributed/hashicorp-waypoint_on-light.svg'
|
|
21
|
+
import WaypointLogoAttrOnDark from '@hashicorp/web-mktg-logos/src/waypoint/hashicorp-waypoint-attributed/hashicorp-waypoint_on-dark.svg'
|
|
22
|
+
import HCPTerraformLogoOnLight from '@hashicorp/web-mktg-logos/src/terraform/hcp-terraform/hcp-terraform_on-light.svg'
|
|
23
|
+
import HCPTerraformLogoOnDark from '@hashicorp/web-mktg-logos/src/terraform/hcp-terraform/hcp-terraform_on-dark.svg'
|
|
24
24
|
import s from './style.module.css'
|
|
25
25
|
|
|
26
26
|
const logoDict = {
|
|
@@ -81,7 +81,7 @@ function getLogo(
|
|
|
81
81
|
|
|
82
82
|
const TitleLink = forwardRef<HTMLAnchorElement, TitleLinkProps>(
|
|
83
83
|
({ text, url, product, theme }, ref) => {
|
|
84
|
-
const parsedText =
|
|
84
|
+
const parsedText = vercelSplit(text)
|
|
85
85
|
const Logo = getLogo(parsedText, theme)
|
|
86
86
|
|
|
87
87
|
return (
|
package/src/components/subnav/partials/TitleLink/mktg-logos/all-community-product-logos_on-dark.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import boundary from '@web
|
|
2
|
-
import consul from '@web
|
|
3
|
-
import nomad from '@web
|
|
4
|
-
import packer from '@web
|
|
5
|
-
import terraform from '@web
|
|
6
|
-
import vagrant from '@web
|
|
7
|
-
import vault from '@web
|
|
1
|
+
import boundary from '@hashicorp/web-mktg-logos/src/boundary/boundary-community/boundary-community_on-dark.svg'
|
|
2
|
+
import consul from '@hashicorp/web-mktg-logos/src/consul/consul-community/consul-community_on-dark.svg'
|
|
3
|
+
import nomad from '@hashicorp/web-mktg-logos/src/nomad/nomad-community/nomad-community_on-dark.svg'
|
|
4
|
+
import packer from '@hashicorp/web-mktg-logos/src/packer/packer-community/packer-community_on-dark.svg'
|
|
5
|
+
import terraform from '@hashicorp/web-mktg-logos/src/terraform/terraform-community/terraform-community_on-dark.svg'
|
|
6
|
+
import vagrant from '@hashicorp/web-mktg-logos/src/vagrant/vagrant-community/vagrant-community_on-dark.svg'
|
|
7
|
+
import vault from '@hashicorp/web-mktg-logos/src/vault/vault-community/vault-community_on-dark.svg'
|
|
8
|
+
import waypoint from '@hashicorp/web-mktg-logos/src/waypoint/hashicorp-waypoint-attributed/hashicorp-waypoint_on-dark.svg'
|
|
8
9
|
|
|
9
|
-
export { boundary, consul, nomad, packer, terraform, vagrant, vault }
|
|
10
|
+
export { boundary, consul, nomad, packer, terraform, vagrant, vault, waypoint }
|
package/src/components/subnav/partials/TitleLink/mktg-logos/all-community-product-logos_on-light.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import boundary from '@web
|
|
2
|
-
import consul from '@web
|
|
3
|
-
import nomad from '@web
|
|
4
|
-
import packer from '@web
|
|
5
|
-
import terraform from '@web
|
|
6
|
-
import vagrant from '@web
|
|
7
|
-
import vault from '@web
|
|
1
|
+
import boundary from '@hashicorp/web-mktg-logos/src/boundary/boundary-community/boundary-community_on-light.svg'
|
|
2
|
+
import consul from '@hashicorp/web-mktg-logos/src/consul/consul-community/consul-community_on-light.svg'
|
|
3
|
+
import nomad from '@hashicorp/web-mktg-logos/src/nomad/nomad-community/nomad-community_on-light.svg'
|
|
4
|
+
import packer from '@hashicorp/web-mktg-logos/src/packer/packer-community/packer-community_on-light.svg'
|
|
5
|
+
import terraform from '@hashicorp/web-mktg-logos/src/terraform/terraform-community/terraform-community_on-light.svg'
|
|
6
|
+
import vagrant from '@hashicorp/web-mktg-logos/src/vagrant/vagrant-community/vagrant-community_on-light.svg'
|
|
7
|
+
import vault from '@hashicorp/web-mktg-logos/src/vault/vault-community/vault-community_on-light.svg'
|
|
8
|
+
import waypoint from '@hashicorp/web-mktg-logos/src/waypoint/hashicorp-waypoint-attributed/hashicorp-waypoint_on-light.svg'
|
|
8
9
|
|
|
9
|
-
export { boundary, consul, nomad, packer, terraform, vagrant, vault }
|
|
10
|
+
export { boundary, consul, nomad, packer, terraform, vagrant, vault, waypoint }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import boundary from '@web
|
|
2
|
-
import consul from '@web
|
|
3
|
-
import nomad from '@web
|
|
4
|
-
import packer from '@web
|
|
5
|
-
import terraform from '@web
|
|
6
|
-
import vagrant from '@web
|
|
7
|
-
import vault from '@web
|
|
8
|
-
import waypoint from '@web
|
|
9
|
-
import hashiconf from '@web
|
|
10
|
-
import hashidays from '@web
|
|
1
|
+
import boundary from '@hashicorp/web-mktg-logos/src/boundary/boundary/boundary_on-dark.svg'
|
|
2
|
+
import consul from '@hashicorp/web-mktg-logos/src/consul/consul/consul_on-dark.svg'
|
|
3
|
+
import nomad from '@hashicorp/web-mktg-logos/src/nomad/nomad/nomad_on-dark.svg'
|
|
4
|
+
import packer from '@hashicorp/web-mktg-logos/src/packer/packer/packer_on-dark.svg'
|
|
5
|
+
import terraform from '@hashicorp/web-mktg-logos/src/terraform/terraform/terraform_on-dark.svg'
|
|
6
|
+
import vagrant from '@hashicorp/web-mktg-logos/src/vagrant/vagrant/vagrant_on-dark.svg'
|
|
7
|
+
import vault from '@hashicorp/web-mktg-logos/src/vault/vault/vault_on-dark.svg'
|
|
8
|
+
import waypoint from '@hashicorp/web-mktg-logos/src/waypoint/waypoint/waypoint_on-dark.svg'
|
|
9
|
+
import hashiconf from '@hashicorp/web-mktg-logos/src/conferences/hashiconf_on-dark.svg'
|
|
10
|
+
import hashidays from '@hashicorp/web-mktg-logos/src/conferences/hashidays_on-dark.svg'
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
boundary,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import boundary from '@web
|
|
2
|
-
import consul from '@web
|
|
3
|
-
import nomad from '@web
|
|
4
|
-
import packer from '@web
|
|
5
|
-
import terraform from '@web
|
|
6
|
-
import vagrant from '@web
|
|
7
|
-
import vault from '@web
|
|
8
|
-
import waypoint from '@web
|
|
9
|
-
import hashiconf from '@web
|
|
10
|
-
import hashidays from '@web
|
|
1
|
+
import boundary from '@hashicorp/web-mktg-logos/src/boundary/boundary/boundary_on-light.svg'
|
|
2
|
+
import consul from '@hashicorp/web-mktg-logos/src/consul/consul/consul_on-light.svg'
|
|
3
|
+
import nomad from '@hashicorp/web-mktg-logos/src/nomad/nomad/nomad_on-light.svg'
|
|
4
|
+
import packer from '@hashicorp/web-mktg-logos/src/packer/packer/packer_on-light.svg'
|
|
5
|
+
import terraform from '@hashicorp/web-mktg-logos/src/terraform/terraform/terraform_on-light.svg'
|
|
6
|
+
import vagrant from '@hashicorp/web-mktg-logos/src/vagrant/vagrant/vagrant_on-light.svg'
|
|
7
|
+
import vault from '@hashicorp/web-mktg-logos/src/vault/vault/vault_on-light.svg'
|
|
8
|
+
import waypoint from '@hashicorp/web-mktg-logos/src/waypoint/waypoint/waypoint_on-light.svg'
|
|
9
|
+
import hashiconf from '@hashicorp/web-mktg-logos/src/conferences/hashiconf_on-light.svg'
|
|
10
|
+
import hashidays from '@hashicorp/web-mktg-logos/src/conferences/hashidays_on-light.svg'
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
boundary,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
padding-block: var(--hdsplus-spacing-04);
|
|
12
12
|
font-weight: var(--font-weight-bold);
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--token-color-foreground-primary); /* from theme.module.css */
|
|
14
14
|
font-size: 1.25rem;
|
|
15
15
|
line-height: 1.35rem;
|
|
16
16
|
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* Note: consumes from theme.module.css, as marked */
|
|
7
|
-
|
|
8
6
|
.root {
|
|
9
|
-
color: var(--
|
|
7
|
+
color: var(--token-color-foreground-primary);
|
|
10
8
|
position: relative;
|
|
11
9
|
|
|
12
10
|
&.isActive {
|
|
13
|
-
color: var(--
|
|
11
|
+
color: var(--token-color-foreground-strong);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
@@ -3,19 +3,17 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/* Note: consumes from theme.module.css, as marked */
|
|
7
|
-
|
|
8
6
|
.root {
|
|
9
7
|
position: sticky;
|
|
10
8
|
top: -1px;
|
|
11
9
|
z-index: 900;
|
|
12
|
-
background: var(--
|
|
13
|
-
border-top: 1px solid var(--border-
|
|
10
|
+
background: var(--token-color-surface-primary);
|
|
11
|
+
border-top: 1px solid var(--token-color-border-faint);
|
|
14
12
|
border-bottom: 1px solid transparent;
|
|
15
13
|
transition: border-bottom-color 0.8s;
|
|
16
14
|
|
|
17
15
|
&.isSticky {
|
|
18
|
-
border-bottom-color: var(--border-
|
|
16
|
+
border-bottom-color: var(--token-color-border-faint);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
/*
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { parseUrl } from '.'
|
|
2
|
+
|
|
3
|
+
describe('parseUrl', () => {
|
|
4
|
+
it('detects hashicorp.com URLs as internal', () => {
|
|
5
|
+
const url = parseUrl('https://hashicorp.com/example')
|
|
6
|
+
expect(url.href).toBe('/example')
|
|
7
|
+
expect(url.linkType).toBe('inbound')
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
it('detects URLs not containing hashicorp.com as external', () => {
|
|
11
|
+
const externalUrl = 'https://google.com/example'
|
|
12
|
+
const url = parseUrl(externalUrl)
|
|
13
|
+
expect(url.href).toBe(externalUrl)
|
|
14
|
+
expect(url.linkType).toBe('outbound')
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
it('detects relative URLs as internal', () => {
|
|
18
|
+
const relativeUrl = '/resources'
|
|
19
|
+
const url = parseUrl(relativeUrl)
|
|
20
|
+
expect(url.href).toBe(relativeUrl)
|
|
21
|
+
expect(url.linkType).toBe('inbound')
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
it('leaves URL search params intact', () => {
|
|
25
|
+
const url = parseUrl(
|
|
26
|
+
'https://hashicorp.com/resources?type=case-study&products=terraform'
|
|
27
|
+
)
|
|
28
|
+
expect(url.href).toBe('/resources?type=case-study&products=terraform')
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it('leaves HashiCorp subdomain URLs intact', () => {
|
|
32
|
+
const url = parseUrl('https://developer.hashicorp.com/terraform')
|
|
33
|
+
expect(url.href).toBe('https://developer.hashicorp.com/terraform')
|
|
34
|
+
})
|
|
35
|
+
})
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function parseUrl(url: string | undefined): {
|
|
2
|
+
linkType: 'inbound' | 'outbound'
|
|
3
|
+
href: string
|
|
4
|
+
} {
|
|
5
|
+
if (!url) {
|
|
6
|
+
throw new Error('url is required')
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (isRelative(url) || isAnchor(url)) {
|
|
10
|
+
return { linkType: 'inbound', href: url }
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (isInternal(url)) {
|
|
14
|
+
try {
|
|
15
|
+
const { pathname, search } = new URL(url)
|
|
16
|
+
const href = pathname + search
|
|
17
|
+
return { linkType: 'inbound', href }
|
|
18
|
+
} catch (error) {
|
|
19
|
+
throw new Error(`Invalid href: ${url}`)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return { linkType: 'outbound', href: url }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const isRelative = (url) => url.startsWith('/')
|
|
27
|
+
const isAnchor = (url) => url.startsWith('#')
|
|
28
|
+
|
|
29
|
+
export const isInternal = (url) => {
|
|
30
|
+
const hostname = new URL(url).hostname
|
|
31
|
+
return hostname === 'hashicorp.com'
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import va from '@vercel/analytics'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pushes a 'Nav link click' custom event to Vercel Analytics.
|
|
5
|
+
* A wrapper around the Vercel Analytics track method.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} name - The name of the nav link
|
|
8
|
+
* @param {string} href - The href for the nav link
|
|
9
|
+
* @param {string} [section] - The name of the section of the nav. Top-level links do not have a section.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export const trackNavClickEvent = (
|
|
13
|
+
name: string,
|
|
14
|
+
href: string,
|
|
15
|
+
section: string
|
|
16
|
+
) => {
|
|
17
|
+
va.track('Nav link click', {
|
|
18
|
+
name,
|
|
19
|
+
href,
|
|
20
|
+
section,
|
|
21
|
+
})
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { vercelStegaSplit } from '@vercel/stega'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Takes in a Vercel Visual Editing string and returns the string without
|
|
5
|
+
* hidden data.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export const vercelSplit = <VercelString>(
|
|
9
|
+
original: VercelString
|
|
10
|
+
): VercelString => vercelStegaSplit(original as string).cleaned as VercelString
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) HashiCorp, Inc.
|
|
3
|
-
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
Theme settings.
|
|
8
|
-
Consumed in nearly all CSS files in this component,
|
|
9
|
-
including in /partials.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
.light {
|
|
13
|
-
/* main */
|
|
14
|
-
--background-color: var(--white);
|
|
15
|
-
--border-color: var(--gray-5);
|
|
16
|
-
--dropdown-background-color: var(--white);
|
|
17
|
-
|
|
18
|
-
/* title or logo link */
|
|
19
|
-
--title-text-color: var(--gray-1);
|
|
20
|
-
|
|
21
|
-
/* github-stars-link */
|
|
22
|
-
--gh-stars-icon-color: var(--black);
|
|
23
|
-
--gh-stars-scrim-color: rgba(0, 0, 0, 0.1);
|
|
24
|
-
|
|
25
|
-
/* menu items */
|
|
26
|
-
--menu-item-text-color: #3B3D45;
|
|
27
|
-
--menu-item-text-color-active: #0C0C0E;
|
|
28
|
-
--menu-item-heading-text-color: var(--gray-3);
|
|
29
|
-
--menu-item-hover-color: #F1F2F3;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.dark {
|
|
33
|
-
/* main */
|
|
34
|
-
--background-color: var(--black);
|
|
35
|
-
--border-color: var(--gray-2);
|
|
36
|
-
--dropdown-background-color: var(--gray-1);
|
|
37
|
-
|
|
38
|
-
/* title or logo link */
|
|
39
|
-
--title-text-color: var(--white);
|
|
40
|
-
|
|
41
|
-
/* github-stars-link */
|
|
42
|
-
--gh-stars-icon-color: var(--white);
|
|
43
|
-
--gh-stars-scrim-color: rgba(255, 255, 255, 0.15);
|
|
44
|
-
|
|
45
|
-
/* menu items */
|
|
46
|
-
--menu-item-text-color: #D5D7DB;
|
|
47
|
-
--menu-item-text-color-active: #EFEFF1;
|
|
48
|
-
--menu-item-heading-text-color: var(--gray-4);
|
|
49
|
-
--menu-item-hover-color: #1E222A;
|
|
50
|
-
}
|