@primer/styled-react 1.1.1-rc.d33706de4 → 1.1.1-rc.d43229bc7
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 +1 -2
- package/dist/components/FeatureFlaggedTheming.d.ts +2 -3
- package/dist/components/FeatureFlaggedTheming.js +1 -2
- package/dist/components/ThemeContext.d.ts +1 -2
- package/dist/components/ThemeContext.js +1 -2
- package/dist/components/ThemeProvider.d.ts +1 -2
- package/dist/components/ThemeProvider.js +0 -1
- package/dist/components/useFeatureFlaggedTheme.d.ts +1 -2
- package/dist/components/useFeatureFlaggedTheme.js +1 -2
- package/dist/components/useTheme.d.ts +1 -2
- 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/styled-props.d.ts +1 -2
- package/dist/sx.d.ts +1 -2
- 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 +8 -8
|
@@ -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":["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":"
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import { createGlobalStyle } from "styled-components";
|
|
|
3
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();
|
|
@@ -26,5 +26,4 @@ function BaseStyles({ children, color, fontFamily, lineHeight, className, as: Co
|
|
|
26
26
|
children: [/*#__PURE__*/ jsxDEV(GlobalStyle, { colorScheme: colorScheme?.includes("dark") ? "dark" : "light" }, void 0, false), children]
|
|
27
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
|
|
@@ -3,7 +3,7 @@ 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
5
|
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/FeatureFlaggedTheming.tsx
|
|
7
7
|
const ThemeProvider$1 = ({ children, ...props }) => {
|
|
8
8
|
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/ jsxDEV(ThemeProvider, {
|
|
9
9
|
...props,
|
|
@@ -18,5 +18,4 @@ function BaseStyles$1(props) {
|
|
|
18
18
|
if (useFeatureFlag("primer_react_styled_react_use_primer_theme_providers")) return /*#__PURE__*/ jsxDEV(BaseStyles, { ...props }, void 0, false);
|
|
19
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,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,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,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,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
|
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
|
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.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":["key","props"],"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":["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":"
|
|
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":["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":"
|
|
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.d43229bc7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"styled-system": "^5.1.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/core": "^8.0
|
|
43
|
+
"@babel/core": "^8.1.0",
|
|
44
44
|
"@babel/preset-react": "^8.0.1",
|
|
45
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.
|
|
47
|
+
"@primer/react": "^39.0.0",
|
|
48
|
+
"@rolldown/plugin-babel": "^0.3.0",
|
|
49
|
+
"@storybook/react-vite": "10.6.2",
|
|
50
50
|
"@types/react": "18.3.11",
|
|
51
51
|
"@types/react-dom": "18.3.1",
|
|
52
52
|
"@types/styled-components": "^5.1.26",
|
|
53
53
|
"@vitejs/plugin-react": "^6.1.1",
|
|
54
|
-
"babel-plugin-styled-components": "2.3.
|
|
55
|
-
"oxc-transform-react": "^0.
|
|
54
|
+
"babel-plugin-styled-components": "2.3.1",
|
|
55
|
+
"oxc-transform-react": "^0.157.0",
|
|
56
56
|
"postcss-preset-primer": "^0.0.0",
|
|
57
57
|
"publint": "^0.3.15",
|
|
58
58
|
"react": "18.3.1",
|
|
59
59
|
"react-compiler-runtime": "^1.0.0",
|
|
60
60
|
"react-dom": "18.3.1",
|
|
61
61
|
"rimraf": "^6.0.1",
|
|
62
|
-
"rolldown": "^1.2.
|
|
62
|
+
"rolldown": "^1.2.16",
|
|
63
63
|
"rolldown-plugin-dts": "^0.26.0",
|
|
64
64
|
"rolldown-plugin-preserve-directives": "^0.0.0",
|
|
65
65
|
"styled-components": "5.3.11",
|