@primer/react-brand 0.5.1 → 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.
Files changed (120) hide show
  1. package/lib/Accordion/Accordion.d.ts +1 -1
  2. package/lib/Button/Button.d.ts +1 -1
  3. package/lib/FAQ/FAQ.d.ts +2 -2
  4. package/lib/Hero/Hero.d.ts +1 -1
  5. package/lib/InlineLink/InlineLink.d.ts +1 -1
  6. package/{LICENSE → lib/LICENSE} +0 -0
  7. package/lib/River/River.d.ts +1 -1
  8. package/lib/Stack/Stack.d.ts +1 -1
  9. package/lib/SubdomainNavBar/SubdomainNavBar.d.ts +1 -1
  10. package/lib/css/main.css +41 -139
  11. package/lib/css/stylesheets.d.ts +7 -7
  12. package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
  13. package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
  14. package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
  15. package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
  16. package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +1 -1
  17. package/lib/design-tokens/css/tokens/functional/colors/global.css +1 -1
  18. package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +1 -1
  19. package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
  20. package/lib/design-tokens/css/tokens/functional/components/control/base.css +1 -1
  21. package/lib/design-tokens/css/tokens/functional/components/control/colors-with-modes.css +1 -1
  22. package/lib/design-tokens/css/tokens/functional/components/faq/base.css +1 -1
  23. package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +1 -1
  24. package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +1 -1
  25. package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
  26. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +1 -1
  27. package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +1 -1
  28. package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
  29. package/lib/design-tokens/css/tokens/functional/components/subdomain-nav-bar/colors-with-modes.css +1 -1
  30. package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
  31. package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
  32. package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
  33. package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
  34. package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
  35. package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +1 -1
  36. package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
  37. package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
  38. package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
  39. package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
  40. package/lib/design-tokens/js/module/tokens/functional/colors/global.js +1 -1
  41. package/lib/design-tokens/js/module/tokens/functional/components/control/base.js +1 -1
  42. package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +1 -1
  43. package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +1 -1
  44. package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
  45. package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +1 -1
  46. package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
  47. package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
  48. package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
  49. package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
  50. package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
  51. package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
  52. package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
  53. package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +1 -1
  54. package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
  55. package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
  56. package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
  57. package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
  58. package/lib/design-tokens/js/tokens/functional/colors/global.js +1 -1
  59. package/lib/design-tokens/js/tokens/functional/components/control/base.js +1 -1
  60. package/lib/design-tokens/js/tokens/functional/components/faq/base.js +1 -1
  61. package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +1 -1
  62. package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
  63. package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +1 -1
  64. package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
  65. package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
  66. package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
  67. package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
  68. package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
  69. package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
  70. package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
  71. package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +1 -1
  72. package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
  73. package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
  74. package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
  75. package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
  76. package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
  77. package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
  78. package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
  79. package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +1 -1
  80. package/lib/design-tokens/ts/tokens/functional/colors/global.js +1 -1
  81. package/lib/design-tokens/ts/tokens/functional/components/control/base.d.ts +1 -1
  82. package/lib/design-tokens/ts/tokens/functional/components/control/base.js +1 -1
  83. package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +1 -1
  84. package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +1 -1
  85. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +1 -1
  86. package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +1 -1
  87. package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
  88. package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
  89. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +1 -1
  90. package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +1 -1
  91. package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
  92. package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
  93. package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
  94. package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
  95. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
  96. package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
  97. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
  98. package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
  99. package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
  100. package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
  101. package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
  102. package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
  103. package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
  104. package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
  105. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +1 -1
  106. package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +1 -1
  107. package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
  108. package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
  109. package/{fonts → lib/fonts}/alliance-1.woff2 +0 -0
  110. package/{fonts → lib/fonts}/alliance-2.woff2 +0 -0
  111. package/{fonts → lib/fonts}/fonts.css +0 -0
  112. package/lib/forms/Checkbox/Checkbox.visual.spec.d.ts +1 -0
  113. package/lib/forms/FormControl/FormControl.visual.spec.d.ts +1 -0
  114. package/lib/forms/Select/Select.visual.spec.d.ts +1 -0
  115. package/lib/forms/TextInput/TextInput.visual.spec.d.ts +1 -0
  116. package/lib/forms/forms.visual.spec.d.ts +1 -0
  117. package/lib/forms/index.d.ts +2 -2
  118. package/lib/index.js +1 -1
  119. package/package.json +24 -66
  120. 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",
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
- "engines": {
23
- "npm": ">=8.0.0",
24
- "node": ">=16.0.0"
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 && npm run build:tokens && webpack",
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 build && npm run start:storybook & npm run start:docs",
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
- "peerDependencies": {
58
- "react": ">=17 <= 18",
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
- "dependencies": {
129
- "clsx": "^1.1.1"
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/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) &copy; [GitHub](https://github.com/)