@primer/react-brand 0.5.1-rc.b80c351 → 0.5.2-rc.77de013
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/Accordion/Accordion.d.ts +1 -1
- package/lib/Button/Button.d.ts +1 -1
- package/lib/FAQ/FAQ.d.ts +2 -2
- package/lib/Hero/Hero.d.ts +1 -1
- package/lib/InlineLink/InlineLink.d.ts +1 -1
- package/{LICENSE → lib/LICENSE} +0 -0
- package/lib/River/River.d.ts +1 -1
- package/lib/Stack/Stack.d.ts +1 -1
- package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +1 -1
- package/lib/css/main.css +41 -139
- package/lib/css/stylesheets.d.ts +7 -7
- 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/accordion/colors-with-modes.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/control/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.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/control/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.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/inline-link/colors.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-responsive.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/control/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.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-responsive.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/control/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.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/inline-link/colors.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.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-responsive.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.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/{fonts → lib/fonts}/alliance-1.woff2 +0 -0
- package/{fonts → lib/fonts}/alliance-2.woff2 +0 -0
- package/{fonts → lib/fonts}/fonts.css +0 -0
- package/lib/forms/Checkbox/Checkbox.visual.spec.d.ts +1 -0
- package/lib/forms/FormControl/FormControl.visual.spec.d.ts +1 -0
- package/lib/forms/Select/Select.visual.spec.d.ts +1 -0
- package/lib/forms/TextInput/TextInput.visual.spec.d.ts +1 -0
- package/lib/forms/forms.visual.spec.d.ts +1 -0
- package/lib/forms/index.d.ts +2 -2
- package/lib/index.js +1 -1
- package/package.json +24 -66
- package/CHANGELOG.md +0 -310
- package/README.md +0 -56
package/package.json
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/react-brand",
|
|
3
|
+
"version": "0.5.2-rc.77de013",
|
|
3
4
|
"description": "Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.",
|
|
4
|
-
"version": "0.5.1-rc.b80c351",
|
|
5
|
-
"author": "GitHub, Inc.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"bugs": {
|
|
8
|
-
"url": "https://github.com/primer/brand/issues"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://primer.style/brand",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/primer/brand.git"
|
|
14
|
-
},
|
|
15
5
|
"keywords": [
|
|
16
6
|
"primer",
|
|
17
7
|
"react",
|
|
@@ -19,10 +9,16 @@
|
|
|
19
9
|
"library",
|
|
20
10
|
"design-system"
|
|
21
11
|
],
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
12
|
+
"homepage": "https://primer.style/brand",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/primer/brand/issues"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/primer/brand.git"
|
|
25
19
|
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "GitHub, Inc.",
|
|
26
22
|
"main": "lib/index.js",
|
|
27
23
|
"types": "lib/index.d.ts",
|
|
28
24
|
"files": [
|
|
@@ -30,53 +26,31 @@
|
|
|
30
26
|
"fonts"
|
|
31
27
|
],
|
|
32
28
|
"scripts": {
|
|
33
|
-
"build": "npm run clean && npm run build:css-types &&
|
|
29
|
+
"build": "npm run clean && npm run build:css-types && webpack && scripts/postbuild",
|
|
34
30
|
"build:css-types": "tcm -p 'src/**/*.module.css' .",
|
|
35
|
-
"build:types": "tsc --project tsconfig.build.json",
|
|
36
|
-
"build:storybook": "scripts/build-storybook",
|
|
37
|
-
"build:storybook:preview": "scripts/build-storybook preview",
|
|
38
|
-
"build:docs": "scripts/build-docs",
|
|
39
|
-
"build:docs:preview": "scripts/build-docs preview",
|
|
40
31
|
"build:tokens": "node scripts/build-tokens.js",
|
|
32
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
41
33
|
"check": "tsc --noEmit",
|
|
42
34
|
"clean": "rm -rf lib",
|
|
43
35
|
"format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css,json}'",
|
|
44
36
|
"format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css,json}'",
|
|
45
|
-
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0",
|
|
37
|
+
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config ../../.eslintrc.js",
|
|
46
38
|
"lint:fix": "npm run lint -- --fix",
|
|
47
39
|
"release": "npm run build && changeset publish",
|
|
48
|
-
"start": "npm run
|
|
49
|
-
"start:storybook": "start-storybook -p 6006",
|
|
50
|
-
"start:docs": "npm run build && cd docs && npm run develop",
|
|
40
|
+
"start": "npm run start:css-types",
|
|
51
41
|
"start:css-types": "tcm -w -p 'src/**/*.css' .",
|
|
42
|
+
"start:docs": "npm run build && cd apps/docs && npm run develop",
|
|
52
43
|
"test": "jest",
|
|
53
44
|
"test:visual": "npx build-storybook && scripts/playwright/run-visual-tests",
|
|
54
45
|
"test:visual:generate": "npm run build:docs && ts-node scripts/playwright/playwright.generate-tests.ts",
|
|
55
46
|
"test:visual:update-snapshots": "npx build-storybook && scripts/playwright/update-visual-snapshots"
|
|
56
47
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"react-dom": ">=17 <= 18"
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"clsx": "^1.1.1"
|
|
60
50
|
},
|
|
61
51
|
"devDependencies": {
|
|
62
|
-
"@changesets/changelog-github": "^0.4.3",
|
|
63
|
-
"@changesets/cli": "^2.21.0",
|
|
64
|
-
"@github/prettier-config": "^0.0.4",
|
|
65
|
-
"@playwright/test": "^1.24.0",
|
|
66
52
|
"@primer/octicons-react": "^17.3.0",
|
|
67
|
-
"@primer/primitives": "^7.9.0",
|
|
68
53
|
"@reach/auto-id": "^0.17.0",
|
|
69
|
-
"@storybook/addon-a11y": "^6.5.9",
|
|
70
|
-
"@storybook/addon-actions": "^6.5.6",
|
|
71
|
-
"@storybook/addon-essentials": "^6.5.6",
|
|
72
|
-
"@storybook/addon-interactions": "^6.5.12",
|
|
73
|
-
"@storybook/addon-links": "^6.5.6",
|
|
74
|
-
"@storybook/builder-webpack5": "^6.5.6",
|
|
75
|
-
"@storybook/jest": "^0.0.10",
|
|
76
|
-
"@storybook/manager-webpack5": "^6.5.6",
|
|
77
|
-
"@storybook/react": "^6.5.6",
|
|
78
|
-
"@storybook/test-runner": "^0.5.0",
|
|
79
|
-
"@storybook/testing-library": "^0.0.11",
|
|
80
54
|
"@testing-library/dom": "^8.11.3",
|
|
81
55
|
"@testing-library/jest-dom": "^5.16.2",
|
|
82
56
|
"@testing-library/react": "^12.1.4",
|
|
@@ -86,46 +60,30 @@
|
|
|
86
60
|
"@types/react": "^17.0.50",
|
|
87
61
|
"@types/react-dom": "^17.0.11",
|
|
88
62
|
"@types/webpack": "^4.41.25",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
90
|
-
"@typescript-eslint/parser": "^5.17.0",
|
|
91
63
|
"autoprefixer": "^9.8.8",
|
|
92
64
|
"axe-playwright": "^1.1.11",
|
|
93
65
|
"color2k": "^2.0.0",
|
|
94
|
-
"cross-env": "7.0.2",
|
|
95
66
|
"css-loader": "^6.7.1",
|
|
96
|
-
"eslint": "^8.12.0",
|
|
97
|
-
"eslint-import-resolver-typescript": "^2.7.0",
|
|
98
|
-
"eslint-plugin-github": "^4.3.6",
|
|
99
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
100
|
-
"eslint-plugin-mdx": "^1.17.0",
|
|
101
|
-
"eslint-plugin-primer-react": "^0.7.4",
|
|
102
|
-
"eslint-plugin-react": "^7.29.4",
|
|
103
|
-
"eslint-plugin-react-hooks": "^4.4.0",
|
|
104
|
-
"eslint-plugin-storybook": "^0.5.12",
|
|
105
|
-
"fast-glob": "^3.2.11",
|
|
106
67
|
"identity-obj-proxy": "^3.0.0",
|
|
107
|
-
"jest": "^27.5.1",
|
|
108
68
|
"jest-axe": "^6.0.0",
|
|
109
69
|
"mini-css-extract-plugin": "^2.6.0",
|
|
110
70
|
"postcss": "^8.4.7",
|
|
111
71
|
"postcss-loader": "^6.2.1",
|
|
112
72
|
"postcss-preset-env": "^7.4.2",
|
|
113
|
-
"prettier": "^2.5.1",
|
|
114
|
-
"react": "^17.0.2",
|
|
115
|
-
"react-dom": "^17.0.2",
|
|
116
|
-
"storybook-css-modules-preset": "^1.1.1",
|
|
117
73
|
"style-dictionary": "^3.7.0",
|
|
118
74
|
"style-loader": "^3.3.1",
|
|
119
|
-
"ts-jest": "^27.1.3",
|
|
120
75
|
"ts-loader": "^9.2.7",
|
|
121
|
-
"ts-node": "^10.9.1",
|
|
122
76
|
"typed-css-modules": "^0.7.0",
|
|
123
|
-
"typescript": "^4.6.3",
|
|
124
77
|
"typescript-plugin-css-modules": "^3.4.0",
|
|
125
78
|
"webpack": "^5.70.0",
|
|
126
79
|
"webpack-cli": "^4.9.2"
|
|
127
80
|
},
|
|
128
|
-
"
|
|
129
|
-
"
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"react": ">=17 <= 18",
|
|
83
|
+
"react-dom": ">=17 <= 18"
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=16.0.0",
|
|
87
|
+
"npm": ">=8.0.0"
|
|
130
88
|
}
|
|
131
89
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
# @primer/react-brand
|
|
2
|
-
|
|
3
|
-
## 0.5.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#87](https://github.com/primer/brand/pull/87) [`0a82cd4`](https://github.com/primer/brand/commit/0a82cd42e8eb4f001504345172d209a33e18a476) Thanks [@rezrah](https://github.com/rezrah)! - UI bugfixes for `SubdomainNavBar` and `Testimonial` components.
|
|
8
|
-
|
|
9
|
-
## SubdomainNavBar
|
|
10
|
-
|
|
11
|
-
- Fix bug where a missing `SubdomainNavBar.Search` child would cause the `SubdomainNavBar` to render incorrectly, despite being optional.
|
|
12
|
-
- Fix bug where the overflow menu still appears when there are no items in the overflow menu.
|
|
13
|
-
- Fix bug where longer titles caused text wrapping and layout issues. Slightly longer titles are now accepted.
|
|
14
|
-
|
|
15
|
-
## Testimonial
|
|
16
|
-
|
|
17
|
-
- Increase spacing beneath the quote visual to 48px from 45px.
|
|
18
|
-
|
|
19
|
-
* [#89](https://github.com/primer/brand/pull/89) [`396734e`](https://github.com/primer/brand/commit/396734ecc4d4559c5ea7a63d009050b2b487d489) Thanks [@rezrah](https://github.com/rezrah)! - Add `titleHref` and `fullWidth` props for SubdomainNavBar
|
|
20
|
-
|
|
21
|
-
Usage example:
|
|
22
|
-
|
|
23
|
-
```jsx
|
|
24
|
-
<SubdomainNavBar fullWidth={true} titleHref="/something-other-than-home" title="Subdomain">
|
|
25
|
-
{/* ... */}
|
|
26
|
-
</SubdomainNavBar>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## 0.5.0
|
|
30
|
-
|
|
31
|
-
### Minor Changes
|
|
32
|
-
|
|
33
|
-
- [#81](https://github.com/primer/brand/pull/81) [`88e2007`](https://github.com/primer/brand/commit/88e20076f797338b9ab6d7d2d932320094cda5d7) Thanks [@rezrah](https://github.com/rezrah)! - Added `SubdomainNavBar` component.
|
|
34
|
-
|
|
35
|
-
Usage example:
|
|
36
|
-
|
|
37
|
-
```jsx
|
|
38
|
-
<SubdomainNavBar title="Subdomain">
|
|
39
|
-
<SubdomainNavBar.Link href="#">Collections</SubdomainNavBar.Link>
|
|
40
|
-
<SubdomainNavBar.Link href="#">Topics</SubdomainNavBar.Link>
|
|
41
|
-
<SubdomainNavBar.Link href="#">Articles</SubdomainNavBar.Link>
|
|
42
|
-
<SubdomainNavBar.Link href="#">Events</SubdomainNavBar.Link>
|
|
43
|
-
<SubdomainNavBar.Link href="#">Video</SubdomainNavBar.Link>
|
|
44
|
-
<SubdomainNavBar.Link href="#">Social</SubdomainNavBar.Link>
|
|
45
|
-
<SubdomainNavBar.Search ref={inputRef} onSubmit={handleSubmit} />
|
|
46
|
-
<SubdomainNavBar.PrimaryAction href="#">Primary CTA</SubdomainNavBar.PrimaryAction>
|
|
47
|
-
<SubdomainNavBar.SecondaryAction href="#">Secondary CTA</SubdomainNavBar.SecondaryAction>
|
|
48
|
-
</SubdomainNavBar>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
See the [documentation](https://primer.style/brand/components/SubdomainNavBar) and [Storybook](https://primer.style/brand/storybook/?path=/story/components-subdomainnavbar--playground) for more usage examples.
|
|
52
|
-
|
|
53
|
-
* [#82](https://github.com/primer/brand/pull/82) [`afbab6c`](https://github.com/primer/brand/commit/afbab6c24b5a8fe08d6eea28dfebc4bde143bfd5) Thanks [@rezrah](https://github.com/rezrah)! - Added `Testimonial` component.
|
|
54
|
-
|
|
55
|
-
Usage example:
|
|
56
|
-
|
|
57
|
-
```jsx
|
|
58
|
-
<Testimonial>
|
|
59
|
-
<Testimonial.Quote>
|
|
60
|
-
GitHub helps us ensure that we have our security controls baked into our pipelines all the way from the first line
|
|
61
|
-
of code we're writing.
|
|
62
|
-
</Testimonial.Quote>
|
|
63
|
-
<Testimonial.Name position="Staff Security Engineer">David Ross</Testimonial.Name>
|
|
64
|
-
<Testimonial.Avatar
|
|
65
|
-
src="https://avatars.githubusercontent.com/u/92997159?v=4"
|
|
66
|
-
alt="Circular avatar from David Ross's GitHub profile"
|
|
67
|
-
/>
|
|
68
|
-
</Testimonial>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
See the [documentation](https://primer.style/brand/components/Testimonial) or [Storybook](https://primer.style/brand/storybook/?path=/story/components-testimonial--playground) for more usage examples.
|
|
72
|
-
|
|
73
|
-
- [#82](https://github.com/primer/brand/pull/82) [`afbab6c`](https://github.com/primer/brand/commit/afbab6c24b5a8fe08d6eea28dfebc4bde143bfd5) Thanks [@rezrah](https://github.com/rezrah)! - Added `Stack` component.
|
|
74
|
-
|
|
75
|
-
Usage example:
|
|
76
|
-
|
|
77
|
-
```jsx
|
|
78
|
-
<Stack direction="horizontal" gap="spacious" padding="spacious">
|
|
79
|
-
<div>
|
|
80
|
-
<img
|
|
81
|
-
src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
|
|
82
|
-
alt="placeholder with gray background and no foreground text"
|
|
83
|
-
/>
|
|
84
|
-
</div>
|
|
85
|
-
<div>
|
|
86
|
-
<img
|
|
87
|
-
src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
|
|
88
|
-
alt="placeholder with gray background and no foreground text"
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
<div>
|
|
92
|
-
<img
|
|
93
|
-
src="https://via.placeholder.com/300x150/f5f5f5/f5f5f5.png"
|
|
94
|
-
alt="placeholder with gray background and no foreground text"
|
|
95
|
-
/>
|
|
96
|
-
</div>
|
|
97
|
-
</Stack>
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
See [Storybook](https://primer.style/brand/storybook/?path=/story/components-stack--playground) for more usage examples.
|
|
101
|
-
|
|
102
|
-
## 0.4.0
|
|
103
|
-
|
|
104
|
-
### Minor Changes
|
|
105
|
-
|
|
106
|
-
- [#78](https://github.com/primer/brand/pull/78) [`487a9e7`](https://github.com/primer/brand/commit/487a9e7b03b6c196358e1f1146fd87e8c4fe44d4) Thanks [@JoshBowdenConcepts](https://github.com/JoshBowdenConcepts)! - Added a new `size` prop to `Button` and a `medium` sized variant, making the previous `large` size optional.
|
|
107
|
-
|
|
108
|
-
⚠️ This update should be considered a breaking change, despite being issued in a `minor` release.
|
|
109
|
-
|
|
110
|
-
Selectable values: `medium` (default) and `large`.
|
|
111
|
-
|
|
112
|
-
**Upgrade steps:**
|
|
113
|
-
|
|
114
|
-
```diff
|
|
115
|
-
- <Button>before</Button>
|
|
116
|
-
+ <Button size="large">after</Button>
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
* [#69](https://github.com/primer/brand/pull/69) [`7838af5`](https://github.com/primer/brand/commit/7838af57ae2fdb94d07c188a142feebc0a4a605d) Thanks [@rezrah](https://github.com/rezrah)! - Added `FormControl`, `Checkbox`, `TextInput` and `Select` components.
|
|
120
|
-
|
|
121
|
-
**Read the Technical Previews for usage examples:**
|
|
122
|
-
|
|
123
|
-
[🔗 FormControl](https://primer.style/brand/components/FormControl)
|
|
124
|
-
|
|
125
|
-
[🔗 Checkbox](https://primer.style/brand/components/Checkbox)
|
|
126
|
-
|
|
127
|
-
[🔗 TextInput](https://primer.style/brand/components/TextInput)
|
|
128
|
-
|
|
129
|
-
[🔗 Select](https://primer.style/brand/components/Select)
|
|
130
|
-
|
|
131
|
-
## 0.3.1
|
|
132
|
-
|
|
133
|
-
### Patch Changes
|
|
134
|
-
|
|
135
|
-
- [#59](https://github.com/primer/brand/pull/59) [`fdc731b`](https://github.com/primer/brand/commit/fdc731bda050aaef7041aafe6aaa7857c49ea03b) Thanks [@rezrah](https://github.com/rezrah)! - Added `fillMedia` prop to River.Visual
|
|
136
|
-
|
|
137
|
-
Previously, all image and video children were automatically styled to fit the parent elements dimensions.
|
|
138
|
-
|
|
139
|
-
This isn't ideal in all situations, so the ability to toggle-off this behaviour is now available through an `fillMedia` prop.
|
|
140
|
-
|
|
141
|
-
## 0.3.0
|
|
142
|
-
|
|
143
|
-
### Minor Changes
|
|
144
|
-
|
|
145
|
-
- [`c8609a8`](https://github.com/primer/brand/commit/c8609a8d35ea80192d85e97794390207f4624e63) Thanks [@rezrah](https://github.com/rezrah)! - added an FAQ component, which displays a list of questions and answers relating to a particular subject.
|
|
146
|
-
|
|
147
|
-
[See usage examples](https://primer.style/brand/components/FAQ)
|
|
148
|
-
|
|
149
|
-
* [#45](https://github.com/primer/brand/pull/45) [`2fb6924`](https://github.com/primer/brand/commit/2fb6924a834ddcbad34cfb97ecfc1659d54f4ed5) Thanks [@rezrah](https://github.com/rezrah)! - > **Warning**
|
|
150
|
-
|
|
151
|
-
> This is a breaking change, but as the library is a pre-v1 release we are publishing this update as a `minor` change.
|
|
152
|
-
> Please read the following instructions carefully before updating:
|
|
153
|
-
|
|
154
|
-
### Updated references for "left" and "right" to "start" and "end"
|
|
155
|
-
|
|
156
|
-
For improved i18n support and closer alignment with our Figma naming conventions, we have updated the references for "left" and "right" to "start" and "end" respectively in `Hero` and `River` components.
|
|
157
|
-
|
|
158
|
-
```diff
|
|
159
|
-
- <River align="left">
|
|
160
|
-
- <River align="right">
|
|
161
|
-
+ <River align="start">
|
|
162
|
-
+ <River align="end">
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
## 0.2.1
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- [#38](https://github.com/primer/brand/pull/38) [`b0c9293`](https://github.com/primer/brand/commit/b0c929389d62f184e5ae447c0b00e351cb2d1c6e) Thanks [@rezrah](https://github.com/rezrah)! - updated `css-loader` to generate valid (escaped) class names
|
|
170
|
-
|
|
171
|
-
## 0.2.0
|
|
172
|
-
|
|
173
|
-
### Minor Changes
|
|
174
|
-
|
|
175
|
-
- [#33](https://github.com/primer/brand/pull/33) [`662fcfc`](https://github.com/primer/brand/commit/662fcfc6d123460730317b7ddd3d3a4622d30dce) Thanks [@rezrah](https://github.com/rezrah)! - - Adds `River` component
|
|
176
|
-
|
|
177
|
-
- Renames `LinkButton` to `Button` :warning: (see below)
|
|
178
|
-
- Button supports polymorphism and can be used `as` either `a` or `button`
|
|
179
|
-
|
|
180
|
-
### `River`
|
|
181
|
-
|
|
182
|
-
**NEW** Component :sparkles:
|
|
183
|
-
|
|
184
|
-
<table>
|
|
185
|
-
<tr>
|
|
186
|
-
<th> Before</th> <th> After</th>
|
|
187
|
-
</tr>
|
|
188
|
-
<tr>
|
|
189
|
-
<td valign="top">❌</td>
|
|
190
|
-
<td valign="top">
|
|
191
|
-
|
|
192
|
-
```jsx
|
|
193
|
-
// import {River} from "@primer/react-brand";
|
|
194
|
-
|
|
195
|
-
<River>
|
|
196
|
-
<River.Visual>
|
|
197
|
-
<img
|
|
198
|
-
src="https://via.placeholder.com/600x400/f5f5f5/f5f5f5.png"
|
|
199
|
-
alt="placeholder, blank area with an off-white background color"
|
|
200
|
-
/>
|
|
201
|
-
</River.Visual>
|
|
202
|
-
<River.Content>
|
|
203
|
-
<Heading>Heading</Heading>
|
|
204
|
-
<Text>
|
|
205
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
206
|
-
felis nam pulvinar risus elementum.
|
|
207
|
-
</Text>
|
|
208
|
-
<Link href="#">Call to action</Link>
|
|
209
|
-
</River.Content>
|
|
210
|
-
</River>
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
</td>
|
|
214
|
-
</tr>
|
|
215
|
-
</table>
|
|
216
|
-
|
|
217
|
-
See more examples in our documentation.
|
|
218
|
-
https://primer.style/brand/components/River
|
|
219
|
-
|
|
220
|
-
### `LinkButton`
|
|
221
|
-
|
|
222
|
-
> **Warning**
|
|
223
|
-
> 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.
|
|
224
|
-
|
|
225
|
-
<table>
|
|
226
|
-
<tr>
|
|
227
|
-
<th> Before</th> <th> After</th>
|
|
228
|
-
</tr>
|
|
229
|
-
<tr>
|
|
230
|
-
<td valign="top">
|
|
231
|
-
|
|
232
|
-
```jsx
|
|
233
|
-
//import { LinkButton } from '@primer/react-brand';
|
|
234
|
-
|
|
235
|
-
<LinkButton href="#">Sign up</LinkButton>
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
</td>
|
|
239
|
-
<td valign="top">
|
|
240
|
-
|
|
241
|
-
```jsx
|
|
242
|
-
//import { Button } from '@primer/react-brand';
|
|
243
|
-
|
|
244
|
-
<Button as="a" href="#">
|
|
245
|
-
Sign up
|
|
246
|
-
</Button>
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
</td>
|
|
250
|
-
</tr>
|
|
251
|
-
<tr>
|
|
252
|
-
<td valign="top">
|
|
253
|
-
|
|
254
|
-
❌
|
|
255
|
-
|
|
256
|
-
</td>
|
|
257
|
-
<td valign="top">
|
|
258
|
-
|
|
259
|
-
```jsx
|
|
260
|
-
//import { Button } from '@primer/react-brand';
|
|
261
|
-
|
|
262
|
-
<Button onClick={handler}>Sign Up</Button>
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
</td>
|
|
266
|
-
</tr>
|
|
267
|
-
|
|
268
|
-
</table>
|
|
269
|
-
|
|
270
|
-
## 0.1.0
|
|
271
|
-
|
|
272
|
-
### Minor Changes
|
|
273
|
-
|
|
274
|
-
- [#19](https://github.com/primer/brand/pull/19) [`3b22e9e`](https://github.com/primer/brand/commit/3b22e9e0823401104d6e33b3c4f8664b755ea6ba) Thanks [@colebemis](https://github.com/colebemis)! - Add `size` prop to `Hero` component
|
|
275
|
-
|
|
276
|
-
### Patch Changes
|
|
277
|
-
|
|
278
|
-
- [#23](https://github.com/primer/brand/pull/23) [`77abf53`](https://github.com/primer/brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - add Text and Heading components
|
|
279
|
-
|
|
280
|
-
* [#29](https://github.com/primer/brand/pull/29) [`144c7d7`](https://github.com/primer/brand/commit/144c7d762a91cb691699e4f8923ab08385c77966) Thanks [@rezrah](https://github.com/rezrah)! - Removed `gh-variables.css` from package as Brand variables are now surfaced in main.css
|
|
281
|
-
|
|
282
|
-
**To upgrade:**
|
|
283
|
-
|
|
284
|
-
- _Remove_ `import "@primer/react-brand/lib/css/gh-variables.css"`
|
|
285
|
-
|
|
286
|
-
- _Add_ `import "@primer/react-brand/lib/css/main.css"`
|
|
287
|
-
|
|
288
|
-
- [#23](https://github.com/primer/brand/pull/23) [`77abf53`](https://github.com/primer/brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - forward className in Hero
|
|
289
|
-
|
|
290
|
-
* [#25](https://github.com/primer/brand/pull/25) [`4b00b72`](https://github.com/primer/brand/commit/4b00b72f5dbf5e578351ea77e1e74cddc69833e7) Thanks [@rezrah](https://github.com/rezrah)! - adds baseline tokens
|
|
291
|
-
|
|
292
|
-
- [#21](https://github.com/primer/brand/pull/21) [`ab06cce`](https://github.com/primer/brand/commit/ab06cceb6ed3b2eaca70f9738b9708343b4e6db9) Thanks [@rezrah](https://github.com/rezrah)! - Remove fixed background color from `Hero` to allow underlying customisation to be surfaced.
|
|
293
|
-
|
|
294
|
-
* [#27](https://github.com/primer/brand/pull/27) [`ca2d300`](https://github.com/primer/brand/commit/ca2d3002ba6f7ca9c719f80077c4d95246f33410) Thanks [@rezrah](https://github.com/rezrah)! - Updated Hero text appearance
|
|
295
|
-
|
|
296
|
-
- **updated** Hero description text size from `500` to `400`
|
|
297
|
-
- **updated** button alignment to not stretch on mobile viewports
|
|
298
|
-
- **removed** `size` prop. Now only one responsive size available.
|
|
299
|
-
|
|
300
|
-
## 0.0.3
|
|
301
|
-
|
|
302
|
-
### Patch Changes
|
|
303
|
-
|
|
304
|
-
- [#18](https://github.com/primer/brand/pull/18) [`0835830`](https://github.com/primer/brand/commit/0835830fc15c582e280ac692ff3d578d6bcf282e) Thanks [@rezrah](https://github.com/rezrah)! - Fixes for production bundles
|
|
305
|
-
|
|
306
|
-
## 0.0.2
|
|
307
|
-
|
|
308
|
-
### Patch Changes
|
|
309
|
-
|
|
310
|
-
- [#2](https://github.com/primer/brand/pull/2) [`ab01a8a`](https://github.com/primer/brand/commit/ab01a8ad1dc504f7a2865213b6f41c0b0adba131) Thanks [@colebemis](https://github.com/colebemis)! - Initialize releases with [changesets](https://github.com/changesets/changesets)
|
package/README.md
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img width="300px" src="https://user-images.githubusercontent.com/4608155/127241386-f11da52d-00d9-4366-b01c-6f4c1ebcf7f2.png">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h1 align="center">Primer Brand</h1>
|
|
6
|
-
|
|
7
|
-
<p align="center"><strong>Primer Brand is a GitHub’s design system for creating one-off marketing websites and digital experiences.</strong>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
<p align="center">The design system comprises a Figma library and corresponding React components.
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
<p align="center">
|
|
14
|
-
<a aria-label="npm package" href="https://www.npmjs.com/package/@primer/react-brand">
|
|
15
|
-
<img alt="" src="https://img.shields.io/npm/v/@primer/react-brand.svg">
|
|
16
|
-
</a>
|
|
17
|
-
<a aria-label="build status" href="https://github.com/primer/brand/actions/workflows/ci.yml">
|
|
18
|
-
<img alt="" src="https://github.com/primer/brand/actions/workflows/ci.yml/badge.svg">
|
|
19
|
-
</a>
|
|
20
|
-
<img src="https://img.shields.io/badge/status-experimental-red" alt="status: experimental">
|
|
21
|
-
<a aria-label="license" href="https://github.com/primer/brand/blob/main/LICENSE">
|
|
22
|
-
<img src="https://img.shields.io/github/license/primer/brand" alt="">
|
|
23
|
-
</a>
|
|
24
|
-
</p>
|
|
25
|
-
|
|
26
|
-
<p align="center">
|
|
27
|
-
<a href="https://primer.github.io/brand/" target="_blank">https://primer.style/brand</a>
|
|
28
|
-
</p>
|
|
29
|
-
|
|
30
|
-
## Documentation
|
|
31
|
-
|
|
32
|
-
Our documentation site lives at [primer.style/brand](https://primer.style/brand). You'll be able to find detailed documentation on getting started, all of the components and more.
|
|
33
|
-
|
|
34
|
-
## Install
|
|
35
|
-
|
|
36
|
-
Primer Brand libraries are published to the [npm](https://www.npmjs.com/package/@primer/react-brand) registry. After [installing npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), you can install `@primer/react-brand` as a dependency of your project:
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
npm install @primer/react-brand
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Usage
|
|
43
|
-
|
|
44
|
-
See our [getting started guide](https://primer.github.io/brand/getting-started) for more information.
|
|
45
|
-
|
|
46
|
-
## Contributing
|
|
47
|
-
|
|
48
|
-
See [CONTRIBUTING.md](./CONTRIBUTING.md) for development and contribution guidelines.
|
|
49
|
-
|
|
50
|
-
## Releasing (for GitHub staff)
|
|
51
|
-
|
|
52
|
-
You can find docs about our release process in [RELEASING.md](RELEASING.md).
|
|
53
|
-
|
|
54
|
-
## License
|
|
55
|
-
|
|
56
|
-
[MIT](./LICENSE) © [GitHub](https://github.com/)
|