@primer/styled-react 1.0.0-rc.4 → 1.0.0-rc.6

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.
Files changed (75) hide show
  1. package/dist/{PageHeader-Bvki2mbE.js → PageHeader-DCDIR2C1.js} +63 -6
  2. package/dist/Tooltip-DIHgr01r.js +152 -0
  3. package/dist/Tooltip-YuSlJ5b_.js +20 -0
  4. package/dist/components/ActionList.d.ts +36 -0
  5. package/dist/components/ActionList.d.ts.map +1 -0
  6. package/dist/components/ActionMenu.d.ts +12 -0
  7. package/dist/components/ActionMenu.d.ts.map +1 -0
  8. package/dist/components/Autocomplete.d.ts +15 -0
  9. package/dist/components/Autocomplete.d.ts.map +1 -0
  10. package/dist/components/Avatar.d.ts +13 -0
  11. package/dist/components/Avatar.d.ts.map +1 -0
  12. package/dist/components/Breadcrumbs.d.ts +18 -0
  13. package/dist/components/Breadcrumbs.d.ts.map +1 -0
  14. package/dist/components/CheckboxGroup.d.ts +22 -0
  15. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  16. package/dist/components/CircleBadge.d.ts +7 -0
  17. package/dist/components/CircleBadge.d.ts.map +1 -0
  18. package/dist/components/DataTable.d.ts +11 -0
  19. package/dist/components/DataTable.d.ts.map +1 -0
  20. package/dist/components/Dialog.d.ts +19 -0
  21. package/dist/components/Dialog.d.ts.map +1 -0
  22. package/dist/components/DialogV1.d.ts +11 -0
  23. package/dist/components/DialogV1.d.ts.map +1 -0
  24. package/dist/components/Header.d.ts.map +1 -1
  25. package/dist/components/Heading.d.ts +8 -0
  26. package/dist/components/Heading.d.ts.map +1 -0
  27. package/dist/components/Label.d.ts +9 -0
  28. package/dist/components/Label.d.ts.map +1 -0
  29. package/dist/components/Link.d.ts +7 -0
  30. package/dist/components/Link.d.ts.map +1 -0
  31. package/dist/components/NavList.d.ts +25 -0
  32. package/dist/components/NavList.d.ts.map +1 -0
  33. package/dist/components/Overlay.d.ts +7 -0
  34. package/dist/components/Overlay.d.ts.map +1 -0
  35. package/dist/components/PageHeader.d.ts +5 -4
  36. package/dist/components/PageHeader.d.ts.map +1 -1
  37. package/dist/components/PageLayout.d.ts +18 -0
  38. package/dist/components/PageLayout.d.ts.map +1 -0
  39. package/dist/components/Spinner.d.ts +3 -4
  40. package/dist/components/Spinner.d.ts.map +1 -1
  41. package/dist/components/TabNav.d.ts +9 -0
  42. package/dist/components/TabNav.d.ts.map +1 -0
  43. package/dist/components/Text.d.ts +7 -0
  44. package/dist/components/Text.d.ts.map +1 -0
  45. package/dist/components/Token.d.ts +8 -0
  46. package/dist/components/Token.d.ts.map +1 -0
  47. package/dist/components/Tooltip.d.ts +10 -0
  48. package/dist/components/Tooltip.d.ts.map +1 -0
  49. package/dist/components/UnderlineNav.d.ts +4 -2
  50. package/dist/components/UnderlineNav.d.ts.map +1 -1
  51. package/dist/components/UnderlinePanels.d.ts +12 -0
  52. package/dist/components/UnderlinePanels.d.ts.map +1 -0
  53. package/dist/components/deprecated/ActionList.d.ts +23 -0
  54. package/dist/components/deprecated/ActionList.d.ts.map +1 -0
  55. package/dist/components/deprecated/DialogV1.d.ts +11 -0
  56. package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
  57. package/dist/components/deprecated/Octicon.d.ts +17 -0
  58. package/dist/components/deprecated/Octicon.d.ts.map +1 -0
  59. package/dist/components/deprecated/TabNav.d.ts +9 -0
  60. package/dist/components/deprecated/TabNav.d.ts.map +1 -0
  61. package/dist/components/deprecated/Tooltip.d.ts +13 -0
  62. package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
  63. package/dist/components.json +18 -1
  64. package/dist/deprecated.d.ts +4 -1
  65. package/dist/deprecated.d.ts.map +1 -1
  66. package/dist/deprecated.js +84 -1
  67. package/dist/experimental.d.ts +4 -1
  68. package/dist/experimental.d.ts.map +1 -1
  69. package/dist/experimental.js +32 -5
  70. package/dist/index.d.ts +16 -17
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +293 -16
  73. package/package.json +3 -3
  74. package/dist/components/StateLabelProps.d.ts +0 -8
  75. package/dist/components/StateLabelProps.d.ts.map +0 -1
@@ -1,13 +1,61 @@
1
- import { PageHeader as PageHeader$1, sx, Box } from '@primer/react';
2
- import styled from 'styled-components';
1
+ import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx } from '@primer/react';
2
+ import React, { forwardRef } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
+ import styled from 'styled-components';
4
5
 
5
- const PageHeaderImpl = styled(PageHeader$1).withConfig({
6
+ const DialogImpl = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
7
+ // @ts-expect-error - PrimerDialog is not recognized as a valid component type
8
+ return /*#__PURE__*/jsx(Box, {
9
+ as: Dialog$1,
10
+ ref: ref,
11
+ ...props
12
+ });
13
+ });
14
+ const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
15
+ return /*#__PURE__*/jsx(Box, {
16
+ as: Dialog$1.Header,
17
+ ref: ref,
18
+ ...props
19
+ });
20
+ });
21
+ const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
22
+ // @ts-expect-error - PrimerDialog.Body is not recognized as a valid component type
23
+ return /*#__PURE__*/jsx(Box, {
24
+ as: Dialog$1.Body,
25
+ ref: ref,
26
+ ...props
27
+ });
28
+ });
29
+ const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
30
+ return /*#__PURE__*/jsx(Box, {
31
+ as: Dialog$1.Footer,
32
+ ref: ref,
33
+ ...props
34
+ });
35
+ });
36
+ const Dialog = Object.assign(DialogImpl, {
37
+ Buttons: Dialog$1.Buttons,
38
+ Header: DialogHeader,
39
+ Body: DialogBody,
40
+ Footer: DialogFooter
41
+ });
42
+
43
+ const StyledPageHeader = styled(PageHeader$1).withConfig({
6
44
  shouldForwardProp: prop => prop !== 'sx'
7
45
  }).withConfig({
8
- displayName: "PageHeader__PageHeaderImpl",
46
+ displayName: "PageHeader__StyledPageHeader",
9
47
  componentId: "sc-1g9symn-0"
10
48
  })(["", ""], sx);
49
+ const PageHeaderImpl = /*#__PURE__*/React.forwardRef(({
50
+ as,
51
+ ...props
52
+ }, ref) => /*#__PURE__*/jsx(StyledPageHeader, {
53
+ ...props,
54
+ ...(as ? {
55
+ forwardedAs: as
56
+ } : {}),
57
+ ref: ref
58
+ }));
11
59
  function PageHeaderActions({
12
60
  sx,
13
61
  ...rest
@@ -31,7 +79,7 @@ function PageHeaderActions({
31
79
  sx: sx
32
80
  });
33
81
  }
34
- function PageHeaderTitle({
82
+ function StyledPageHeaderTitle({
35
83
  sx,
36
84
  ...rest
37
85
  }) {
@@ -62,6 +110,15 @@ function PageHeaderTitle({
62
110
  sx: sx
63
111
  });
64
112
  }
113
+ const PageHeaderTitle = ({
114
+ as,
115
+ ...props
116
+ }) => /*#__PURE__*/jsx(StyledPageHeaderTitle, {
117
+ ...props,
118
+ ...(as ? {
119
+ forwardedAs: as
120
+ } : {})
121
+ });
65
122
  const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
66
123
  shouldForwardProp: prop => prop !== 'sx'
67
124
  }).withConfig({
@@ -84,4 +141,4 @@ const PageHeader = Object.assign(PageHeaderImpl, {
84
141
  TrailingAction: PageHeader$1.TrailingAction
85
142
  });
86
143
 
87
- export { PageHeader as P };
144
+ export { Dialog as D, PageHeader as P };
@@ -0,0 +1,152 @@
1
+ import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx, Tooltip as Tooltip$1 } from '@primer/react';
2
+ import React, { forwardRef } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+ import styled from 'styled-components';
5
+
6
+ const DialogImpl = /*#__PURE__*/forwardRef(function Dialog(props, ref) {
7
+ // @ts-expect-error - PrimerDialog is not recognized as a valid component type
8
+ return /*#__PURE__*/jsx(Box, {
9
+ as: Dialog$1,
10
+ ref: ref,
11
+ ...props
12
+ });
13
+ });
14
+ const DialogHeader = /*#__PURE__*/forwardRef(function DialogHeader(props, ref) {
15
+ return /*#__PURE__*/jsx(Box, {
16
+ as: Dialog$1.Header,
17
+ ref: ref,
18
+ ...props
19
+ });
20
+ });
21
+ const DialogBody = /*#__PURE__*/forwardRef(function DialogBody(props, ref) {
22
+ // @ts-expect-error - PrimerDialog.Body is not recognized as a valid component type
23
+ return /*#__PURE__*/jsx(Box, {
24
+ as: Dialog$1.Body,
25
+ ref: ref,
26
+ ...props
27
+ });
28
+ });
29
+ const DialogFooter = /*#__PURE__*/forwardRef(function DialogFooter(props, ref) {
30
+ return /*#__PURE__*/jsx(Box, {
31
+ as: Dialog$1.Footer,
32
+ ref: ref,
33
+ ...props
34
+ });
35
+ });
36
+ const Dialog = Object.assign(DialogImpl, {
37
+ Buttons: Dialog$1.Buttons,
38
+ Header: DialogHeader,
39
+ Body: DialogBody,
40
+ Footer: DialogFooter
41
+ });
42
+
43
+ const StyledPageHeader = styled(PageHeader$1).withConfig({
44
+ shouldForwardProp: prop => prop !== 'sx'
45
+ }).withConfig({
46
+ displayName: "PageHeader__StyledPageHeader",
47
+ componentId: "sc-1g9symn-0"
48
+ })(["", ""], sx);
49
+ const PageHeaderImpl = /*#__PURE__*/React.forwardRef(({
50
+ as,
51
+ ...props
52
+ }, ref) => /*#__PURE__*/jsx(StyledPageHeader, {
53
+ ...props,
54
+ ...(as ? {
55
+ forwardedAs: as
56
+ } : {}),
57
+ ref: ref
58
+ }));
59
+ function PageHeaderActions({
60
+ sx,
61
+ ...rest
62
+ }) {
63
+ const style = {};
64
+ if (sx) {
65
+ // @ts-ignore sx has height attribute
66
+ const {
67
+ height
68
+ } = sx;
69
+ if (height) {
70
+ style['--custom-height'] = height;
71
+ }
72
+ }
73
+
74
+ // @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Actions
75
+ return /*#__PURE__*/jsx(Box, {
76
+ ...rest,
77
+ as: PageHeader$1.Actions,
78
+ style: style,
79
+ sx: sx
80
+ });
81
+ }
82
+ function StyledPageHeaderTitle({
83
+ sx,
84
+ ...rest
85
+ }) {
86
+ const style = {};
87
+ if (sx) {
88
+ // @ts-ignore sx can have color attribute
89
+ const {
90
+ fontSize,
91
+ lineHeight,
92
+ fontWeight
93
+ } = sx;
94
+ if (fontSize) {
95
+ style['--custom-font-size'] = fontSize;
96
+ }
97
+ if (lineHeight) {
98
+ style['--custom-line-height'] = lineHeight;
99
+ }
100
+ if (fontWeight) {
101
+ style['--custom-font-weight'] = fontWeight;
102
+ }
103
+ }
104
+
105
+ // @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Title
106
+ return /*#__PURE__*/jsx(Box, {
107
+ ...rest,
108
+ as: PageHeader$1.Title,
109
+ style: style,
110
+ sx: sx
111
+ });
112
+ }
113
+ const PageHeaderTitle = ({
114
+ as,
115
+ ...props
116
+ }) => /*#__PURE__*/jsx(StyledPageHeaderTitle, {
117
+ ...props,
118
+ ...(as ? {
119
+ forwardedAs: as
120
+ } : {})
121
+ });
122
+ const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
123
+ shouldForwardProp: prop => prop !== 'sx'
124
+ }).withConfig({
125
+ displayName: "PageHeader__PageHeaderTitleArea",
126
+ componentId: "sc-1g9symn-1"
127
+ })(["", ""], sx);
128
+ const PageHeader = Object.assign(PageHeaderImpl, {
129
+ Actions: PageHeaderActions,
130
+ ContextArea: PageHeader$1.ContextArea,
131
+ ParentLink: PageHeader$1.ParentLink,
132
+ ContextBar: PageHeader$1.ContextBar,
133
+ TitleArea: PageHeaderTitleArea,
134
+ ContextAreaActions: PageHeader$1.ContextAreaActions,
135
+ LeadingAction: PageHeader$1.LeadingAction,
136
+ Breadcrumbs: PageHeader$1.Breadcrumbs,
137
+ LeadingVisual: PageHeader$1.LeadingVisual,
138
+ Title: PageHeaderTitle,
139
+ TrailingVisual: PageHeader$1.TrailingVisual,
140
+ Description: PageHeader$1.Description,
141
+ TrailingAction: PageHeader$1.TrailingAction
142
+ });
143
+
144
+ const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
145
+ return /*#__PURE__*/jsx(Box, {
146
+ as: Tooltip$1,
147
+ ref: ref,
148
+ ...props
149
+ });
150
+ });
151
+
152
+ export { Dialog as D, PageHeader as P, Tooltip as T };
@@ -0,0 +1,20 @@
1
+ import { Box, Tooltip as Tooltip$1 } from '@primer/react';
2
+ import { Tooltip as Tooltip$2 } from '@primer/react/deprecated';
3
+ import { forwardRef } from 'react';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, ref) {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: Tooltip$1,
9
+ ref: ref,
10
+ ...props
11
+ });
12
+ });
13
+ function DeprecatedTooltip(props) {
14
+ return /*#__PURE__*/jsx(Box, {
15
+ as: Tooltip$2,
16
+ ...props
17
+ });
18
+ }
19
+
20
+ export { DeprecatedTooltip as D, Tooltip as T };
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { ActionList as PrimerActionList, type ActionListProps as PrimerActionListProps, type ActionListItemProps as PrimerActionListItemProps, type ActionListLinkItemProps as PrimerActionListLinkItemProps, type ActionListGroupProps as PrimerActionListGroupProps, type ActionListDividerProps as PrimerActionListDividerProps, type ActionListLeadingVisualProps as PrimerActionListLeadingVisualProps, type ActionListTrailingVisualProps as PrimerActionListTrailingVisualProps } from '@primer/react';
3
+ import { type SxProp } from '../sx';
4
+ import type { ForwardRefComponent } from '../polymorphic';
5
+ type PrimerActionListTrailingActionProps = React.ComponentProps<typeof PrimerActionList.TrailingAction>;
6
+ export type ActionListProps<As extends React.ElementType = 'ul'> = PrimerActionListProps<As> & SxProp;
7
+ export type ActionListItemProps = React.PropsWithChildren<PrimerActionListItemProps & SxProp>;
8
+ export type ActionListLinkItemProps = React.PropsWithChildren<PrimerActionListLinkItemProps & SxProp>;
9
+ export type ActionListGroupProps = React.PropsWithChildren<PrimerActionListGroupProps & SxProp>;
10
+ export type ActionListDividerProps = React.PropsWithChildren<PrimerActionListDividerProps & SxProp>;
11
+ export type ActionListLeadingVisualProps = React.PropsWithChildren<PrimerActionListLeadingVisualProps & SxProp>;
12
+ export type ActionListTrailingVisualProps = React.PropsWithChildren<PrimerActionListTrailingVisualProps & SxProp>;
13
+ export type ActionListTrailingActionProps = React.PropsWithChildren<PrimerActionListTrailingActionProps & SxProp>;
14
+ declare const ActionListImpl: React.ForwardRefExoticComponent<Omit<ActionListProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<unknown>>;
15
+ declare const ActionListLinkItem: ForwardRefComponent<'a', ActionListLinkItemProps>;
16
+ type TrailingActionElements = 'button' | 'a';
17
+ declare const ActionListTrailingAction: ForwardRefComponent<TrailingActionElements, ActionListTrailingActionProps>;
18
+ declare const ActionListItem: ForwardRefComponent<"li", ActionListItemProps>;
19
+ declare const ActionListGroup: React.ComponentType<ActionListGroupProps>;
20
+ declare const ActionListDivider: React.ComponentType<ActionListDividerProps>;
21
+ declare const ActionListLeadingVisual: React.ComponentType<ActionListLeadingVisualProps>;
22
+ declare const ActionListTrailingVisual: React.ComponentType<ActionListTrailingVisualProps>;
23
+ export declare const ActionList: typeof ActionListImpl & {
24
+ Item: typeof ActionListItem;
25
+ LinkItem: typeof ActionListLinkItem;
26
+ Group: typeof ActionListGroup;
27
+ GroupHeading: typeof PrimerActionList.GroupHeading;
28
+ Divider: typeof ActionListDivider;
29
+ Description: typeof PrimerActionList.Description;
30
+ LeadingVisual: typeof ActionListLeadingVisual;
31
+ TrailingVisual: typeof ActionListTrailingVisual;
32
+ Heading: typeof PrimerActionList.Heading;
33
+ TrailingAction: typeof ActionListTrailingAction;
34
+ };
35
+ export {};
36
+ //# sourceMappingURL=ActionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionList.d.ts","sourceRoot":"","sources":["../../src/components/ActionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,UAAU,IAAI,gBAAgB,EA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ionMenuOverlayProps = ComponentProps<typeof PrimerActionMenu.Overlay> & SxProp;
4
+ declare const ActionMenuOverlay: React.ComponentType<ActionMenuOverlayProps>;
5
+ export declare const ActionMenu: typeof PrimerActionMenu & {
6
+ Button: typeof PrimerActionMenu.Button;
7
+ Anchor: typeof PrimerActionMenu.Anchor;
8
+ Overlay: typeof ActionMenuOverlay;
9
+ Divider: typeof PrimerActionMenu.Divider;
10
+ };
11
+ export {};
12
+ //# sourceMappingURL=ActionMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../src/components/ActionMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAE,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAGzE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,KAAK,sBAAsB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;AAEtF,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAAa,CAAC,sBAAsB,CAIlE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,OAAO,gBAAgB,GAAG;IACjD,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,OAAO,EAAE,OAAO,gBAAgB,CAAC,OAAO,CAAA;CAMxC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { Autocomplete as PrimerAutocomplete, type AutocompleteOverlayProps as PrimerAutocompleteOverlayProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ComponentProps } from 'react';
4
+ export type AutocompleteOverlayProps = PrimerAutocompleteOverlayProps & SxProp;
5
+ declare const AutocompleteOverlay: React.ComponentType<AutocompleteOverlayProps>;
6
+ interface AutocompleteExport {
7
+ (props: ComponentProps<typeof PrimerAutocomplete>): React.ReactNode;
8
+ Context: typeof PrimerAutocomplete.Context;
9
+ Input: typeof PrimerAutocomplete.Input;
10
+ Menu: typeof PrimerAutocomplete.Menu;
11
+ Overlay: typeof AutocompleteOverlay;
12
+ }
13
+ declare const Autocomplete: AutocompleteExport;
14
+ export { Autocomplete };
15
+ //# sourceMappingURL=Autocomplete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/components/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,kBAAkB,EAClC,KAAK,wBAAwB,IAAI,8BAA8B,EAChE,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,GAAG,MAAM,CAAA;AAE9E,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAMtE,CAAA;AAED,UAAU,kBAAkB;IAC1B,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG,KAAK,CAAC,SAAS,CAAA;IACnE,OAAO,EAAE,OAAO,kBAAkB,CAAC,OAAO,CAAA;IAC1C,KAAK,EAAE,OAAO,kBAAkB,CAAC,KAAK,CAAA;IACtC,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAA;IACpC,OAAO,EAAE,OAAO,mBAAmB,CAAA;CACpC;AAED,QAAA,MAAM,YAAY,EAAE,kBAKlB,CAAA;AAEF,OAAO,EAAC,YAAY,EAAC,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { type AvatarProps as PrimerAvatarProps } from '@primer/react';
2
+ import type { StyledProps } from '../styled-props';
3
+ type AvatarProps = PrimerAvatarProps & StyledProps;
4
+ declare const Avatar: import("react").ForwardRefExoticComponent<{
5
+ size?: number | import("@primer/react").ResponsiveValue<number>;
6
+ square?: boolean;
7
+ src: string;
8
+ alt?: string;
9
+ className?: string;
10
+ } & Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & import("@primer/react").SxProp & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("react").RefAttributes<HTMLImageElement>>;
11
+ export { Avatar };
12
+ export type { AvatarProps };
13
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/components/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,WAAW,IAAI,iBAAiB,EAAyB,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAA;AAGhD,KAAK,WAAW,GAAG,iBAAiB,GAAG,WAAW,CAAA;AAClD,QAAA,MAAM,MAAM;;;;;;ooDAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { BreadcrumbsProps as PrimerBreadcrumbsProps, BreadcrumbsItemProps as PrimerBreadcrumbsItemsProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import { type ForwardRefComponent } from '../polymorphic';
4
+ import type React from 'react';
5
+ type BreadcrumbsProps = PrimerBreadcrumbsProps & SxProp;
6
+ type BreadcrumbsItemProps<As extends React.ElementType = 'a'> = PrimerBreadcrumbsItemsProps<As> & SxProp;
7
+ declare function BreadcrumbsItem<As extends React.ElementType = 'a'>({ as, ...props }: BreadcrumbsItemProps<As>): React.JSX.Element;
8
+ declare const Breadcrumbs: ForwardRefComponent<'nav', BreadcrumbsProps> & {
9
+ Item: typeof BreadcrumbsItem;
10
+ };
11
+ /**
12
+ * @deprecated Use the `Breadcrumbs` component instead (i.e. `<Breadcrumb>` → `<Breadcrumbs>`)
13
+ */
14
+ declare const Breadcrumb: ForwardRefComponent<"nav", BreadcrumbsProps> & {
15
+ Item: typeof BreadcrumbsItem;
16
+ };
17
+ export { Breadcrumbs, Breadcrumb, type BreadcrumbsProps, type BreadcrumbsItemProps };
18
+ //# sourceMappingURL=Breadcrumbs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/components/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,IAAI,sBAAsB,EAC1C,oBAAoB,IAAI,2BAA2B,EACpD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,KAAK,gBAAgB,GAAG,sBAAsB,GAAG,MAAM,CAAA;AACvD,KAAK,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,2BAA2B,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAgBxG,iBAAS,eAAe,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,EAAE,EAAC,EAAE,EAAE,GAAG,KAAK,EAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,qBAEpG;AAED,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG;IAAC,IAAI,EAAE,OAAO,eAAe,CAAA;CAG9F,CAAA;AAED;;GAEG;AACH,QAAA,MAAM,UAAU;UARyD,OAAO,eAAe;CAQjE,CAAA;AAE9B,OAAO,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { type CheckboxGroupProps as PrimerCheckboxGroupProps } from '@primer/react';
2
+ import React, { type PropsWithChildren } from 'react';
3
+ import type { SxProp } from '../sx';
4
+ export type CheckboxGroupProps = PropsWithChildren<PrimerCheckboxGroupProps> & SxProp;
5
+ type CheckboxOrRadioGroupLabelProps = PropsWithChildren<{
6
+ className?: string;
7
+ visuallyHidden?: boolean;
8
+ } & SxProp>;
9
+ type CheckboxOrRadioGroupCaptionProps = PropsWithChildren<{
10
+ className?: string;
11
+ } & SxProp>;
12
+ type CheckboxOrRadioGroupValidationProps = PropsWithChildren<{
13
+ className?: string;
14
+ variant: 'error' | 'success';
15
+ } & SxProp>;
16
+ export declare const CheckboxGroup: ((props: CheckboxGroupProps) => React.JSX.Element) & {
17
+ Label: (props: CheckboxOrRadioGroupLabelProps) => React.JSX.Element;
18
+ Caption: (props: CheckboxOrRadioGroupCaptionProps) => React.JSX.Element;
19
+ Validation: (props: CheckboxOrRadioGroupValidationProps) => React.JSX.Element;
20
+ };
21
+ export {};
22
+ //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -0,0 +1 @@
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,WAlCQ,kBAAkB;mBAWV,8BAA8B;qBAS5B,gCAAgC;wBAU7B,mCAAmC;CAQhF,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type CircleBadgeProps as PrimerCircleBadgeProps, type SxProp } from '@primer/react';
2
+ import { type ForwardRefComponent } from '../polymorphic';
3
+ type CircleBadgeProps<As extends React.ElementType> = PrimerCircleBadgeProps<As> & SxProp;
4
+ declare const CircleBadge: ForwardRefComponent<React.ElementType, CircleBadgeProps<React.ElementType>>;
5
+ export { CircleBadge };
6
+ export type { CircleBadgeProps };
7
+ //# sourceMappingURL=CircleBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/components/CircleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,IAAI,sBAAsB,EAE/C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI,sBAAsB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAEzF,QAAA,MAAM,WAAW,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAM5F,CAAA;AAED,OAAO,EAAC,WAAW,EAAC,CAAA;AACpB,YAAY,EAAC,gBAAgB,EAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Table as PrimerDataTable, type TableContainerProps } from '@primer/react/experimental';
2
+ import { type SxProp } from '../sx';
3
+ import type React from 'react';
4
+ type DataTableContainerProps<As extends React.ElementType = 'div'> = TableContainerProps<As> & SxProp;
5
+ declare function DataTableContainer<As extends React.ElementType = 'div'>({ as, ...rest }: DataTableContainerProps<As>): React.JSX.Element;
6
+ declare const Table: typeof PrimerDataTable & {
7
+ Container: typeof DataTableContainer;
8
+ };
9
+ export type { TableProps, TableHeadProps, TableBodyProps, TableRowProps, TableHeaderProps, TableCellProps, TableTitleProps, TableSubtitleProps, TableActionsProps, } from '@primer/react/experimental';
10
+ export { Table, type DataTableContainerProps };
11
+ //# sourceMappingURL=DataTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../src/components/DataTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,eAAe,EAAE,KAAK,mBAAmB,EAAC,MAAM,4BAA4B,CAAA;AAC7F,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,uBAAuB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,IAAI,mBAAmB,CAAC,EAAE,CAAC,GAAG,MAAM,CAAA;AAYrG,iBAAS,kBAAkB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,qBAE3G;AAED,QAAA,MAAM,KAAK,EAAE,OAAO,eAAe,GAAG;IACpC,SAAS,EAAE,OAAO,kBAAkB,CAAA;CAIpC,CAAA;AAEF,YAAY,EACV,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAC,KAAK,EAAE,KAAK,uBAAuB,EAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { DialogProps as PrimerDialogProps } from '@primer/react';
2
+ import type { SxProp } from '../sx';
3
+ import { type PropsWithChildren } from 'react';
4
+ type DialogProps = PropsWithChildren<PrimerDialogProps> & SxProp;
5
+ type StyledBodyProps = React.ComponentProps<'div'> & SxProp;
6
+ type StyledFooterProps = React.ComponentProps<'div'> & SxProp;
7
+ declare const Dialog: import("react").ForwardRefExoticComponent<PrimerDialogProps & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & SxProp & import("react").RefAttributes<HTMLDivElement>> & {
10
+ Buttons: import("react").FC<PropsWithChildren<{
11
+ buttons: import("@primer/react").DialogButtonProps[];
12
+ }>>;
13
+ Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & SxProp & import("react").RefAttributes<HTMLDivElement>>;
14
+ Body: import("react").ForwardRefExoticComponent<Omit<StyledBodyProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
15
+ Footer: import("react").ForwardRefExoticComponent<Omit<StyledFooterProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
+ };
17
+ export { Dialog };
18
+ export type { DialogProps };
19
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/components/Dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,IAAI,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEnE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,EAA4C,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEvF,KAAK,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAA;AAahE,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAO3D,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,MAAM,CAAA;AAM7D,QAAA,MAAM,MAAM;;;;;;;;;CAKV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { DialogProps as PrimerDialogProps, DialogHeaderProps as PrimerDialogHeaderProps } from '@primer/react/deprecated';
2
+ import type { SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type DialogProps = PrimerDialogProps & SxProp;
5
+ type DialogHeaderProps = PrimerDialogHeaderProps & SxProp;
6
+ declare const Dialog: ForwardRefComponent<"div", DialogProps> & {
7
+ Header: ForwardRefComponent<"div", DialogHeaderProps>;
8
+ };
9
+ export { Dialog };
10
+ export type { DialogProps, DialogHeaderProps };
11
+ //# sourceMappingURL=DialogV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogV1.d.ts","sourceRoot":"","sources":["../../src/components/DialogV1.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,IAAI,iBAAiB,EAChC,iBAAiB,IAAI,uBAAuB,EAC7C,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,WAAW,GAAG,iBAAiB,GAAG,MAAM,CAAA;AAU7C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAUzD,QAAA,MAAM,MAAM;;CAEV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAC,CAAA;AACf,YAAY,EAAC,WAAW,EAAE,iBAAiB,EAAC,CAAA"}
@@ -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,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
+ {"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,EAG9C,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;AAU7C,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAcrD,QAAA,MAAM,MAAM;;;CAGV,CAAA;AAEF,OAAO,EAAC,MAAM,EAAE,KAAK,WAAW,EAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { type HeadingProps as PrimerHeadingProps } from '@primer/react';
2
+ import type { ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
4
+ type HeadingLevels = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
+ type HeadingProps = PrimerHeadingProps & SxProp;
6
+ declare const Heading: ForwardRefComponent<HeadingLevels, HeadingProps>;
7
+ export { Heading, type HeadingProps };
8
+ //# sourceMappingURL=Heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/components/Heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,YAAY,IAAI,kBAAkB,EAAC,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGrC,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE5D,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,aAAa,EAAE,YAAY,CAI7D,CAAA;AAED,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { type LabelProps as PrimerLabelProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type LabelProps = PrimerLabelProps & SxProp & {
5
+ as?: React.ElementType;
6
+ };
7
+ declare const Label: ForwardRefComponent<"span", LabelProps>;
8
+ export { Label, type LabelProps };
9
+ //# sourceMappingURL=Label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/components/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AACvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAQtE,QAAA,MAAM,KAAK,EAEL,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAE7C,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type LinkProps as PrimerLinkProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type LinkProps = PrimerLinkProps & SxProp;
5
+ declare const Link: ForwardRefComponent<"a", LinkProps>;
6
+ export { Link, type LinkProps };
7
+ //# sourceMappingURL=Link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/components/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,IAAI,eAAe,EAAC,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAGvD,KAAK,SAAS,GAAG,eAAe,GAAG,MAAM,CAAA;AAQzC,QAAA,MAAM,IAAI,EAEJ,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;AAEzC,OAAO,EAAC,IAAI,EAAE,KAAK,SAAS,EAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { NavList as PrimerNavList } from '@primer/react';
2
+ import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps } from '@primer/react';
3
+ import { type ComponentProps, type PropsWithChildren } from 'react';
4
+ import { type SxProp } from '../sx';
5
+ type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp;
6
+ declare const NavList: import("react").ForwardRefExoticComponent<Omit<NavListProps, "ref"> & import("react").RefAttributes<HTMLElement>> & {
7
+ Item: import("react").ForwardRefExoticComponent<PrimerNavListItemProps & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & SxProp & import("react").RefAttributes<HTMLAnchorElement>>;
10
+ Group: 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
+ SubNav: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.SubNav>>>;
17
+ Divider: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.Divider>>>;
18
+ LeadingVisual: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.LeadingVisual>>>;
19
+ TrailingVisual: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.TrailingVisual>>>;
20
+ TrailingAction: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.TrailingAction>>>;
21
+ GroupHeading: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.GroupHeading>>>;
22
+ GroupExpand: React.FC<React.PropsWithChildren<ComponentProps<typeof PrimerNavList.GroupExpand>>>;
23
+ };
24
+ export { NavList, type NavListProps };
25
+ //# sourceMappingURL=NavList.d.ts.map
@@ -0,0 +1 @@
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,EAE3C,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAA;AAoBlE,QAAA,MAAM,OAAO;;;;;;;;;;YAOqB,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;aAC5E,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;mBACnE,KAAK,CAAC,EAAE,CACpD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,aAAa,CAAC,CAAC,CAC5E;oBAC+C,KAAK,CAAC,EAAE,CACtD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC,CAC7E;oBAC+C,KAAK,CAAC,EAAE,CACtD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC,CAC7E;kBAC2C,KAAK,CAAC,EAAE,CAClD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,YAAY,CAAC,CAAC,CAC3E;iBACyC,KAAK,CAAC,EAAE,CAChD,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,WAAW,CAAC,CAAC,CAC1E;CACD,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { type OverlayProps as PrimerOverlayProps, type SxProp } from '@primer/react';
2
+ import { type ForwardRefComponent } from '../polymorphic';
3
+ type OverlayProps = PrimerOverlayProps & SxProp;
4
+ declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
5
+ export { Overlay };
6
+ export type { OverlayProps };
7
+ //# sourceMappingURL=Overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../src/components/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,YAAY,IAAI,kBAAkB,EAAM,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAEhH,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,kBAAkB,GAAG,MAAM,CAAA;AAE/C,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAIrD,CAAA;AAED,OAAO,EAAC,OAAO,EAAC,CAAA;AAChB,YAAY,EAAC,YAAY,EAAC,CAAA"}
@@ -2,14 +2,15 @@ import { PageHeader as PrimerPageHeader, type PageHeaderProps as PrimerPageHeade
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';
5
6
  type PageHeaderProps = PrimerPageHeaderProps & SxProp;
6
7
  type PageHeaderActionsProps = PrimerPageHeaderActionsProps & SxProp;
7
- declare function PageHeaderActions({ sx, ...rest }: PageHeaderActionsProps): import("react").JSX.Element;
8
+ declare function PageHeaderActions({ sx, ...rest }: PageHeaderActionsProps): React.JSX.Element;
8
9
  type PageHeaderTitleProps = PropsWithChildren<PrimerPageHeaderTitleProps> & SxProp;
9
- declare function PageHeaderTitle({ sx, ...rest }: PageHeaderTitleProps): import("react").JSX.Element;
10
+ declare const PageHeaderTitle: ({ as, ...props }: PageHeaderTitleProps) => React.JSX.Element;
10
11
  type PageHeaderTitleAreaProps = PropsWithChildren<PrimerPageHeaderTitleAreaProps> & SxProp;
11
12
  declare const PageHeaderTitleArea: ForwardRefComponent<'div', PageHeaderTitleAreaProps>;
12
- type PageHeaderComponent = ForwardRefComponent<'div', PageHeaderProps> & {
13
+ type PageHeaderComponentType = ForwardRefComponent<'div', PageHeaderProps> & {
13
14
  Actions: typeof PageHeaderActions;
14
15
  ContextArea: typeof PrimerPageHeader.ContextArea;
15
16
  ParentLink: typeof PrimerPageHeader.ParentLink;
@@ -24,7 +25,7 @@ type PageHeaderComponent = ForwardRefComponent<'div', PageHeaderProps> & {
24
25
  Description: typeof PrimerPageHeader.Description;
25
26
  TrailingAction: typeof PrimerPageHeader.TrailingAction;
26
27
  };
27
- declare const PageHeader: PageHeaderComponent;
28
+ declare const PageHeader: PageHeaderComponentType;
28
29
  export { PageHeader };
29
30
  export type { PageHeaderProps, PageHeaderActionsProps, PageHeaderTitleProps };
30
31
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../src/components/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,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,C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