@primer/styled-react 0.0.0-20251017125040 → 0.0.0-20251017140944
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 +1 -2
- package/dist/components/Box.d.ts +1 -18
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Checkbox.js +1 -2
- package/dist/components/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.js +1 -2
- package/dist/components/CounterLabel.js +1 -2
- package/dist/components/Dialog.js +1 -2
- package/dist/components/Header.js +1 -2
- package/dist/components/NavList.d.ts +18 -15
- package/dist/components/NavList.d.ts.map +1 -1
- package/dist/components/NavList.js +34 -51
- package/dist/components/PageHeader.js +1 -2
- package/dist/components/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup.js +1 -2
- package/dist/components/RelativeTime.d.ts.map +1 -1
- package/dist/components/RelativeTime.js +1 -2
- package/dist/components/SegmentedControl.js +1 -2
- package/dist/components/StateLabel.js +1 -2
- package/dist/components/SubNav.js +1 -2
- package/dist/components/Timeline.js +1 -2
- package/dist/components/ToggleSwitch.js +1 -2
- package/dist/components/Tooltip.js +1 -2
- package/dist/components/UnderlineNav.js +1 -2
- package/dist/components/deprecated/ActionList.js +1 -2
- package/dist/components/deprecated/DialogV1.js +1 -1
- package/dist/index.js +1 -2
- package/package.json +3 -3
- package/dist/components/Box.js +0 -15
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Avatar as Avatar$1 } from '@primer/react';
|
|
1
|
+
import { Box, Avatar as Avatar$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const Avatar = /*#__PURE__*/forwardRef(function Avatar(props, ref) {
|
package/dist/components/Box.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
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 };
|
|
1
|
+
export { Box, type BoxProps } from '@primer/react';
|
|
19
2
|
//# 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":"AAAA,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,eAAe,CAAA"}
|
|
@@ -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,EAGL,KAAK,kBAAkB,IAAI,wBAAwB,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,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,6 +1,5 @@
|
|
|
1
|
-
import { CheckboxGroup as CheckboxGroup$1 } from '@primer/react';
|
|
1
|
+
import { CheckboxGroup as CheckboxGroup$1, Box } from '@primer/react';
|
|
2
2
|
import 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const CheckboxGroupImpl = props => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Header as Header$1 } from '@primer/react';
|
|
1
|
+
import { Box, Header as Header$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const StyledHeader = /*#__PURE__*/forwardRef(function Header(props, ref) {
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { NavList as PrimerNavList } from '@primer/react';
|
|
2
|
-
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
2
|
+
import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListGroupHeadingProps as PrimerNavListGroupHeadingProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
|
|
3
3
|
import { type PropsWithChildren } from 'react';
|
|
4
4
|
import { type SxProp } from '../sx';
|
|
5
|
-
|
|
6
|
-
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
5
|
+
type RefComponent<E extends HTMLElement, P> = React.ForwardRefExoticComponent<P & React.RefAttributes<E>>;
|
|
6
|
+
type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
|
|
7
|
+
declare const NavListItem: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
|
|
8
|
+
children?: import("react").ReactNode | undefined;
|
|
9
|
+
} & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare const NavListGroup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLLIElement> & {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
} & {
|
|
14
|
+
children?: import("react").ReactNode | undefined;
|
|
15
|
+
} & SxProp & import("react").RefAttributes<HTMLLIElement>>;
|
|
16
|
+
type NavListGroupHeadingProps = PropsWithChildren<PrimerNavListGroupHeadingProps> & SxProp;
|
|
17
|
+
declare const NavListGroupHeading: RefComponent<HTMLElement, NavListGroupHeadingProps>;
|
|
18
|
+
type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp;
|
|
19
|
+
declare const NavListLeadingVisual: RefComponent<HTMLSpanElement, NavListLeadingVisualProps>;
|
|
17
20
|
type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
|
|
18
21
|
Item: typeof NavListItem;
|
|
19
|
-
Group: typeof
|
|
20
|
-
GroupHeading: typeof
|
|
22
|
+
Group: typeof NavListGroup;
|
|
23
|
+
GroupHeading: typeof NavListGroupHeading;
|
|
21
24
|
LeadingVisual: typeof NavListLeadingVisual;
|
|
22
25
|
SubNav: typeof PrimerNavList.SubNav;
|
|
23
26
|
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,EAAM,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAE1C,wBAAwB,IAAI,8BAA8B,EAC1D,yBAAyB,IAAI,+BAA+B,EAC7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AAEzG,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAQlE,QAAA,MAAM,WAAW;;8DAGf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;0DAGhB,CAAA;AAEF,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAGnB,YAAY,CAAC,WAAW,EAAE,wBAAwB,CAAC,CAAA;AAEzD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GAAG,MAAM,CAAA;AAE5F,QAAA,MAAM,oBAAoB,EAKrB,YAAY,CAAC,eAAe,EAAE,yBAAyB,CAAC,CAAA;AAE7D,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,YAAY,CAAA;IAC1B,YAAY,EAAE,OAAO,mBAAmB,CAAA;IACxC,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,67 +1,50 @@
|
|
|
1
|
-
import { NavList as NavList$1,
|
|
1
|
+
import { NavList as NavList$1, Box } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
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, {
|
|
5
|
+
const NavListImpl = /*#__PURE__*/forwardRef(function NavList(props, ref) {
|
|
6
|
+
return /*#__PURE__*/jsx(Box, {
|
|
7
|
+
as: NavList$1,
|
|
17
8
|
ref: ref,
|
|
18
|
-
...(as ? {
|
|
19
|
-
forwardedAs: as
|
|
20
|
-
} : {}),
|
|
21
9
|
...props
|
|
22
10
|
});
|
|
23
11
|
});
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return /*#__PURE__*/jsx(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} : {}),
|
|
39
|
-
ref: ref
|
|
12
|
+
const NavListItem = /*#__PURE__*/forwardRef(function NavListItem(props, ref) {
|
|
13
|
+
// @ts-expect-error - PrimerNavList.Item is not recognized as a valid component type
|
|
14
|
+
return /*#__PURE__*/jsx(Box, {
|
|
15
|
+
as: NavList$1.Item,
|
|
16
|
+
ref: ref,
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
const NavListGroup = /*#__PURE__*/forwardRef(function NavListGroup(props, ref) {
|
|
21
|
+
// @ts-expect-error - PrimerNavList.Group is not recognized as a valid component type
|
|
22
|
+
return /*#__PURE__*/jsx(Box, {
|
|
23
|
+
as: NavList$1.Group,
|
|
24
|
+
ref: ref,
|
|
25
|
+
...props
|
|
40
26
|
});
|
|
41
27
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return /*#__PURE__*/jsx(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} : {}),
|
|
57
|
-
ref: ref
|
|
28
|
+
const NavListGroupHeading = /*#__PURE__*/forwardRef(function NavListGroupHeading(props, ref) {
|
|
29
|
+
// @ts-expect-error - PrimerNavList.GroupHeading is not recognized as a valid component type
|
|
30
|
+
return /*#__PURE__*/jsx(Box, {
|
|
31
|
+
as: NavList$1.GroupHeading,
|
|
32
|
+
ref: ref,
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
const NavListLeadingVisual = /*#__PURE__*/forwardRef(function NavListLeadingVisual(props, ref) {
|
|
37
|
+
// @ts-expect-error - PrimerNavList.LeadingVisual is not recognized as a valid component type
|
|
38
|
+
return /*#__PURE__*/jsx(Box, {
|
|
39
|
+
as: NavList$1.LeadingVisual,
|
|
40
|
+
ref: ref,
|
|
41
|
+
...props
|
|
58
42
|
});
|
|
59
43
|
});
|
|
60
|
-
NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
|
|
61
44
|
const NavList = Object.assign(NavListImpl, {
|
|
62
45
|
Item: NavListItem,
|
|
63
|
-
Group:
|
|
64
|
-
GroupHeading:
|
|
46
|
+
Group: NavListGroup,
|
|
47
|
+
GroupHeading: NavListGroupHeading,
|
|
65
48
|
LeadingVisual: NavListLeadingVisual,
|
|
66
49
|
SubNav: NavList$1.SubNav,
|
|
67
50
|
Divider: NavList$1.Divider,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { PageHeader as PageHeader$1, sx } from '@primer/react';
|
|
1
|
+
import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
6
5
|
|
|
@@ -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,EAAsC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAChH,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,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,EAA0C,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACxH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { StateLabel as StateLabel$1 } from '@primer/react';
|
|
1
|
+
import { Box, StateLabel as StateLabel$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const StateLabel = /*#__PURE__*/forwardRef(function StateLabel(props, ref) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SubNav as SubNav$1 } from '@primer/react';
|
|
1
|
+
import { SubNav as SubNav$1, Box } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const SubNavImpl = /*#__PURE__*/forwardRef(function SubNav(props, ref) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
1
|
+
import { Box, ToggleSwitch as ToggleSwitch$1 } from '@primer/react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import Box from './Box.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const ToggleSwitch = /*#__PURE__*/forwardRef(function ToggleSwitch(props, ref) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { UnderlineNav as UnderlineNav$1, sx } from '@primer/react';
|
|
2
|
-
import Box from './Box.js';
|
|
1
|
+
import { UnderlineNav as UnderlineNav$1, sx, Box } from '@primer/react';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
4
3
|
import styled from 'styled-components';
|
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import { ActionList as ActionList$1 } from '@primer/react/deprecated';
|
|
3
|
-
import { sx } from '@primer/react';
|
|
4
|
-
import Box from '../Box.js';
|
|
3
|
+
import { sx, Box } from '@primer/react';
|
|
5
4
|
import styled from 'styled-components';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export {
|
|
3
|
-
export { Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
2
|
+
export { Box, Details, ProgressBar, merge, sx, theme, themeGet } from '@primer/react';
|
|
4
3
|
export { BaseStyles, ThemeProvider, useColorSchemeVar, useTheme } from './components/FeatureFlaggedTheming.js';
|
|
5
4
|
export { ActionList } from './components/ActionList.js';
|
|
6
5
|
export { ActionMenu } from './components/ActionMenu.js';
|
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-20251017140944",
|
|
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-20251017140944",
|
|
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-20251017140944",
|
|
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/components/Box.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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 };
|