@primer/styled-react 1.0.0-rc.8 → 1.0.0-rc.9
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/Avatar.js +2 -1
- package/dist/components/Box.d.ts +18 -1
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Box.js +15 -0
- package/dist/components/Checkbox.js +2 -1
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +2 -1
- package/dist/components/CounterLabel.js +2 -1
- package/dist/components/Dialog.js +2 -1
- package/dist/components/FeatureFlaggedTheming.d.ts +4 -1
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
- package/dist/components/Header.js +2 -1
- package/dist/components/NavList.d.ts +15 -18
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +51 -34
- package/dist/components/PageHeader.js +2 -1
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +2 -1
- package/dist/components/RelativeTime.d.ts.map +1 -1
- package/dist/components/RelativeTime.js +2 -1
- package/dist/components/SegmentedControl.js +2 -1
- package/dist/components/StateLabel.js +2 -1
- package/dist/components/SubNav.js +2 -1
- package/dist/components/Timeline.js +2 -1
- package/dist/components/ToggleSwitch.js +2 -1
- package/dist/components/Tooltip.js +2 -1
- package/dist/components/UnderlineNav.js +2 -1
- package/dist/components/deprecated/ActionList.js +2 -1
- package/dist/components/deprecated/DialogV1.js +1 -1
- package/dist/components.json +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Avatar as Avatar$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
package/dist/components/Box.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
2
|
+
import type { SxProp } from '../sx';
|
|
3
|
+
type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
|
|
4
|
+
type StyledBoxProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
7
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
8
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
9
|
+
*/
|
|
10
|
+
declare const Box: import("styled-components").StyledComponent<"div", any, StyledBoxProps, never>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
13
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
14
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
15
|
+
*/
|
|
16
|
+
export type BoxProps = ComponentProps<typeof Box>;
|
|
17
|
+
export default Box;
|
|
18
|
+
export { Box };
|
|
2
19
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AACA,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;AAEtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,cAAc,CAAC,CAAC,IACnB,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA;AAEtH,KAAK,cAAc,GAAG,MAAM,GAC1B,UAAU,GACV,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,GACZ,SAAS,GACT,eAAe,GACf,WAAW,GACX,aAAa,GACb,WAAW,CAAA;AAEb;;;;GAIG;AACH,QAAA,MAAM,GAAG,gFAYR,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,CAAA;AACjD,eAAe,GAAG,CAAA;AAClB,OAAO,EAAC,GAAG,EAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The Box component is deprecated. Replace with a `div` or
|
|
7
|
+
* appropriate HTML element instead, with CSS modules for styling.
|
|
8
|
+
* @see https://github.com/primer/react/blob/main/contributor-docs/migration-from-box.md
|
|
9
|
+
*/
|
|
10
|
+
const Box = styled.div.withConfig({
|
|
11
|
+
displayName: "Box",
|
|
12
|
+
componentId: "sc-62in7e-0"
|
|
13
|
+
})(space, color, typography, layout, flexbox, grid, background, border, position, shadow, sx);
|
|
14
|
+
|
|
15
|
+
export { Box, Box as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuC,KAAK,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,eAAe,CAAA;AACvH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,MAAM,CAAA;AAOrF,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,aAAa;YAlCQ,kBAAkB;;;;gBAWV,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CheckboxGroup as CheckboxGroup$1
|
|
1
|
+
import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
|
|
2
2
|
import 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const CheckboxGroupImpl = props => {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useTheme as primerReactUseTheme, useColorSchemeVar as primerReactUseColorSchemeVar } from '@primer/react';
|
|
2
|
+
import { type ThemeProviderProps } from './ThemeProvider';
|
|
3
|
+
import { type BaseStylesProps } from './BaseStyles';
|
|
2
4
|
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
3
5
|
export declare const BaseStyles: React.FC<React.PropsWithChildren<BaseStylesProps>>;
|
|
4
6
|
export declare const useTheme: typeof primerReactUseTheme;
|
|
5
7
|
export declare const useColorSchemeVar: typeof primerReactUseColorSchemeVar;
|
|
8
|
+
export type { ThemeProviderProps, BaseStylesProps };
|
|
6
9
|
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Header as Header$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps,
|
|
2
|
+
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
3
|
import { type PropsWithChildren } from 'react';
|
|
4
4
|
import { type SxProp } from '../sx';
|
|
5
|
-
type
|
|
6
|
-
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
|
|
18
|
-
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
|
|
19
|
-
declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
|
|
5
|
+
import type { ForwardRefComponent } from '../polymorphic';
|
|
6
|
+
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
};
|
|
9
|
+
type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
|
|
10
|
+
as?: React.ElementType;
|
|
11
|
+
};
|
|
12
|
+
declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
|
|
13
|
+
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
};
|
|
16
|
+
declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
|
|
20
17
|
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
21
18
|
Item: typeof NavListItem;
|
|
22
|
-
Group: typeof
|
|
23
|
-
GroupHeading: typeof
|
|
19
|
+
Group: typeof PrimerNavList.Group;
|
|
20
|
+
GroupHeading: typeof PrimerNavList.GroupHeading;
|
|
24
21
|
LeadingVisual: typeof NavListLeadingVisual;
|
|
25
22
|
SubNav: typeof PrimerNavList.SubNav;
|
|
26
23
|
Divider: typeof PrimerNavList.Divider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"NavList.d.ts","sourceRoot":"","sources":["../../src/components/NavList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,yBAAyB,IAAI,+BAA+B,EAE7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAY7F,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAC/D,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,WAAW,EAEX,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAA;AAEhD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GACjF,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,oBAAoB,EAEpB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAE3D;AAED,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG;IACxG,IAAI,EAAE,OAAO,WAAW,CAAA;IACxB,KAAK,EAAE,OAAO,aAAa,CAAC,KAAK,CAAA;IACjC,YAAY,EAAE,OAAO,aAAa,CAAC,YAAY,CAAA;IAC/C,aAAa,EAAE,OAAO,oBAAoB,CAAA;IAC1C,MAAM,EAAE,OAAO,aAAa,CAAC,MAAM,CAAA;IACnC,OAAO,EAAE,OAAO,aAAa,CAAC,OAAO,CAAA;IACrC,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,WAAW,EAAE,OAAO,aAAa,CAAC,WAAW,CAAA;CAC9C,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,eAUb,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
|
|
@@ -1,50 +1,67 @@
|
|
|
1
|
-
import { NavList as NavList$1,
|
|
1
|
+
import { NavList as NavList$1, sx } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const StyledNavListImpl = styled(NavList$1).withConfig({
|
|
7
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
8
|
+
}).withConfig({
|
|
9
|
+
displayName: "NavList__StyledNavListImpl",
|
|
10
|
+
componentId: "sc-86jrwg-0"
|
|
11
|
+
})(["", ""], sx);
|
|
12
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
|
|
13
|
+
as,
|
|
14
|
+
...props
|
|
15
|
+
}, ref) {
|
|
16
|
+
return /*#__PURE__*/jsx(StyledNavListImpl, {
|
|
8
17
|
ref: ref,
|
|
18
|
+
...(as ? {
|
|
19
|
+
forwardedAs: as
|
|
20
|
+
} : {}),
|
|
9
21
|
...props
|
|
10
22
|
});
|
|
11
23
|
});
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return /*#__PURE__*/jsx(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const StyledNavListItem = styled(NavList$1.Item).withConfig({
|
|
25
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
26
|
+
}).withConfig({
|
|
27
|
+
displayName: "NavList__StyledNavListItem",
|
|
28
|
+
componentId: "sc-86jrwg-1"
|
|
29
|
+
})(["", ""], sx);
|
|
30
|
+
const NavListItem = /*#__PURE__*/forwardRef(({
|
|
31
|
+
as,
|
|
32
|
+
...props
|
|
33
|
+
}, ref) => {
|
|
34
|
+
return /*#__PURE__*/jsx(StyledNavListItem, {
|
|
35
|
+
...props,
|
|
36
|
+
...(as ? {
|
|
37
|
+
forwardedAs: as
|
|
38
|
+
} : {}),
|
|
39
|
+
ref: ref
|
|
26
40
|
});
|
|
27
41
|
});
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return /*#__PURE__*/jsx(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
|
|
43
|
+
shouldForwardProp: prop => prop !== 'sx'
|
|
44
|
+
}).withConfig({
|
|
45
|
+
displayName: "NavList__StyledNavListLeadingVisual",
|
|
46
|
+
componentId: "sc-86jrwg-2"
|
|
47
|
+
})(["", ""], sx);
|
|
48
|
+
const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
|
|
49
|
+
as,
|
|
50
|
+
...props
|
|
51
|
+
}, ref) => {
|
|
52
|
+
return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
|
|
53
|
+
...props,
|
|
54
|
+
...(as ? {
|
|
55
|
+
forwardedAs: as
|
|
56
|
+
} : {}),
|
|
57
|
+
ref: ref
|
|
42
58
|
});
|
|
43
59
|
});
|
|
60
|
+
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
44
61
|
const NavList = Object.assign(NavListImpl, {
|
|
45
62
|
Item: NavListItem,
|
|
46
|
-
Group:
|
|
47
|
-
GroupHeading:
|
|
63
|
+
Group: NavList$1.Group,
|
|
64
|
+
GroupHeading: NavList$1.GroupHeading,
|
|
48
65
|
LeadingVisual: NavListLeadingVisual,
|
|
49
66
|
SubNav: NavList$1.SubNav,
|
|
50
67
|
Divider: NavList$1.Divider,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1, sx
|
|
1
|
+
import { PageHeader as PageHeader$1, sx } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/components/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAO/E,KAAK,8BAA8B,GAAG,iBAAiB,CACrD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,gCAAgC,GAAG,iBAAiB,CACvD;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,MAAM,CACX,CAAA;AAKD,KAAK,mCAAmC,GAAG,iBAAiB,CAC1D;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CACX,CAAA;AAKD,eAAO,MAAM,UAAU;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/components/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SubNav as SubNav$1
|
|
1
|
+
import { SubNav as SubNav$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import Box from './Box.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1, sx
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1, sx } from '@primer/react';
|
|
2
|
+
import Box from './Box.js';
|
|
2
3
|
import { forwardRef } from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import { sx
|
|
3
|
+
import { sx } from '@primer/react';
|
|
4
|
+
import Box from '../Box.js';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import { jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
package/dist/components.json
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"ActionListTrailingVisualProps",
|
|
62
62
|
"AutocompleteOverlayProps",
|
|
63
63
|
"AvatarProps",
|
|
64
|
+
"BaseStylesProps",
|
|
64
65
|
"BetterSystemStyleObject",
|
|
65
66
|
"BoxProps",
|
|
66
67
|
"BreadcrumbsItemProps",
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"TextInputActionProps",
|
|
111
112
|
"TextInputProps",
|
|
112
113
|
"TextProps",
|
|
114
|
+
"ThemeProviderProps",
|
|
113
115
|
"TimelineBadgeProps",
|
|
114
116
|
"TimelineBodyProps",
|
|
115
117
|
"TimelineBreakProps",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, BaseStyles } from './components/FeatureFlaggedTheming';
|
|
4
|
+
export { ThemeProvider, useTheme, useColorSchemeVar, BaseStyles, type ThemeProviderProps, type BaseStylesProps, } from './components/FeatureFlaggedTheming';
|
|
5
5
|
export { merge } from '@primer/react';
|
|
6
6
|
export { theme } from '@primer/react';
|
|
7
7
|
export { themeGet } from '@primer/react';
|
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,E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AK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
2
|
+
export { default as Box } from './components/Box.js';
|
|
3
|
+
export { Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
3
4
|
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
4
5
|
export { ActionList } from './components/ActionList.js';
|
|
5
6
|
export { ActionMenu } from './components/ActionMenu.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.9",
|
|
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": "^38.0.0-rc.
|
|
33
|
+
"@primer/react": "^38.0.0-rc.8",
|
|
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": "38.0.0-rc.
|
|
49
|
+
"@primer/react": "38.0.0-rc.8",
|
|
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",
|