@primer/styled-react 0.0.0-20251022210214 → 0.0.0-20251022234008
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/ActionList.js +1 -2
- package/dist/components/ActionMenu.d.ts +1 -2
- package/dist/components/ActionMenu.d.ts.map +1 -1
- package/dist/components/ActionMenu.js +1 -2
- package/dist/components/Autocomplete.js +1 -2
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Box.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -2
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +1 -2
- package/dist/components/CircleBadge.d.ts +1 -2
- package/dist/components/CircleBadge.d.ts.map +1 -1
- package/dist/components/CircleBadge.js +1 -2
- package/dist/components/DataTable.js +1 -1
- package/dist/components/FeatureFlaggedTheming.d.ts +9 -0
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
- package/dist/components/FeatureFlaggedTheming.js +54 -0
- package/dist/components/Flash.js +1 -2
- package/dist/components/FormControl.d.ts +1 -2
- package/dist/components/FormControl.d.ts.map +1 -1
- package/dist/components/FormControl.js +1 -2
- package/dist/components/Heading.js +1 -2
- package/dist/components/IconButton.d.ts +1 -2
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +1 -2
- package/dist/components/Label.js +1 -2
- package/dist/components/Link.js +1 -2
- package/dist/components/LinkButton.d.ts +1 -2
- package/dist/components/LinkButton.d.ts.map +1 -1
- package/dist/components/LinkButton.js +1 -2
- package/dist/components/NavList.js +1 -2
- package/dist/components/Overlay.d.ts +1 -2
- package/dist/components/Overlay.d.ts.map +1 -1
- package/dist/components/Overlay.js +1 -2
- package/dist/components/PageHeader.js +1 -2
- package/dist/components/PageLayout.js +1 -2
- package/dist/components/Select.js +1 -2
- package/dist/components/Spinner.js +1 -2
- package/dist/components/StateLabel.d.ts +1 -1
- package/dist/components/Text.js +1 -2
- package/dist/components/TextInput.js +1 -2
- package/dist/components/Textarea.js +1 -2
- package/dist/components/Token.js +1 -2
- package/dist/components/Tooltip.d.ts +1 -2
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Truncate.js +1 -2
- package/dist/components/UnderlineNav.js +1 -2
- package/dist/components/UnderlinePanels.js +1 -1
- package/dist/components/deprecated/ActionList.js +1 -1
- package/dist/components/deprecated/Octicon.js +1 -1
- package/dist/components/deprecated/TabNav.js +1 -1
- package/dist/components/deprecated/Tooltip.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -6
- package/dist/styled-props.d.ts +1 -0
- package/dist/styled-props.d.ts.map +1 -1
- package/dist/sx.d.ts +1 -22
- package/dist/sx.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/sx.js +0 -8
- package/dist/theme-get.d.ts +0 -2
- package/dist/theme-get.d.ts.map +0 -1
- package/dist/theme-get.js +0 -10
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { ActionList as ActionList$1 } from '@primer/react';
|
|
4
|
-
import sx from '../sx.js';
|
|
3
|
+
import { ActionList as ActionList$1, sx } from '@primer/react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
const StyledActionList = styled(ActionList$1).withConfig({
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ActionMenu as PrimerActionMenu, type SlotMarker } from '@primer/react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
1
|
+
import { ActionMenu as PrimerActionMenu, type SxProp, type SlotMarker } from '@primer/react';
|
|
3
2
|
import type { ComponentProps } from 'react';
|
|
4
3
|
type ActionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
|
|
5
4
|
declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps> & SlotMarker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAG1F,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAAC,GAAG,UAMtE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Autocomplete as Autocomplete$1 } from '@primer/react';
|
|
2
|
-
import sx from '../sx.js';
|
|
1
|
+
import { Autocomplete as Autocomplete$1, sx } from '@primer/react';
|
|
3
2
|
import styled from 'styled-components';
|
|
4
3
|
|
|
5
4
|
const AutocompleteOverlay = styled(Autocomplete$1.Overlay).withConfig({
|
|
@@ -7,7 +7,7 @@ declare const Avatar: import("react").ForwardRefExoticComponent<{
|
|
|
7
7
|
src: string;
|
|
8
8
|
alt?: string;
|
|
9
9
|
className?: string;
|
|
10
|
-
} & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("
|
|
10
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("@primer/react").SxProp & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
|
|
11
11
|
export { Avatar };
|
|
12
12
|
export type { AvatarProps };
|
|
13
13
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;ooDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
|
package/dist/components/Box.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
|
|
3
|
-
import sx from '
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ButtonProps as PrimerButtonProps, type SlotMarker } from '@primer/react';
|
|
2
|
-
import type { SxProp
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
import type { BetterSystemStyleObject } from '../styled-props';
|
|
3
4
|
import type { ForwardRefComponent } from '../polymorphic';
|
|
4
5
|
type ButtonComponentProps = PrimerButtonProps & SxProp & {
|
|
5
6
|
as?: React.ElementType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,WAAW,IAAI,iBAAiB,EAAE,KAAK,UAAU,EAAC,MAAM,eAAe,CAAA;AAC5G,OAAO,KAAK,EAAC,MAAM,EAAsB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE5D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAIvD,KAAK,oBAAoB,GAAG,iBAAiB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQjF,QAAA,MAAM,eAAe,EAgBf,mBAAmB,CAAC,QAAQ,EAAE,oBAAoB,CAAC,GAAG,UAAU,CAAA;AA0CtE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,GAAG,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC,CAAC,EACjH,UAAU,EAAE,uBAAuB;;EAmBpC;AAKD,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Button } from '@primer/react';
|
|
1
|
+
import { Button, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
const StyledButtonComponent = styled(Button).withConfig({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type CircleBadgeProps as PrimerCircleBadgeProps } from '@primer/react';
|
|
1
|
+
import { type CircleBadgeProps as PrimerCircleBadgeProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
|
|
5
4
|
declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
|
|
6
5
|
export { CircleBadge };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,IAAI,sBAAsB,EAE/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CircleBadge as CircleBadge$1 } from '@primer/react';
|
|
1
|
+
import { CircleBadge as CircleBadge$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const CircleBadge = styled(CircleBadge$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
|
|
2
|
+
import { type ThemeProviderProps } from './ThemeProvider';
|
|
3
|
+
import { type BaseStylesProps } from './BaseStyles';
|
|
4
|
+
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
5
|
+
export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
|
|
6
|
+
export declare const useTheme: typeof primerReactUseTheme;
|
|
7
|
+
export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
|
|
8
|
+
export type { ThemeProviderProps, BaseStylesProps };
|
|
9
|
+
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,IAAI,mBAAmB,EAC/B,iBAAiB,IAAI,4BAA4B,EAClD,MAAM,eAAe,CAAA;AACtB,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAsC,KAAK,eAAe,EAAC,MAAM,cAAc,CAAA;AAGtF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAO/E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAOzE,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,mBAM7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,OAAO,4BAMtC,CAAA;AAED,YAAY,EAAC,kBAAkB,EAAE,eAAe,EAAC,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ThemeProvider as ThemeProvider$2, useTheme as useTheme$2, useColorSchemeVar as useColorSchemeVar$2, BaseStyles as BaseStyles$2 } from '@primer/react';
|
|
2
|
+
import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1, useColorSchemeVar as useColorSchemeVar$1 } from './ThemeProvider.js';
|
|
3
|
+
import { BaseStyles as BaseStyles$1 } from './BaseStyles.js';
|
|
4
|
+
import { useFeatureFlag } from '@primer/react/experimental';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
const ThemeProvider = ({
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
12
|
+
if (enabled) {
|
|
13
|
+
return /*#__PURE__*/jsx(ThemeProvider$1, {
|
|
14
|
+
...props,
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
17
|
+
} else {
|
|
18
|
+
return /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
19
|
+
...props,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const BaseStyles = ({
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}) => {
|
|
28
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
29
|
+
if (enabled) {
|
|
30
|
+
return /*#__PURE__*/jsx(BaseStyles$1, {
|
|
31
|
+
...props,
|
|
32
|
+
children: children
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
return /*#__PURE__*/jsx(BaseStyles$2, {
|
|
36
|
+
...props,
|
|
37
|
+
children: children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const useTheme = () => {
|
|
42
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
43
|
+
const styledReactResults = useTheme$1();
|
|
44
|
+
const primerReactResults = useTheme$2();
|
|
45
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
46
|
+
};
|
|
47
|
+
const useColorSchemeVar = (values, fallback) => {
|
|
48
|
+
const enabled = useFeatureFlag('primer_react_use_styled_react_theming');
|
|
49
|
+
const styledReactResults = useColorSchemeVar$1(values, fallback);
|
|
50
|
+
const primerReactResults = useColorSchemeVar$2(values, fallback);
|
|
51
|
+
return enabled ? styledReactResults : primerReactResults;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme };
|
package/dist/components/Flash.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps } from '@primer/react';
|
|
1
|
+
import { FormControl as PrimerFormControl, type FormControlProps as PrimerFormControlProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type PropsWithChildren } from 'react';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type FormControlProps = PropsWithChildren<PrimerFormControlProps> & SxProp;
|
|
5
4
|
declare const FormControlImpl: React.ComponentType<FormControlProps>;
|
|
6
5
|
declare const FormControl: typeof FormControlImpl & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../src/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,iBAAiB,EAChC,KAAK,gBAAgB,IAAI,sBAAsB,EAC/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAI5C,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,MAAM,CAAA;AAE1E,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAI1D,CAAA;AAED,QAAA,MAAM,WAAW,EAMX,OAAO,eAAe,GAAG;IAC7B,OAAO,EAAE,OAAO,iBAAiB,CAAC,OAAO,CAAA;IACzC,aAAa,EAAE,OAAO,iBAAiB,CAAC,aAAa,CAAA;IACrD,UAAU,EAAE,OAAO,iBAAiB,CAAC,UAAU,CAAA;IAC/C,KAAK,EAAE,OAAO,iBAAiB,CAAC,KAAK,CAAA;CACtC,CAAA;AAED,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormControl as FormControl$1 } from '@primer/react';
|
|
1
|
+
import { FormControl as FormControl$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const FormControlImpl = styled(FormControl$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker } from '@primer/react';
|
|
1
|
+
import { type IconButtonProps as PrimerIconButtonProps, type SlotMarker, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type IconButtonProps = PrimerIconButtonProps & SxProp & {
|
|
5
4
|
as?: React.ElementType;
|
|
6
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../src/components/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,UAAU,EACf,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAMvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQhF,QAAA,MAAM,UAAU,EAUV,mBAAmB,CAAC,GAAG,GAAG,QAAQ,EAAE,eAAe,CAAC,GAAG,UAAU,CAAA;AAIvE,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IconButton as IconButton$1 } from '@primer/react';
|
|
1
|
+
import { IconButton as IconButton$1, sx } from '@primer/react';
|
|
2
2
|
import { generateCustomSxProp } from './Button.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const StyledIconButton = styled(IconButton$1).withConfig({
|
package/dist/components/Label.js
CHANGED
package/dist/components/Link.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
|
|
1
|
+
import { type LinkButtonProps as PrimerLinkButtonProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type LinkButtonProps = PrimerLinkButtonProps & SxProp;
|
|
5
4
|
declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
|
|
6
5
|
export { LinkButton };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAE7C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LinkButton as LinkButton$1 } from '@primer/react';
|
|
1
|
+
import { LinkButton as LinkButton$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const LinkButton = styled(LinkButton$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NavList as NavList$1 } from '@primer/react';
|
|
1
|
+
import { NavList as NavList$1, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import sx from '../sx.js';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
const StyledNavListImpl = styled(NavList$1).withConfig({
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
|
|
1
|
+
import { type OverlayProps as PrimerOverlayProps, type SxProp } from '@primer/react';
|
|
2
2
|
import { type ForwardRefComponent } from '../polymorphic';
|
|
3
|
-
import { type SxProp } from '../sx';
|
|
4
3
|
type OverlayProps = PrimerOverlayProps & SxProp;
|
|
5
4
|
declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
|
|
6
5
|
export { Overlay };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAM,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Overlay as Overlay$1 } from '@primer/react';
|
|
1
|
+
import { Overlay as Overlay$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
|
|
5
4
|
const Overlay = styled(Overlay$1).withConfig({
|
|
6
5
|
shouldForwardProp: prop => prop !== 'sx'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1 } from '@primer/react';
|
|
1
|
+
import { PageHeader as PageHeader$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
import Box from './Box.js';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { PageLayout as PageLayout$1 } from '@primer/react';
|
|
4
|
-
import sx from '../sx.js';
|
|
3
|
+
import { sx, PageLayout as PageLayout$1 } from '@primer/react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
7
6
|
const Wrapper = styled.div.withConfig({
|
|
@@ -3,7 +3,7 @@ import type { SxProp } from '../sx';
|
|
|
3
3
|
type StateLabelProps = PrimerStateLabelProps & SxProp;
|
|
4
4
|
declare const StateLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
5
5
|
variant?: "small" | "normal";
|
|
6
|
-
status: "open" | "
|
|
6
|
+
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
7
7
|
} & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
export { StateLabel, type StateLabelProps };
|
|
9
9
|
//# sourceMappingURL=StateLabel.d.ts.map
|
package/dist/components/Text.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TextInput as TextInput$1 } from '@primer/react';
|
|
1
|
+
import { TextInput as TextInput$1, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
import styled from 'styled-components';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Textarea as Textarea$1 } from '@primer/react';
|
|
1
|
+
import { Textarea as Textarea$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '../sx.js';
|
|
4
3
|
import { forwardRef } from 'react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
package/dist/components/Token.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type TooltipProps as PrimerTooltipProps, type SlotMarker } from '@primer/react';
|
|
1
|
+
import { type TooltipProps as PrimerTooltipProps, type SxProp, type SlotMarker } from '@primer/react';
|
|
2
2
|
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
3
|
type TooltipProps = PrimerTooltipProps & SxProp;
|
|
5
4
|
declare const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<HTMLDivElement>> & SlotMarker;
|
|
6
5
|
export { Tooltip, type TooltipProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,kBAAkB,EACvC,KAAK,MAAM,EACX,KAAK,UAAU,EAChB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAa,KAAK,yBAAyB,EAAE,KAAK,aAAa,EAAC,MAAM,OAAO,CAAA;AAEpF,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,yBAAyB,CAAC,YAAY,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,GAAG,UAKvF,CAAA;AAIF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1, sx } from '@primer/react';
|
|
2
2
|
import Box from './Box.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import sx from '../sx.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const StyledUnderlineNav = /*#__PURE__*/forwardRef(function UnderlineNav(props, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnderlinePanels as UnderlinePanels$1 } from '@primer/react/experimental';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import sx from '
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const StyledUnderlinePanels = styled(UnderlinePanels$1).withConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import sx from '
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
4
|
import Box from '../Box.js';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { Box, type BoxProps } from './components/Box';
|
|
2
2
|
export { Details } from '@primer/react';
|
|
3
3
|
export { ProgressBar } from '@primer/react';
|
|
4
|
-
export { ThemeProvider, useTheme, useColorSchemeVar, type ThemeProviderProps } from './components/
|
|
5
|
-
export {
|
|
4
|
+
export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles, type ThemeProviderProps, type BaseStylesProps, } from './components/FeatureFlaggedTheming';
|
|
5
|
+
export { merge } from '@primer/react';
|
|
6
6
|
export { theme } from '@primer/react';
|
|
7
|
-
export {
|
|
7
|
+
export { themeGet } from '@primer/react';
|
|
8
8
|
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListLinkItemProps, type ActionListGroupProps, type ActionListDividerProps, type ActionListLeadingVisualProps, type ActionListTrailingVisualProps, type ActionListTrailingActionProps, } from './components/ActionList';
|
|
9
9
|
export { ActionMenu } from './components/ActionMenu';
|
|
10
10
|
export { Autocomplete, type AutocompleteOverlayProps } from './components/Autocomplete';
|
|
@@ -44,6 +44,6 @@ export { Tooltip, type TooltipProps } from './components/Tooltip';
|
|
|
44
44
|
export { Token, type TokenProps } from './components/Token';
|
|
45
45
|
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
46
46
|
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
47
|
+
export { sx, type SxProp } from './sx';
|
|
48
|
+
export type { BetterSystemStyleObject } from './styled-props';
|
|
49
49
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AAGzC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { default as Box } from './components/Box.js';
|
|
3
|
-
export { Details, ProgressBar, theme } from '@primer/react';
|
|
4
|
-
export { ThemeProvider, useColorSchemeVar, useTheme } from './components/
|
|
5
|
-
export { BaseStyles } from './components/BaseStyles.js';
|
|
6
|
-
export { get as themeGet } from './theme-get.js';
|
|
3
|
+
export { Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
4
|
+
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
7
5
|
export { ActionList } from './components/ActionList.js';
|
|
8
6
|
export { ActionMenu } from './components/ActionMenu.js';
|
|
9
7
|
export { Autocomplete } from './components/Autocomplete.js';
|
|
@@ -43,5 +41,3 @@ export { Tooltip } from './components/Tooltip.js';
|
|
|
43
41
|
export { Token } from './components/Token.js';
|
|
44
42
|
export { Truncate } from './components/Truncate.js';
|
|
45
43
|
export { UnderlineNav } from './components/UnderlineNav.js';
|
|
46
|
-
export { default as sx } from './sx.js';
|
|
47
|
-
export { default as merge } from 'deepmerge';
|
package/dist/styled-props.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
2
2
|
import type { SxProp } from './sx';
|
|
3
3
|
export type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
4
|
+
export type { BetterSystemStyleObject } from '@primer/react';
|
|
4
5
|
//# 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","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;AAEb,YAAY,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAA"}
|
package/dist/sx.d.ts
CHANGED
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
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
|
-
};
|
|
1
|
+
export { sx, type SxProp } from '@primer/react';
|
|
8
2
|
export type CSSCustomProperties = {
|
|
9
3
|
[key: `--${string}`]: string | number;
|
|
10
4
|
};
|
|
11
|
-
type CSSSelectorObject = {
|
|
12
|
-
[cssSelector: string]: SystemStyleObject | CSSCustomProperties;
|
|
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;
|
|
22
|
-
}
|
|
23
|
-
declare const sx: (props: SxProp) => import("@styled-system/css").CssFunctionReturnType;
|
|
24
|
-
export default sx;
|
|
25
|
-
export { merge, sx };
|
|
26
5
|
//# 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,
|
|
1
|
+
{"version":3,"file":"sx.d.ts","sourceRoot":"","sources":["../src/sx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAC7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;CACtC,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-20251022234008",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/preset-react": "^7.27.1",
|
|
32
32
|
"@babel/preset-typescript": "^7.27.1",
|
|
33
|
-
"@primer/react": "0.0.0-
|
|
33
|
+
"@primer/react": "0.0.0-20251022234008",
|
|
34
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
35
35
|
"@types/react": "18.3.11",
|
|
36
36
|
"@types/react-dom": "18.3.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.9.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@primer/react": "0.0.0-
|
|
49
|
+
"@primer/react": "0.0.0-20251022234008",
|
|
50
50
|
"@types/react": "18.x || 19.x",
|
|
51
51
|
"@types/react-dom": "18.x || 19.x",
|
|
52
52
|
"@types/react-is": "18.x || 19.x",
|
package/dist/sx.js
DELETED
package/dist/theme-get.d.ts
DELETED
package/dist/theme-get.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/theme-get.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|
|
10
|
-
export { get };
|