@primer/styled-react 0.0.0-20251113154749 → 0.0.0-20251113164511
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.
|
@@ -3,7 +3,6 @@ import { type SxProp } from '../sx';
|
|
|
3
3
|
export type CounterLabelProps = PrimerCounterLabelProps & SxProp;
|
|
4
4
|
export declare const CounterLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
5
5
|
scheme?: "primary" | "secondary";
|
|
6
|
-
variant?: "primary" | "secondary";
|
|
7
6
|
className?: string;
|
|
8
7
|
} & {
|
|
9
8
|
children?: import("react").ReactNode | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/components/CounterLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/components/CounterLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;4DAEvB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const themes: ("dark" | "light" | "light_high_contrast" | "light_colorblind" | "light_tritanopia" | "dark_dimmed" | "dark_high_contrast" | "dark_colorblind" | "dark_tritanopia")[];
|
|
2
|
+
type Theme = (typeof themes)[number];
|
|
3
|
+
declare function updateGlobalTheme(theme: Theme): void;
|
|
4
|
+
export { themes, updateGlobalTheme };
|
|
5
|
+
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/test-helpers/themes.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM,uKAAkC,CAAA;AAE9C,KAAK,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAUpC,iBAAS,iBAAiB,CAAC,KAAK,EAAE,KAAK,QAQtC;AAED,OAAO,EAAC,MAAM,EAAE,iBAAiB,EAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20251113164511",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -43,13 +43,14 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/preset-react": "^7.28.5",
|
|
45
45
|
"@babel/preset-typescript": "^7.28.5",
|
|
46
|
-
"@primer/react": "0.0.0-
|
|
46
|
+
"@primer/react": "0.0.0-20251113164511",
|
|
47
47
|
"@rollup/plugin-babel": "^6.1.0",
|
|
48
48
|
"@types/react": "18.3.11",
|
|
49
49
|
"@types/react-dom": "18.3.1",
|
|
50
50
|
"@types/styled-components": "^5.1.26",
|
|
51
51
|
"@vitejs/plugin-react": "^4.3.3",
|
|
52
52
|
"babel-plugin-styled-components": "2.1.4",
|
|
53
|
+
"postcss-preset-primer": "^0.0.0",
|
|
53
54
|
"publint": "^0.3.15",
|
|
54
55
|
"react": "18.3.1",
|
|
55
56
|
"react-dom": "18.3.1",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"typescript": "^5.9.2"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"@primer/react": "0.0.0-
|
|
64
|
+
"@primer/react": "0.0.0-20251113164511",
|
|
64
65
|
"@types/react": "18.x || 19.x",
|
|
65
66
|
"@types/react-dom": "18.x || 19.x",
|
|
66
67
|
"@types/react-is": "18.x || 19.x",
|