@primer/styled-react 1.0.0-rc.3 → 1.0.0-rc.5

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 (90) hide show
  1. package/README.md +18 -0
  2. package/dist/PageHeader-DCDIR2C1.js +144 -0
  3. package/dist/Tooltip-YuSlJ5b_.js +20 -0
  4. package/dist/components/ActionMenu.d.ts +12 -0
  5. package/dist/components/ActionMenu.d.ts.map +1 -0
  6. package/dist/components/Autocomplete.d.ts +15 -0
  7. package/dist/components/Autocomplete.d.ts.map +1 -0
  8. package/dist/components/Avatar.d.ts +13 -0
  9. package/dist/components/Avatar.d.ts.map +1 -0
  10. package/dist/components/Box.d.ts +2 -0
  11. package/dist/components/Box.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/Checkbox.d.ts +5 -0
  15. package/dist/components/Checkbox.d.ts.map +1 -0
  16. package/dist/components/CheckboxGroup.d.ts +22 -0
  17. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  18. package/dist/components/CircleBadge.d.ts +7 -0
  19. package/dist/components/CircleBadge.d.ts.map +1 -0
  20. package/dist/components/CounterLabel.d.ts +10 -0
  21. package/dist/components/CounterLabel.d.ts.map +1 -0
  22. package/dist/components/Dialog.d.ts +19 -0
  23. package/dist/components/Dialog.d.ts.map +1 -0
  24. package/dist/components/DialogV1.d.ts +11 -0
  25. package/dist/components/DialogV1.d.ts.map +1 -0
  26. package/dist/components/Flash.d.ts +8 -0
  27. package/dist/components/Flash.d.ts.map +1 -0
  28. package/dist/components/Header.d.ts +11 -0
  29. package/dist/components/Header.d.ts.map +1 -0
  30. package/dist/components/Heading.d.ts +8 -0
  31. package/dist/components/Heading.d.ts.map +1 -0
  32. package/dist/components/Label.d.ts +9 -0
  33. package/dist/components/Label.d.ts.map +1 -0
  34. package/dist/components/Link.d.ts +7 -0
  35. package/dist/components/Link.d.ts.map +1 -0
  36. package/dist/components/LinkButton.d.ts +7 -0
  37. package/dist/components/LinkButton.d.ts.map +1 -0
  38. package/dist/components/NavList.d.ts +25 -0
  39. package/dist/components/NavList.d.ts.map +1 -0
  40. package/dist/components/Overlay.d.ts +7 -0
  41. package/dist/components/Overlay.d.ts.map +1 -0
  42. package/dist/components/PageHeader.d.ts +31 -0
  43. package/dist/components/PageHeader.d.ts.map +1 -0
  44. package/dist/components/RadioGroup.d.ts +22 -0
  45. package/dist/components/RadioGroup.d.ts.map +1 -0
  46. package/dist/components/RelativeTime.d.ts +6 -0
  47. package/dist/components/RelativeTime.d.ts.map +1 -0
  48. package/dist/components/SegmentedControl.d.ts +12 -0
  49. package/dist/components/SegmentedControl.d.ts.map +1 -0
  50. package/dist/components/Spinner.d.ts +6 -0
  51. package/dist/components/Spinner.d.ts.map +1 -0
  52. package/dist/components/StateLabel.d.ts +9 -0
  53. package/dist/components/StateLabel.d.ts.map +1 -0
  54. package/dist/components/SubNav.d.ts +9 -0
  55. package/dist/components/SubNav.d.ts.map +1 -0
  56. package/dist/components/TabNav.d.ts +9 -0
  57. package/dist/components/TabNav.d.ts.map +1 -0
  58. package/dist/components/Text.d.ts +7 -0
  59. package/dist/components/Text.d.ts.map +1 -0
  60. package/dist/components/Timeline.d.ts +26 -0
  61. package/dist/components/Timeline.d.ts.map +1 -0
  62. package/dist/components/ToggleSwitch.d.ts +6 -0
  63. package/dist/components/ToggleSwitch.d.ts.map +1 -0
  64. package/dist/components/Token.d.ts +7 -0
  65. package/dist/components/Token.d.ts.map +1 -0
  66. package/dist/components/Tooltip.d.ts +10 -0
  67. package/dist/components/Tooltip.d.ts.map +1 -0
  68. package/dist/components/Truncate.d.ts +7 -0
  69. package/dist/components/Truncate.d.ts.map +1 -0
  70. package/dist/components/UnderlineNav.d.ts +11 -0
  71. package/dist/components/UnderlineNav.d.ts.map +1 -0
  72. package/dist/components/UnderlinePanels.d.ts +12 -0
  73. package/dist/components/UnderlinePanels.d.ts.map +1 -0
  74. package/dist/components.json +109 -0
  75. package/dist/deprecated.d.ts +4 -1
  76. package/dist/deprecated.d.ts.map +1 -1
  77. package/dist/deprecated.js +84 -1
  78. package/dist/experimental.d.ts +5 -1
  79. package/dist/experimental.d.ts.map +1 -1
  80. package/dist/experimental.js +32 -1
  81. package/dist/index.d.ts +51 -24
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +493 -31
  84. package/dist/polymorphic.d.ts +38 -0
  85. package/dist/polymorphic.d.ts.map +1 -0
  86. package/dist/styled-props.d.ts +5 -0
  87. package/dist/styled-props.d.ts.map +1 -0
  88. package/dist/sx.d.ts +2 -0
  89. package/dist/sx.d.ts.map +1 -0
  90. package/package.json +6 -4
package/README.md CHANGED
@@ -28,6 +28,24 @@ to an alternative styling solution, such as CSS Modules.
28
28
 
29
29
  The documentation for `@primer/react` lives at [primer.style](https://primer.style). There, you'll find detailed documentation on getting started, all of the components, our theme, our principles, and more.
30
30
 
31
+ ## Components List
32
+
33
+ A machine-readable list of all exported components, utilities, and types is available at build time:
34
+
35
+ ```javascript
36
+ import componentsData from '@primer/styled-react/components.json' with {type: 'json'}
37
+
38
+ console.log(componentsData.components) // Array of component names
39
+ console.log(componentsData.utilities) // Array of utility names
40
+ console.log(componentsData.types) // Array of type names
41
+ ```
42
+
43
+ This JSON file is automatically generated during the build process and includes:
44
+
45
+ - `components`: All React components exported by the package
46
+ - `utilities`: Theme utilities and helper functions
47
+ - `types`: TypeScript type definitions
48
+
31
49
  ## 🙌 Contributing
32
50
 
33
51
  We love collaborating with folks inside and outside of GitHub and welcome contributions! If you're interested, check out our [contributing docs](contributor-docs/CONTRIBUTING.md) for more info on how to get started.
@@ -0,0 +1,144 @@
1
+ import { Dialog as Dialog$1, Box, PageHeader as PageHeader$1, sx } 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
+ export { Dialog as D, PageHeader as P };
@@ -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,12 @@
1
+ import { ActionMenu as PrimerActionMenu, type SxProp } from '@primer/react';
2
+ import type { ComponentProps } from 'react';
3
+ type ActionMenuOverlayProps = 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,2 @@
1
+ export { Box, type BoxProps } from '@primer/react';
2
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -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,5 @@
1
+ import { type CheckboxProps as PrimerCheckboxProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ export type CheckboxProps = PrimerCheckboxProps & SxProp;
4
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
5
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,IAAI,mBAAmB,EAAC,MAAM,eAAe,CAAA;AAGnG,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,MAAM,CAAA;AAExD,eAAO,MAAM,QAAQ,yHAEnB,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,10 @@
1
+ import { type CounterLabelProps as PrimerCounterLabelProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ export type CounterLabelProps = PrimerCounterLabelProps & SxProp;
4
+ export declare const CounterLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & {
5
+ scheme?: "primary" | "secondary";
6
+ className?: string;
7
+ } & {
8
+ children?: import("react").ReactNode | undefined;
9
+ } & SxProp & import("react").RefAttributes<HTMLSpanElement>>;
10
+ //# sourceMappingURL=CounterLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/components/CounterLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AAGnH,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,eAAO,MAAM,YAAY;;;;;4DAEvB,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"}
@@ -0,0 +1,8 @@
1
+ import { type FlashProps as PrimerFlashProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ type FlashProps = PrimerFlashProps & SxProp;
5
+ declare const Flash: ForwardRefComponent<'div', FlashProps>;
6
+ export { Flash };
7
+ export type { FlashProps };
8
+ //# sourceMappingURL=Flash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flash.d.ts","sourceRoot":"","sources":["../../src/components/Flash.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,UAAU,IAAI,gBAAgB,EAAuB,MAAM,eAAe,CAAA;AAEvF,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AACrC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,CAAA;AAE3C,QAAA,MAAM,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAIjD,CAAA;AAED,OAAO,EAAC,KAAK,EAAC,CAAA;AACd,YAAY,EAAC,UAAU,EAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type HeaderProps as PrimerHeaderProps, type HeaderItemProps as PrimerHeaderItemProps, type HeaderLinkProps as PrimerHeaderLinkProps } from '@primer/react';
2
+ import type { ForwardRefComponent } from '../polymorphic';
3
+ import type { SxProp } from '../sx';
4
+ type HeaderProps = PrimerHeaderProps & SxProp;
5
+ type HeaderItemProps = PrimerHeaderItemProps & SxProp;
6
+ declare const Header: ForwardRefComponent<"header", HeaderProps> & {
7
+ Item: import("react").ForwardRefExoticComponent<Omit<HeaderItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ Link: import("react").ForwardRefExoticComponent<Omit<PrimerHeaderLinkProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
9
+ };
10
+ export { Header, type HeaderProps };
11
+ //# sourceMappingURL=Header.d.ts.map
@@ -0,0 +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,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,EAA4B,MAAM,eAAe,CAAA;AAC5F,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,UAAU,GAAG,gBAAgB,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAMtE,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,7 @@
1
+ import { type LinkButtonProps as PrimerLinkButtonProps, type SxProp } from '@primer/react';
2
+ import { type ForwardRefComponent } from '../polymorphic';
3
+ type LinkButtonProps = PrimerLinkButtonProps & SxProp;
4
+ declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
5
+ export { LinkButton };
6
+ export type { LinkButtonProps };
7
+ //# sourceMappingURL=LinkButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../src/components/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,IAAI,qBAAqB,EAE7C,KAAK,MAAM,EACZ,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAErD,QAAA,MAAM,UAAU,EAAE,mBAAmB,CAAC,GAAG,EAAE,eAAe,CAIzD,CAAA;AAED,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,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"}
@@ -0,0 +1,31 @@
1
+ import { PageHeader as PrimerPageHeader, type PageHeaderProps as PrimerPageHeaderProps, type PageHeaderTitleProps as PrimerPageHeaderTitleProps, type PageHeaderActionsProps as PrimerPageHeaderActionsProps, type PageHeaderTitleAreaProps as PrimerPageHeaderTitleAreaProps } from '@primer/react';
2
+ import { type SxProp } from '../sx';
3
+ import type { ForwardRefComponent } from '../polymorphic';
4
+ import type { PropsWithChildren } from 'react';
5
+ import React from 'react';
6
+ type PageHeaderProps = PrimerPageHeaderProps & SxProp;
7
+ type PageHeaderActionsProps = PrimerPageHeaderActionsProps & SxProp;
8
+ declare function PageHeaderActions({ sx, ...rest }: PageHeaderActionsProps): React.JSX.Element;
9
+ type PageHeaderTitleProps = PropsWithChildren<PrimerPageHeaderTitleProps> & SxProp;
10
+ declare const PageHeaderTitle: ({ as, ...props }: PageHeaderTitleProps) => React.JSX.Element;
11
+ type PageHeaderTitleAreaProps = PropsWithChildren<PrimerPageHeaderTitleAreaProps> & SxProp;
12
+ declare const PageHeaderTitleArea: ForwardRefComponent<'div', PageHeaderTitleAreaProps>;
13
+ type PageHeaderComponentType = ForwardRefComponent<'div', PageHeaderProps> & {
14
+ 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
+ Title: typeof PageHeaderTitle;
24
+ TrailingVisual: typeof PrimerPageHeader.TrailingVisual;
25
+ Description: typeof PrimerPageHeader.Description;
26
+ TrailingAction: typeof PrimerPageHeader.TrailingAction;
27
+ };
28
+ declare const PageHeader: PageHeaderComponentType;
29
+ export { PageHeader };
30
+ export type { PageHeaderProps, PageHeaderActionsProps, PageHeaderTitleProps };
31
+ //# sourceMappingURL=PageHeader.d.ts.map
@@ -0,0 +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,CAAA;AAEvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,eAAe,GAAG,qBAAqB,GAAG,MAAM,CAAA;AAcrD,KAAK,sBAAsB,GAAG,4BAA4B,GAAG,MAAM,CAAA;AAEnE,iBAAS,iBAAiB,CAAC,EAAC,EAAE,EAAE,GAAG,IAAI,EAAC,EAAE,sBAAsB,qBAY/D;AAED,KAAK,oBAAoB,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAA;AA4BlF,QAAA,MAAM,eAAe,GAAI,kBAAgB,oBAAoB,sBAE5D,CAAA;AAED,KAAK,wBAAwB,GAAG,iBAAiB,CAAC,8BAA8B,CAAC,GAAG,MAAM,CAAA;AAE1F,QAAA,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,CAM7E,CAAA;AAED,KAAK,uBAAuB,GAAG,mBAAmB,CAAC,KAAK,EAAE,eAAe,CAAC,GAAG;IAC3E,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,UAAU,EAAE,OAAO,gBAAgB,CAAC,UAAU,CAAA;IAC9C,SAAS,EAAE,OAAO,mBAAmB,CAAA;IACrC,kBAAkB,EAAE,OAAO,gBAAgB,CAAC,kBAAkB,CAAA;IAC9D,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,aAAa,EAAE,OAAO,gBAAgB,CAAC,aAAa,CAAA;IACpD,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;IACtD,WAAW,EAAE,OAAO,gBAAgB,CAAC,WAAW,CAAA;IAChD,cAAc,EAAE,OAAO,gBAAgB,CAAC,cAAc,CAAA;CACvD,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,uBAchB,CAAA;AAEF,OAAO,EAAC,UAAU,EAAC,CAAA;AACnB,YAAY,EAAC,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { type RadioGroupProps as PrimerRadioGroupProps } from '@primer/react';
2
+ import React, { type PropsWithChildren } from 'react';
3
+ import type { SxProp } from '../sx';
4
+ export type RadioGroupProps = PropsWithChildren<PrimerRadioGroupProps> & 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 RadioGroup: ((props: RadioGroupProps) => 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=RadioGroup.d.ts.map
@@ -0,0 +1 @@
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,WAlCQ,eAAe;mBAWJ,8BAA8B;qBAS5B,gCAAgC;wBAU7B,mCAAmC;CAQhF,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type RelativeTimeProps as PrimerRelativeTimeProps } from '@primer/react';
2
+ import React from 'react';
3
+ import type { SxProp } from '../sx';
4
+ export type RelativeTimeProps = PrimerRelativeTimeProps & SxProp;
5
+ export declare function RelativeTime(props: RelativeTimeProps): React.JSX.Element;
6
+ //# sourceMappingURL=RelativeTime.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
1
+ import { type SegmentedControlProps as PrimerSegmentedControlProps, type SegmentedControlButtonProps as PrimerSegmentedControlButtonProps, type SegmentedControlIconButtonProps as PrimerSegmentedControlIconButtonProps } from '@primer/react';
2
+ import type { PropsWithChildren } from 'react';
3
+ import type { SxProp } from '../sx';
4
+ type SegmentedControlProps = PropsWithChildren<PrimerSegmentedControlProps> & SxProp;
5
+ type SegmentedControlButtonProps = PropsWithChildren<PrimerSegmentedControlButtonProps> & SxProp;
6
+ type SegmentedControlIconButtonProps = PropsWithChildren<PrimerSegmentedControlIconButtonProps> & SxProp;
7
+ declare const SegmentedControl: ((props: SegmentedControlProps) => import("react").JSX.Element) & {
8
+ Button: (props: SegmentedControlButtonProps) => import("react").JSX.Element;
9
+ IconButton: (props: SegmentedControlIconButtonProps) => import("react").JSX.Element;
10
+ };
11
+ export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, };
12
+ //# sourceMappingURL=SegmentedControl.d.ts.map