@primer/styled-react 0.0.0-20251010103625 → 0.0.0-20251010151846
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/PageHeader.js → PageHeader-BYlYLcfB.js} +9 -30
- package/dist/components/Header.d.ts.map +1 -1
- package/dist/components/PageHeader.d.ts +14 -18
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/components.json +1 -60
- package/dist/deprecated.d.ts +1 -5
- package/dist/deprecated.d.ts.map +1 -1
- package/dist/deprecated.js +1 -5
- package/dist/experimental.d.ts +1 -4
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +5 -5
- package/dist/index.d.ts +81 -48
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +223 -36
- package/package.json +3 -3
- package/dist/components/ActionList.d.ts +0 -36
- package/dist/components/ActionList.d.ts.map +0 -1
- package/dist/components/ActionList.js +0 -104
- package/dist/components/ActionMenu.d.ts +0 -12
- package/dist/components/ActionMenu.d.ts.map +0 -1
- package/dist/components/ActionMenu.js +0 -17
- package/dist/components/Autocomplete.d.ts +0 -15
- package/dist/components/Autocomplete.d.ts.map +0 -1
- package/dist/components/Autocomplete.js +0 -17
- package/dist/components/Avatar.d.ts +0 -13
- package/dist/components/Avatar.d.ts.map +0 -1
- package/dist/components/Avatar.js +0 -13
- package/dist/components/BaseStyles.d.ts +0 -17
- package/dist/components/BaseStyles.d.ts.map +0 -1
- package/dist/components/BaseStyles.js +0 -51
- package/dist/components/Breadcrumbs.d.ts +0 -18
- package/dist/components/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs.js +0 -37
- package/dist/components/Checkbox.d.ts +0 -5
- package/dist/components/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox.js +0 -13
- package/dist/components/CheckboxGroup.d.ts +0 -22
- package/dist/components/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/CheckboxGroup.js +0 -38
- package/dist/components/CircleBadge.d.ts +0 -7
- package/dist/components/CircleBadge.d.ts.map +0 -1
- package/dist/components/CircleBadge.js +0 -11
- package/dist/components/CounterLabel.d.ts +0 -10
- package/dist/components/CounterLabel.d.ts.map +0 -1
- package/dist/components/CounterLabel.js +0 -13
- package/dist/components/DataTable.d.ts +0 -11
- package/dist/components/DataTable.d.ts.map +0 -1
- package/dist/components/DataTable.js +0 -32
- package/dist/components/Dialog.d.ts +0 -19
- package/dist/components/Dialog.d.ts.map +0 -1
- package/dist/components/Dialog.js +0 -42
- package/dist/components/FeatureFlaggedTheming.d.ts +0 -6
- package/dist/components/FeatureFlaggedTheming.d.ts.map +0 -1
- package/dist/components/FeatureFlaggedTheming.js +0 -54
- package/dist/components/Flash.js +0 -11
- package/dist/components/Header.js +0 -51
- package/dist/components/Heading.d.ts +0 -8
- package/dist/components/Heading.d.ts.map +0 -1
- package/dist/components/Heading.js +0 -11
- package/dist/components/Label.d.ts +0 -9
- package/dist/components/Label.d.ts.map +0 -1
- package/dist/components/Label.js +0 -25
- package/dist/components/Link.d.ts +0 -7
- package/dist/components/Link.d.ts.map +0 -1
- package/dist/components/Link.js +0 -25
- package/dist/components/LinkButton.js +0 -11
- package/dist/components/NavList.d.ts +0 -33
- package/dist/components/NavList.d.ts.map +0 -1
- package/dist/components/NavList.js +0 -56
- package/dist/components/Overlay.d.ts +0 -7
- package/dist/components/Overlay.d.ts.map +0 -1
- package/dist/components/Overlay.js +0 -11
- package/dist/components/PageLayout.d.ts +0 -18
- package/dist/components/PageLayout.d.ts.map +0 -1
- package/dist/components/PageLayout.js +0 -39
- package/dist/components/RadioGroup.d.ts +0 -22
- package/dist/components/RadioGroup.d.ts.map +0 -1
- package/dist/components/RadioGroup.js +0 -38
- package/dist/components/RelativeTime.d.ts +0 -6
- package/dist/components/RelativeTime.d.ts.map +0 -1
- package/dist/components/RelativeTime.js +0 -13
- package/dist/components/SegmentedControl.d.ts +0 -12
- package/dist/components/SegmentedControl.d.ts.map +0 -1
- package/dist/components/SegmentedControl.js +0 -27
- package/dist/components/Spinner.d.ts +0 -5
- package/dist/components/Spinner.d.ts.map +0 -1
- package/dist/components/Spinner.js +0 -11
- package/dist/components/StateLabel.d.ts +0 -9
- package/dist/components/StateLabel.d.ts.map +0 -1
- package/dist/components/StateLabel.js +0 -13
- package/dist/components/SubNav.d.ts +0 -9
- package/dist/components/SubNav.d.ts.map +0 -1
- package/dist/components/SubNav.js +0 -23
- package/dist/components/Text.d.ts +0 -15
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Text.js +0 -25
- package/dist/components/ThemeProvider.d.ts +0 -30
- package/dist/components/ThemeProvider.d.ts.map +0 -1
- package/dist/components/ThemeProvider.js +0 -202
- package/dist/components/Timeline.d.ts +0 -26
- package/dist/components/Timeline.d.ts.map +0 -1
- package/dist/components/Timeline.js +0 -46
- package/dist/components/ToggleSwitch.d.ts +0 -6
- package/dist/components/ToggleSwitch.d.ts.map +0 -1
- package/dist/components/ToggleSwitch.js +0 -13
- package/dist/components/Token.d.ts +0 -8
- package/dist/components/Token.d.ts.map +0 -1
- package/dist/components/Token.js +0 -25
- package/dist/components/Tooltip.d.ts +0 -6
- package/dist/components/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip.js +0 -13
- package/dist/components/Truncate.d.ts +0 -7
- package/dist/components/Truncate.d.ts.map +0 -1
- package/dist/components/Truncate.js +0 -11
- package/dist/components/UnderlineNav.d.ts +0 -11
- package/dist/components/UnderlineNav.d.ts.map +0 -1
- package/dist/components/UnderlineNav.js +0 -43
- package/dist/components/UnderlinePanels.d.ts +0 -12
- package/dist/components/UnderlinePanels.d.ts.map +0 -1
- package/dist/components/UnderlinePanels.js +0 -27
- package/dist/components/deprecated/ActionList.d.ts +0 -23
- package/dist/components/deprecated/ActionList.d.ts.map +0 -1
- package/dist/components/deprecated/ActionList.js +0 -48
- package/dist/components/deprecated/DialogV1.d.ts +0 -11
- package/dist/components/deprecated/DialogV1.d.ts.map +0 -1
- package/dist/components/deprecated/DialogV1.js +0 -44
- package/dist/components/deprecated/Octicon.d.ts +0 -17
- package/dist/components/deprecated/Octicon.d.ts.map +0 -1
- package/dist/components/deprecated/Octicon.js +0 -39
- package/dist/components/deprecated/TabNav.d.ts +0 -9
- package/dist/components/deprecated/TabNav.d.ts.map +0 -1
- package/dist/components/deprecated/TabNav.js +0 -44
- package/dist/components/deprecated/Tooltip.d.ts +0 -13
- package/dist/components/deprecated/Tooltip.d.ts.map +0 -1
- package/dist/components/deprecated/Tooltip.js +0 -31
- package/dist/styled-props.d.ts +0 -5
- package/dist/styled-props.d.ts.map +0 -1
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
|
-
const
|
|
5
|
+
const PageHeaderImpl = styled(PageHeader$1).withConfig({
|
|
7
6
|
shouldForwardProp: prop => prop !== 'sx'
|
|
8
7
|
}).withConfig({
|
|
9
|
-
displayName: "
|
|
8
|
+
displayName: "PageHeader__PageHeaderImpl",
|
|
10
9
|
componentId: "sc-1g9symn-0"
|
|
11
10
|
})(["", ""], sx);
|
|
12
|
-
const PageHeaderImpl = /*#__PURE__*/React.forwardRef(({
|
|
13
|
-
as,
|
|
14
|
-
...props
|
|
15
|
-
}, ref) => /*#__PURE__*/jsx(StyledPageHeader, {
|
|
16
|
-
...props,
|
|
17
|
-
...(as ? {
|
|
18
|
-
forwardedAs: as
|
|
19
|
-
} : {}),
|
|
20
|
-
ref: ref
|
|
21
|
-
}));
|
|
22
11
|
function PageHeaderActions({
|
|
23
12
|
sx,
|
|
24
13
|
...rest
|
|
@@ -42,7 +31,7 @@ function PageHeaderActions({
|
|
|
42
31
|
sx: sx
|
|
43
32
|
});
|
|
44
33
|
}
|
|
45
|
-
function
|
|
34
|
+
function PageHeaderTitle({
|
|
46
35
|
sx,
|
|
47
36
|
...rest
|
|
48
37
|
}) {
|
|
@@ -73,15 +62,6 @@ function StyledPageHeaderTitle({
|
|
|
73
62
|
sx: sx
|
|
74
63
|
});
|
|
75
64
|
}
|
|
76
|
-
const PageHeaderTitle = ({
|
|
77
|
-
as,
|
|
78
|
-
...props
|
|
79
|
-
}) => /*#__PURE__*/jsx(StyledPageHeaderTitle, {
|
|
80
|
-
...props,
|
|
81
|
-
...(as ? {
|
|
82
|
-
forwardedAs: as
|
|
83
|
-
} : {})
|
|
84
|
-
});
|
|
85
65
|
const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
|
|
86
66
|
shouldForwardProp: prop => prop !== 'sx'
|
|
87
67
|
}).withConfig({
|
|
@@ -90,18 +70,17 @@ const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
|
|
|
90
70
|
})(["", ""], sx);
|
|
91
71
|
const PageHeader = Object.assign(PageHeaderImpl, {
|
|
92
72
|
Actions: PageHeaderActions,
|
|
93
|
-
|
|
94
|
-
ParentLink: PageHeader$1.ParentLink,
|
|
95
|
-
ContextBar: PageHeader$1.ContextBar,
|
|
73
|
+
Title: PageHeaderTitle,
|
|
96
74
|
TitleArea: PageHeaderTitleArea,
|
|
75
|
+
ContextArea: PageHeader$1.ContextArea,
|
|
97
76
|
ContextAreaActions: PageHeader$1.ContextAreaActions,
|
|
77
|
+
TrailingVisual: PageHeader$1.TrailingVisual,
|
|
78
|
+
Description: PageHeader$1.Description,
|
|
79
|
+
ContextBar: PageHeader$1.ContextBar,
|
|
98
80
|
LeadingAction: PageHeader$1.LeadingAction,
|
|
99
81
|
Breadcrumbs: PageHeader$1.Breadcrumbs,
|
|
100
82
|
LeadingVisual: PageHeader$1.LeadingVisual,
|
|
101
|
-
Title: PageHeaderTitle,
|
|
102
|
-
TrailingVisual: PageHeader$1.TrailingVisual,
|
|
103
|
-
Description: PageHeader$1.Description,
|
|
104
83
|
TrailingAction: PageHeader$1.TrailingAction
|
|
105
84
|
});
|
|
106
85
|
|
|
107
|
-
export { PageHeader };
|
|
86
|
+
export { PageHeader as P };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,eAAe,IAAI,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,eAAe,IAAI,qBAAqB,EAE9C,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAM7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAUrD,QAAA,MAAM,MAAM;;;CAGV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type PageHeaderProps as PrimerPageHeaderProps, type PageHeaderTitleProps as PrimerPageHeaderTitleProps, type PageHeaderActionsProps as PrimerPageHeaderActionsProps, type PageHeaderTitleAreaProps as PrimerPageHeaderTitleAreaProps } from '@primer/react';
|
|
2
2
|
import { type SxProp } from '../sx';
|
|
3
3
|
import type { ForwardRefComponent } from '../polymorphic';
|
|
4
4
|
import type { PropsWithChildren } from 'react';
|
|
5
|
-
import React from 'react';
|
|
6
5
|
type PageHeaderProps = PrimerPageHeaderProps & SxProp;
|
|
7
6
|
type PageHeaderActionsProps = PrimerPageHeaderActionsProps & SxProp;
|
|
8
|
-
declare function PageHeaderActions({ sx, ...rest }: PageHeaderActionsProps):
|
|
7
|
+
declare function PageHeaderActions({ sx, ...rest }: PageHeaderActionsProps): import("react").JSX.Element;
|
|
9
8
|
type PageHeaderTitleProps = PropsWithChildren<PrimerPageHeaderTitleProps> & SxProp;
|
|
10
|
-
declare
|
|
9
|
+
declare function PageHeaderTitle({ sx, ...rest }: PageHeaderTitleProps): import("react").JSX.Element;
|
|
11
10
|
type PageHeaderTitleAreaProps = PropsWithChildren<PrimerPageHeaderTitleAreaProps> & SxProp;
|
|
12
|
-
declare const
|
|
13
|
-
type PageHeaderComponentType = ForwardRefComponent<'div', PageHeaderProps> & {
|
|
11
|
+
declare const PageHeader: ForwardRefComponent<"div", PageHeaderProps> & {
|
|
14
12
|
Actions: typeof PageHeaderActions;
|
|
15
|
-
ContextArea: typeof PrimerPageHeader.ContextArea;
|
|
16
|
-
ParentLink: typeof PrimerPageHeader.ParentLink;
|
|
17
|
-
ContextBar: typeof PrimerPageHeader.ContextBar;
|
|
18
|
-
TitleArea: typeof PageHeaderTitleArea;
|
|
19
|
-
ContextAreaActions: typeof PrimerPageHeader.ContextAreaActions;
|
|
20
|
-
LeadingAction: typeof PrimerPageHeader.LeadingAction;
|
|
21
|
-
Breadcrumbs: typeof PrimerPageHeader.Breadcrumbs;
|
|
22
|
-
LeadingVisual: typeof PrimerPageHeader.LeadingVisual;
|
|
23
13
|
Title: typeof PageHeaderTitle;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
TitleArea: ForwardRefComponent<"div", PageHeaderTitleAreaProps>;
|
|
15
|
+
ContextArea: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
16
|
+
ContextAreaActions: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
17
|
+
TrailingVisual: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
18
|
+
Description: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
19
|
+
ContextBar: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
20
|
+
LeadingAction: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
21
|
+
Breadcrumbs: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
22
|
+
LeadingVisual: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
23
|
+
TrailingAction: import("react").FC<PropsWithChildren<import("@primer/react").PageHeaderChildrenPropTypes>>;
|
|
27
24
|
};
|
|
28
|
-
declare const PageHeader: PageHeaderComponentType;
|
|
29
25
|
export { PageHeader };
|
|
30
26
|
export type { PageHeaderProps, PageHeaderActionsProps, PageHeaderTitleProps };
|
|
31
27
|
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAC7C,KAAK,oBAAoB,IAAI,0BAA0B,EACvD,KAAK,sBAAsB,IAAI,4BAA4B,EAC3D,KAAK,wBAAwB,IAAI,8BAA8B,EAChE,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAE5C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAUrD,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAEnE,iBAAS,iBAAiB,CAAC,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,sBAAsB,+BAY/D;AAED,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAA;AAMlF,iBAAS,eAAe,CAAC,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,oBAAoB,+BAoB3D;AAED,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAU1F,QAAA,MAAM,UAAU;;;;;;;;;;;;;CAad,CAAA;AAEF,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAC,CAAA"}
|
package/dist/components.json
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
"ActionMenu",
|
|
5
5
|
"Autocomplete",
|
|
6
6
|
"Avatar",
|
|
7
|
-
"BaseStyles",
|
|
8
7
|
"Box",
|
|
9
|
-
"Breadcrumb",
|
|
10
8
|
"Breadcrumbs",
|
|
11
9
|
"Button",
|
|
12
10
|
"Checkbox",
|
|
@@ -28,7 +26,6 @@
|
|
|
28
26
|
"Overlay",
|
|
29
27
|
"PageHeader",
|
|
30
28
|
"PageLayout",
|
|
31
|
-
"ProgressBar",
|
|
32
29
|
"RadioGroup",
|
|
33
30
|
"RelativeTime",
|
|
34
31
|
"SegmentedControl",
|
|
@@ -51,73 +48,17 @@
|
|
|
51
48
|
"UnderlinePanels"
|
|
52
49
|
],
|
|
53
50
|
"types": [
|
|
54
|
-
"ActionListDividerProps",
|
|
55
|
-
"ActionListGroupProps",
|
|
56
|
-
"ActionListItemProps",
|
|
57
|
-
"ActionListLeadingVisualProps",
|
|
58
|
-
"ActionListLinkItemProps",
|
|
59
|
-
"ActionListProps",
|
|
60
|
-
"ActionListTrailingActionProps",
|
|
61
|
-
"ActionListTrailingVisualProps",
|
|
62
|
-
"AutocompleteOverlayProps",
|
|
63
|
-
"AvatarProps",
|
|
64
51
|
"BetterSystemStyleObject",
|
|
65
52
|
"BoxProps",
|
|
66
|
-
"BreadcrumbsItemProps",
|
|
67
|
-
"BreadcrumbsProps",
|
|
68
|
-
"CheckboxGroupProps",
|
|
69
|
-
"CheckboxProps",
|
|
70
|
-
"CounterLabelProps",
|
|
71
|
-
"DataTableContainerProps",
|
|
72
|
-
"DialogHeaderProps",
|
|
73
|
-
"DialogProps",
|
|
74
53
|
"HeaderProps",
|
|
75
|
-
"LabelProps",
|
|
76
54
|
"LinkButtonProps",
|
|
77
|
-
"LinkProps",
|
|
78
|
-
"NavListProps",
|
|
79
|
-
"OcticonProps",
|
|
80
55
|
"PageHeaderActionsProps",
|
|
81
56
|
"PageHeaderProps",
|
|
82
57
|
"PageHeaderTitleProps",
|
|
83
|
-
"PageLayoutProps",
|
|
84
|
-
"RadioGroupProps",
|
|
85
|
-
"RelativeTimeProps",
|
|
86
|
-
"SegmentedControlButtonProps",
|
|
87
|
-
"SegmentedControlIconButtonProps",
|
|
88
|
-
"SegmentedControlProps",
|
|
89
|
-
"SpinnerProps",
|
|
90
|
-
"StateLabelProps",
|
|
91
|
-
"SubNavLinkProps",
|
|
92
|
-
"SubNavProps",
|
|
93
58
|
"SxProp",
|
|
94
|
-
"TableActionsProps",
|
|
95
|
-
"TableBodyProps",
|
|
96
|
-
"TableCellProps",
|
|
97
|
-
"TableHeaderProps",
|
|
98
|
-
"TableHeadProps",
|
|
99
|
-
"TableProps",
|
|
100
|
-
"TableRowProps",
|
|
101
|
-
"TableSubtitleProps",
|
|
102
|
-
"TableTitleProps",
|
|
103
|
-
"TabNavLinkProps",
|
|
104
|
-
"TabNavProps",
|
|
105
59
|
"TextInputProps",
|
|
106
|
-
"TextProps",
|
|
107
|
-
"TimelineBadgeProps",
|
|
108
|
-
"TimelineBodyProps",
|
|
109
|
-
"TimelineBreakProps",
|
|
110
|
-
"TimelineItemProps",
|
|
111
|
-
"TimelineProps",
|
|
112
|
-
"ToggleSwitchProps",
|
|
113
60
|
"TokenProps",
|
|
114
|
-
"TooltipProps"
|
|
115
|
-
"TruncateProps",
|
|
116
|
-
"UnderlineNavItemProps",
|
|
117
|
-
"UnderlineNavProps",
|
|
118
|
-
"UnderlinePanelsPanelProps",
|
|
119
|
-
"UnderlinePanelsProps",
|
|
120
|
-
"UnderlinePanelsTabProps"
|
|
61
|
+
"TooltipProps"
|
|
121
62
|
],
|
|
122
63
|
"utilities": [
|
|
123
64
|
"merge",
|
package/dist/deprecated.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Dialog, type DialogProps, type DialogHeaderProps } from './components/deprecated/DialogV1';
|
|
3
|
-
export { Octicon, type OcticonProps } from './components/deprecated/Octicon';
|
|
4
|
-
export { Tooltip, type TooltipProps } from './components/deprecated/Tooltip';
|
|
5
|
-
export { ActionList, type ActionListProps, type ActionListItemProps, type ActionListGroupProps, } from './components/deprecated/ActionList';
|
|
1
|
+
export { Dialog, Octicon, TabNav, Tooltip, type TooltipProps } from '@primer/react/deprecated';
|
|
6
2
|
//# 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,
|
|
1
|
+
{"version":3,"file":"deprecated.d.ts","sourceRoot":"","sources":["../src/deprecated.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAA"}
|
package/dist/deprecated.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export { TabNav } from '
|
|
2
|
-
export { Dialog } from './components/deprecated/DialogV1.js';
|
|
3
|
-
export { default as Octicon } from './components/deprecated/Octicon.js';
|
|
4
|
-
export { Tooltip } from './components/deprecated/Tooltip.js';
|
|
5
|
-
export { ActionList } from './components/deprecated/ActionList.js';
|
|
1
|
+
export { Dialog, Octicon, TabNav, Tooltip } from '@primer/react/deprecated';
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export { Dialog, type DialogProps } from './components/Dialog';
|
|
2
1
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
3
|
-
export { Tooltip,
|
|
4
|
-
export { UnderlinePanels, type UnderlinePanelsProps, type UnderlinePanelsTabProps, type UnderlinePanelsPanelProps, } from './components/UnderlinePanels';
|
|
5
|
-
export { Table, type DataTableContainerProps, type TableProps, type TableHeadProps, type TableBodyProps, type TableRowProps, type TableHeaderProps, type TableCellProps, type TableTitleProps, type TableSubtitleProps, type TableActionsProps, } from './components/DataTable';
|
|
2
|
+
export { Dialog, Table, Tooltip, UnderlinePanels } from '@primer/react/experimental';
|
|
6
3
|
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,4BAA4B,CAAA"}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { P as PageHeader } from './PageHeader-BYlYLcfB.js';
|
|
2
|
+
export { Dialog, Table, Tooltip, UnderlinePanels } from '@primer/react/experimental';
|
|
3
|
+
import '@primer/react';
|
|
4
|
+
import 'styled-components';
|
|
5
|
+
import 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { type BetterSystemStyleObject, type BoxProps, type SxProp, type SpinnerProps as PrimerSpinnerProps, type RadioGroupProps as PrimerRadioGroupProps, type CheckboxProps as PrimerCheckboxProps, type RelativeTimeProps as PrimerRelativeTimeProps, type SubNavProps as PrimerSubNavProps, type SubNavLinkProps as PrimerSubNavLinkProps, type TimelineBadgeProps as PrimerTimelineBadgeProps, type ToggleSwitchProps as PrimerToggleSwitchProps, type TruncateProps as PrimerTruncateProps, type SegmentedControlProps as PrimerSegmentedControlProps, type SegmentedControlButtonProps as PrimerSegmentedControlButtonProps, type SegmentedControlIconButtonProps as PrimerSegmentedControlIconButtonProps, type UnderlineNavProps as PrimerUnderlineNavProps, type UnderlineNavItemProps as PrimerUnderlineNavItemProps } from '@primer/react';
|
|
2
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3
|
+
import type { ForwardRefComponent } from './polymorphic';
|
|
4
|
+
import type { BackgroundProps, BorderProps, ColorProps, FlexboxProps, GridProps, LayoutProps, PositionProps, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
5
|
+
import { LinkButton, type LinkButtonProps } from './components/LinkButton';
|
|
6
|
+
type StyledProps = SxProp & SpaceProps & ColorProps & TypographyProps & LayoutProps & FlexboxProps & GridProps & BackgroundProps & BorderProps & PositionProps & ShadowProps;
|
|
7
|
+
type SpinnerProps = PrimerSpinnerProps & SxProp;
|
|
8
|
+
declare function Spinner(props: SpinnerProps): React.JSX.Element;
|
|
9
|
+
type RelativeTimeProps = PrimerRelativeTimeProps & SxProp;
|
|
10
|
+
declare function RelativeTime(props: RelativeTimeProps): React.JSX.Element;
|
|
11
|
+
type RadioGroupProps = PropsWithChildren<PrimerRadioGroupProps> & SxProp;
|
|
12
|
+
type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
|
|
13
|
+
className?: string;
|
|
14
|
+
visuallyHidden?: boolean;
|
|
15
|
+
} & SxProp>;
|
|
16
|
+
type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
|
|
17
|
+
className?: string;
|
|
18
|
+
} & SxProp>;
|
|
19
|
+
type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
|
|
20
|
+
className?: string;
|
|
21
|
+
variant: 'error' | 'success';
|
|
22
|
+
} & SxProp>;
|
|
23
|
+
declare const RadioGroup: ((props: RadioGroupProps) => React.JSX.Element) & {
|
|
24
|
+
Label: (props: CheckboxOrRadioGroupLabelProps) => React.JSX.Element;
|
|
25
|
+
Caption: (props: CheckboxOrRadioGroupCaptionProps) => React.JSX.Element;
|
|
26
|
+
Validation: (props: CheckboxOrRadioGroupValidationProps) => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & SxProp;
|
|
29
|
+
type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
|
|
30
|
+
type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
|
|
31
|
+
declare const SegmentedControl: ((props: SegmentedControlProps) => React.JSX.Element) & {
|
|
32
|
+
Button: (props: SegmentedControlButtonProps) => React.JSX.Element;
|
|
33
|
+
IconButton: (props: SegmentedControlIconButtonProps) => React.JSX.Element;
|
|
34
|
+
};
|
|
35
|
+
type CheckboxProps = PrimerCheckboxProps & SxProp;
|
|
36
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
37
|
+
declare const CounterLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
38
|
+
scheme?: "primary" | "secondary";
|
|
39
|
+
className?: string;
|
|
40
|
+
} & {
|
|
41
|
+
children?: React.ReactNode | undefined;
|
|
42
|
+
} & SxProp & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
declare const StateLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
44
|
+
variant?: "small" | "normal";
|
|
45
|
+
status: "open" | "issueOpened" | "pullOpened" | "issueClosed" | "issueClosedNotPlanned" | "pullClosed" | "pullMerged" | "draft" | "issueDraft" | "pullQueued" | "unavailable" | "closed";
|
|
46
|
+
} & SxProp & React.RefAttributes<HTMLSpanElement>>;
|
|
47
|
+
type SubNavProps = PrimerSubNavProps & SxProp;
|
|
48
|
+
type SubNavLinkProps = PrimerSubNavLinkProps & SxProp;
|
|
49
|
+
declare const SubNav: React.ForwardRefExoticComponent<Omit<SubNavProps, "ref"> & React.RefAttributes<HTMLElement>> & {
|
|
50
|
+
Link: React.ForwardRefExoticComponent<Omit<SubNavLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
51
|
+
};
|
|
52
|
+
type TimelineBadgeProps = PrimerTimelineBadgeProps & SxProp;
|
|
53
|
+
declare function TimelineBadge(props: TimelineBadgeProps): React.JSX.Element;
|
|
54
|
+
declare const Timeline: React.ForwardRefExoticComponent<{
|
|
55
|
+
clipSidebar?: boolean;
|
|
56
|
+
className?: string;
|
|
57
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>> & {
|
|
58
|
+
Item: React.ForwardRefExoticComponent<{
|
|
59
|
+
condensed?: boolean;
|
|
60
|
+
className?: string;
|
|
61
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
+
Badge: typeof TimelineBadge;
|
|
63
|
+
Body: React.ForwardRefExoticComponent<{
|
|
64
|
+
className?: string;
|
|
65
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
Break: React.ForwardRefExoticComponent<{
|
|
67
|
+
className?: string;
|
|
68
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & React.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
};
|
|
70
|
+
declare const ToggleSwitch: React.ForwardRefExoticComponent<PrimerToggleSwitchProps & Omit<StyledProps, keyof PrimerToggleSwitchProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
34
71
|
export { PageHeader, type PageHeaderProps, type PageHeaderActionsProps, type PageHeaderTitleProps, } from './components/PageHeader';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export { Truncate, type TruncateProps } from './components/Truncate';
|
|
47
|
-
export { UnderlineNav, type UnderlineNavProps, type UnderlineNavItemProps } from './components/UnderlineNav';
|
|
48
|
-
export { sx, type SxProp } from './sx';
|
|
49
|
-
export type { BetterSystemStyleObject } from './styled-props';
|
|
72
|
+
type TruncateProps = PropsWithChildren<PrimerTruncateProps> & SxProp;
|
|
73
|
+
declare const Truncate: ForwardRefComponent<'div', TruncateProps>;
|
|
74
|
+
type UnderlineNavItemProps = PrimerUnderlineNavItemProps & SxProp;
|
|
75
|
+
declare const UnderlineNav: React.ForwardRefExoticComponent<PrimerUnderlineNavProps & SxProp & React.RefAttributes<HTMLElement>> & {
|
|
76
|
+
Item: ForwardRefComponent<"a", UnderlineNavItemProps>;
|
|
77
|
+
};
|
|
78
|
+
export { Header, type HeaderProps } from './components/Header';
|
|
79
|
+
export { Flash } from './components/Flash';
|
|
80
|
+
export { Checkbox, CounterLabel, LinkButton, type LinkButtonProps, RadioGroup, RelativeTime, SegmentedControl, Spinner, StateLabel, SubNav, Timeline, ToggleSwitch, Truncate, UnderlineNav, };
|
|
81
|
+
export { ActionList, ActionMenu, Autocomplete, Avatar, Breadcrumbs, Button, CheckboxGroup, CircleBadge, Details, Dialog, FormControl, Heading, IconButton, Label, Link, NavList, Overlay, PageLayout, Select, Text, Textarea, TextInput, type TextInputProps, Token, type TokenProps, Tooltip, Box, sx, ThemeProvider, merge, theme, themeGet, useColorSchemeVar, useTheme, } from '@primer/react';
|
|
82
|
+
export type { BoxProps, SxProp, BetterSystemStyleObject };
|
|
50
83
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,QAAQ,EACb,KAAK,MAAM,EAEX,KAAK,YAAY,IAAI,kBAAkB,EAEvC,KAAK,eAAe,IAAI,qBAAqB,EAE7C,KAAK,aAAa,IAAI,mBAAmB,EAMzC,KAAK,iBAAiB,IAAI,uBAAuB,EAEjD,KAAK,WAAW,IAAI,iBAAiB,EACrC,KAAK,eAAe,IAAI,qBAAqB,EAI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