@primer/react-brand 0.2.1-rc.66a41f5 → 0.2.1
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/lib/css/main.css +8 -8
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- 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/package.json +1 -1
- package/CHANGELOG.md +0 -148
package/lib/css/main.css
CHANGED
|
@@ -91,7 +91,7 @@ select {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Do not edit directly
|
|
94
|
-
* Generated on Thu, 16 Jun 2022 14:
|
|
94
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 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 Thu, 16 Jun 2022 14:
|
|
900
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 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 Thu, 16 Jun 2022 14:
|
|
925
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 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 Thu, 16 Jun 2022 14:
|
|
1092
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 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 Thu, 16 Jun 2022 14:
|
|
1106
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 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 Thu, 16 Jun 2022 14:
|
|
1293
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 GMT
|
|
1294
1294
|
*/
|
|
1295
1295
|
|
|
1296
1296
|
:root {
|
|
@@ -1429,7 +1429,7 @@ select {
|
|
|
1429
1429
|
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Do not edit directly
|
|
1432
|
-
* Generated on Thu, 16 Jun 2022 14:
|
|
1432
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 GMT
|
|
1433
1433
|
*/
|
|
1434
1434
|
|
|
1435
1435
|
:root {
|
|
@@ -1439,7 +1439,7 @@ select {
|
|
|
1439
1439
|
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Do not edit directly
|
|
1442
|
-
* Generated on Thu, 16 Jun 2022 14:
|
|
1442
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 GMT
|
|
1443
1443
|
*/
|
|
1444
1444
|
|
|
1445
1445
|
:root {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu, 16 Jun 2022 14:
|
|
3
|
+
* Generated on Thu, 16 Jun 2022 14:49:06 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const BrandFontStackSystem = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'";
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
# @primer/react-brand
|
|
2
|
-
|
|
3
|
-
## 0.2.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#38](https://github.com/primer/react-brand/pull/38) [`b0c9293`](https://github.com/primer/react-brand/commit/b0c929389d62f184e5ae447c0b00e351cb2d1c6e) Thanks [@rezrah](https://github.com/rezrah)! - updated `css-loader` to generate valid (escaped) class names
|
|
8
|
-
|
|
9
|
-
## 0.2.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [#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
|
|
14
|
-
|
|
15
|
-
- Renames `LinkButton` to `Button` :warning: (see below)
|
|
16
|
-
- Button supports polymorphism and can be used `as` either `a` or `button`
|
|
17
|
-
|
|
18
|
-
### `River`
|
|
19
|
-
|
|
20
|
-
**NEW** Component :sparkles:
|
|
21
|
-
|
|
22
|
-
<table>
|
|
23
|
-
<tr>
|
|
24
|
-
<th> Before</th> <th> After</th>
|
|
25
|
-
</tr>
|
|
26
|
-
<tr>
|
|
27
|
-
<td valign="top">❌</td>
|
|
28
|
-
<td valign="top">
|
|
29
|
-
|
|
30
|
-
```jsx
|
|
31
|
-
// import {River} from "@primer/react-brand";
|
|
32
|
-
|
|
33
|
-
<River>
|
|
34
|
-
<River.Visual>
|
|
35
|
-
<img
|
|
36
|
-
src="https://via.placeholder.com/600x400/f5f5f5/f5f5f5.png"
|
|
37
|
-
alt="placeholder, blank area with an off-white background color"
|
|
38
|
-
/>
|
|
39
|
-
</River.Visual>
|
|
40
|
-
<River.Content>
|
|
41
|
-
<Heading>Heading</Heading>
|
|
42
|
-
<Text>
|
|
43
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
44
|
-
felis nam pulvinar risus elementum.
|
|
45
|
-
</Text>
|
|
46
|
-
<Link href="#">Call to action</Link>
|
|
47
|
-
</River.Content>
|
|
48
|
-
</River>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
</td>
|
|
52
|
-
</tr>
|
|
53
|
-
</table>
|
|
54
|
-
|
|
55
|
-
See more examples in our documentation.
|
|
56
|
-
https://primer.style/react-brand/components/River
|
|
57
|
-
|
|
58
|
-
### `LinkButton`
|
|
59
|
-
|
|
60
|
-
> **Warning**
|
|
61
|
-
> 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.
|
|
62
|
-
|
|
63
|
-
<table>
|
|
64
|
-
<tr>
|
|
65
|
-
<th> Before</th> <th> After</th>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<td valign="top">
|
|
69
|
-
|
|
70
|
-
```jsx
|
|
71
|
-
//import { LinkButton } from '@primer/react-brand';
|
|
72
|
-
|
|
73
|
-
<LinkButton href="#">Sign up</LinkButton>
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
</td>
|
|
77
|
-
<td valign="top">
|
|
78
|
-
|
|
79
|
-
```jsx
|
|
80
|
-
//import { Button } from '@primer/react-brand';
|
|
81
|
-
|
|
82
|
-
<Button as="a" href="#">
|
|
83
|
-
Sign up
|
|
84
|
-
</Button>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
</td>
|
|
88
|
-
</tr>
|
|
89
|
-
<tr>
|
|
90
|
-
<td valign="top">
|
|
91
|
-
|
|
92
|
-
❌
|
|
93
|
-
|
|
94
|
-
</td>
|
|
95
|
-
<td valign="top">
|
|
96
|
-
|
|
97
|
-
```jsx
|
|
98
|
-
//import { Button } from '@primer/react-brand';
|
|
99
|
-
|
|
100
|
-
<Button onClick={handler}>Sign Up</Button>
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
</td>
|
|
104
|
-
</tr>
|
|
105
|
-
|
|
106
|
-
</table>
|
|
107
|
-
|
|
108
|
-
## 0.1.0
|
|
109
|
-
|
|
110
|
-
### Minor Changes
|
|
111
|
-
|
|
112
|
-
- [#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
|
|
113
|
-
|
|
114
|
-
### Patch Changes
|
|
115
|
-
|
|
116
|
-
- [#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
|
|
117
|
-
|
|
118
|
-
* [#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
|
|
119
|
-
|
|
120
|
-
**To upgrade:**
|
|
121
|
-
|
|
122
|
-
- _Remove_ `import "@primer/react-brand/lib/css/gh-variables.css"`
|
|
123
|
-
|
|
124
|
-
- _Add_ `import "@primer/react-brand/lib/css/main.css"`
|
|
125
|
-
|
|
126
|
-
- [#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
|
|
127
|
-
|
|
128
|
-
* [#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
|
|
129
|
-
|
|
130
|
-
- [#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.
|
|
131
|
-
|
|
132
|
-
* [#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
|
|
133
|
-
|
|
134
|
-
- **updated** Hero description text size from `500` to `400`
|
|
135
|
-
- **updated** button alignment to not stretch on mobile viewports
|
|
136
|
-
- **removed** `size` prop. Now only one responsive size available.
|
|
137
|
-
|
|
138
|
-
## 0.0.3
|
|
139
|
-
|
|
140
|
-
### Patch Changes
|
|
141
|
-
|
|
142
|
-
- [#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
|
|
143
|
-
|
|
144
|
-
## 0.0.2
|
|
145
|
-
|
|
146
|
-
### Patch Changes
|
|
147
|
-
|
|
148
|
-
- [#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)
|