@primer/styled-react 0.0.0-20251006184347 → 0.0.0-20251006184817
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/PageLayout.d.ts +18 -0
- package/dist/components/PageLayout.d.ts.map +1 -0
- package/dist/components.json +1 -1
- package/dist/deprecated.d.ts +1 -1
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +3 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -3
- package/package.json +3 -3
- package/dist/components/Octicon.d.ts +0 -17
- package/dist/components/Octicon.d.ts.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps } from '@primer/react';
|
|
3
|
+
import { type SxProp } from '../sx';
|
|
4
|
+
type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
|
|
5
|
+
declare const PageLayout: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
|
|
6
|
+
children?: React.ReactNode | undefined;
|
|
7
|
+
} & SxProp & React.RefAttributes<HTMLDivElement>> & {
|
|
8
|
+
Content: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
|
|
9
|
+
children?: React.ReactNode | undefined;
|
|
10
|
+
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Header: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutHeaderProps>>;
|
|
12
|
+
Pane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
|
|
13
|
+
children?: React.ReactNode | undefined;
|
|
14
|
+
} & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Footer: React.FC<React.PropsWithChildren<import("@primer/react").PageLayoutFooterProps>>;
|
|
16
|
+
};
|
|
17
|
+
export { PageLayout, type PageLayoutProps };
|
|
18
|
+
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -0,0 +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,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/components.json
CHANGED
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"LinkButtonProps",
|
|
68
68
|
"LinkProps",
|
|
69
69
|
"NavListProps",
|
|
70
|
-
"OcticonProps",
|
|
71
70
|
"PageHeaderActionsProps",
|
|
72
71
|
"PageHeaderProps",
|
|
73
72
|
"PageHeaderTitleProps",
|
|
73
|
+
"PageLayoutProps",
|
|
74
74
|
"RadioGroupProps",
|
|
75
75
|
"RelativeTimeProps",
|
|
76
76
|
"SegmentedControlButtonProps",
|
package/dist/deprecated.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TabNav, type TabNavProps, type TabNavLinkProps } from './components/TabNav';
|
|
2
2
|
export { Dialog, type DialogProps, type DialogHeaderProps } from './components/DialogV1';
|
|
3
|
-
export { Octicon
|
|
3
|
+
export { Octicon } from '@primer/react/deprecated';
|
|
4
4
|
export { DeprecatedTooltip as Tooltip, type DeprecatedTooltipProps as TooltipProps } from './components/Tooltip';
|
|
5
5
|
//# sourceMappingURL=deprecated.d.ts.map
|
package/dist/deprecated.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AACtF,OAAO,EAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,qBAAqB,CAAA;AAClF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AACtF,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,iBAAiB,IAAI,OAAO,EAAE,KAAK,sBAAsB,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAA"}
|
package/dist/deprecated.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { TabNav as TabNav$1, Dialog as Dialog$1
|
|
1
|
+
import { TabNav as TabNav$1, Dialog as Dialog$1 } from '@primer/react/deprecated';
|
|
2
|
+
export { Octicon } from '@primer/react/deprecated';
|
|
2
3
|
import { sx, Box } from '@primer/react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { forwardRef } from 'react';
|
|
@@ -80,36 +81,4 @@ const Dialog = Object.assign(DialogImpl, {
|
|
|
80
81
|
Header: DialogHeader
|
|
81
82
|
});
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
85
|
-
*/
|
|
86
|
-
const StyledOcticon = styled(Octicon$1).withConfig({
|
|
87
|
-
shouldForwardProp(prop) {
|
|
88
|
-
return prop !== 'sx';
|
|
89
|
-
}
|
|
90
|
-
}).withConfig({
|
|
91
|
-
displayName: "Octicon__StyledOcticon",
|
|
92
|
-
componentId: "sc-17xnf60-0"
|
|
93
|
-
})(["", ""], ({
|
|
94
|
-
color,
|
|
95
|
-
sx: sxProp
|
|
96
|
-
}) => sx({
|
|
97
|
-
sx: {
|
|
98
|
-
color,
|
|
99
|
-
...sxProp
|
|
100
|
-
}
|
|
101
|
-
}));
|
|
102
|
-
const Octicon = /*#__PURE__*/forwardRef(({
|
|
103
|
-
as,
|
|
104
|
-
...props
|
|
105
|
-
}, ref) => {
|
|
106
|
-
return /*#__PURE__*/jsx(StyledOcticon, {
|
|
107
|
-
...props,
|
|
108
|
-
...(as ? {
|
|
109
|
-
forwardedAs: as
|
|
110
|
-
} : {}),
|
|
111
|
-
ref: ref
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export { Dialog, Octicon, TabNav };
|
|
84
|
+
export { Dialog, TabNav };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export { Details } from '@primer/react';
|
|
|
5
5
|
export { FormControl } from '@primer/react';
|
|
6
6
|
export { IconButton } from '@primer/react';
|
|
7
7
|
export { ProgressBar } from '@primer/react';
|
|
8
|
-
export { PageLayout } from '@primer/react';
|
|
9
8
|
export { Select } from '@primer/react';
|
|
10
9
|
export { Textarea } from '@primer/react';
|
|
11
10
|
export { TextInput } from '@primer/react';
|
|
@@ -33,6 +32,7 @@ export { Link, type LinkProps } from './components/Link';
|
|
|
33
32
|
export { LinkButton, type LinkButtonProps } from './components/LinkButton';
|
|
34
33
|
export { NavList, type NavListProps } from './components/NavList';
|
|
35
34
|
export { Overlay } from './components/Overlay';
|
|
35
|
+
export { PageLayout, type PageLayoutProps } from './components/PageLayout';
|
|
36
36
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
37
37
|
export { RadioGroup, type RadioGroupProps } from './components/RadioGroup';
|
|
38
38
|
export { RelativeTime, type RelativeTimeProps } from './components/RelativeTime';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,GAAG,EAAE,KAAK,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAA;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAA;AACtC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AACvC,OAAO,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,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAC,QAAQ,EAAE,KAAK,aAAa,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;AAE1G,OAAO,EAAC,EAAE,EAAE,KAAK,MAAM,EAAC,MAAM,MAAM,CAAA;AAEpC,YAAY,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ActionMenu as ActionMenu$1, sx, Autocomplete as Autocomplete$1, Box, Avatar as Avatar$1, Breadcrumbs as Breadcrumbs$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CircleBadge as CircleBadge$1, CounterLabel as CounterLabel$1, Flash as Flash$1, Header as Header$1, Heading as Heading$1, Label as Label$1, Link as Link$1, LinkButton as LinkButton$1, NavList as NavList$1, Overlay as Overlay$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Text as Text$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1, useTheme, theme, Token as Token$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
-
export { ActionList, Box, Button, Details, FormControl, IconButton,
|
|
1
|
+
import { ActionMenu as ActionMenu$1, sx, Autocomplete as Autocomplete$1, Box, Avatar as Avatar$1, Breadcrumbs as Breadcrumbs$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CircleBadge as CircleBadge$1, CounterLabel as CounterLabel$1, Flash as Flash$1, Header as Header$1, Heading as Heading$1, Label as Label$1, Link as Link$1, LinkButton as LinkButton$1, NavList as NavList$1, Overlay as Overlay$1, PageLayout as PageLayout$1, RadioGroup as RadioGroup$1, RelativeTime as RelativeTime$1, SegmentedControl as SegmentedControl$1, Spinner as Spinner$1, StateLabel as StateLabel$1, SubNav as SubNav$1, Text as Text$1, Timeline as Timeline$1, ToggleSwitch as ToggleSwitch$1, useTheme, theme, Token as Token$1, Truncate as Truncate$1, UnderlineNav as UnderlineNav$1 } from '@primer/react';
|
|
2
|
+
export { ActionList, Box, Button, Details, FormControl, IconButton, ProgressBar, Select, TextInput, Textarea, ThemeProvider, merge, sx, theme, themeGet, useColorSchemeVar, useTheme } from '@primer/react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -281,6 +281,39 @@ const Overlay = styled(Overlay$1).withConfig({
|
|
|
281
281
|
componentId: "sc-tjbd74-0"
|
|
282
282
|
})(["", ""], sx);
|
|
283
283
|
|
|
284
|
+
const Wrapper = styled.div.withConfig({
|
|
285
|
+
displayName: "PageLayout__Wrapper",
|
|
286
|
+
componentId: "sc-pjybtc-0"
|
|
287
|
+
})(["", ""], sx);
|
|
288
|
+
const PageLayoutImpl = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
289
|
+
// @ts-expect-error - PrimerPageLayout is not recognized as a valid component type
|
|
290
|
+
return /*#__PURE__*/jsx(Wrapper, {
|
|
291
|
+
as: PageLayout$1,
|
|
292
|
+
ref: ref,
|
|
293
|
+
...props
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
297
|
+
return /*#__PURE__*/jsx(Wrapper, {
|
|
298
|
+
as: PageLayout$1.Content,
|
|
299
|
+
ref: ref,
|
|
300
|
+
...props
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
304
|
+
return /*#__PURE__*/jsx(Wrapper, {
|
|
305
|
+
as: PageLayout$1.Pane,
|
|
306
|
+
ref: ref,
|
|
307
|
+
...props
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
const PageLayout = Object.assign(PageLayoutImpl, {
|
|
311
|
+
Content: PageLayoutContent,
|
|
312
|
+
Header: PageLayout$1.Header,
|
|
313
|
+
Pane: PageLayoutPane,
|
|
314
|
+
Footer: PageLayout$1.Footer
|
|
315
|
+
});
|
|
316
|
+
|
|
284
317
|
const RadioGroupImpl = props => {
|
|
285
318
|
return /*#__PURE__*/jsx(Box, {
|
|
286
319
|
as: RadioGroup$1,
|
|
@@ -521,4 +554,4 @@ const UnderlineNav = Object.assign(UnderlineNavImpl, {
|
|
|
521
554
|
Item: UnderlineNavItem
|
|
522
555
|
});
|
|
523
556
|
|
|
524
|
-
export { ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
|
557
|
+
export { ActionMenu, Autocomplete, Avatar, Breadcrumb, Breadcrumbs, Checkbox, CheckboxGroup, CircleBadge, CounterLabel, Flash, Header, Heading, Label, Link, LinkButton, NavList, Overlay, PageLayout, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Text, Timeline, ToggleSwitch, Token, Truncate, UnderlineNav };
|
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-20251006184817",
|
|
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-20251006184817",
|
|
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-20251006184817",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type OcticonProps as PrimerOcticonProps } from '@primer/react/deprecated';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use the icon component directly from `@primer/octicons-react` instead
|
|
5
|
-
*/
|
|
6
|
-
export type OcticonProps = PrimerOcticonProps & SxProp & {
|
|
7
|
-
color?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const Octicon: import("react").ForwardRefExoticComponent<{
|
|
10
|
-
icon: React.ElementType;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
} & import("@primer/octicons-react").IconProps & SxProp & {
|
|
13
|
-
color?: string;
|
|
14
|
-
} & import("react").RefAttributes<unknown>>;
|
|
15
|
-
export default Octicon;
|
|
16
|
-
export { Octicon };
|
|
17
|
-
//# sourceMappingURL=Octicon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Octicon.d.ts","sourceRoot":"","sources":["../../src/components/Octicon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,0BAA0B,CAAA;AAE1G,OAAO,EAAC,KAAK,MAAM,EAAK,MAAM,OAAO,CAAA;AAGrC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,MAAM,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAazE,QAAA,MAAM,OAAO;;;;YAbqD,MAAM;2CAetE,CAAA;AAEF,eAAe,OAAO,CAAA;AACtB,OAAO,EAAC,OAAO,EAAC,CAAA"}
|