@primer/styled-react 1.0.0-rc.0 → 1.0.0-rc.10

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 (183) hide show
  1. package/README.md +18 -0
  2. package/dist/components/ActionList.d.ts +44 -0
  3. package/dist/components/ActionList.d.ts.map +1 -0
  4. package/dist/components/ActionList.js +163 -0
  5. package/dist/components/ActionMenu.d.ts +13 -0
  6. package/dist/components/ActionMenu.d.ts.map +1 -0
  7. package/dist/components/ActionMenu.js +19 -0
  8. package/dist/components/Autocomplete.d.ts +17 -0
  9. package/dist/components/Autocomplete.d.ts.map +1 -0
  10. package/dist/components/Autocomplete.js +25 -0
  11. package/dist/components/Avatar.d.ts +13 -0
  12. package/dist/components/Avatar.d.ts.map +1 -0
  13. package/dist/components/Avatar.js +14 -0
  14. package/dist/components/BaseStyles.d.ts +17 -0
  15. package/dist/components/BaseStyles.d.ts.map +1 -0
  16. package/dist/components/BaseStyles.js +51 -0
  17. package/dist/components/Box.d.ts +19 -0
  18. package/dist/components/Box.d.ts.map +1 -0
  19. package/dist/components/Box.js +15 -0
  20. package/dist/components/Breadcrumbs.d.ts +18 -0
  21. package/dist/components/Breadcrumbs.d.ts.map +1 -0
  22. package/dist/components/Breadcrumbs.js +38 -0
  23. package/dist/components/Button.d.ts +12 -0
  24. package/dist/components/Button.d.ts.map +1 -0
  25. package/dist/components/Button.js +112 -0
  26. package/dist/components/Checkbox.d.ts +5 -0
  27. package/dist/components/Checkbox.d.ts.map +1 -0
  28. package/dist/components/Checkbox.js +15 -0
  29. package/dist/components/CheckboxGroup.d.ts +34 -0
  30. package/dist/components/CheckboxGroup.d.ts.map +1 -0
  31. package/dist/components/CheckboxGroup.js +43 -0
  32. package/dist/components/CircleBadge.d.ts +8 -0
  33. package/dist/components/CircleBadge.d.ts.map +1 -0
  34. package/dist/components/CircleBadge.js +12 -0
  35. package/dist/components/CounterLabel.d.ts +10 -0
  36. package/dist/components/CounterLabel.d.ts.map +1 -0
  37. package/dist/components/CounterLabel.js +14 -0
  38. package/dist/components/DataTable.d.ts +11 -0
  39. package/dist/components/DataTable.d.ts.map +1 -0
  40. package/dist/components/DataTable.js +32 -0
  41. package/dist/components/Dialog.d.ts +19 -0
  42. package/dist/components/Dialog.d.ts.map +1 -0
  43. package/dist/components/Dialog.js +43 -0
  44. package/dist/components/FeatureFlaggedTheming.d.ts +9 -0
  45. package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -0
  46. package/dist/components/FeatureFlaggedTheming.js +54 -0
  47. package/dist/components/Flash.d.ts +8 -0
  48. package/dist/components/Flash.d.ts.map +1 -0
  49. package/dist/components/Flash.js +12 -0
  50. package/dist/components/FormControl.d.ts +13 -0
  51. package/dist/components/FormControl.d.ts.map +1 -0
  52. package/dist/components/FormControl.js +19 -0
  53. package/dist/components/Header.d.ts +11 -0
  54. package/dist/components/Header.d.ts.map +1 -0
  55. package/dist/components/Header.js +52 -0
  56. package/dist/components/Heading.d.ts +8 -0
  57. package/dist/components/Heading.d.ts.map +1 -0
  58. package/dist/components/Heading.js +12 -0
  59. package/dist/components/IconButton.d.ts +10 -0
  60. package/dist/components/IconButton.d.ts.map +1 -0
  61. package/dist/components/IconButton.js +40 -0
  62. package/dist/components/Label.d.ts +9 -0
  63. package/dist/components/Label.d.ts.map +1 -0
  64. package/dist/components/Label.js +26 -0
  65. package/dist/components/Link.d.ts +7 -0
  66. package/dist/components/Link.d.ts.map +1 -0
  67. package/dist/components/Link.js +26 -0
  68. package/dist/components/LinkButton.d.ts +8 -0
  69. package/dist/components/LinkButton.d.ts.map +1 -0
  70. package/dist/components/LinkButton.js +12 -0
  71. package/dist/components/NavList.d.ts +30 -0
  72. package/dist/components/NavList.d.ts.map +1 -0
  73. package/dist/components/NavList.js +74 -0
  74. package/dist/components/Overlay.d.ts +8 -0
  75. package/dist/components/Overlay.d.ts.map +1 -0
  76. package/dist/components/Overlay.js +12 -0
  77. package/dist/components/PageHeader.d.ts +31 -0
  78. package/dist/components/PageHeader.d.ts.map +1 -0
  79. package/dist/components/PageHeader.js +109 -0
  80. package/dist/components/PageLayout.d.ts +23 -0
  81. package/dist/components/PageLayout.d.ts.map +1 -0
  82. package/dist/components/PageLayout.js +43 -0
  83. package/dist/components/RadioGroup.d.ts +34 -0
  84. package/dist/components/RadioGroup.d.ts.map +1 -0
  85. package/dist/components/RadioGroup.js +43 -0
  86. package/dist/components/RelativeTime.d.ts +6 -0
  87. package/dist/components/RelativeTime.d.ts.map +1 -0
  88. package/dist/components/RelativeTime.js +14 -0
  89. package/dist/components/SegmentedControl.d.ts +19 -0
  90. package/dist/components/SegmentedControl.d.ts.map +1 -0
  91. package/dist/components/SegmentedControl.js +31 -0
  92. package/dist/components/Select.d.ts +8 -0
  93. package/dist/components/Select.d.ts.map +1 -0
  94. package/dist/components/Select.js +24 -0
  95. package/dist/components/Spinner.d.ts +5 -0
  96. package/dist/components/Spinner.d.ts.map +1 -0
  97. package/dist/components/Spinner.js +12 -0
  98. package/dist/components/StateLabel.d.ts +9 -0
  99. package/dist/components/StateLabel.d.ts.map +1 -0
  100. package/dist/components/StateLabel.js +14 -0
  101. package/dist/components/SubNav.d.ts +10 -0
  102. package/dist/components/SubNav.d.ts.map +1 -0
  103. package/dist/components/SubNav.js +26 -0
  104. package/dist/components/Text.d.ts +15 -0
  105. package/dist/components/Text.d.ts.map +1 -0
  106. package/dist/components/Text.js +26 -0
  107. package/dist/components/TextInput.d.ts +15 -0
  108. package/dist/components/TextInput.d.ts.map +1 -0
  109. package/dist/components/TextInput.js +38 -0
  110. package/dist/components/Textarea.d.ts +9 -0
  111. package/dist/components/Textarea.d.ts.map +1 -0
  112. package/dist/components/Textarea.js +26 -0
  113. package/dist/components/ThemeProvider.d.ts +30 -0
  114. package/dist/components/ThemeProvider.d.ts.map +1 -0
  115. package/dist/components/ThemeProvider.js +202 -0
  116. package/dist/components/Timeline.d.ts +26 -0
  117. package/dist/components/Timeline.d.ts.map +1 -0
  118. package/dist/components/Timeline.js +47 -0
  119. package/dist/components/ToggleSwitch.d.ts +6 -0
  120. package/dist/components/ToggleSwitch.d.ts.map +1 -0
  121. package/dist/components/ToggleSwitch.js +14 -0
  122. package/dist/components/Token.d.ts +8 -0
  123. package/dist/components/Token.d.ts.map +1 -0
  124. package/dist/components/Token.js +26 -0
  125. package/dist/components/Tooltip.d.ts +7 -0
  126. package/dist/components/Tooltip.d.ts.map +1 -0
  127. package/dist/components/Tooltip.js +15 -0
  128. package/dist/components/Truncate.d.ts +7 -0
  129. package/dist/components/Truncate.d.ts.map +1 -0
  130. package/dist/components/Truncate.js +12 -0
  131. package/dist/components/UnderlineNav.d.ts +11 -0
  132. package/dist/components/UnderlineNav.d.ts.map +1 -0
  133. package/dist/components/UnderlineNav.js +45 -0
  134. package/dist/components/UnderlinePanels.d.ts +14 -0
  135. package/dist/components/UnderlinePanels.d.ts.map +1 -0
  136. package/dist/components/UnderlinePanels.js +28 -0
  137. package/dist/components/deprecated/ActionList.d.ts +23 -0
  138. package/dist/components/deprecated/ActionList.d.ts.map +1 -0
  139. package/dist/components/deprecated/ActionList.js +49 -0
  140. package/dist/components/deprecated/DialogV1.d.ts +11 -0
  141. package/dist/components/deprecated/DialogV1.d.ts.map +1 -0
  142. package/dist/components/deprecated/DialogV1.js +44 -0
  143. package/dist/components/deprecated/Octicon.d.ts +17 -0
  144. package/dist/components/deprecated/Octicon.d.ts.map +1 -0
  145. package/dist/components/deprecated/Octicon.js +39 -0
  146. package/dist/components/deprecated/TabNav.d.ts +9 -0
  147. package/dist/components/deprecated/TabNav.d.ts.map +1 -0
  148. package/dist/components/deprecated/TabNav.js +44 -0
  149. package/dist/components/deprecated/Tooltip.d.ts +13 -0
  150. package/dist/components/deprecated/Tooltip.d.ts.map +1 -0
  151. package/dist/components/deprecated/Tooltip.js +32 -0
  152. package/dist/components.json +138 -0
  153. package/dist/deprecated.d.ts +6 -0
  154. package/dist/deprecated.d.ts.map +1 -0
  155. package/dist/deprecated.js +5 -1
  156. package/dist/experimental.d.ts +6 -0
  157. package/dist/experimental.d.ts.map +1 -0
  158. package/dist/experimental.js +5 -1
  159. package/dist/index.d.ts +48 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +45 -1
  162. package/dist/polymorphic.d.ts +38 -0
  163. package/dist/polymorphic.d.ts.map +1 -0
  164. package/dist/styled-props.d.ts +4 -0
  165. package/dist/styled-props.d.ts.map +1 -0
  166. package/dist/sx.d.ts +26 -0
  167. package/dist/sx.d.ts.map +1 -0
  168. package/dist/sx.js +8 -0
  169. package/package.json +11 -6
  170. package/dist/config/vitest/browser/setup.d.ts +0 -2
  171. package/dist/config/vitest/browser/setup.d.ts.map +0 -1
  172. package/dist/src/__tests__/exports.test.d.ts +0 -2
  173. package/dist/src/__tests__/exports.test.d.ts.map +0 -1
  174. package/dist/src/deprecated.d.ts +0 -2
  175. package/dist/src/deprecated.d.ts.map +0 -1
  176. package/dist/src/experimental.d.ts +0 -2
  177. package/dist/src/experimental.d.ts.map +0 -1
  178. package/dist/src/index.d.ts +0 -2
  179. package/dist/src/index.d.ts.map +0 -1
  180. package/dist/src/utils/__tests__/createStyledComponent.browser.test.d.ts +0 -2
  181. package/dist/src/utils/__tests__/createStyledComponent.browser.test.d.ts.map +0 -1
  182. package/dist/src/utils/createStyledComponent.d.ts +0 -20
  183. package/dist/src/utils/createStyledComponent.d.ts.map +0 -1
@@ -0,0 +1,40 @@
1
+ import { IconButton as IconButton$1 } from '@primer/react';
2
+ import { generateCustomSxProp } from './Button.js';
3
+ import { forwardRef } from 'react';
4
+ import styled from 'styled-components';
5
+ import sx from '../sx.js';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ const StyledIconButton = styled(IconButton$1).withConfig({
9
+ shouldForwardProp: prop => prop !== 'sx'
10
+ }).withConfig({
11
+ displayName: "IconButton__StyledIconButton",
12
+ componentId: "sc-i53dt6-0"
13
+ })(["", ""], sx);
14
+ const IconButton = /*#__PURE__*/forwardRef(({
15
+ as,
16
+ sx,
17
+ ...props
18
+ }, ref) => {
19
+ let sxStyles = sx;
20
+ // grap the button props that have associated data attributes in the styles
21
+ const {
22
+ size = 'medium'
23
+ } = props;
24
+ if (sx !== null && sx !== undefined && Object.keys(sx).length > 0) {
25
+ sxStyles = generateCustomSxProp({
26
+ size
27
+ }, sx);
28
+ }
29
+ return /*#__PURE__*/jsx(StyledIconButton, {
30
+ sx: sxStyles,
31
+ ...props,
32
+ ...(as ? {
33
+ forwardedAs: as
34
+ } : {}),
35
+ ref: ref
36
+ });
37
+ });
38
+ IconButton.__SLOT__ = IconButton$1.__SLOT__;
39
+
40
+ export { IconButton };
@@ -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,26 @@
1
+ import { Label as Label$1 } from '@primer/react';
2
+ import sx from '../sx.js';
3
+ import { forwardRef } from 'react';
4
+ import styled from 'styled-components';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const StyledLabel = styled(Label$1).withConfig({
8
+ shouldForwardProp: prop => prop !== 'sx'
9
+ }).withConfig({
10
+ displayName: "Label__StyledLabel",
11
+ componentId: "sc-1cpass9-0"
12
+ })(["", ""], sx);
13
+ const Label = /*#__PURE__*/forwardRef(({
14
+ as,
15
+ ...props
16
+ }, ref) => {
17
+ return /*#__PURE__*/jsx(StyledLabel, {
18
+ ...props,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {}),
22
+ ref: ref
23
+ });
24
+ });
25
+
26
+ export { Label };
@@ -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,26 @@
1
+ import { Link as Link$1 } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import sx from '../sx.js';
4
+ import { forwardRef } from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const StyledLink = styled(Link$1).withConfig({
8
+ shouldForwardProp: prop => prop !== 'sx'
9
+ }).withConfig({
10
+ displayName: "Link__StyledLink",
11
+ componentId: "sc-1syctfj-0"
12
+ })(["", ""], sx);
13
+ const Link = /*#__PURE__*/forwardRef(({
14
+ as,
15
+ ...props
16
+ }, ref) => {
17
+ return /*#__PURE__*/jsx(StyledLink, {
18
+ ...props,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {}),
22
+ ref: ref
23
+ });
24
+ });
25
+
26
+ export { Link };
@@ -0,0 +1,8 @@
1
+ import { type LinkButtonProps as PrimerLinkButtonProps } from '@primer/react';
2
+ import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
4
+ type LinkButtonProps = PrimerLinkButtonProps & SxProp;
5
+ declare const LinkButton: ForwardRefComponent<'a', LinkButtonProps>;
6
+ export { LinkButton };
7
+ export type { LinkButtonProps };
8
+ //# 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,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAE3G,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,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,12 @@
1
+ import { LinkButton as LinkButton$1 } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import sx from '../sx.js';
4
+
5
+ const LinkButton = styled(LinkButton$1).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "LinkButton",
9
+ componentId: "sc-1v6zkmg-0"
10
+ })(["", ""], sx);
11
+
12
+ export { LinkButton };
@@ -0,0 +1,30 @@
1
+ import { NavList as PrimerNavList } from '@primer/react';
2
+ import type { NavListProps as PrimerNavListProps, NavListItemProps as PrimerNavListItemProps, NavListLeadingVisualProps as PrimerNavListLeadingVisualProps } from '@primer/react';
3
+ import { type PropsWithChildren } from 'react';
4
+ import { type SxProp } from '../sx';
5
+ import type { ForwardRefComponent } from '../polymorphic';
6
+ type NavListProps = PropsWithChildren<PrimerNavListProps> & SxProp & {
7
+ as?: React.ElementType;
8
+ };
9
+ type NavListItemProps = PropsWithChildren<PrimerNavListItemProps> & SxProp & {
10
+ as?: React.ElementType;
11
+ };
12
+ declare const NavListItem: ForwardRefComponent<"a", NavListItemProps>;
13
+ type NavListLeadingVisualProps = PropsWithChildren<PrimerNavListLeadingVisualProps> & SxProp & {
14
+ as?: React.ElementType;
15
+ };
16
+ declare const NavListLeadingVisual: ForwardRefComponent<"span", NavListLeadingVisualProps>;
17
+ type NavListCompound = React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLElement>> & {
18
+ Item: typeof NavListItem;
19
+ Group: typeof PrimerNavList.Group;
20
+ GroupHeading: typeof PrimerNavList.GroupHeading;
21
+ LeadingVisual: typeof NavListLeadingVisual;
22
+ SubNav: typeof PrimerNavList.SubNav;
23
+ Divider: typeof PrimerNavList.Divider;
24
+ TrailingVisual: typeof PrimerNavList.TrailingVisual;
25
+ TrailingAction: typeof PrimerNavList.TrailingAction;
26
+ GroupExpand: typeof PrimerNavList.GroupExpand;
27
+ };
28
+ declare const NavList: NavListCompound;
29
+ export { NavList, type NavListProps };
30
+ //# 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,EAAC,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EACV,YAAY,IAAI,kBAAkB,EAClC,gBAAgB,IAAI,sBAAsB,EAC1C,yBAAyB,IAAI,+BAA+B,EAE7D,MAAM,eAAe,CAAA;AACtB,OAAO,EAAa,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACxD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AAEvD,KAAK,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,MAAM,GAAG;IAAC,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CAAC,CAAA;AAY7F,KAAK,gBAAgB,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAC/D,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,WAAW,EAEX,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAA;AAEhD,KAAK,yBAAyB,GAAG,iBAAiB,CAAC,+BAA+B,CAAC,GACjF,MAAM,GAAG;IACP,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AAQH,QAAA,MAAM,oBAAoB,EAEpB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAE3D;AAED,KAAK,eAAe,GAAG,KAAK,CAAC,yBAAyB,CAAC,YAAY,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG;IACxG,IAAI,EAAE,OAAO,WAAW,CAAA;IACxB,KAAK,EAAE,OAAO,aAAa,CAAC,KAAK,CAAA;IACjC,YAAY,EAAE,OAAO,aAAa,CAAC,YAAY,CAAA;IAC/C,aAAa,EAAE,OAAO,oBAAoB,CAAA;IAC1C,MAAM,EAAE,OAAO,aAAa,CAAC,MAAM,CAAA;IACnC,OAAO,EAAE,OAAO,aAAa,CAAC,OAAO,CAAA;IACrC,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,cAAc,EAAE,OAAO,aAAa,CAAC,cAAc,CAAA;IACnD,WAAW,EAAE,OAAO,aAAa,CAAC,WAAW,CAAA;CAC9C,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,eAUb,CAAA;AAEF,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAC,CAAA"}
@@ -0,0 +1,74 @@
1
+ import { NavList as NavList$1 } from '@primer/react';
2
+ import { forwardRef } from 'react';
3
+ import styled from 'styled-components';
4
+ import sx from '../sx.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const StyledNavListImpl = styled(NavList$1).withConfig({
8
+ shouldForwardProp: prop => prop !== 'sx'
9
+ }).withConfig({
10
+ displayName: "NavList__StyledNavListImpl",
11
+ componentId: "sc-86jrwg-0"
12
+ })(["", ""], sx);
13
+ const NavListImpl = /*#__PURE__*/forwardRef(function NavList({
14
+ as,
15
+ ...props
16
+ }, ref) {
17
+ return /*#__PURE__*/jsx(StyledNavListImpl, {
18
+ ref: ref,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {}),
22
+ ...props
23
+ });
24
+ });
25
+ const StyledNavListItem = styled(NavList$1.Item).withConfig({
26
+ shouldForwardProp: prop => prop !== 'sx'
27
+ }).withConfig({
28
+ displayName: "NavList__StyledNavListItem",
29
+ componentId: "sc-86jrwg-1"
30
+ })(["", ""], sx);
31
+ const NavListItem = /*#__PURE__*/forwardRef(({
32
+ as,
33
+ ...props
34
+ }, ref) => {
35
+ return /*#__PURE__*/jsx(StyledNavListItem, {
36
+ ...props,
37
+ ...(as ? {
38
+ forwardedAs: as
39
+ } : {}),
40
+ ref: ref
41
+ });
42
+ });
43
+ const StyledNavListLeadingVisual = styled(NavList$1.LeadingVisual).withConfig({
44
+ shouldForwardProp: prop => prop !== 'sx'
45
+ }).withConfig({
46
+ displayName: "NavList__StyledNavListLeadingVisual",
47
+ componentId: "sc-86jrwg-2"
48
+ })(["", ""], sx);
49
+ const NavListLeadingVisual = /*#__PURE__*/forwardRef(({
50
+ as,
51
+ ...props
52
+ }, ref) => {
53
+ return /*#__PURE__*/jsx(StyledNavListLeadingVisual, {
54
+ ...props,
55
+ ...(as ? {
56
+ forwardedAs: as
57
+ } : {}),
58
+ ref: ref
59
+ });
60
+ });
61
+ NavListLeadingVisual.__SLOT__ = NavList$1.LeadingVisual.__SLOT__;
62
+ const NavList = Object.assign(NavListImpl, {
63
+ Item: NavListItem,
64
+ Group: NavList$1.Group,
65
+ GroupHeading: NavList$1.GroupHeading,
66
+ LeadingVisual: NavListLeadingVisual,
67
+ SubNav: NavList$1.SubNav,
68
+ Divider: NavList$1.Divider,
69
+ TrailingVisual: NavList$1.TrailingVisual,
70
+ TrailingAction: NavList$1.TrailingAction,
71
+ GroupExpand: NavList$1.GroupExpand
72
+ });
73
+
74
+ export { NavList };
@@ -0,0 +1,8 @@
1
+ import { type OverlayProps as PrimerOverlayProps } from '@primer/react';
2
+ import { type ForwardRefComponent } from '../polymorphic';
3
+ import { type SxProp } from '../sx';
4
+ type OverlayProps = PrimerOverlayProps & SxProp;
5
+ declare const Overlay: ForwardRefComponent<'div', OverlayProps>;
6
+ export { Overlay };
7
+ export type { OverlayProps };
8
+ //# 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,EAAC,MAAM,eAAe,CAAA;AAE/F,OAAO,EAAC,KAAK,mBAAmB,EAAC,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAErC,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,12 @@
1
+ import { Overlay as Overlay$1 } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import sx from '../sx.js';
4
+
5
+ const Overlay = styled(Overlay$1).withConfig({
6
+ shouldForwardProp: prop => prop !== 'sx'
7
+ }).withConfig({
8
+ displayName: "Overlay",
9
+ componentId: "sc-tjbd74-0"
10
+ })(["", ""], sx);
11
+
12
+ export { Overlay };
@@ -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,EAA2B,MAAM,OAAO,CAAA;AAC/D,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;AAwBlF,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,109 @@
1
+ import { PageHeader as PageHeader$1 } from '@primer/react';
2
+ import styled from 'styled-components';
3
+ import sx from '../sx.js';
4
+ import Box from './Box.js';
5
+ import React from 'react';
6
+ import { jsx } from 'react/jsx-runtime';
7
+
8
+ const StyledPageHeader = styled(PageHeader$1).withConfig({
9
+ shouldForwardProp: prop => prop !== 'sx'
10
+ }).withConfig({
11
+ displayName: "PageHeader__StyledPageHeader",
12
+ componentId: "sc-1g9symn-0"
13
+ })(["", ""], sx);
14
+ const PageHeaderImpl = /*#__PURE__*/React.forwardRef(({
15
+ as,
16
+ ...props
17
+ }, ref) => /*#__PURE__*/jsx(StyledPageHeader, {
18
+ ...props,
19
+ ...(as ? {
20
+ forwardedAs: as
21
+ } : {}),
22
+ ref: ref
23
+ }));
24
+ function PageHeaderActions({
25
+ sx,
26
+ ...rest
27
+ }) {
28
+ const style = {};
29
+ if (sx) {
30
+ // @ts-ignore sx has height attribute
31
+ const {
32
+ height
33
+ } = sx;
34
+ if (height) {
35
+ style['--custom-height'] = height;
36
+ }
37
+ }
38
+
39
+ // @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Actions
40
+ return /*#__PURE__*/jsx(Box, {
41
+ ...rest,
42
+ as: PageHeader$1.Actions,
43
+ style: style,
44
+ sx: sx
45
+ });
46
+ }
47
+ function StyledPageHeaderTitle({
48
+ sx,
49
+ ...rest
50
+ }) {
51
+ const style = {};
52
+ if (sx) {
53
+ // @ts-ignore sx can have color attribute
54
+ const {
55
+ fontSize,
56
+ lineHeight,
57
+ fontWeight
58
+ } = sx;
59
+ if (fontSize) {
60
+ style['--custom-font-size'] = fontSize;
61
+ }
62
+ if (lineHeight) {
63
+ style['--custom-line-height'] = lineHeight;
64
+ }
65
+ if (fontWeight) {
66
+ style['--custom-font-weight'] = fontWeight;
67
+ }
68
+ }
69
+
70
+ // @ts-expect-error type mismatch between Box usage here and PrimerPageHeader.Title
71
+ return /*#__PURE__*/jsx(Box, {
72
+ ...rest,
73
+ as: PageHeader$1.Title,
74
+ style: style,
75
+ sx: sx
76
+ });
77
+ }
78
+ const PageHeaderTitle = ({
79
+ as,
80
+ ...props
81
+ }) => /*#__PURE__*/jsx(StyledPageHeaderTitle, {
82
+ ...props,
83
+ ...(as ? {
84
+ forwardedAs: as
85
+ } : {})
86
+ });
87
+ const PageHeaderTitleArea = styled(PageHeader$1.TitleArea).withConfig({
88
+ shouldForwardProp: prop => prop !== 'sx'
89
+ }).withConfig({
90
+ displayName: "PageHeader__PageHeaderTitleArea",
91
+ componentId: "sc-1g9symn-1"
92
+ })(["", ""], sx);
93
+ const PageHeader = Object.assign(PageHeaderImpl, {
94
+ Actions: PageHeaderActions,
95
+ ContextArea: PageHeader$1.ContextArea,
96
+ ParentLink: PageHeader$1.ParentLink,
97
+ ContextBar: PageHeader$1.ContextBar,
98
+ TitleArea: PageHeaderTitleArea,
99
+ ContextAreaActions: PageHeader$1.ContextAreaActions,
100
+ LeadingAction: PageHeader$1.LeadingAction,
101
+ Breadcrumbs: PageHeader$1.Breadcrumbs,
102
+ LeadingVisual: PageHeader$1.LeadingVisual,
103
+ Title: PageHeaderTitle,
104
+ TrailingVisual: PageHeader$1.TrailingVisual,
105
+ Description: PageHeader$1.Description,
106
+ TrailingAction: PageHeader$1.TrailingAction
107
+ });
108
+
109
+ export { PageHeader };
@@ -0,0 +1,23 @@
1
+ import React, { type PropsWithChildren } from 'react';
2
+ import type { PageLayoutProps as PrimerPageLayoutProps, PageLayoutContentProps as PrimerPageLayoutContentProps, PageLayoutPaneProps as PrimerPageLayoutPaneProps } from '@primer/react';
3
+ import { PageLayout as PrimerPageLayout } from '@primer/react';
4
+ import { type SxProp } from '../sx';
5
+ type PageLayoutProps = PropsWithChildren<PrimerPageLayoutProps> & SxProp;
6
+ declare const PageLayoutImpl: React.ForwardRefExoticComponent<PrimerPageLayoutProps & {
7
+ children?: React.ReactNode | undefined;
8
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
9
+ declare const PageLayoutContent: React.ForwardRefExoticComponent<PrimerPageLayoutContentProps & {
10
+ children?: React.ReactNode | undefined;
11
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
12
+ declare const PageLayoutPane: React.ForwardRefExoticComponent<PrimerPageLayoutPaneProps & {
13
+ children?: React.ReactNode | undefined;
14
+ } & SxProp & React.RefAttributes<HTMLDivElement>>;
15
+ type PageLayoutType = typeof PageLayoutImpl & {
16
+ Content: typeof PageLayoutContent;
17
+ Header: typeof PrimerPageLayout.Header;
18
+ Pane: typeof PageLayoutPane;
19
+ Footer: typeof PrimerPageLayout.Footer;
20
+ };
21
+ declare const PageLayout: PageLayoutType;
22
+ export { PageLayout, type PageLayoutProps };
23
+ //# sourceMappingURL=PageLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../src/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAEnD,OAAO,KAAK,EACV,eAAe,IAAI,qBAAqB,EACxC,sBAAsB,IAAI,4BAA4B,EACtD,mBAAmB,IAAI,yBAAyB,EAEjD,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAK,KAAK,MAAM,EAAC,MAAM,OAAO,CAAA;AAMrC,KAAK,eAAe,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAA;AAExE,QAAA,MAAM,cAAc;;iDAGlB,CAAA;AAIF,QAAA,MAAM,iBAAiB;;iDAErB,CAAA;AAIF,QAAA,MAAM,cAAc;;iDAElB,CAAA;AAEF,KAAK,cAAc,GAAG,OAAO,cAAc,GAAG;IAC5C,OAAO,EAAE,OAAO,iBAAiB,CAAA;IACjC,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;IACtC,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,MAAM,EAAE,OAAO,gBAAgB,CAAC,MAAM,CAAA;CACvC,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,cAMhB,CAED;AAGD,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,CAAA"}
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import { PageLayout as PageLayout$1 } from '@primer/react';
4
+ import sx from '../sx.js';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ const Wrapper = styled.div.withConfig({
8
+ displayName: "PageLayout__Wrapper",
9
+ componentId: "sc-pjybtc-0"
10
+ })(["", ""], sx);
11
+ const PageLayoutImpl = /*#__PURE__*/React.forwardRef((props, ref) => {
12
+ // @ts-expect-error - PrimerPageLayout is not recognized as a valid component type
13
+ return /*#__PURE__*/jsx(Wrapper, {
14
+ as: PageLayout$1,
15
+ ref: ref,
16
+ ...props
17
+ });
18
+ });
19
+ const PageLayoutContent = /*#__PURE__*/React.forwardRef((props, ref) => {
20
+ return /*#__PURE__*/jsx(Wrapper, {
21
+ as: PageLayout$1.Content,
22
+ ref: ref,
23
+ ...props
24
+ });
25
+ });
26
+ const PageLayoutPane = /*#__PURE__*/React.forwardRef((props, ref) => {
27
+ return /*#__PURE__*/jsx(Wrapper, {
28
+ as: PageLayout$1.Pane,
29
+ ref: ref,
30
+ ...props
31
+ });
32
+ });
33
+ const PageLayout = Object.assign(PageLayoutImpl, {
34
+ __SLOT__: PageLayout$1.__SLOT__,
35
+ Content: PageLayoutContent,
36
+ Header: PageLayout$1.Header,
37
+ Pane: PageLayoutPane,
38
+ Footer: PageLayout$1.Footer
39
+ });
40
+ PageLayoutContent.__SLOT__ = PageLayout$1.Content.__SLOT__;
41
+ PageLayoutPane.__SLOT__ = PageLayout$1.Pane.__SLOT__;
42
+
43
+ export { PageLayout };
@@ -0,0 +1,34 @@
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: {
17
+ (props: RadioGroupProps): React.JSX.Element;
18
+ __SLOT__: symbol;
19
+ } & {
20
+ Label: {
21
+ (props: CheckboxOrRadioGroupLabelProps): React.JSX.Element;
22
+ __SLOT__: symbol | undefined;
23
+ };
24
+ Caption: {
25
+ (props: CheckboxOrRadioGroupCaptionProps): React.JSX.Element;
26
+ __SLOT__: symbol | undefined;
27
+ };
28
+ Validation: {
29
+ (props: CheckboxOrRadioGroupValidationProps): React.JSX.Element;
30
+ __SLOT__: symbol | undefined;
31
+ };
32
+ };
33
+ export {};
34
+ //# 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,EAAiC,KAAK,eAAe,IAAI,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAC3G,OAAO,KAAK,EAAE,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,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;YAlCQ,eAAe;;;;gBAWJ,8BAA8B;;;;gBAS5B,gCAAgC;;;;gBAU7B,mCAAmC;;;CAQhF,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { RadioGroup as RadioGroup$1 } from '@primer/react';
2
+ import 'react';
3
+ import Box from './Box.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ const RadioGroupImpl = props => {
7
+ return /*#__PURE__*/jsx(Box, {
8
+ as: RadioGroup$1,
9
+ ...props
10
+ });
11
+ };
12
+
13
+ // Define local types based on the internal component props
14
+
15
+ const CheckboxOrRadioGroupLabel = props => {
16
+ return /*#__PURE__*/jsx(Box, {
17
+ as: RadioGroup$1.Label,
18
+ ...props
19
+ });
20
+ };
21
+ const CheckboxOrRadioGroupCaption = props => {
22
+ return /*#__PURE__*/jsx(Box, {
23
+ as: RadioGroup$1.Caption,
24
+ ...props
25
+ });
26
+ };
27
+ const CheckboxOrRadioGroupValidation = props => {
28
+ return /*#__PURE__*/jsx(Box, {
29
+ as: RadioGroup$1.Validation,
30
+ ...props
31
+ });
32
+ };
33
+ const RadioGroup = Object.assign(RadioGroupImpl, {
34
+ Label: CheckboxOrRadioGroupLabel,
35
+ Caption: CheckboxOrRadioGroupCaption,
36
+ Validation: CheckboxOrRadioGroupValidation
37
+ });
38
+ RadioGroupImpl.__SLOT__ = RadioGroup$1.__SLOT__;
39
+ CheckboxOrRadioGroupLabel.__SLOT__ = RadioGroup$1.Label.__SLOT__;
40
+ CheckboxOrRadioGroupCaption.__SLOT__ = RadioGroup$1.Caption.__SLOT__;
41
+ CheckboxOrRadioGroupValidation.__SLOT__ = RadioGroup$1.Validation.__SLOT__;
42
+
43
+ export { RadioGroup };
@@ -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,EAAqC,KAAK,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,eAAe,CAAA;AACnH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,MAAM,CAAA;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAGpD"}
@@ -0,0 +1,14 @@
1
+ import { RelativeTime as RelativeTime$1 } from '@primer/react';
2
+ import 'react';
3
+ import Box from './Box.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ function RelativeTime(props) {
7
+ // @ts-expect-error the types for Box are not correctly inferred here
8
+ return /*#__PURE__*/jsx(Box, {
9
+ as: RelativeTime$1,
10
+ ...props
11
+ });
12
+ }
13
+
14
+ export { RelativeTime };
@@ -0,0 +1,19 @@
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
+ __SLOT__: symbol;
9
+ Button: {
10
+ (props: SegmentedControlButtonProps): import("react").JSX.Element;
11
+ __SLOT__: symbol | undefined;
12
+ };
13
+ IconButton: {
14
+ (props: SegmentedControlIconButtonProps): import("react").JSX.Element;
15
+ __SLOT__: symbol | undefined;
16
+ };
17
+ };
18
+ export { SegmentedControl, type SegmentedControlProps, type SegmentedControlButtonProps, type SegmentedControlIconButtonProps, };
19
+ //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../src/components/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,IAAI,2BAA2B,EAEzD,KAAK,2BAA2B,IAAI,iCAAiC,EACrE,KAAK,+BAA+B,IAAI,qCAAqC,EAC9E,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAC5C,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,OAAO,CAAA;AAGjC,KAAK,qBAAqB,GAAG,iBAAiB,CAAC,2BAA2B,CAAC,GAAG,MAAM,CAAA;AACpF,KAAK,2BAA2B,GAAG,iBAAiB,CAAC,iCAAiC,CAAC,GAAG,MAAM,CAAA;AAChG,KAAK,+BAA+B,GAAG,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,MAAM,CAAA;AAcxG,QAAA,MAAM,gBAAgB,WAJe,qBAAqB;;;gBARnB,2BAA2B;;;;gBAIvB,+BAA+B;;;CAYxE,CAAA;AAKF,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,GACrC,CAAA"}