@primer/react-brand 0.1.0 → 0.2.0-rc.dd0371a
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/CHANGELOG.md +142 -0
- package/fonts/alliance-1.woff2 +0 -0
- package/fonts/alliance-2.woff2 +0 -0
- package/lib/Button/Button.d.ts +7 -0
- package/lib/Button/index.d.ts +1 -0
- package/lib/Heading/Heading.d.ts +1 -1
- package/lib/Link/Link.d.ts +9 -0
- package/lib/Link/index.d.ts +1 -0
- package/lib/River/River.d.ts +69 -0
- package/lib/River/index.d.ts +1 -0
- package/lib/Text/Text.d.ts +1 -1
- package/lib/component-helpers.d.ts +7 -0
- package/lib/css/main.css +202 -16
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +12 -0
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +107 -0
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +10 -0
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +29 -0
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +28 -0
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/package.json +11 -9
- package/lib/LinkButton/LinkButton.d.ts +0 -7
- package/lib/LinkButton/index.d.ts +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# @primer/react-brand
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#33](https://github.com/primer/react-brand/pull/33) [`662fcfc`](https://github.com/primer/react-brand/commit/662fcfc6d123460730317b7ddd3d3a4622d30dce) Thanks [@rezrah](https://github.com/rezrah)! - - Adds `River` component
|
|
8
|
+
|
|
9
|
+
- Renames `LinkButton` to `Button` :warning: (see below)
|
|
10
|
+
- Button supports polymorphism and can be used `as` either `a` or `button`
|
|
11
|
+
|
|
12
|
+
### `River`
|
|
13
|
+
|
|
14
|
+
**NEW** Component :sparkles:
|
|
15
|
+
|
|
16
|
+
<table>
|
|
17
|
+
<tr>
|
|
18
|
+
<th> Before</th> <th> After</th>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td valign="top">❌</td>
|
|
22
|
+
<td valign="top">
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
// import {River} from "@primer/react-brand";
|
|
26
|
+
|
|
27
|
+
<River>
|
|
28
|
+
<River.Visual>
|
|
29
|
+
<img
|
|
30
|
+
src="https://via.placeholder.com/600x400/f5f5f5/f5f5f5.png"
|
|
31
|
+
alt="placeholder, blank area with an off-white background color"
|
|
32
|
+
/>
|
|
33
|
+
</River.Visual>
|
|
34
|
+
<River.Content>
|
|
35
|
+
<Heading>Heading</Heading>
|
|
36
|
+
<Text>
|
|
37
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
38
|
+
felis nam pulvinar risus elementum.
|
|
39
|
+
</Text>
|
|
40
|
+
<Link href="#">Call to action</Link>
|
|
41
|
+
</River.Content>
|
|
42
|
+
</River>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
49
|
+
See more examples in our documentation.
|
|
50
|
+
https://primer.style/react-brand/components/River
|
|
51
|
+
|
|
52
|
+
### `LinkButton`
|
|
53
|
+
|
|
54
|
+
> **Warning**
|
|
55
|
+
> The changes below should be considered a breaking change for anyone relying on `LinkButton`, but as we are shipping a pre-v1 library, this has been marked as a `minor` release rather than `major`. Please remember to update your usage per the below example.
|
|
56
|
+
|
|
57
|
+
<table>
|
|
58
|
+
<tr>
|
|
59
|
+
<th> Before</th> <th> After</th>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td valign="top">
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
//import { LinkButton } from '@primer/react-brand';
|
|
66
|
+
|
|
67
|
+
<LinkButton href="#">Sign up</LinkButton>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
</td>
|
|
71
|
+
<td valign="top">
|
|
72
|
+
|
|
73
|
+
```jsx
|
|
74
|
+
//import { Button } from '@primer/react-brand';
|
|
75
|
+
|
|
76
|
+
<Button as="a" href="#">
|
|
77
|
+
Sign up
|
|
78
|
+
</Button>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
</td>
|
|
82
|
+
</tr>
|
|
83
|
+
<tr>
|
|
84
|
+
<td valign="top">
|
|
85
|
+
|
|
86
|
+
❌
|
|
87
|
+
|
|
88
|
+
</td>
|
|
89
|
+
<td valign="top">
|
|
90
|
+
|
|
91
|
+
```jsx
|
|
92
|
+
//import { Button } from '@primer/react-brand';
|
|
93
|
+
|
|
94
|
+
<Button onClick={handler}>Sign Up</Button>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
</td>
|
|
98
|
+
</tr>
|
|
99
|
+
|
|
100
|
+
</table>
|
|
101
|
+
|
|
102
|
+
## 0.1.0
|
|
103
|
+
|
|
104
|
+
### Minor Changes
|
|
105
|
+
|
|
106
|
+
- [#19](https://github.com/primer/react-brand/pull/19) [`3b22e9e`](https://github.com/primer/react-brand/commit/3b22e9e0823401104d6e33b3c4f8664b755ea6ba) Thanks [@colebemis](https://github.com/colebemis)! - Add `size` prop to `Hero` component
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- [#23](https://github.com/primer/react-brand/pull/23) [`77abf53`](https://github.com/primer/react-brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - add Text and Heading components
|
|
111
|
+
|
|
112
|
+
* [#29](https://github.com/primer/react-brand/pull/29) [`144c7d7`](https://github.com/primer/react-brand/commit/144c7d762a91cb691699e4f8923ab08385c77966) Thanks [@rezrah](https://github.com/rezrah)! - Removed `gh-variables.css` from package as Brand variables are now surfaced in main.css
|
|
113
|
+
|
|
114
|
+
**To upgrade:**
|
|
115
|
+
|
|
116
|
+
- _Remove_ `import "@primer/react-brand/lib/css/gh-variables.css"`
|
|
117
|
+
|
|
118
|
+
- _Add_ `import "@primer/react-brand/lib/css/main.css"`
|
|
119
|
+
|
|
120
|
+
- [#23](https://github.com/primer/react-brand/pull/23) [`77abf53`](https://github.com/primer/react-brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - forward className in Hero
|
|
121
|
+
|
|
122
|
+
* [#25](https://github.com/primer/react-brand/pull/25) [`4b00b72`](https://github.com/primer/react-brand/commit/4b00b72f5dbf5e578351ea77e1e74cddc69833e7) Thanks [@rezrah](https://github.com/rezrah)! - adds baseline tokens
|
|
123
|
+
|
|
124
|
+
- [#21](https://github.com/primer/react-brand/pull/21) [`ab06cce`](https://github.com/primer/react-brand/commit/ab06cceb6ed3b2eaca70f9738b9708343b4e6db9) Thanks [@rezrah](https://github.com/rezrah)! - Remove fixed background color from `Hero` to allow underlying customisation to be surfaced.
|
|
125
|
+
|
|
126
|
+
* [#27](https://github.com/primer/react-brand/pull/27) [`ca2d300`](https://github.com/primer/react-brand/commit/ca2d3002ba6f7ca9c719f80077c4d95246f33410) Thanks [@rezrah](https://github.com/rezrah)! - Updated Hero text appearance
|
|
127
|
+
|
|
128
|
+
- **updated** Hero description text size from `500` to `400`
|
|
129
|
+
- **updated** button alignment to not stretch on mobile viewports
|
|
130
|
+
- **removed** `size` prop. Now only one responsive size available.
|
|
131
|
+
|
|
132
|
+
## 0.0.3
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- [#18](https://github.com/primer/react-brand/pull/18) [`0835830`](https://github.com/primer/react-brand/commit/0835830fc15c582e280ac692ff3d578d6bcf282e) Thanks [@rezrah](https://github.com/rezrah)! - Fixes for production bundles
|
|
137
|
+
|
|
138
|
+
## 0.0.2
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- [#2](https://github.com/primer/react-brand/pull/2) [`ab01a8a`](https://github.com/primer/react-brand/commit/ab01a8ad1dc504f7a2865213b6f41c0b0adba131) Thanks [@colebemis](https://github.com/colebemis)! - Initialize releases with [changesets](https://github.com/changesets/changesets)
|
package/fonts/alliance-1.woff2
CHANGED
|
Binary file
|
package/fonts/alliance-2.woff2
CHANGED
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css';
|
|
3
|
+
export declare type ButtonProps<C extends React.ElementType> = {
|
|
4
|
+
as?: C;
|
|
5
|
+
variant?: 'primary' | 'secondary';
|
|
6
|
+
} & React.ComponentPropsWithoutRef<C>;
|
|
7
|
+
export declare function Button<C extends React.ElementType>({ as, variant, className, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: ButtonProps<C>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
package/lib/Heading/Heading.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const classMap: {
|
|
|
13
13
|
declare type HeadingTags = {
|
|
14
14
|
as?: typeof HeadingTags[number];
|
|
15
15
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
16
|
-
declare type HeadingProps = {
|
|
16
|
+
export declare type HeadingProps = {
|
|
17
17
|
className?: string;
|
|
18
18
|
} & HeadingTags;
|
|
19
19
|
export declare function Heading({ className, children, as, ...rest }: PropsWithChildren<HeadingProps>): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type LinkProps = {
|
|
3
|
+
size?: 'medium' | 'large';
|
|
4
|
+
} & React.ComponentPropsWithoutRef<'a'>;
|
|
5
|
+
/**
|
|
6
|
+
* Links connect users to related content.
|
|
7
|
+
* These are not intended to be used as a call-to-action.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Link({ size, className, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: LinkProps): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeadingTags, LinkProps, HeadingProps, TextProps } from '../';
|
|
3
|
+
import '../../lib/design-tokens/css/tokens/functional/components/river/base.css';
|
|
4
|
+
export declare type RiverProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Only specific children are valid.
|
|
7
|
+
* These include: `River.Visual` and `River.Content`.
|
|
8
|
+
* The declarative order of the children will be ignored in the rendered output
|
|
9
|
+
* to enforce correct HTML semantics.
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactElement<RiverVisualProps | RiverContentProps>[];
|
|
12
|
+
/**
|
|
13
|
+
* Apply a custom classname that will be forwarded to the root River element.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Apply an alternative image to text column ratio. The default is `50:50`.
|
|
18
|
+
*/
|
|
19
|
+
imageTextRatio?: '60:40' | '50:50';
|
|
20
|
+
/**
|
|
21
|
+
* Adjust the order of the `Content` column. The default is `left`.
|
|
22
|
+
*/
|
|
23
|
+
align?: 'left' | 'right' | 'center';
|
|
24
|
+
};
|
|
25
|
+
export declare const defaultRiverImageTextRatio = "50:50";
|
|
26
|
+
export declare const defaultRiverAlign = "left";
|
|
27
|
+
declare function Root({ imageTextRatio, align, className, children, ...rest }: RiverProps): JSX.Element;
|
|
28
|
+
declare type RiverContentProps = {
|
|
29
|
+
/**
|
|
30
|
+
* Escape-hatch for inserting custom React components.
|
|
31
|
+
* Warning:
|
|
32
|
+
* This prop isn't advertised in our docs but remains part of the public API for edge-cases.
|
|
33
|
+
* Need to use this prop? Please check in with #primer-brand first to confirm correct usage.
|
|
34
|
+
*/
|
|
35
|
+
trailingComponent?: React.FunctionComponent;
|
|
36
|
+
/**
|
|
37
|
+
* Escape-hatch for inserting custom React components.
|
|
38
|
+
* Warning:
|
|
39
|
+
* This prop isn't advertised in our docs but remains part of the public API for edge-cases.
|
|
40
|
+
* Need to use this prop? Please check in with #primer-brand first to confirm correct usage.
|
|
41
|
+
*/
|
|
42
|
+
leadingComponent?: React.FunctionComponent;
|
|
43
|
+
/**
|
|
44
|
+
* Only valid children are allowed.
|
|
45
|
+
* These include: `Heading`, `Text` and `Link`.
|
|
46
|
+
* The declarative order of the children will be ignored in the rendered output
|
|
47
|
+
* to enforce correct HTML semantics.
|
|
48
|
+
*/
|
|
49
|
+
children: React.ReactElement<TextProps> | React.ReactElement<HeadingProps | TextProps | LinkProps>[];
|
|
50
|
+
};
|
|
51
|
+
export declare const getHeadingWarning: (size: (typeof HeadingTags)[number]) => string;
|
|
52
|
+
declare function Content({ children, leadingComponent: LeadingComponent, trailingComponent: TrailingComponent }: RiverContentProps): JSX.Element;
|
|
53
|
+
declare type RiverVisualProps = {
|
|
54
|
+
className?: string;
|
|
55
|
+
/**
|
|
56
|
+
* `img` and `video` elements will apply a shadow by default.
|
|
57
|
+
* This can be disabled by setting this prop to `false`.
|
|
58
|
+
*/
|
|
59
|
+
hasShadow?: boolean;
|
|
60
|
+
};
|
|
61
|
+
declare function Visual({ children, className, hasShadow }: React.PropsWithChildren<RiverVisualProps>): JSX.Element;
|
|
62
|
+
/**
|
|
63
|
+
* Alternating text and image pairs.
|
|
64
|
+
*/
|
|
65
|
+
export declare const River: typeof Root & {
|
|
66
|
+
Visual: typeof Visual;
|
|
67
|
+
Content: typeof Content;
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './River';
|
package/lib/Text/Text.d.ts
CHANGED
package/lib/css/main.css
CHANGED
|
@@ -91,7 +91,7 @@ select {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Do not edit directly
|
|
94
|
-
* Generated on
|
|
94
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
:root {
|
|
@@ -897,7 +897,7 @@ select {
|
|
|
897
897
|
|
|
898
898
|
/**
|
|
899
899
|
* Do not edit directly
|
|
900
|
-
* Generated on
|
|
900
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
901
901
|
*/
|
|
902
902
|
|
|
903
903
|
:root {
|
|
@@ -922,7 +922,7 @@ select {
|
|
|
922
922
|
|
|
923
923
|
/**
|
|
924
924
|
* Do not edit directly
|
|
925
|
-
* Generated on
|
|
925
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
926
926
|
*/
|
|
927
927
|
|
|
928
928
|
:root {
|
|
@@ -1089,7 +1089,7 @@ select {
|
|
|
1089
1089
|
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Do not edit directly
|
|
1092
|
-
* Generated on
|
|
1092
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
1093
1093
|
*/
|
|
1094
1094
|
|
|
1095
1095
|
:root {
|
|
@@ -1103,7 +1103,7 @@ select {
|
|
|
1103
1103
|
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Do not edit directly
|
|
1106
|
-
* Generated on
|
|
1106
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
1107
1107
|
*/
|
|
1108
1108
|
|
|
1109
1109
|
:root {
|
|
@@ -1290,7 +1290,7 @@ select {
|
|
|
1290
1290
|
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Do not edit directly
|
|
1293
|
-
* Generated on
|
|
1293
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
1294
1294
|
*/
|
|
1295
1295
|
|
|
1296
1296
|
:root {
|
|
@@ -1317,7 +1317,15 @@ select {
|
|
|
1317
1317
|
--brand-Button-shadow-focus: hsl(var(--base-color-scale-white-0-hsl) / 25%) 0 0 0 4px;
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
.
|
|
1320
|
+
.Button-module__Button___Ky\+-Z {
|
|
1321
|
+
-webkit-appearance: none;
|
|
1322
|
+
-moz-appearance: none;
|
|
1323
|
+
appearance: none;
|
|
1324
|
+
-webkit-user-select: none;
|
|
1325
|
+
-moz-user-select: none;
|
|
1326
|
+
-ms-user-select: none;
|
|
1327
|
+
user-select: none;
|
|
1328
|
+
vertical-align: middle;
|
|
1321
1329
|
display: inline-flex;
|
|
1322
1330
|
align-items: center;
|
|
1323
1331
|
justify-content: center;
|
|
@@ -1326,42 +1334,44 @@ select {
|
|
|
1326
1334
|
text-decoration: none;
|
|
1327
1335
|
border-radius: 6px;
|
|
1328
1336
|
cursor: pointer;
|
|
1337
|
+
border: none;
|
|
1338
|
+
background: none;
|
|
1329
1339
|
}
|
|
1330
1340
|
|
|
1331
|
-
.
|
|
1341
|
+
.Button-module__Button___Ky\+-Z:focus {
|
|
1332
1342
|
outline: 0;
|
|
1333
1343
|
box-shadow: var(--brand-Button-shadow-focus), var(--brand-Button-shadow-hover);
|
|
1334
1344
|
}
|
|
1335
1345
|
|
|
1336
|
-
.
|
|
1346
|
+
.Button-module__Button--label___YPITC {
|
|
1337
1347
|
font-weight: var(--base-text-weight-semibold);
|
|
1338
1348
|
}
|
|
1339
1349
|
|
|
1340
|
-
.
|
|
1350
|
+
.Button-module__Button-arrow___8MSd\+ {
|
|
1341
1351
|
margin-left: 4px;
|
|
1342
1352
|
}
|
|
1343
1353
|
|
|
1344
|
-
.
|
|
1354
|
+
.Button-module__Button--primary___bMjrR {
|
|
1345
1355
|
color: var(--brand-color-text-onEmphasis);
|
|
1346
1356
|
background-color: var(--brand-Button-background-base);
|
|
1347
1357
|
background: var(--brand-Button-background-overlay);
|
|
1348
1358
|
}
|
|
1349
1359
|
|
|
1350
|
-
.
|
|
1360
|
+
.Button-module__Button--primary___bMjrR:hover {
|
|
1351
1361
|
box-shadow: var(--brand-Button-shadow-hover);
|
|
1352
1362
|
}
|
|
1353
1363
|
|
|
1354
|
-
.
|
|
1364
|
+
.Button-module__Button--label-primary___1iRqu {
|
|
1355
1365
|
color: var(--brand-color-text-onEmphasis);
|
|
1356
1366
|
}
|
|
1357
1367
|
|
|
1358
|
-
.
|
|
1368
|
+
.Button-module__Button--secondary___gq64j {
|
|
1359
1369
|
color: var(--brand-color-text-default);
|
|
1360
1370
|
box-shadow: inset 0 0 0 1px var(--brand-color-border-default);
|
|
1361
1371
|
transition: box-shadow 200ms;
|
|
1362
1372
|
}
|
|
1363
1373
|
|
|
1364
|
-
.
|
|
1374
|
+
.Button-module__Button--secondary___gq64j:hover {
|
|
1365
1375
|
box-shadow: inset 0 0 0 2px var(--brand-color-neutral-emphasisPlus);
|
|
1366
1376
|
}
|
|
1367
1377
|
|
|
@@ -1419,7 +1429,7 @@ select {
|
|
|
1419
1429
|
|
|
1420
1430
|
/**
|
|
1421
1431
|
* Do not edit directly
|
|
1422
|
-
* Generated on
|
|
1432
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
1423
1433
|
*/
|
|
1424
1434
|
|
|
1425
1435
|
:root {
|
|
@@ -1427,3 +1437,179 @@ select {
|
|
|
1427
1437
|
--brand-Hero-narrow-padding: var(--base-size-96) 0;
|
|
1428
1438
|
}
|
|
1429
1439
|
|
|
1440
|
+
/**
|
|
1441
|
+
* Do not edit directly
|
|
1442
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
1443
|
+
*/
|
|
1444
|
+
|
|
1445
|
+
:root {
|
|
1446
|
+
--brand-River-gap-heading-bottom: var(--base-size-8);
|
|
1447
|
+
--brand-River-gap-column-large: var(--base-size-48);
|
|
1448
|
+
--brand-River-gap-column-medium: var(--base-size-32);
|
|
1449
|
+
--brand-River-visual-shadow: 0px 100px 80px rgba(0, 0, 0, 0.0174624), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0235573), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0282784), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.0339075), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.04317), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.07);
|
|
1450
|
+
--brand-River-layout-margin-vertical: var(--base-size-48) 0;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.River-module__River___JrRJn {
|
|
1454
|
+
display: grid;
|
|
1455
|
+
grid-gap: var(--brand-River-gap-column-medium);
|
|
1456
|
+
gap: var(--brand-River-gap-column-medium);
|
|
1457
|
+
grid-auto-rows: -webkit-min-content;
|
|
1458
|
+
grid-auto-rows: min-content;
|
|
1459
|
+
margin: var(--brand-River-layout-margin-vertical);
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.River-module__River__visual___FPRmp {
|
|
1463
|
+
position: relative;
|
|
1464
|
+
order: 2;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.River-module__River--align-center___v9wmC {
|
|
1468
|
+
text-align: center;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.River-module__River__visual___FPRmp img,
|
|
1472
|
+
.River-module__River__visual___FPRmp video {
|
|
1473
|
+
width: 100%;
|
|
1474
|
+
height: 100%;
|
|
1475
|
+
-o-object-fit: cover;
|
|
1476
|
+
object-fit: cover;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
.River-module__River__visual--has-shadow___VCNVf {
|
|
1480
|
+
box-shadow: var(--brand-River-visual-shadow);
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
.River-module__River__heading___1vglW {
|
|
1484
|
+
margin-bottom: var(--brand-River-gap-heading-bottom);
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
.River-module__River__call-to-action___pr7tp {
|
|
1488
|
+
margin-top: var(--base-size-24);
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.River-module__River__text___jFOLz strong {
|
|
1492
|
+
color: var(--brand-color-text-default);
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/* Small breakpoint and up */
|
|
1496
|
+
@media screen and (min-width: 34rem) {
|
|
1497
|
+
.River-module__River___JrRJn {
|
|
1498
|
+
grid-template-rows: initial;
|
|
1499
|
+
}
|
|
1500
|
+
.River-module__River--50-50___ShFNW {
|
|
1501
|
+
grid-template-columns: [content] 1fr [visual] 1fr;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
.River-module__River--60-40___9LI6h {
|
|
1505
|
+
grid-template-columns: [content] calc(40% - var(--base-size-12)) [visual] calc(60% - var(--base-size-12));
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.River-module__River--align-left___x8Qd1 {
|
|
1509
|
+
grid-template-areas: 'content visual';
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
.River-module__River--align-right___Mx1m- {
|
|
1513
|
+
grid-template-areas: 'visual content';
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.River-module__River--align-right___Mx1m-.River-module__River--60-40___9LI6h {
|
|
1517
|
+
grid-template-columns: [visual] calc(60% - var(--base-size-12)) [content] calc(40% - var(--base-size-12));
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.River-module__River__content___hRRqX {
|
|
1521
|
+
display: grid;
|
|
1522
|
+
align-content: center;
|
|
1523
|
+
grid-area: content;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
.River-module__River__visual___FPRmp {
|
|
1527
|
+
grid-area: visual;
|
|
1528
|
+
order: initial;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
.River-module__River--align-center___v9wmC {
|
|
1532
|
+
grid-auto-rows: -webkit-min-content;
|
|
1533
|
+
grid-auto-rows: min-content;
|
|
1534
|
+
grid-template-columns: initial;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
.River-module__River--align-center___v9wmC .River-module__River__content___hRRqX,
|
|
1538
|
+
.River-module__River--align-center___v9wmC .River-module__River__visual___FPRmp {
|
|
1539
|
+
grid-area: unset;
|
|
1540
|
+
justify-self: center;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.River-module__River--align-center___v9wmC .River-module__River__body-text___0BbuA {
|
|
1544
|
+
max-width: 600px;
|
|
1545
|
+
justify-self: center;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
.River-module__River--align-center___v9wmC .River-module__River__visual___FPRmp {
|
|
1549
|
+
margin-bottom: var(--base-size-48);
|
|
1550
|
+
}
|
|
1551
|
+
.River-module__River--align-center___v9wmC .River-module__River__content___hRRqX {
|
|
1552
|
+
margin-top: var(--base-size-48);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/* Large breakpoint and up */
|
|
1557
|
+
@media screen and (min-width: 63.25rem) {
|
|
1558
|
+
.River-module__River___JrRJn {
|
|
1559
|
+
gap: var(--brand-River-gap-column-large);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
.Link-module__Link___I46Yd {
|
|
1564
|
+
position: relative;
|
|
1565
|
+
display: inline-flex;
|
|
1566
|
+
align-items: center;
|
|
1567
|
+
justify-content: center;
|
|
1568
|
+
transition: box-shadow 0.2s;
|
|
1569
|
+
text-decoration: none;
|
|
1570
|
+
cursor: pointer;
|
|
1571
|
+
color: var(--brand-color-text-default);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
.Link-module__Link___I46Yd::after {
|
|
1575
|
+
position: absolute;
|
|
1576
|
+
bottom: -0.15em;
|
|
1577
|
+
left: 0;
|
|
1578
|
+
width: calc(100% - 1.5em);
|
|
1579
|
+
height: 2px;
|
|
1580
|
+
pointer-events: none;
|
|
1581
|
+
content: '';
|
|
1582
|
+
background-color: var(--brand-color-text-default);
|
|
1583
|
+
transform: scaleX(0);
|
|
1584
|
+
transform-origin: 0 0;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
1588
|
+
.Link-module__Link___I46Yd::after {
|
|
1589
|
+
transition: transform 0.3s ease;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
.Link-module__Link___I46Yd:active:after,
|
|
1594
|
+
.Link-module__Link___I46Yd:hover:after,
|
|
1595
|
+
.Link-module__Link___I46Yd:focus:after {
|
|
1596
|
+
transform: scaleX(1);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.Link-module__Link___I46Yd:focus {
|
|
1600
|
+
outline: 0;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
.Link-module__Link--label___N2WtW {
|
|
1604
|
+
font-weight: var(--base-text-weight-semibold);
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
.Link-module__Link-arrow___Y1IN9 {
|
|
1608
|
+
margin-left: 4px;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
.Link-module__Link--large___CIEbO .Link-module__Link-arrow___Y1IN9 {
|
|
1612
|
+
width: 20px;
|
|
1613
|
+
height: 20px;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Fri, 10 Jun 2022 15:45:38 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--brand-River-gap-heading-bottom: var(--base-size-8);
|
|
8
|
+
--brand-River-gap-column-large: var(--base-size-48);
|
|
9
|
+
--brand-River-gap-column-medium: var(--base-size-32);
|
|
10
|
+
--brand-River-visual-shadow: 0px 100px 80px rgba(0, 0, 0, 0.0174624), 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0235573), 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0282784), 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.0339075), 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.04317), 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.07);
|
|
11
|
+
--brand-River-layout-margin-vertical: var(--base-size-48) 0;
|
|
12
|
+
}
|