@primer/styled-react 0.0.0-20251003001401 → 0.0.0-20251003001924
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps } from '@primer/react';
|
|
2
|
+
import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps } from '@primer/react';
|
|
3
3
|
import { type SxProp } from '../sx';
|
|
4
4
|
type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
|
|
5
5
|
declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
|
|
@@ -9,9 +9,9 @@ declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps
|
|
|
9
9
|
children?: React.ReactNode | undefined;
|
|
10
10
|
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Header: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutHeaderProps>>;
|
|
12
|
-
Pane: React.ForwardRefExoticComponent<
|
|
12
|
+
Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
|
|
13
13
|
children?: React.ReactNode | undefined;
|
|
14
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
Footer: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutFooterProps>>;
|
|
16
16
|
};
|
|
17
17
|
export { PageLayout, type PageLayoutProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,mBAAmB,IAAI,yBAAyB,EACjD,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAmBxE,QAAA,MAAM,UAAU;;;;;;;;;;;CAKd,CAAA;AAEF,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -314,10 +314,17 @@ const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
314
314
|
...props
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
|
+
const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
318
|
+
return /*#__PURE__*/jsx(Wrapper, {
|
|
319
|
+
as: PageLayout$1.Pane,
|
|
320
|
+
ref: ref,
|
|
321
|
+
...props
|
|
322
|
+
});
|
|
323
|
+
});
|
|
317
324
|
const PageLayout = Object.assign(PageLayoutImpl, {
|
|
318
325
|
Content: PageLayoutContent,
|
|
319
326
|
Header: PageLayout$1.Header,
|
|
320
|
-
Pane:
|
|
327
|
+
Pane: PageLayoutPane,
|
|
321
328
|
Footer: PageLayout$1.Footer
|
|
322
329
|
});
|
|
323
330
|
|
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-20251003001924",
|
|
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-20251003001924",
|
|
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-20251003001924",
|
|
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",
|