@primer/styled-react 1.1.0 → 1.1.1-rc.05923388d

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 (38) hide show
  1. package/dist/components/BaseStyles.d.ts +23 -14
  2. package/dist/components/BaseStyles.d.ts.map +1 -1
  3. package/dist/components/BaseStyles.js +27 -48
  4. package/dist/components/FeatureFlaggedTheming.d.ts +11 -11
  5. package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
  6. package/dist/components/FeatureFlaggedTheming.js +20 -43
  7. package/dist/components/ThemeContext.d.ts +19 -0
  8. package/dist/components/ThemeContext.d.ts.map +1 -0
  9. package/dist/components/ThemeContext.js +9 -0
  10. package/dist/components/ThemeProvider.d.ts +21 -31
  11. package/dist/components/ThemeProvider.d.ts.map +1 -1
  12. package/dist/components/ThemeProvider.js +104 -147
  13. package/dist/components/useFeatureFlaggedTheme.d.ts +8 -0
  14. package/dist/components/useFeatureFlaggedTheme.d.ts.map +1 -0
  15. package/dist/components/useFeatureFlaggedTheme.js +19 -0
  16. package/dist/components/useTheme.d.ts +20 -0
  17. package/dist/components/useTheme.d.ts.map +1 -0
  18. package/dist/components/useTheme.js +12 -0
  19. package/dist/index.d.ts +6 -67
  20. package/dist/index.js +6 -6
  21. package/dist/legacy-theme/ts/color-schemes.js +4252 -0
  22. package/dist/polymorphic.d.ts +23 -26
  23. package/dist/polymorphic.d.ts.map +1 -1
  24. package/dist/styled-props.d.ts +7 -3
  25. package/dist/styled-props.d.ts.map +1 -1
  26. package/dist/sx.d.ts +20 -20
  27. package/dist/sx.d.ts.map +1 -1
  28. package/dist/sx.js +6 -8
  29. package/dist/theme-get.d.ts +4 -1
  30. package/dist/theme-get.d.ts.map +1 -1
  31. package/dist/theme-get.js +7 -9
  32. package/dist/theme-types.d.ts +94 -0
  33. package/dist/theme-types.d.ts.map +1 -0
  34. package/dist/theme.d.ts +1090 -0
  35. package/dist/theme.d.ts.map +1 -0
  36. package/dist/theme.js +14 -0
  37. package/package.json +14 -8
  38. package/dist/index.d.ts.map +0 -1
@@ -1,11 +1,7 @@
1
- /**
2
- * This file is originally from `@radix-ui/react-polymorphic` before the package
3
- * was deprecated. The original source for this lived in the URL below.
4
- *
5
- * @see https://github.com/radix-ui/primitives/blob/17ffcb7aaa42cbd36b3c210ba86d7d73d218e5be/packages/react/polymorphic/src/polymorphic.ts
6
- */
7
- import * as React from 'react';
8
- import type { JSX } from 'react';
1
+ import * as React$1 from "react";
2
+ import { JSX } from "react";
3
+
4
+ //#region src/polymorphic.d.ts
9
5
  type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
10
6
  /**
11
7
  * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
@@ -15,25 +11,26 @@ type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {};
15
11
  * Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
16
12
  */
17
13
  type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
18
- type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
19
- as?: E;
14
+ type ForwardRefExoticComponent<E, OwnProps> = React$1.ForwardRefExoticComponent<Merge<E extends React$1.ElementType ? React$1.ComponentPropsWithRef<E> : never, OwnProps & {
15
+ as?: E;
20
16
  }>>;
21
17
  interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
22
- /**
23
- * When `as` prop is passed, use this overload.
24
- * Merges original own props (without DOM props) and the inferred props
25
- * from `as` element with the own props taking precedence.
26
- *
27
- * We explicitly avoid `React.ElementType` and manually narrow the prop types
28
- * so that events are typed when using JSX.IntrinsicElements.
29
- */
30
- <As = IntrinsicElementString>(props: As extends '' ? {
31
- as: keyof JSX.IntrinsicElements;
32
- } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
33
- as: As;
34
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
35
- as: As;
36
- }> : never): React.ReactElement | null;
18
+ /**
19
+ * When `as` prop is passed, use this overload.
20
+ * Merges original own props (without DOM props) and the inferred props
21
+ * from `as` element with the own props taking precedence.
22
+ *
23
+ * We explicitly avoid `React.ElementType` and manually narrow the prop types
24
+ * so that events are typed when using JSX.IntrinsicElements.
25
+ */
26
+ <As = IntrinsicElementString>(props: As extends '' ? {
27
+ as: keyof JSX.IntrinsicElements;
28
+ } : As extends React$1.ComponentType<infer P> ? Merge<P, OwnProps & {
29
+ as: As;
30
+ }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
31
+ as: As;
32
+ }> : never): React$1.ReactElement | null;
37
33
  }
38
- export type { ForwardRefComponent, OwnProps, IntrinsicElement, Merge };
34
+ //#endregion
35
+ export type { ForwardRefComponent, IntrinsicElement, Merge, OwnProps };
39
36
  //# sourceMappingURL=polymorphic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../src/polymorphic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,OAAO,CAAA;AAK9B,KAAK,KAAK,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,CAAA;AAEtD;;GAEG;AACH,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAA;AAEvE;;GAEG;AACH,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,C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KAUN,gBAAA,MAAsB,CAAA,SAAU,mBAAmB,iBAAiB,CAAA;AAAA,KAEpE,yBAAA,gBAAyC,OAAA,CAAM,yBAAA,CAClD,KAAA,CAAM,CAAA,SAAU,OAAA,CAAM,WAAA,GAAc,OAAA,CAAM,qBAAA,CAAsB,CAAA,WAAY,QAAA;EAAY,EAAA,GAAK,CAAA;AAAA;AAAA,UAOrF,mBAAA,gDAOA,yBAAA,CAA0B,sBAAA,EAAwB,QAAA;EAtBvD;AAAQ;AAAA;AAAmC;AAAlC;AAAK;AAAU;AAA+B;EAAvD,MA+BG,sBAAA,EACJ,KAAA,EAAO,EAAA;IACF,EAAA,QAAU,GAAA,CAAI,iBAAA;EAAA,IACf,EAAA,SAAW,OAAA,CAAM,aAAA,YACf,KAAA,CAAM,CAAA,EAAG,QAAA;IAAY,EAAA,EAAI,EAAA;EAAA,KACzB,EAAA,eAAiB,GAAA,CAAI,iBAAA,GACnB,KAAA,CAAM,GAAA,CAAI,iBAAA,CAAkB,EAAA,GAAK,QAAA;IAAY,EAAA,EAAI,EAAA;EAAA,aAExD,OAAA,CAAM,YAAA;AAAA"}
@@ -1,4 +1,8 @@
1
- import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
2
- import type { SxProp } from './sx';
3
- export type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
1
+ import { SxProp } from "./sx.js";
2
+ import { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from "styled-system";
3
+
4
+ //#region src/styled-props.d.ts
5
+ type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
6
+ //#endregion
7
+ export { StyledProps };
4
8
  //# sourceMappingURL=styled-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-props.d.ts","sourceRoot":"","sources":["../src/styled-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EAChB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,WAAW,GAAG,MAAM,GAC9B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA"}
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"}
package/dist/sx.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- import type { SystemCssProperties, SystemStyleObject } from '@styled-system/css';
2
- import type { ThemeColorPaths, ThemeShadowPaths } from '@primer/react';
3
- import type { ColorProps, BorderColorProps, ShadowProps } from 'styled-system';
4
- import merge from 'deepmerge';
5
- export type BetterCssProperties = {
6
- [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];
7
- };
8
- export type CSSCustomProperties = {
9
- [key: `--${string}`]: string | number;
1
+ import { ThemeColorPaths, ThemeShadowPaths } from "./theme-types.js";
2
+ import { BorderColorProps, ColorProps, ShadowProps } from "styled-system";
3
+ import { SystemCssProperties, SystemStyleObject } from "@styled-system/css";
4
+ import merge from "deepmerge";
5
+
6
+ //#region src/sx.d.ts
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
+ type CSSCustomProperties = {
9
+ [key: `--${string}`]: string | number;
10
10
  };
11
11
  type CSSSelectorObject = {
12
- [cssSelector: string]: SystemStyleObject | CSSCustomProperties;
12
+ [cssSelector: string]: SystemStyleObject | CSSCustomProperties;
13
13
  };
14
- export type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject | CSSCustomProperties | CSSSelectorObject;
15
- export interface SxProp {
16
- /**
17
- * @deprecated The `sx` prop is deprecated. Replace with a `div` or
18
- * appropriate HTML element instead, with a CSS class for styling.
19
- * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
20
- * */
21
- sx?: BetterSystemStyleObject;
14
+ type BetterSystemStyleObject = BetterCssProperties | SystemStyleObject | CSSCustomProperties | CSSSelectorObject;
15
+ interface SxProp {
16
+ /**
17
+ * @deprecated The `sx` prop is deprecated. Replace with a `div` or
18
+ * appropriate HTML element instead, with a CSS class for styling.
19
+ * @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
20
+ * */
21
+ sx?: BetterSystemStyleObject;
22
22
  }
23
23
  declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
24
- export default sx;
25
- export { merge, sx };
24
+ //#endregion
25
+ export { BetterCssProperties, BetterSystemStyleObject, CSSCustomProperties, SxProp, sx as default, sx, merge };
26
26
  //# sourceMappingURL=sx.d.ts.map
package/dist/sx.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CA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AgB,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,CACT,GAAkB;AAAA;AAAA,KAGhB,iBAAA;EAAA,CACF,WAAA,WAAsB,iBAAA,GAAoB,mBAAmB;AAAA;AAAA,KAGpD,uBAAA,GAA0B,mBAAA,GAAsB,iBAAA,GAAoB,mBAAA,GAAsB,iBAAA;AAAA,UAErF,MAAA;EAlBX;AAAgB;AACd;AAAkB;AAAoB;EAuB5C,EAAA,GAAK,uBAAuB;AAAA;AAAA,cAGxB,EAAA,GAAM,KAAA,EAAO,MAAM,kCAAA,qBAAA"}
package/dist/sx.js CHANGED
@@ -1,8 +1,6 @@
1
- import css from '@styled-system/css';
2
- export { default as merge } from 'deepmerge';
3
-
4
- // Support CSS custom properties in the `sx` prop
5
-
6
- const sx = props => css(props.sx);
7
-
8
- export { sx };
1
+ import merge from "deepmerge";
2
+ import css from "@styled-system/css";
3
+ //#region src/sx.ts
4
+ const sx = (props) => css(props.sx);
5
+ //#endregion
6
+ export { sx as default, sx, merge };
@@ -1,2 +1,5 @@
1
- export declare const get: (key: string) => (props: any) => any;
1
+ //#region src/theme-get.d.ts
2
+ declare const get: (key: string) => (props: any) => any;
3
+ //#endregion
4
+ export { get };
2
5
  //# sourceMappingURL=theme-get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme-get.d.ts","sourceRoot":"","sources":["../src/theme-get.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,wBAAsC,CAAA"}
1
+ {"version":3,"file":"theme-get.d.ts","names":[],"sources":["../src/theme-get.ts"],"mappings":";cAOa,GAAA,GAAO,GAAA,cAAW,KAAA"}
package/dist/theme-get.js CHANGED
@@ -1,10 +1,8 @@
1
- import { themeGet } from '@styled-system/theme-get';
2
- import * as styledSystem from 'styled-system';
3
- import { theme } from '@primer/react';
4
-
5
- const {
6
- get: getKey
7
- } = styledSystem;
8
- const get = key => themeGet(key, getKey(theme, key));
9
-
1
+ import { theme } from "./theme.js";
2
+ import { themeGet } from "@styled-system/theme-get";
3
+ import * as styledSystem from "styled-system";
4
+ //#region src/theme-get.ts
5
+ const { get: getKey } = styledSystem;
6
+ const get = (key) => themeGet(key, getKey(theme, key));
7
+ //#endregion
10
8
  export { get };
@@ -0,0 +1,94 @@
1
+ //#region src/theme-types.d.ts
2
+ 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
+ type ThemeColors = {
4
+ fg: {
5
+ default: string;
6
+ muted: string;
7
+ subtle: string;
8
+ onEmphasis: string;
9
+ };
10
+ canvas: {
11
+ default: string;
12
+ overlay: string;
13
+ inset: string;
14
+ subtle: string;
15
+ };
16
+ border: {
17
+ default: string;
18
+ muted: string;
19
+ subtle: string;
20
+ };
21
+ neutral: {
22
+ emphasisPlus: string;
23
+ emphasis: string;
24
+ muted: string;
25
+ subtle: string;
26
+ };
27
+ accent: {
28
+ fg: string;
29
+ emphasis: string;
30
+ muted: string;
31
+ subtle: string;
32
+ };
33
+ success: {
34
+ fg: string;
35
+ emphasis: string;
36
+ muted: string;
37
+ subtle: string;
38
+ };
39
+ attention: {
40
+ fg: string;
41
+ emphasis: string;
42
+ muted: string;
43
+ subtle: string;
44
+ };
45
+ severe: {
46
+ fg: string;
47
+ emphasis: string;
48
+ muted: string;
49
+ subtle: string;
50
+ };
51
+ danger: {
52
+ fg: string;
53
+ emphasis: string;
54
+ muted: string;
55
+ subtle: string;
56
+ };
57
+ open: {
58
+ fg: string;
59
+ emphasis: string;
60
+ muted: string;
61
+ subtle: string;
62
+ };
63
+ closed: {
64
+ fg: string;
65
+ emphasis: string;
66
+ muted: string;
67
+ subtle: string;
68
+ };
69
+ done: {
70
+ fg: string;
71
+ emphasis: string;
72
+ muted: string;
73
+ subtle: string;
74
+ };
75
+ sponsors: {
76
+ fg: string;
77
+ emphasis: string;
78
+ muted: string;
79
+ subtle: string;
80
+ };
81
+ };
82
+ type ThemeShadows = {
83
+ shadow: {
84
+ small: string;
85
+ medium: string;
86
+ large: string;
87
+ extraLarge: string;
88
+ };
89
+ };
90
+ type ThemeColorPaths = KeyPaths<ThemeColors>;
91
+ type ThemeShadowPaths = KeyPaths<ThemeShadows>;
92
+ //#endregion
93
+ export { ThemeColorPaths, ThemeShadowPaths };
94
+ //# sourceMappingURL=theme-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-types.d.ts","names":[],"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;EACH,EAAA;IACE,OAAA;IACA,KAAA;IACA,MAAA;IACA,UAAA;EAAA;EAEF,MAAA;IACE,OAAA;IACA,OAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,MAAA;IACE,OAAA;IACA,KAAA;IACA,MAAA;EAAA;EAIF,OAAA;IACE,YAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,MAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,OAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,SAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,MAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,MAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,IAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,MAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,IAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;EAEF,QAAA;IACE,EAAA;IACA,QAAA;IACA,KAAA;IACA,MAAA;EAAA;AAAA;AAAA,KAIC,YAAA;EACH,MAAA;IACE,KAAA;IACA,MAAA;IACA,KAAA;IACA,UAAA;EAAA;AAAA;AAAA,KAIQ,eAAA,GAAkB,QAAQ,CAAC,WAAA;AAAA,KAC3B,gBAAA,GAAmB,QAAQ,CAAC,YAAA"}