@primer/styled-react 1.1.1-rc.8e491054f → 1.1.1-rc.910ed20c9
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/BaseStyles.d.ts +0 -2
- package/dist/components/BaseStyles.d.ts.map +1 -1
- package/dist/components/BaseStyles.js +5 -6
- package/dist/components/FeatureFlaggedTheming.d.ts +2 -3
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
- package/dist/components/FeatureFlaggedTheming.js +8 -9
- package/dist/components/ThemeContext.d.ts +1 -2
- package/dist/components/ThemeContext.d.ts.map +1 -1
- package/dist/components/ThemeContext.js +1 -2
- package/dist/components/ThemeProvider.d.ts +1 -2
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider.js +7 -8
- package/dist/components/useFeatureFlaggedTheme.d.ts +1 -2
- package/dist/components/useFeatureFlaggedTheme.d.ts.map +1 -1
- package/dist/components/useFeatureFlaggedTheme.js +1 -2
- package/dist/components/useTheme.d.ts +1 -2
- package/dist/components/useTheme.d.ts.map +1 -1
- package/dist/components/useTheme.js +1 -2
- package/dist/index.js +1 -1
- package/dist/legacy-theme/ts/color-schemes.js +0 -1
- package/dist/polymorphic.d.ts +1 -2
- package/dist/polymorphic.d.ts.map +1 -1
- package/dist/styled-props.d.ts +1 -2
- package/dist/styled-props.d.ts.map +1 -1
- package/dist/sx.d.ts +1 -2
- package/dist/sx.d.ts.map +1 -1
- package/dist/sx.js +1 -2
- package/dist/theme-get.d.ts +0 -2
- package/dist/theme-get.d.ts.map +1 -1
- package/dist/theme-get.js +1 -2
- package/dist/theme-types.d.ts +0 -2
- package/dist/theme-types.d.ts.map +1 -1
- package/dist/theme.d.ts +0 -2
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +1 -2
- package/package.json +11 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties, JSX, PropsWithChildren } from "react";
|
|
2
2
|
import * as styledSystem from "styled-system";
|
|
3
|
-
//#region src/components/BaseStyles.d.ts
|
|
4
3
|
interface SystemCommonProps extends styledSystem.ColorProps, styledSystem.SpaceProps, styledSystem.DisplayProps {}
|
|
5
4
|
interface SystemTypographyProps extends styledSystem.TypographyProps {
|
|
6
5
|
whiteSpace?: 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
|
|
@@ -21,6 +20,5 @@ declare function BaseStyles({
|
|
|
21
20
|
style,
|
|
22
21
|
...rest
|
|
23
22
|
}: BaseStylesProps): JSX.Element;
|
|
24
|
-
//#endregion
|
|
25
23
|
export { BaseStyles, BaseStylesProps, SystemCommonProps, SystemTypographyProps };
|
|
26
24
|
//# sourceMappingURL=BaseStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStyles.d.ts","names":[],"sources":["../../src/components/BaseStyles.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseStyles.d.ts","names":["styledSystem","ColorProps","SpaceProps","DisplayProps","TypographyProps","whiteSpace","PropsWithChildren","as","React","ComponentType","JSX","IntrinsicElements","className","style","CSSProperties","color","SystemTypographyProps","SystemCommonProps","children","fontFamily","lineHeight","Component","rest","BaseStylesProps","Element"],"sources":["../../src/components/BaseStyles.tsx"],"mappings":";;A,UAUiB,iBAAA,SACP,YAAA,CAAa,UAAA,EACnB,YAAA,CAAa,UAAA,EACb,YAAA,CAAa,YAAA;AAAA,UAEA,qBAAA,SAA8B,YAAA,CAAa,eAAe;EACzEK,UAAAA;AAAAA;AAAAA,KA+EU,eAAA,GAAkB,iBAAA;EAE5BE,EAAAA,GAAK,KAAA,CAAM,aAAA,cAA2B,GAAA,CAAI,iBAAA;EAC1CK,SAAAA;EACAC,KAAAA,GAAQ,aAAA;EACRE,KAAAA;AAAAA,IACE,qBAAA,GACF,iBAAA;AAAA,iBAEc,UAAA;EACdG,QAAAA;EACAH,KAAAA;EACAI,UAAAA;EACAC,UAAAA;EACAR,SAAAA;EACAL,EAAAA,EAAI,SAAA;EACJM,KAAAA;EAAAA,GACGS;AAAAA,GACF,eAAA,GAAe,GAAA,CAAA,OAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useTheme } from "./useTheme.js";
|
|
2
2
|
import { createGlobalStyle } from "styled-components";
|
|
3
|
-
import {
|
|
3
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import "focus-visible";
|
|
6
|
-
|
|
6
|
+
// src/components/BaseStyles.tsx
|
|
7
7
|
const GlobalStyle = createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[data-color-mode='light'] input{color-scheme:light;}[data-color-mode='dark'] input{color-scheme:dark;}@media (prefers-color-scheme:light){[data-color-mode='auto'][data-light-theme*='light']{color-scheme:light;}}@media (prefers-color-scheme:dark){[data-color-mode='auto'][data-dark-theme*='dark']{color-scheme:dark;}}[role='button']:focus:not(:focus-visible):not(:global(.focus-visible)),[role='tabpanel'][tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),button:focus:not(:focus-visible):not(:global(.focus-visible)),summary:focus:not(:focus-visible):not(:global(.focus-visible)),a:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;box-shadow:none;}[tabindex='0']:focus:not(:focus-visible):not(:global(.focus-visible)),details-dialog:focus:not(:focus-visible):not(:global(.focus-visible)){outline:none;}.BaseStyles{font-family:var(--BaseStyles-fontFamily,var(--fontStack-system));line-height:var(--BaseStyles-lineHeight,1.5);color:var(--BaseStyles-fgColor,var(--fgColor-default));:where(a:not([class*='prc-']):not([class*='PRC-']):not([class*='Primer_Brand__'])){color:var(--fgColor-accent,var(--color-accent-fg));text-decoration:none;&:hover{text-decoration:underline;}}}"]);
|
|
8
8
|
function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Component = "div", style, ...rest }) {
|
|
9
9
|
const { colorMode, colorScheme, dayScheme, nightScheme } = useTheme();
|
|
@@ -12,7 +12,7 @@ function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Co
|
|
|
12
12
|
["--BaseStyles-fontFamily"]: fontFamily,
|
|
13
13
|
["--BaseStyles-lineHeight"]: lineHeight
|
|
14
14
|
};
|
|
15
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/ jsxDEV(Component, {
|
|
16
16
|
className: clsx("BaseStyles", className),
|
|
17
17
|
"data-portal-root": true,
|
|
18
18
|
"data-color-mode": colorMode === "auto" ? "auto" : colorScheme?.includes("dark") ? "dark" : "light",
|
|
@@ -23,8 +23,7 @@ function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Co
|
|
|
23
23
|
...style
|
|
24
24
|
},
|
|
25
25
|
...rest,
|
|
26
|
-
children: [/*#__PURE__*/
|
|
27
|
-
});
|
|
26
|
+
children: [/*#__PURE__*/ jsxDEV(GlobalStyle, { colorScheme: colorScheme?.includes("dark") ? "dark" : "light" }, void 0, false), children]
|
|
27
|
+
}, void 0, true);
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
export { BaseStyles };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { BaseStylesProps as BaseStylesProps$1 } from "./BaseStyles.js";
|
|
2
1
|
import { ThemeProviderProps as ThemeProviderProps$1 } from "./ThemeProvider.js";
|
|
2
|
+
import { BaseStylesProps as BaseStylesProps$1 } from "./BaseStyles.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/components/FeatureFlaggedTheming.d.ts
|
|
6
6
|
type ThemeProviderProps = ThemeProviderProps$1;
|
|
7
7
|
type BaseStylesProps = BaseStylesProps$1;
|
|
8
8
|
declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
9
9
|
declare function BaseStyles(props: BaseStylesProps): React.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
10
|
export { BaseStyles, BaseStylesProps, ThemeProvider, ThemeProviderProps };
|
|
12
11
|
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlaggedTheming.d.ts","names":[],"sources":["../../src/components/FeatureFlaggedTheming.tsx"],"mappings":";;;;;KAYY,kBAAA,
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","names":["StyledThemeProviderProps","StyledBaseStylesProps","React","FC","PropsWithChildren","ThemeProviderProps","BaseStylesProps","props","JSX","Element","StyledThemeProviderProps","StyledBaseStylesProps"],"sources":["../../src/components/FeatureFlaggedTheming.tsx"],"mappings":";;;;;A,KAYY,kBAAA,GAAqBU,oBAAwB;AAAA,KAE7C,eAAA,GAAkBC,iBAAqB;AAAA,cAEtC,aAAA,EAAe,KAAA,CAAM,EAAA,CAAG,KAAA,CAAM,iBAAA,CAAkB,kBAAA;AAAA,iBAQ7C,UAAA,CAAWJ,KAAAA,EAAO,eAAA,GAAe,KAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -2,21 +2,20 @@ import { ThemeProvider as ThemeProvider$2 } from "./ThemeProvider.js";
|
|
|
2
2
|
import { BaseStyles as BaseStyles$2 } from "./BaseStyles.js";
|
|
3
3
|
import { BaseStyles, ThemeProvider } from "@primer/react";
|
|
4
4
|
import { useFeatureFlag } from "@primer/react/experimental";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
|
+
// src/components/FeatureFlaggedTheming.tsx
|
|
7
7
|
const ThemeProvider$1 = ({ children, ...props }) => {
|
|
8
|
-
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/
|
|
8
|
+
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/ jsxDEV(ThemeProvider, {
|
|
9
9
|
...props,
|
|
10
10
|
children
|
|
11
|
-
});
|
|
12
|
-
return /*#__PURE__*/
|
|
11
|
+
}, void 0, false);
|
|
12
|
+
return /*#__PURE__*/ jsxDEV(ThemeProvider$2, {
|
|
13
13
|
...props,
|
|
14
14
|
children
|
|
15
|
-
});
|
|
15
|
+
}, void 0, false);
|
|
16
16
|
};
|
|
17
17
|
function BaseStyles$1(props) {
|
|
18
|
-
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/
|
|
19
|
-
return /*#__PURE__*/
|
|
18
|
+
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/ jsxDEV(BaseStyles, { ...props }, void 0, false);
|
|
19
|
+
return /*#__PURE__*/ jsxDEV(BaseStyles$2, { ...props }, void 0, false);
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { BaseStyles$1 as BaseStyles, ThemeProvider$1 as ThemeProvider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorMode, ColorModeWithAuto, Theme } from "./ThemeProvider.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/components/ThemeContext.d.ts
|
|
5
5
|
declare const ThemeContext: React.Context<{
|
|
6
6
|
theme?: Theme;
|
|
7
7
|
colorScheme?: string;
|
|
@@ -14,6 +14,5 @@ declare const ThemeContext: React.Context<{
|
|
|
14
14
|
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
15
15
|
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
16
16
|
}>;
|
|
17
|
-
//#endregion
|
|
18
17
|
export { ThemeContext };
|
|
19
18
|
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","names":[],"sources":["../../src/components/ThemeContext.ts"],"mappings":";;;;cAGa,YAAA,EAAY,KAAA,CAAA,OAAA;
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","names":["React","Context","theme","Theme","colorScheme","colorMode","ColorModeWithAuto","resolvedColorMode","ColorMode","resolvedColorScheme","dayScheme","nightScheme","setColorMode","Dispatch","SetStateAction","setDayScheme","setNightScheme"],"sources":["../../src/components/ThemeContext.ts"],"mappings":";;;;A,cAGa,YAAA,EAAY,KAAA,CAAA,OAAA;EACfE,KAAAA,GAAA,KAAA;EACME,WAAAA;EACFC,SAAAA,GAAA,iBAAA;EACQE,iBAAAA,GAAA,SAAA;EACEE,mBAAAA;EACVC,SAAAA;EACEC,WAAAA;EACAC,YAAAA,EAAA,KAAA,CAAM,QAAA,CAAS,KAAA,CAAM,cAAA,CAAe,iBAAA;EACpCG,YAAAA,EAAA,KAAA,CAAM,QAAA,CAAS,KAAA,CAAM,cAAA;EACnBC,cAAAA,EAAA,KAAA,CAAM,QAAA,CAAS,KAAA,CAAM,cAAA;AAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
// src/components/ThemeContext.ts
|
|
3
3
|
const ThemeContext = /*#__PURE__*/ React.createContext({
|
|
4
4
|
setColorMode: () => null,
|
|
5
5
|
setDayScheme: () => null,
|
|
6
6
|
setNightScheme: () => null
|
|
7
7
|
});
|
|
8
|
-
//#endregion
|
|
9
8
|
export { ThemeContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/components/ThemeProvider.d.ts
|
|
4
4
|
declare const defaultColorMode = "day";
|
|
5
5
|
type Theme = {
|
|
6
6
|
[key: string]: any;
|
|
@@ -20,6 +20,5 @@ type ThemeProviderProps = {
|
|
|
20
20
|
contextOnly?: boolean;
|
|
21
21
|
};
|
|
22
22
|
declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
23
|
-
//#endregion
|
|
24
23
|
export { ColorMode, ColorModeWithAuto, Theme, ThemeProvider, ThemeProvider as default, ThemeProviderProps, defaultColorMode };
|
|
25
24
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","names":[],"sources":["../../src/components/ThemeProvider.tsx"],"mappings":";;;cAQa,gBAAA;AAAA,KAKD,KAAA;EAAA,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","names":["key","ColorMode","theme","Theme","colorMode","ColorModeWithAuto","dayScheme","nightScheme","preventSSRMismatch","contextOnly","React","FC","PropsWithChildren","ThemeProviderProps"],"sources":["../../src/components/ThemeProvider.tsx"],"mappings":";;;A,cAQa,gBAAA;AAAA,KAKD,KAAA;EAAA,CAAUA,GAAW;AAAA;AAAA,KACrB,SAAA;AAAA,KACA,iBAAA,GAAoB,SAAS;AAAA,KAE7B,kBAAA;EACVE,KAAAA,GAAQ,KAAA;EACRE,SAAAA,GAAY,iBAAiB;EAC7BE,SAAAA;EACAC,WAAAA;EACAC,kBAAAA;EARU;AAAS;AAAA;AAAA;EAanBC,WAAAA;AAAAA;AAAAA,cA8BW,aAAA,EAAe,KAAA,CAAM,EAAA,CAAG,KAAA,CAAM,iBAAA,CAAkB,kBAAA"}
|
|
@@ -5,7 +5,7 @@ import { useId, useSyncedState } from "@primer/react";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { ThemeProvider as ThemeProvider$1 } from "styled-components";
|
|
7
7
|
import deepmerge from "deepmerge";
|
|
8
|
-
import {
|
|
8
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
9
9
|
const defaultDayScheme = "light";
|
|
10
10
|
const defaultNightScheme = "dark";
|
|
11
11
|
const serverHandoffCache = /* @__PURE__ */ new Map();
|
|
@@ -61,17 +61,17 @@ const ThemeProvider$2 = ({ children, ...props }) => {
|
|
|
61
61
|
setDayScheme,
|
|
62
62
|
setNightScheme
|
|
63
63
|
]);
|
|
64
|
-
return /*#__PURE__*/
|
|
64
|
+
return /*#__PURE__*/ jsxDEV(ThemeContext.Provider, {
|
|
65
65
|
value: contextValue,
|
|
66
|
-
children: /*#__PURE__*/
|
|
66
|
+
children: /*#__PURE__*/ jsxDEV(ThemeProvider$1, {
|
|
67
67
|
theme: resolvedTheme,
|
|
68
|
-
children: [children, props.preventSSRMismatch ? /*#__PURE__*/
|
|
68
|
+
children: [children, props.preventSSRMismatch ? /*#__PURE__*/ jsxDEV("script", {
|
|
69
69
|
type: "application/json",
|
|
70
70
|
id: `__PRIMER_DATA_${uniqueDataId}__`,
|
|
71
71
|
dangerouslySetInnerHTML: { __html: JSON.stringify({ resolvedServerColorMode: resolvedColorMode }) }
|
|
72
|
-
}) : null]
|
|
73
|
-
})
|
|
74
|
-
});
|
|
72
|
+
}, void 0, false) : null]
|
|
73
|
+
}, void 0, true)
|
|
74
|
+
}, void 0, false);
|
|
75
75
|
};
|
|
76
76
|
function subscribeToSystemColorMode(callback) {
|
|
77
77
|
const media = window?.matchMedia?.("(prefers-color-scheme: dark)");
|
|
@@ -116,5 +116,4 @@ function applyColorScheme(theme, colorScheme) {
|
|
|
116
116
|
resolvedColorScheme: colorScheme
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
//#endregion
|
|
120
119
|
export { ThemeProvider$2 as ThemeProvider, ThemeProvider$2 as default };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useTheme as useTheme$1 } from "./useTheme.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/components/useFeatureFlaggedTheme.d.ts
|
|
4
4
|
declare function useTheme(): ReturnType<typeof useTheme$1>;
|
|
5
5
|
declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { useColorSchemeVar, useTheme };
|
|
8
7
|
//# sourceMappingURL=useFeatureFlaggedTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFeatureFlaggedTheme.d.ts","names":[],"sources":["../../src/components/useFeatureFlaggedTheme.ts"],"mappings":";;;iBAIgB,QAAA,IAAY,UAAU,
|
|
1
|
+
{"version":3,"file":"useFeatureFlaggedTheme.d.ts","names":["ReturnType","styledUseTheme","Partial","Record","values","fallback","styledUseTheme"],"sources":["../../src/components/useFeatureFlaggedTheme.ts"],"mappings":";;;A,iBAIgB,QAAA,IAAY,UAAU,QAAQM,UAAAA;AAAAA,iBAU9B,iBAAA,CAAkBF,MAAAA,EAAQ,OAAO,CAAC,MAAA,mBAAyBC,QAAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useColorSchemeVar as useColorSchemeVar$2, useTheme as useTheme$2 } from "./useTheme.js";
|
|
2
2
|
import { useColorSchemeVar, useTheme } from "@primer/react";
|
|
3
3
|
import { useFeatureFlag } from "@primer/react/experimental";
|
|
4
|
-
|
|
4
|
+
// src/components/useFeatureFlaggedTheme.ts
|
|
5
5
|
function useTheme$1() {
|
|
6
6
|
const enabled = useFeatureFlag("primer_react_styled_react_use_primer_theme_providers");
|
|
7
7
|
const styledTheme = useTheme$2();
|
|
@@ -15,5 +15,4 @@ function useColorSchemeVar$1(values, fallback) {
|
|
|
15
15
|
const primerValue = useColorSchemeVar(values, fallback);
|
|
16
16
|
return enabled ? primerValue : styledValue;
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { useColorSchemeVar$1 as useColorSchemeVar, useTheme$1 as useTheme };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorMode, ColorModeWithAuto, Theme } from "./ThemeProvider.js";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/components/useTheme.d.ts
|
|
5
5
|
declare function useTheme(): {
|
|
6
6
|
theme?: Theme;
|
|
7
7
|
colorScheme?: string;
|
|
@@ -15,6 +15,5 @@ declare function useTheme(): {
|
|
|
15
15
|
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
16
16
|
};
|
|
17
17
|
declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
18
|
-
//#endregion
|
|
19
18
|
export { useColorSchemeVar, useTheme };
|
|
20
19
|
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","names":[],"sources":["../../src/components/useTheme.ts"],"mappings":";;;;iBAGgB,QAAA;
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","names":["theme","colorScheme","colorMode","resolvedColorMode","resolvedColorScheme","dayScheme","nightScheme","setColorMode","React","Dispatch","SetStateAction","setDayScheme","setNightScheme","Partial","Record","values","fallback","_$__ThemeProvider0.Theme","_$__ThemeProvider0.ColorModeWithAuto","_$__ThemeProvider0.ColorMode"],"sources":["../../src/components/useTheme.ts"],"mappings":";;;;A,iBAGgB,QAAA;E,QAAQiB,KAAAA;;;;;;;;;;;A,iBAIR,iBAAA,CAAkBF,MAAAA,EAAQ,OAAO,CAAC,MAAA,mBAAyBC,QAAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeContext } from "./ThemeContext.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
|
|
3
|
+
// src/components/useTheme.ts
|
|
4
4
|
function useTheme() {
|
|
5
5
|
return React.useContext(ThemeContext);
|
|
6
6
|
}
|
|
@@ -8,5 +8,4 @@ function useColorSchemeVar(values, fallback) {
|
|
|
8
8
|
const { colorScheme = "" } = useTheme();
|
|
9
9
|
return values[colorScheme] ?? fallback;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { useColorSchemeVar, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { theme } from "./theme.js";
|
|
3
2
|
import { BaseStyles, ThemeProvider } from "./components/FeatureFlaggedTheming.js";
|
|
4
3
|
import { useColorSchemeVar, useTheme } from "./components/useFeatureFlaggedTheme.js";
|
|
4
|
+
import { theme } from "./theme.js";
|
|
5
5
|
import { get } from "./theme-get.js";
|
|
6
6
|
import sx, { merge } from "./sx.js";
|
|
7
7
|
export { BaseStyles, ThemeProvider, merge, sx, theme, get as themeGet, useColorSchemeVar, useTheme };
|
package/dist/polymorphic.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { JSX } from "react";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/polymorphic.d.ts
|
|
5
5
|
type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
6
6
|
/**
|
|
7
7
|
* Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
|
|
@@ -31,6 +31,5 @@ interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends For
|
|
|
31
31
|
as: As;
|
|
32
32
|
}> : never): React$1.ReactElement | null;
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export type { ForwardRefComponent, IntrinsicElement, Merge, OwnProps };
|
|
36
35
|
//# sourceMappingURL=polymorphic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polymorphic.d.ts","names":[],"sources":["../src/polymorphic.ts"],"mappings":";;;;KAaK,KAAA,qBAA0B,IAAA,CAAK,EAAA,QAAU,EAAA,IAAM,EAAA;AAArB;AAAqB;AAAE;AAAvB,KAK1B,QAAA,MAAc,CAAA,SAAU,mBAAmB,
|
|
1
|
+
{"version":3,"file":"polymorphic.d.ts","names":["P1","P2","Omit","E","ForwardRefComponent","P","I","OwnProps","React","ForwardRefExoticComponent","Merge","ElementType","ComponentPropsWithRef","as","IntrinsicElementString","As","JSX","IntrinsicElements","ComponentType","props","ReactElement","React"],"sources":["../src/polymorphic.ts"],"mappings":";;;;A,KAaK,KAAA,qBAA0B,IAAA,CAAK,EAAA,QAAU,EAAA,IAAM,EAAA;AAArB;AAAqB;AAAE;AAAvB,KAK1B,QAAA,MAAc,CAAA,SAAU,mBAAmB,iBAAiBK,CAAAA;AALtDL;AAASC;AAAWC;AAApBF,KAUN,gBAAA,MAAsB,CAAA,SAAU,mBAAmB,iBAAiBM,CAAAA;AAAAA,KAEpE,yBAAA,gBAAyCe,OAAAA,CAAM,yBAAA,CAClD,KAAA,CAAM,CAAA,SAAUA,OAAAA,CAAM,WAAA,GAAcA,OAAAA,CAAM,qBAAA,CAAsB,CAAA,WAAY,QAAA;EAAYR,EAAAA,GAAK,CAAA;AAAA;AAAA,UAOrF,mBAAA,gDAOA,yBAAA,CAA0B,sBAAA,EAAwB,QAAA;EAtBvD;AAAQ;AAAA;AAAmC;AAAlCV;AAAKA;AAAUC;AAA+BC;EAAvD,MA+BG,sBAAA,EACJc,KAAAA,EAAO,EAAA;IACFN,EAAAA,QAAU,GAAA,CAAI,iBAAA;EAAA,IACf,EAAA,SAAWQ,OAAAA,CAAM,aAAA,YACf,KAAA,CAAM,CAAA,EAAG,QAAA;IAAYR,EAAAA,EAAI,EAAA;EAAA,KACzB,EAAA,eAAiB,GAAA,CAAI,iBAAA,GACnB,KAAA,CAAM,GAAA,CAAI,iBAAA,CAAkB,EAAA,GAAK,QAAA;IAAYA,EAAAA,EAAI,EAAA;EAAA,aAExDQ,OAAAA,CAAM,YAAA;AAAA"}
|
package/dist/styled-props.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SxProp } from "./sx.js";
|
|
2
2
|
import { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from "styled-system";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/styled-props.d.ts
|
|
5
5
|
type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
6
|
-
//#endregion
|
|
7
6
|
export { StyledProps };
|
|
8
7
|
//# sourceMappingURL=styled-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled-props.d.ts","names":[],"sources":["../src/styled-props.ts"],"mappings":";;;;KAcY,WAAA,GAAc,MAAA,GACxB,UAAA,GACA,UAAA,GACA,eAAA,GACA,WAAA,GACA,YAAA,GACA,SAAA,GACA,eAAA,GACA,WAAA,GACA,aAAA,GACA,WAAA"}
|
|
1
|
+
{"version":3,"file":"styled-props.d.ts","names":["SxProp","SpaceProps","ColorProps","TypographyProps","LayoutProps","FlexboxProps","GridProps","BackgroundProps","BorderProps","PositionProps","ShadowProps"],"sources":["../src/styled-props.ts"],"mappings":";;;;A,KAcY,WAAA,GAAc,MAAA,GACxB,UAAA,GACA,UAAA,GACA,eAAA,GACA,WAAA,GACA,YAAA,GACA,SAAA,GACA,eAAA,GACA,WAAA,GACA,aAAA,GACA,WAAA"}
|
package/dist/sx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BorderColorProps, ColorProps, ShadowProps } from "styled-system";
|
|
|
3
3
|
import { SystemCssProperties, SystemStyleObject } from "@styled-system/css";
|
|
4
4
|
import merge from "deepmerge";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/sx.d.ts
|
|
7
7
|
type BetterCssProperties = { [K in keyof SystemCssProperties]: K extends keyof ColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof BorderColorProps ? ThemeColorPaths | SystemCssProperties[K] : K extends keyof ShadowProps ? ThemeShadowPaths | SystemCssProperties[K] : SystemCssProperties[K] };
|
|
8
8
|
type CSSCustomProperties = {
|
|
9
9
|
[key: `--${string}`]: string | number;
|
|
@@ -21,6 +21,5 @@ interface SxProp {
|
|
|
21
21
|
sx?: BetterSystemStyleObject;
|
|
22
22
|
}
|
|
23
23
|
declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
|
|
24
|
-
//#endregion
|
|
25
24
|
export { BetterCssProperties, BetterSystemStyleObject, CSSCustomProperties, SxProp, sx as default, sx, merge };
|
|
26
25
|
//# sourceMappingURL=sx.d.ts.map
|
package/dist/sx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sx.d.ts","names":[],"sources":["../src/sx.ts"],"mappings":";;;;;;KAMY,mBAAA,iBACE,mBAAA,GAAsB,CAAA,eAAgB,UAAA,GAC9C,eAAA,GAAkB,mBAAA,CAAoB,CAAA,IACtC,CAAA,eAAgB,gBAAA,GACd,eAAA,GAAkB,mBAAA,CAAoB,CAAA,IACtC,CAAA,eAAgB,WAAA,GACd,gBAAA,GAAmB,mBAAA,CAAoB,CAAA,IACvC,mBAAA,CAAoB,CAAA;AAAA,KAIlB,mBAAA;EAAA,
|
|
1
|
+
{"version":3,"file":"sx.d.ts","names":["K","SystemCssProperties","ColorProps","ThemeColorPaths","BorderColorProps","ShadowProps","ThemeShadowPaths","key","cssSelector","SystemStyleObject","CSSCustomProperties","BetterCssProperties","CSSSelectorObject","sx","BetterSystemStyleObject","SxProp","props","CssFunctionReturnType"],"sources":["../src/sx.ts"],"mappings":";;;;;;A,KAMY,mBAAA,iBACE,mBAAA,GAAsB,CAAA,eAAgB,UAAA,GAC9C,eAAA,GAAkB,mBAAA,CAAoB,CAAA,IACtC,CAAA,eAAgB,gBAAA,GACd,eAAA,GAAkB,mBAAA,CAAoB,CAAA,IACtC,CAAA,eAAgB,WAAA,GACd,gBAAA,GAAmB,mBAAA,CAAoB,CAAA,IACvC,mBAAA,CAAoB,CAAA;AAAA,KAIlB,mBAAA;EAAA,CACTO,GAAkB;AAAA;AAAA,KAGhB,iBAAA;EAAA,CACFC,WAAAA,WAAsB,iBAAA,GAAoB,mBAAmB;AAAA;AAAA,KAGpD,uBAAA,GAA0B,mBAAA,GAAsB,iBAAA,GAAoB,mBAAA,GAAsB,iBAAA;AAAA,UAErF,MAAA;EAlBX;AAAgB;AACd;AAAkB;AAAoB;EAuB5CK,EAAAA,GAAK,uBAAuB;AAAA;AAAA,cAGxB,EAAA,GAAMG,KAAAA,EAAO,MAAM,kCAAAC,qBAAAA"}
|
package/dist/sx.js
CHANGED
package/dist/theme-get.d.ts
CHANGED
package/dist/theme-get.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-get.d.ts","names":[],"sources":["../src/theme-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-get.d.ts","names":["key","props"],"sources":["../src/theme-get.ts"],"mappings":"cAOa,GAAA,GAAOA,GAAAA,cAAWC,KAAA"}
|
package/dist/theme-get.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { theme } from "./theme.js";
|
|
2
2
|
import { themeGet } from "@styled-system/theme-get";
|
|
3
3
|
import * as styledSystem from "styled-system";
|
|
4
|
-
|
|
4
|
+
// src/theme-get.ts
|
|
5
5
|
const { get: getKey } = styledSystem;
|
|
6
6
|
const get = (key) => themeGet(key, getKey(theme, key));
|
|
7
|
-
//#endregion
|
|
8
7
|
export { get };
|
package/dist/theme-types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/theme-types.d.ts
|
|
2
1
|
type KeyPaths<O> = { [K in keyof O]: K extends string ? (O[K] extends Record<string, unknown> ? `${K}.${KeyPaths<O[K]>}` : `${K}`) : never }[keyof O];
|
|
3
2
|
type ThemeColors = {
|
|
4
3
|
fg: {
|
|
@@ -89,6 +88,5 @@ type ThemeShadows = {
|
|
|
89
88
|
};
|
|
90
89
|
type ThemeColorPaths = KeyPaths<ThemeColors>;
|
|
91
90
|
type ThemeShadowPaths = KeyPaths<ThemeShadows>;
|
|
92
|
-
//#endregion
|
|
93
91
|
export { ThemeColorPaths, ThemeShadowPaths };
|
|
94
92
|
//# sourceMappingURL=theme-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-types.d.ts","names":[],"sources":["../src/theme-types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-types.d.ts","names":["O","K","Record","KeyPaths","fg","default","muted","subtle","onEmphasis","canvas","overlay","inset","border","neutral","emphasisPlus","emphasis","accent","success","attention","severe","danger","open","closed","done","sponsors","shadow","small","medium","large","extraLarge","ThemeColors","ThemeShadows"],"sources":["../src/theme-types.ts"],"mappings":"KACK,QAAA,oBACS,CAAA,GAAI,CAAA,mBAAoB,CAAA,CAAE,CAAA,UAAW,MAAA,uBAA6B,CAAA,IAAK,QAAA,CAAS,CAAA,CAAE,CAAA,UAAW,CAAA,oBACnG,CAAA;AAAA,KAKH,WAAA;EACHI,EAAAA;IACEC,OAAAA;IACAC,KAAAA;IACAC,MAAAA;IACAC,UAAAA;EAAAA;EAEFC,MAAAA;IACEJ,OAAAA;IACAK,OAAAA;IACAC,KAAAA;IACAJ,MAAAA;EAAAA;EAEFK,MAAAA;IACEP,OAAAA;IACAC,KAAAA;IACAC,MAAAA;EAAAA;EAIFM,OAAAA;IACEC,YAAAA;IACAC,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFS,MAAAA;IACEZ,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFU,OAAAA;IACEb,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFW,SAAAA;IACEd,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFY,MAAAA;IACEf,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFa,MAAAA;IACEhB,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFc,IAAAA;IACEjB,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFe,MAAAA;IACElB,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFgB,IAAAA;IACEnB,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;EAEFiB,QAAAA;IACEpB,EAAAA;IACAW,QAAAA;IACAT,KAAAA;IACAC,MAAAA;EAAAA;AAAAA;AAAAA,KAIC,YAAA;EACHkB,MAAAA;IACEC,KAAAA;IACAC,MAAAA;IACAC,KAAAA;IACAC,UAAAA;EAAAA;AAAAA;AAAAA,KAIQ,eAAA,GAAkB,QAAQ,CAAC,WAAA;AAAA,KAC3B,gBAAA,GAAmB,QAAQ,CAAC,YAAA"}
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/theme.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The default theme used by `@primer/styled-react`. This extends the base theme
|
|
4
3
|
* from `@primer/react` with the legacy `colorSchemes` object required by the
|
|
@@ -1085,6 +1084,5 @@ declare const theme: {
|
|
|
1085
1084
|
}>;
|
|
1086
1085
|
}>;
|
|
1087
1086
|
};
|
|
1088
|
-
//#endregion
|
|
1089
1087
|
export { theme };
|
|
1090
1088
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","names":[],"sources":["../src/theme.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","names":["animation","easeOutCubic","borderWidths","breakpoints","fonts","normal","mono","fontSizes","fontWeights","light","semibold","bold","lineHeights","condensedUltra","condensed","default","radii","sizes","small","medium","large","xlarge","space","colorSchemes","Record","colors","Partial","canvasDefaultTransparent","pageHeaderBg","marketingIcon","primary","secondary","diffBlob","addition","numText","fg","numBg","lineBg","wordBg","deletion","hunk","expander","icon","selectedLineHighlightMixBlendMode","diffstat","deletionBorder","additionBorder","additionBg","searchKeyword","hl","prettylights","syntax","comment","constant","entity","storageModifierImport","entityTag","keyword","string","variable","brackethighlighterUnmatched","invalidIllegalText","invalidIllegalBg","carriageReturnText","carriageReturnBg","stringRegexp","markupList","markupHeading","markupItalic","markupBold","markupDeletedText","markupDeletedBg","markupInsertedText","markupInsertedBg","markupChangedText","markupChangedBg","markupIgnoredText","markupIgnoredBg","metaDiffRange","brackethighlighterAngle","sublimelinterGutterMark","constantOtherReferenceLink","codemirror","text","bg","guttersBg","guttermarkerText","guttermarkerSubtleText","linenumberText","cursor","selectionBg","activelineBg","matchingbracketText","linesBg","storage","support","checks","runBorderWidth","containerBorderWidth","textPrimary","textSecondary","textLink","btnIcon","btnHoverIcon","btnHoverBg","inputText","inputPlaceholderText","inputFocusText","inputBg","inputShadow","donutError","donutPending","donutSuccess","donutNeutral","dropdownText","dropdownBg","dropdownBorder","dropdownShadow","dropdownHoverText","dropdownHoverBg","dropdownBtnHoverText","dropdownBtnHoverBg","scrollbarThumbBg","headerLabelText","headerLabelOpenText","headerBorder","headerIcon","lineText","lineNumText","lineTimestampText","lineHoverBg","lineSelectedBg","lineSelectedNumText","lineDtFmText","lineDtFmBg","gateBg","gateText","gateWaitingText","stepHeaderOpenBg","stepErrorText","stepWarningText","loglineText","loglineNumText","loglineDebugText","loglineErrorText","loglineErrorNumText","loglineErrorBg","loglineWarningText","loglineWarningNumText","loglineWarningBg","loglineCommandText","loglineSectionText","ansi","black","blackBright","white","whiteBright","gray","red","redBright","green","greenBright","yellow","yellowBright","blue","blueBright","magenta","magentaBright","cyan","cyanBright","project","headerBg","sidebarBg","gradientIn","gradientOut","mktg","btn","control","borderColor","emphasis","avatar","border","stackFade","stackFadeMore","topicTag","counter","selectMenu","backdropBorder","tapHighlight","tapFocusBg","overlay","backdrop","header","divider","logo","headerSearch","sidenav","selectedBg","menu","bgActive","input","disabledBg","timeline","badgeBg","hoverBg","hoverBorder","activeBg","activeBorder","counterBg","disabledText","disabledBorder","outline","hoverText","hoverCounterBg","selectedText","selectedBorder","disabledCounterBg","counterFg","hoverCounterFg","disabledCounterFg","danger","hoverIcon","inactive","underlinenav","borderHover","actionListItem","inlineDivider","switchTrack","disabledFg","checked","switchKnob","segmentedControl","button","hover","active","selected","treeViewItem","chevron","directory","fill","muted","subtle","onEmphasis","canvas","inset","neutral","emphasisPlus","accent","success","attention","severe","open","closed","done","sponsors","primer","disabled","sticky","contrast","shadows","shadow","focus","hoverMuted","childShadow","insetShadow","selectedShadow","hoverShadow","hoverInsetShadow","extraLarge","highlight"],"sources":["../src/theme.ts"],"mappings":";AAQA;AAGC;AAAA;;A,cAHY,KAAA"}
|
package/dist/theme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { colorSchemes } from "./legacy-theme/ts/color-schemes.js";
|
|
2
2
|
import { theme } from "@primer/react";
|
|
3
|
-
|
|
3
|
+
// src/theme.ts
|
|
4
4
|
/**
|
|
5
5
|
* The default theme used by `@primer/styled-react`. This extends the base theme
|
|
6
6
|
* from `@primer/react` with the legacy `colorSchemes` object required by the
|
|
@@ -10,5 +10,4 @@ const theme$1 = {
|
|
|
10
10
|
...theme,
|
|
11
11
|
colorSchemes
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
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.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.910ed20c9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -40,27 +40,26 @@
|
|
|
40
40
|
"styled-system": "^5.1.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "^
|
|
44
|
-
"@babel/preset-react": "^
|
|
45
|
-
"@babel/preset-typescript": "^
|
|
43
|
+
"@babel/core": "^8.1.0",
|
|
44
|
+
"@babel/preset-react": "^8.0.1",
|
|
45
|
+
"@babel/preset-typescript": "^8.0.7",
|
|
46
46
|
"@primer/primitives": "10.x || 11.x",
|
|
47
|
-
"@primer/react": "^
|
|
48
|
-
"@rolldown/plugin-babel": "^0.
|
|
49
|
-
"@storybook/react-vite": "10.
|
|
50
|
-
"@types/babel__core": "^7.20.5",
|
|
47
|
+
"@primer/react": "^39.0.0",
|
|
48
|
+
"@rolldown/plugin-babel": "^0.3.0",
|
|
49
|
+
"@storybook/react-vite": "10.6.2",
|
|
51
50
|
"@types/react": "18.3.11",
|
|
52
51
|
"@types/react-dom": "18.3.1",
|
|
53
52
|
"@types/styled-components": "^5.1.26",
|
|
54
|
-
"@vitejs/plugin-react": "^6.
|
|
55
|
-
"babel-plugin-
|
|
56
|
-
"
|
|
53
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
54
|
+
"babel-plugin-styled-components": "2.3.1",
|
|
55
|
+
"oxc-transform-react": "^0.157.0",
|
|
57
56
|
"postcss-preset-primer": "^0.0.0",
|
|
58
57
|
"publint": "^0.3.15",
|
|
59
58
|
"react": "18.3.1",
|
|
60
59
|
"react-compiler-runtime": "^1.0.0",
|
|
61
60
|
"react-dom": "18.3.1",
|
|
62
61
|
"rimraf": "^6.0.1",
|
|
63
|
-
"rolldown": "^1.2.
|
|
62
|
+
"rolldown": "^1.2.16",
|
|
64
63
|
"rolldown-plugin-dts": "^0.26.0",
|
|
65
64
|
"rolldown-plugin-preserve-directives": "^0.0.0",
|
|
66
65
|
"styled-components": "5.3.11",
|