@primer/styled-react 1.1.0-rc.fbf889cc5 → 1.1.1-rc.7156e7efc
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/dist/components/ThemeContext.d.ts.map +1 -1
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider.js +4 -3
- package/dist/components/useFeatureFlaggedTheme.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/legacy-theme/ts/color-schemes.js +4252 -0
- package/dist/polymorphic.d.ts.map +1 -1
- package/dist/sx.d.ts +1 -1
- package/dist/sx.d.ts.map +1 -1
- package/dist/theme-get.js +1 -1
- package/dist/theme-types.d.ts +94 -0
- package/dist/theme-types.d.ts.map +1 -0
- package/dist/theme.d.ts +1090 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +14 -0
- package/package.json +8 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","names":[],"sources":["../src/theme.ts"],"mappings":";;AAQA;AAGC;AAAA;;cAHY,KAAA"}
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { colorSchemes } from "./legacy-theme/ts/color-schemes.js";
|
|
2
|
+
import { theme } from "@primer/react";
|
|
3
|
+
//#region src/theme.ts
|
|
4
|
+
/**
|
|
5
|
+
* The default theme used by `@primer/styled-react`. This extends the base theme
|
|
6
|
+
* from `@primer/react` with the legacy `colorSchemes` object required by the
|
|
7
|
+
* styled-components based `ThemeProvider`, `sx`, and `themeGet` APIs.
|
|
8
|
+
*/
|
|
9
|
+
const theme$1 = {
|
|
10
|
+
...theme,
|
|
11
|
+
colorSchemes
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { theme$1 as theme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-rc.7156e7efc",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"README.md",
|
|
14
|
-
"dist"
|
|
14
|
+
"dist",
|
|
15
|
+
"!dist/legacy-theme/ts/colors"
|
|
15
16
|
],
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
},
|
|
20
21
|
"scripts": {
|
|
21
22
|
"build": "script/build",
|
|
23
|
+
"build:precompile-color-schemes": "tsx script/precompile-color-schemes.ts",
|
|
22
24
|
"build:storybook": "storybook build",
|
|
23
25
|
"clean": "rimraf dist",
|
|
24
26
|
"lint:npm": "publint --types",
|
|
@@ -42,9 +44,9 @@
|
|
|
42
44
|
"@babel/preset-react": "^7.28.5",
|
|
43
45
|
"@babel/preset-typescript": "^7.28.5",
|
|
44
46
|
"@primer/primitives": "10.x || 11.x",
|
|
45
|
-
"@primer/react": "^38.
|
|
47
|
+
"@primer/react": "^38.36.0",
|
|
46
48
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
47
|
-
"@storybook/react-vite": "
|
|
49
|
+
"@storybook/react-vite": "10.5.5",
|
|
48
50
|
"@types/babel__core": "^7.20.5",
|
|
49
51
|
"@types/react": "18.3.11",
|
|
50
52
|
"@types/react-dom": "18.3.1",
|
|
@@ -58,10 +60,11 @@
|
|
|
58
60
|
"react-compiler-runtime": "^1.0.0",
|
|
59
61
|
"react-dom": "18.3.1",
|
|
60
62
|
"rimraf": "^6.0.1",
|
|
61
|
-
"rolldown": "^1.
|
|
63
|
+
"rolldown": "^1.2.0",
|
|
62
64
|
"rolldown-plugin-dts": "^0.26.0",
|
|
63
65
|
"rolldown-plugin-preserve-directives": "^0.0.0",
|
|
64
66
|
"styled-components": "5.3.11",
|
|
67
|
+
"tsx": "4.20.3",
|
|
65
68
|
"typescript": "^6.0.3"
|
|
66
69
|
},
|
|
67
70
|
"peerDependencies": {
|